Hi there! very new to linux and i'm running into a roadblock i cant seem to figure out.
Basically when auto-cpufreq (GitHub - AdnanHodzic/auto-cpufreq: Automatic CPU speed & power optimizer for Linux installed through git clone) is running, my laptop soon after freezes up and i have to force shutdown the laptop.
Ive first tried Kubuntu and had a similar problem without installing it at all, zorin os worked great until i installed cpu-autofreq then the freezing started again.
Here's what i've tried so far:
Reinstalling the system
Tested Ram and SSD
increase the swapfile, then creating a dedicated swap partition
forcing the program into powersaver, then tried performance
here's my info let me know if anything is missing:
laptop model: HUAWEI MateBook D (14 AMD) Repair and Service | HUAWEI Support Global CPU: quad core AMD Ryzen 5 2500U with Radeon Vega Mobile Gfx (-MT MCP-)
speed/min/max: 1599/1600/2000 MHz Kernel: 6.8.0-51-generic x86_64 Up: 27m Mem: 3497.8/6831.4 MiB (51.2%) Storage: 238.47 GiB (10.0% used) Procs: 282 Shell: Bash inxi: 3.3.13
free total used free shared buff/cache available Mem: 6995352 3116064 1713480 187932 2165808 3432380 Swap: 7812092 0 7812092
cpupower frequency-info
analyzing CPU 7: driver: acpi-cpufreq CPUs which run at the same hardware frequency: 7 CPUs which need to have their frequency coordinated by software: 7 maximum transition latency: Cannot determine or is not supported. hardware limits: 1.60 GHz - 2.00 GHz available frequency steps: 2.00 GHz, 1.70 GHz, 1.60 GHz available cpufreq governors: conservative ondemand userspace powersave performance schedutil current policy: frequency should be within 1.60 GHz and 2.00 GHz.
The governor "powersave" may decide which speed to use
within this range. current CPU frequency: Unable to call hardware current CPU frequency: 1.60 GHz (asserted by call to kernel) boost state support:
Supported: no
Active: no
I get almost double the battery with it, so i'm hoping this is solvable
If the issue happens right away after installing this, it's worth looking into compatibility issues with the software. I found an issue with the exact same symptoms you're describing, and it appears to be the same hardware:
Maybe it's worth raising an issue on their project side to see if this was addressed with a later released or there's some known issues with certain hardware.
The fact that you were already experiencing freezing issue with another distribution does raise some concerns, as well.
This may be a good excuse to do a little maintenance and clean everything from the inside: clean contacts using isopropyl alcohol and some cotton swabs, remove accumulated dust in fans and exhaust vents, etc.
On the software side, you can run a memory check to detect potential issues as well.
Even if you don't find anything, it's good to do this from time to time anyway.
If your computer is 8 years old or newer, it will automatically change CPU frequency, based on what is required, controlled by the BIOS.
However, if you want to lock a CPU frequency on a specific number manual, it would be better to use a extensions, that allows you to lock it in, where you want it to be.
This app is a little more simple, as such, there is less to know to use it.
Like I said above, the only problem with extensions, is much of them are getting deprecated now days, forcing one to try a different extension.
As Linux distro's get upgraded to new versions, gnome in particular decides it doesn't like supporting extensions anymore, wants to get rid of them, so that complicates matter's.
But as I said above, you shouldn't need an app or extensions for auto changing cpu frequencies, your BIOS will do that naturally. So unless there is something I am missing here, this the only advice I can give you.
Thank you very much for the help, i did test my ram and ssd already (will edit the post, mb).
After reading the github page and the fact that it still crashed under a fresh kubuntu install aswell i believe its something to do with linux rather than cpu-autofreq/tlp, might be an unsupported apu perhaps.
According to this
cpupower frequency-info
analyzing CPU 7:
driver: acpi-cpufreq
CPUs which run at the same hardware frequency: 7
CPUs which need to have their frequency coordinated by software: 7
maximum transition latency: Cannot determine or is not supported.
hardware limits: 1.60 GHz - 2.00 GHz
available frequency steps: 2.00 GHz, 1.70 GHz, 1.60 GHz
available cpufreq governors: conservative ondemand userspace powersave performance schedutil
current policy: frequency should be within 1.60 GHz and 2.00 GHz.
The governor "powersave" may decide which speed to use
within this range.
current CPU frequency: Unable to call hardware
current CPU frequency: 1.60 GHz (asserted by call to kernel)
boost state support:
Supported: no
Active: no
turbo boost might not be supported (although i admit its a bit of a shot in the dark) so i might try and figure out how to stop that from happening and test things out. edit: didnt work
As for the freezing the cpu frequency for battery life option, while i might end up doing that as a last resort i'll probably exhaust my options with cpu-autofreq first.
Thanks again! it's pretty hard to troubleshoot something this complicated by myself