You are not logged in.
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
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
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
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
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
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
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