CPU frequency scaled after battery replacement

Questions about hardware, drivers and peripherals
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
User avatar
overkill22
Level 4
Level 4
Posts: 450
Joined: Fri Jan 16, 2015 6:09 am

CPU frequency scaled after battery replacement

Post by overkill22 »

I'm using Linux mint 19.3 cinnamon, kernel 5.4.0-91.
Everything was working great, then I replaced the battery since the original one was almost at the end of the life.
With the new one (original spare part), I have the same behaviour that I had with the old one when the charge was under 10%. The computer seems to go in power saving mode , CPU always 100% and not possible to use it. When the new battery is installed, I have this behaviour even when the battery is 100% fully charged. In order to get the laptop working normally, I have to plug in the cable.
What can I check? theree could be some power settings to reset?
Thank you
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 3 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
kato181
Level 9
Level 9
Posts: 2564
Joined: Fri Mar 24, 2017 12:33 am
Location: Frederickton NSW

Re: CPU problems after battery replacement

Post by kato181 »

It sounds as if the laptop is over heating. You can check it by booting into the bios and got to health and let it run where it is usually kept. You can see if the cpu temperature rises or not, if it does, then check to see if the fan vents are clear of dust and grime.
If they are the check the fan on the cpu it maybe failing.
User avatar
overkill22
Level 4
Level 4
Posts: 450
Joined: Fri Jan 16, 2015 6:09 am

Re: CPU problems after battery replacement

Post by overkill22 »

My laptop has no fan. The cpu is the mobile one (like the mack book air).

I don't think it is overheating because when I plug the charger the performance are good, when I unplug they drop and it works like when I had the old battery under 10% (like power saving mode)
User avatar
overkill22
Level 4
Level 4
Posts: 450
Joined: Fri Jan 16, 2015 6:09 am

Re: CPU problems after battery replacement

Post by overkill22 »

I've tried to install TLP and set "performance" also under battery but it doesn't change. Not sure what's happening but I'm sure it is some setting related thing that will put the laptop in battery savings mode even when the battery is 100% charged instead of only when the battery reaches the 10% mark.
User avatar
overkill22
Level 4
Level 4
Posts: 450
Joined: Fri Jan 16, 2015 6:09 am

Re: CPU problems after battery replacement

Post by overkill22 »

found the problem but I didn't find the solution:

Code: Select all

laptop on battery 
~$ cpufreq-info | grep "current CPU frequency"
  current CPU frequency is 599 MHz.
  current CPU frequency is 562 MHz.
  current CPU frequency is 591 MHz.
  current CPU frequency is 740 MHz.
  
laptop on AC
~$ cpufreq-info | grep "current CPU frequency"
  current CPU frequency is 1.26 GHz.
  current CPU frequency is 1.38 GHz.
  current CPU frequency is 1.20 GHz.
  current CPU frequency is 1.20 GHz.
it seems that when the laptop is going on battery, the CPU is scaled. before it was doing so only when battery was <10%.
how can I correct this?
User avatar
overkill22
Level 4
Level 4
Posts: 450
Joined: Fri Jan 16, 2015 6:09 am

Re: CPU frequency scaled after battery replacement

Post by overkill22 »

Anyone with an idea or advice?
The laptop is unusable in this conditions :cry:
User avatar
overkill22
Level 4
Level 4
Posts: 450
Joined: Fri Jan 16, 2015 6:09 am

Re: CPU frequency scaled after battery replacement

Post by overkill22 »

some more info

Code: Select all

inxi -CSM && cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies
System:
  Host: ASA Kernel: 5.4.0-91-generic x86_64 bits: 64 
  Desktop: Cinnamon 4.4.8 Distro: Linux Mint 19.3 Tricia 
Machine:
  Type: Laptop System: ASUSTeK product: UX305FA v: 1.0 
  serial: <root required> 
  Mobo: ASUSTeK model: UX305FA v: 1.0 serial: <root required> 
  UEFI: American Megatrends v: UX305FA.213 date: 10/12/2015 
CPU:
  Topology: Dual Core model: Intel Core M-5Y71 bits: 64 type: MT MCP 
  L2 cache: 4096 KiB 
  Speed: 1731 MHz min/max: 500/2900 MHz Core speeds (MHz):
when disconnected the CPU is set to the min which is 500 MHz, when with AC cable, the max I saw was around 2200 MHz but I believe it is some kind of ondemand setting
User avatar
Termy
Level 12
Level 12
Posts: 4254
Joined: Mon Sep 04, 2017 8:49 pm
Location: UK
Contact:

Re: CPU frequency scaled after battery replacement

Post by Termy »

You could try setting a different CPU scaling governor for the cores. There are various governors available out of the box, such as conservative, performance, and powersave; the default is usually the latter. I'm not convinced that would be the right move though, as I'd have thought changing the battery would not have made a difference like this. :?
I'm also Terminalforlife on GitHub.
User avatar
overkill22
Level 4
Level 4
Posts: 450
Joined: Fri Jan 16, 2015 6:09 am

Re: CPU frequency scaled after battery replacement

Post by overkill22 »

Termy wrote: Thu May 26, 2022 5:45 pm You could try setting a different CPU scaling governor for the cores. There are various governors available out of the box, such as conservative, performance, and powersave; the default is usually the latter. I'm not convinced that would be the right move though, as I'd have thought changing the battery would not have made a difference like this. :?
Tried already and didn't make any difference. I have only powersave and performance. Have the same problem with both.
I have no idea why changing the battery caused this problem.
User avatar
overkill22
Level 4
Level 4
Posts: 450
Joined: Fri Jan 16, 2015 6:09 am

Re: CPU frequency scaled after battery replacement

Post by overkill22 »

I tried with 2 new spare batteries and have the same problem.
Any idea why with the original battery the CPU is not scaled while with the original SPARE batteries, the CPU is getting scaled so much?
How does the system work?
Locked

Return to “Hardware Support”