@alexmurray I did some testing, it doesn’t seem like kernel-module-observe
will be enough, after connecting it manually I’m still get the same error:
snap connections auto-cpufreq
Interface Plug Slot Notes
content[gnome-42-2204] auto-cpufreq:gnome-42-2204 gnome-42-2204:gnome-42-2204 -
content[gtk-3-themes] auto-cpufreq:gtk-3-themes gtk-common-themes:gtk-3-themes -
content[icon-themes] auto-cpufreq:icon-themes gtk-common-themes:icon-themes -
content[sound-themes] auto-cpufreq:sound-themes gtk-common-themes:sound-themes -
cpu-control auto-cpufreq:cpu-control - -
desktop auto-cpufreq:desktop :desktop -
desktop-legacy auto-cpufreq:desktop-legacy :desktop-legacy -
gsettings auto-cpufreq:gsettings :gsettings -
hardware-observe auto-cpufreq:hardware-observe - -
kernel-module-observe auto-cpufreq:kernel-module-observe :kernel-module-observe manual
opengl auto-cpufreq:opengl :opengl -
system-files auto-cpufreq:etc-auto-cpufreq-conf - -
system-observe auto-cpufreq:system-observe - -
wayland auto-cpufreq:wayland :wayland -
x11 auto-cpufreq:x11 :x11 -
sudo auto-cpufreq --live
Using settings defined in /etc/auto-cpufreq.conf file
Note: You can quit live mode by pressing "ctrl+c"
----------------------------------- Warning -----------------------------------
Due to Snap package confinement limitations please consider installing auto-cpufreq using
auto-cpufreq-installer: https://github.com/AdnanHodzic/auto-cpufreq/#auto-cpufreq-installer
Unable to detect state of GNOME Power Profiles daemon service!
This daemon might interfere with auto-cpufreq and should be disabled.
Steps to perform this action using auto-cpufreq: power_helper script:
git clone https://github.com/AdnanHodzic/auto-cpufreq.git
cd auto-cpufreq/auto_cpufreq
python3 power_helper.py --gnome_power_disable
Reference: https://github.com/AdnanHodzic/auto-cpufreq#configuring-auto-cpufreq
----------------------------------- Warning -----------------------------------
Unable to detect if you are using a TLP service!
This daemon might interfere with auto-cpufreq which can lead to unexpected results.
We strongly encourage you not to use TLP unless you really know what you are doing.
-------------------------------------------------------------------------------
PermissionError(13, 'Permission denied')
Linux distro: UNKNOWN distro UNKNOWN version
Linux kernel: 6.5.0-17-generic
Processor: Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz
Cores: 8
Architecture: x86_64
Driver: intel_pstate
------------------------------ Current CPU stats ------------------------------
CPU max frequency: 1800 MHz
CPU min frequency: 400 MHz
Core Usage Temperature Frequency
CPU0 2.0% nan °C 700 MHz
CPU1 6.1% nan °C 700 MHz
CPU2 1.0% nan °C 400 MHz
CPU3 4.1% nan °C 700 MHz
CPU4 1.0% nan °C 700 MHz
CPU5 9.8% nan °C 400 MHz
CPU6 1.0% nan °C 700 MHz
CPU7 1.0% nan °C 700 MHz
---------------------------- CPU frequency scaling ----------------------------
Traceback (most recent call last):
File "/snap/auto-cpufreq/x1/bin/auto-cpufreq", line 8, in <module>
sys.exit(main())
File "/snap/auto-cpufreq/x1/lib/python3.10/site-packages/click/core.py", line 1157, in __call__
return self.main(*args, **kwargs)
File "/snap/auto-cpufreq/x1/lib/python3.10/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
File "/snap/auto-cpufreq/x1/lib/python3.10/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/snap/auto-cpufreq/x1/lib/python3.10/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "/snap/auto-cpufreq/x1/lib/python3.10/site-packages/auto_cpufreq/bin/auto_cpufreq.py", line 139, in main
set_autofreq()
File "/snap/auto-cpufreq/x1/lib/python3.10/site-packages/auto_cpufreq/core.py", line 1130, in set_autofreq
elif charging():
File "/snap/auto-cpufreq/x1/lib/python3.10/site-packages/auto_cpufreq/core.py", line 315, in charging
with open(Path(power_supply_path + supply + "/type")) as f:
PermissionError: [Errno 13] Permission denied: '/sys/class/power_supply/AC/type'
Even by manually connecting kernel-module-control
it still fails:
snap connections auto-cpufreq
Interface Plug Slot Notes
content[gnome-42-2204] auto-cpufreq:gnome-42-2204 gnome-42-2204:gnome-42-2204 -
content[gtk-3-themes] auto-cpufreq:gtk-3-themes gtk-common-themes:gtk-3-themes -
content[icon-themes] auto-cpufreq:icon-themes gtk-common-themes:icon-themes -
content[sound-themes] auto-cpufreq:sound-themes gtk-common-themes:sound-themes -
cpu-control auto-cpufreq:cpu-control - -
desktop auto-cpufreq:desktop :desktop -
desktop-legacy auto-cpufreq:desktop-legacy :desktop-legacy -
gsettings auto-cpufreq:gsettings :gsettings -
hardware-observe auto-cpufreq:hardware-observe - -
kernel-module-control auto-cpufreq:kernel-module-control :kernel-module-control manual
opengl auto-cpufreq:opengl :opengl -
system-files auto-cpufreq:etc-auto-cpufreq-conf - -
system-observe auto-cpufreq:system-observe - -
wayland auto-cpufreq:wayland :wayland -
x11 auto-cpufreq:x11 :x11 -
sudo auto-cpufreq --live
Using settings defined in /etc/auto-cpufreq.conf file
Note: You can quit live mode by pressing "ctrl+c"
----------------------------------- Warning -----------------------------------
Due to Snap package confinement limitations please consider installing auto-cpufreq using
auto-cpufreq-installer: https://github.com/AdnanHodzic/auto-cpufreq/#auto-cpufreq-installer
Unable to detect state of GNOME Power Profiles daemon service!
This daemon might interfere with auto-cpufreq and should be disabled.
Steps to perform this action using auto-cpufreq: power_helper script:
git clone https://github.com/AdnanHodzic/auto-cpufreq.git
cd auto-cpufreq/auto_cpufreq
python3 power_helper.py --gnome_power_disable
Reference: https://github.com/AdnanHodzic/auto-cpufreq#configuring-auto-cpufreq
----------------------------------- Warning -----------------------------------
Unable to detect if you are using a TLP service!
This daemon might interfere with auto-cpufreq which can lead to unexpected results.
We strongly encourage you not to use TLP unless you really know what you are doing.
-------------------------------------------------------------------------------
PermissionError(13, 'Permission denied')
Linux distro: UNKNOWN distro UNKNOWN version
Linux kernel: 6.5.0-17-generic
Processor: Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz
Cores: 8
Architecture: x86_64
Driver: intel_pstate
------------------------------ Current CPU stats ------------------------------
CPU max frequency: 1800 MHz
CPU min frequency: 400 MHz
Core Usage Temperature Frequency
CPU0 5.2% nan °C 400 MHz
CPU1 7.0% nan °C 600 MHz
CPU2 1.0% nan °C 700 MHz
CPU3 5.0% nan °C 700 MHz
CPU4 5.1% nan °C 699 MHz
CPU5 1.0% nan °C 400 MHz
CPU6 5.1% nan °C 700 MHz
CPU7 3.1% nan °C 400 MHz
---------------------------- CPU frequency scaling ----------------------------
Traceback (most recent call last):
File "/snap/auto-cpufreq/x1/bin/auto-cpufreq", line 8, in <module>
sys.exit(main())
File "/snap/auto-cpufreq/x1/lib/python3.10/site-packages/click/core.py", line 1157, in __call__
return self.main(*args, **kwargs)
File "/snap/auto-cpufreq/x1/lib/python3.10/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
File "/snap/auto-cpufreq/x1/lib/python3.10/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/snap/auto-cpufreq/x1/lib/python3.10/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "/snap/auto-cpufreq/x1/lib/python3.10/site-packages/auto_cpufreq/bin/auto_cpufreq.py", line 139, in main
set_autofreq()
File "/snap/auto-cpufreq/x1/lib/python3.10/site-packages/auto_cpufreq/core.py", line 1130, in set_autofreq
elif charging():
File "/snap/auto-cpufreq/x1/lib/python3.10/site-packages/auto_cpufreq/core.py", line 315, in charging
with open(Path(power_supply_path + supply + "/type")) as f:
PermissionError: [Errno 13] Permission denied: '/sys/class/power_supply/AC/type'
Even after manually connecting both kernel-module-control
& kernel-module-observer
I’m still getting the same error.
sudo snap install auto-cpufreq_2.2.0_amd64.snap --dangerous
auto-cpufreq 2.2.0 installed
sudo snap connect auto-cpufreq:kernel-module-control
sudo snap connect auto-cpufreq:kernel-module-observe
snap connections auto-cpufreq
Interface Plug Slot Notes
content[gnome-42-2204] auto-cpufreq:gnome-42-2204 gnome-42-2204:gnome-42-2204 -
content[gtk-3-themes] auto-cpufreq:gtk-3-themes gtk-common-themes:gtk-3-themes -
content[icon-themes] auto-cpufreq:icon-themes gtk-common-themes:icon-themes -
content[sound-themes] auto-cpufreq:sound-themes gtk-common-themes:sound-themes -
cpu-control auto-cpufreq:cpu-control - -
desktop auto-cpufreq:desktop :desktop -
desktop-legacy auto-cpufreq:desktop-legacy :desktop-legacy -
gsettings auto-cpufreq:gsettings :gsettings -
hardware-observe auto-cpufreq:hardware-observe - -
kernel-module-control auto-cpufreq:kernel-module-control :kernel-module-control manual
kernel-module-observe auto-cpufreq:kernel-module-observe :kernel-module-observe manual
opengl auto-cpufreq:opengl :opengl -
system-files auto-cpufreq:etc-auto-cpufreq-conf - -
system-observe auto-cpufreq:system-observe - -
wayland auto-cpufreq:wayland :wayland -
x11 auto-cpufreq:x11 :x11 -
ahodzic@carbon7  ~/code/auto-cpufreq  ↰ master ±  sudo auto-cpufreq --live
Using settings defined in /etc/auto-cpufreq.conf file
Note: You can quit live mode by pressing "ctrl+c"
----------------------------------- Warning -----------------------------------
Due to Snap package confinement limitations please consider installing auto-cpufreq using
auto-cpufreq-installer: https://github.com/AdnanHodzic/auto-cpufreq/#auto-cpufreq-installer
Unable to detect state of GNOME Power Profiles daemon service!
This daemon might interfere with auto-cpufreq and should be disabled.
Steps to perform this action using auto-cpufreq: power_helper script:
git clone https://github.com/AdnanHodzic/auto-cpufreq.git
cd auto-cpufreq/auto_cpufreq
python3 power_helper.py --gnome_power_disable
Reference: https://github.com/AdnanHodzic/auto-cpufreq#configuring-auto-cpufreq
----------------------------------- Warning -----------------------------------
Unable to detect if you are using a TLP service!
This daemon might interfere with auto-cpufreq which can lead to unexpected results.
We strongly encourage you not to use TLP unless you really know what you are doing.
-------------------------------------------------------------------------------
PermissionError(13, 'Permission denied')
Linux distro: UNKNOWN distro UNKNOWN version
Linux kernel: 6.5.0-17-generic
Processor: Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz
Cores: 8
Architecture: x86_64
Driver: intel_pstate
------------------------------ Current CPU stats ------------------------------
CPU max frequency: 800 MHz
CPU min frequency: 400 MHz
Core Usage Temperature Frequency
CPU0 8.1% nan °C 800 MHz
CPU1 5.0% nan °C 800 MHz
CPU2 9.1% nan °C 800 MHz
CPU3 3.1% nan °C 800 MHz
CPU4 2.0% nan °C 800 MHz
CPU5 2.0% nan °C 800 MHz
CPU6 3.0% nan °C 800 MHz
CPU7 3.0% nan °C 800 MHz
---------------------------- CPU frequency scaling ----------------------------
Traceback (most recent call last):
File "/snap/auto-cpufreq/x1/bin/auto-cpufreq", line 8, in <module>
sys.exit(main())
File "/snap/auto-cpufreq/x1/lib/python3.10/site-packages/click/core.py", line 1157, in __call__
return self.main(*args, **kwargs)
File "/snap/auto-cpufreq/x1/lib/python3.10/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
File "/snap/auto-cpufreq/x1/lib/python3.10/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/snap/auto-cpufreq/x1/lib/python3.10/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "/snap/auto-cpufreq/x1/lib/python3.10/site-packages/auto_cpufreq/bin/auto_cpufreq.py", line 139, in main
set_autofreq()
File "/snap/auto-cpufreq/x1/lib/python3.10/site-packages/auto_cpufreq/core.py", line 1130, in set_autofreq
elif charging():
File "/snap/auto-cpufreq/x1/lib/python3.10/site-packages/auto_cpufreq/core.py", line 315, in charging
with open(Path(power_supply_path + supply + "/type")) as f:
PermissionError: [Errno 13] Permission denied: '/sys/class/power_supply/AC/type'
Again, if I make the changes using --devmode
everything works as expected.
Of course, full source code is available on: https://github.com/AdnanHodzic/auto-cpufreq/ and these are 2.2.0 changes: https://github.com/AdnanHodzic/auto-cpufreq/releases