You are not logged in.

#1 2020-11-11 11:56:34

URemery
Member
Registered: 2019-09-30
Posts: 14

[SOLVED] Battery thresholds on laptops (HP Pavillion 14-ce0019nf)

Hi,

I would like to set battery charge thresholds on my HP Pavillion 14-ce0019nf laptop. Latest version of KDE powerdevil seems to be able to do this but I noticed these messages when running journalctl -xb -p4 :

nov. 11 12:11:54 archlinux org_kde_powerdevil[632]: Warning from helper: Failed to open "/sys/class/power_supply/BAT0/charge_start_threshold" for reading
nov. 11 12:11:54 archlinux org_kde_powerdevil[632]: Warning from helper: Failed to open "/sys/class/power_supply/BAT0/charge_stop_threshold" for reading
nov. 11 12:11:54 archlinux org_kde_powerdevil[632]: org.kde.powerdevil: org.kde.powerdevil.chargethresholdhelper.getthreshold failed "Charge thresholds not supported"

charge_start_threshold and charge_stop_threshold are indeed no created and thus powerdevil can't use battery charge thresholds.

I wonder if someone managed to get this working ? Do I need to install some kernel module to setup these files or is there a better way than powerdevil to manage battery charge ?

I tried googling it but there is not much info about powerdevil (as usual with kde ...) and I don't know what to try among the mess of all the other power management utilities.

Thank you for your help

Last edited by URemery (2020-11-12 10:23:44)

Offline

#2 2020-11-11 12:10:42

okubax
Member
From: Kent, UK.
Registered: 2010-04-24
Posts: 210
Website

Re: [SOLVED] Battery thresholds on laptops (HP Pavillion 14-ce0019nf)

This line in your journal should give you an hint

nov. 11 12:11:54 archlinux org_kde_powerdevil[632]: org.kde.powerdevil: org.kde.powerdevil.chargethresholdhelper.getthreshold failed "Charge thresholds not supported"

Means your device is not supported.

Offline

#3 2020-11-11 12:14:32

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,425

Re: [SOLVED] Battery thresholds on laptops (HP Pavillion 14-ce0019nf)

Charge thresholds are generally only supported on Thinkpads from what I'm seeing. There it is done via a thinkpad specific kernel module, I don't know/doubt whether such an alternative exists for other models.

In general what you should look up first in cases like these is whether changing this is supported at all (i.e. find a Windows software that allows you to adjust threshholds for the particular laptop model you intend to do this with, if you don't find it chances are low that this will be doable from linux)

Offline

#4 2020-11-11 19:39:29

URemery
Member
Registered: 2019-09-30
Posts: 14

Re: [SOLVED] Battery thresholds on laptops (HP Pavillion 14-ce0019nf)

okubax wrote:

This line in your journal should give you an hint

nov. 11 12:11:54 archlinux org_kde_powerdevil[632]: org.kde.powerdevil: org.kde.powerdevil.chargethresholdhelper.getthreshold failed "Charge thresholds not supported"

Means your device is not supported.

Yeah thank you okubax but I thought that powerdevil wrote this only because it wasn't able to read the "threshold" files; so if there was a solution to create these files it could work.

I'll keep searching for info about charge thresholds for HP Pavillion as you said V1del. Maybe create a module managing these two "threshold" files and let powerdevil do the job ?
I saw utilties such as TLP can manage battery charge but is this only working on Thinkpads too ?

Offline

#5 2020-11-11 20:01:27

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,425

Re: [SOLVED] Battery thresholds on laptops (HP Pavillion 14-ce0019nf)

If there's no hardware support for allowing to set thresholds then there's nothing you can do. And as mentioned, the only mainstream laptop vendor I know of that actively allows this is Thinkpad, there might be a few outliers. Generally you can't do this. Yes TLP's implementation is also for thinkpads only.

Offline

#6 2020-11-11 23:01:53

URemery
Member
Registered: 2019-09-30
Posts: 14

Re: [SOLVED] Battery thresholds on laptops (HP Pavillion 14-ce0019nf)

Ok if it needs adequate hardware (which seems not to be the case for my laptop) there's nothing to do indeed. I though that the system had full control over the power supply on all laptops. Thank you for clarifying V1del !

One more thing : How do I close this topic ?

Last edited by URemery (2020-11-11 23:03:54)

Offline

#7 2020-11-12 08:33:03

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,425

Re: [SOLVED] Battery thresholds on laptops (HP Pavillion 14-ce0019nf)

You can mark it as [SOLVED] by editing the title in your first post: https://wiki.archlinux.org/index.php/Co … ow_to_post

Offline

Board footer

Powered by FluxBB