-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes in /etc/tlp.conf don't affect tlp-stat -b on a Lenovo W530 with Xubuntu 20.04.3 #598
Comments
Hi, parameter lines with comments are ignored:
Refer to Settings
ps. standard behaviour since 1.3 |
linrunner, |
Good news: I modified the parser to handle trailing comments. |
How can I verify the version which I have? I uninstalled the previous one and installed (hopefully!) the beta one, but trying comments in active lines of /etc/tlp.conf did not work. When I set them to separate lines instead, the lines were honoured. |
If
What should I get after
This is, what I did. |
Following the instructions precisely is important. The download page does not tell to uninstall anything or to remove the regular PPA. But that's not your real problem. After the step for adding the Beta PPA you have overlooked the
As soon as you make up for that, all you need is a
Good luck. |
[x] I've read and accepted the Bug Reporting Howto
[x] I've attached all required
tlp-stat
outputs via Gist (see below)I use a Lenovo Thinkpad W530 with Xubuntu Ubuntu 20.04.3 LTS currently using a kernel 5.4.0-90-generic x86_64.
Charging thresholds 75% / 90% have worked on this laptop before. Now I checked it again with
sudo tlp-stat -b
and I was surprised that they are reported as 0% / 100%.Therefore I checked
/etc/tlp.conf
and I found out that the lines for the charge threshold were commented out (i.e. they started with a#
). Also the values there were 75% / 80% rather than 75% / 90% which I had set before and of course it was different from what is effectively reported.Therefore I removed the
#
in front of the two lines forBAT0
first, changed the upper threshold to 90% and then I executedsudo tlp start
and checkedsudo tlp-stat -b
again. But the charge thresholds did not change!I also tried a reboot, but I see no difference. It looks like tlp does not really obey to what is in
/etc/tlp.conf
.To be on the safe side, I also removed the
#
sign in front of the two lines forBAT1
and adjusted the thresholds forBAT1
in the same way, even though I don't have an Ultrabay battery. Of course I executedsudo tlp start
again and checked the result ofsudo tlp-stat -b
. But the reported charge thresholds did not change, even after a reboot (with the running AC adapter connected and also running on battery only)!Expected behavior
I expect the changes of
/etc/tlp.conf
to be reflected insudo tlp-stat -b
aftersudo tlp start
has been executed.To Reproduce
The unexpected behavior is reproducible on my laptop. It does not depend on running on battery or AC adapter
See attached file with listing of
/etc/tlp.conf
andtlp-bat
2021-11-18_Files-for-tlp-issue.txt
commands
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: