Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364
Rep:
Hi vlaj,
Again, I'm not sure I would worry about the error message unless you start noticing a problem with some device on your system.
For your battery, 20 minutes isn't long, but how much does it usually give you ?
For Powertop, let it calibrate (you have to run it on battery power for a certain period of time - it will give you prompts to this effect). You can turn "tunables" to "Good" or "Bad" with the space bar. These settings do not persist after restart, so you have to adjust accordingly. Another option is to create a powertop systemd service that runs at startup with the auto-tune option. You should be able to find instructions on how to do this online, but if not, let us know and we'll give you a hand.
You may also want to experiment with laptop-mode-tools - it can also be run as a systemd service where most of its presets are designed to improve power management on most systems. If you choose to do this, do not run powertop as a systemd service with the auto-tune option.
Again, I'm not sure I would worry about the error message unless you start noticing a problem with some device on your system.
For your battery, 20 minutes isn't long, but how much does it usually give you ?
For Powertop, let it calibrate (you have to run it on battery power for a certain period of time - it will give you prompts to this effect). You can turn "tunables" to "Good" or "Bad" with the space bar. These settings do not persist after restart, so you have to adjust accordingly. Another option is to create a powertop systemd service that runs at startup with the auto-tune option. You should be able to find instructions on how to do this online, but if not, let us know and we'll give you a hand.
You may also want to experiment with laptop-mode-tools - it can also be run as a systemd service where most of its presets are designed to improve power management on most systems. If you choose to do this, do not run powertop as a systemd service with the auto-tune option.
Cheers !
Thanks.
Actually, it lasts 1 hour. Perhaps I need a new battery but not sure if its worth getting an manufactur OEM.
Also, I may not have the original in there. How can I find the best battery for my system?
Yes, can you help me with instructions to create a powertop systemd service that runs at startup with the auto-tune option? Also, I would like to know how to reverse this in case of issues.
Also, what about TLP – Linux Advanced Power Management? I heard you may just install and forget it. Is this a better option?
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
Rep:
Quote:
Originally Posted by Vlaj
...Yes, can you help me with instructions to create a powertop systemd service that runs at startup with the auto-tune option?
systemd services are located in the /usr/lib/systemd/system/ folder. You would use the systemctl command to enable/disable the service. There is even a systemd service that has already been written at the ArchLinux website. Note that it mentions the /etc/systemd/system/ folder at the top of the systemd service; the systemctl command will create a symlink to that folder if you enable the service. So that folder only has symlinks in it and the "real" service files are stored in the /usr/lib/systemd/system/ folder.
Quote:
Also, I would like to know how to reverse this in case of issues...
Just disable the service and if you want to completely remove the service later on, just delete the service file from the /usr/lib/systemd/system/ folder - you will not be able to re-enable it if you do this though.
systemd services are located in the /usr/lib/systemd/system/ folder. You would use the systemctl command to enable/disable the service. There is even a systemd service that has already been written at the ArchLinux website. Note that it mentions the /etc/systemd/system/ folder at the top of the systemd service; the systemctl command will create a symlink to that folder if you enable the service. So that folder only has symlinks in it and the "real" service files are stored in the /usr/lib/systemd/system/ folder.
Just disable the service and if you want to completely remove the service later on, just delete the service file from the /usr/lib/systemd/system/ folder - you will not be able to re-enable it if you do this though.
Thanks.
What about TLP – Linux Advanced Power Management? I heard you may just install and forget it. Is this a better option?
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364
Rep:
Quote:
Originally Posted by Vlaj
Thanks.
What about TLP – Linux Advanced Power Management? I heard you may just install and forget it. Is this a better option?
Hi vlaj,
TLP is worth a try.
I myself tried it on one of my laptops about a year ago but ultimately decided to discontinue using it after a few weeks and return to laptop-mode-tools (which TLP would replace - you wouldn't use both). In my case, I got better results with a vanilla install of LMT than with a vanilla install of TLP. Perhaps with the appropriate tweaking, those results may have been different.
If you don't like it you can just uninstall and return to your previous solution.
For your systemd question, I see that jsbjsb001 has given you an excellent answer above.
If you switch on your notebook but do not boot (e.g. go into the bios or just push the keys to get rid of the timeout) and leave the notebook like that, does it switch off/reboot (after the ~usual timespan)?
What about a new battery? Not sure if its worth getting an manufacture OEM? I may not have the original in there. How can I find the best battery for my system?
If you switch on your notebook but do not boot (e.g. go into the bios or just push the keys to get rid of the timeout) and leave the notebook like that, does it switch off/reboot (after the ~usual timespan)?
No it stays on.
But now when I shutdown the system, it says
"Some programs are still running:
gnome-keyring-daemon
Not responding
Waiting for programs to finish. Interrupting these programs may cause you to lose work.
Lock Screen - Cancel - Shut Down Anyways"
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364
Rep:
Hey Vlaj,
For your battery question - I've replaced my various laptop batteries several times over the years, never with the OEM versions (just too expensive). I usually wait until I only get 30 minutes or less before getting a new one, but your requirements may vary.
The clones work fine - overall lifetimes may be a little shorter, but I've generally gotten at least 3-5 years from each. Just google your laptop make and model mentioning replacement battery, or, the way I've always gone, search ebay and look for a seller that has new batteries for your laptop with a good feedback score.
Waiting for programs to finish. Interrupting these programs may cause you to lose work.
Lock Screen - Cancel - Shut Down Anyways"
What's causing this?
Excellent! So your problem might really be caused only by software
(my assumption: HW runs at max speed when the OS hasn't booted yet => if HW does not fail during this phase then it's ok)
Do you have by chance another PC or notebook (doesn't matter which OS they're running) which could be used to see the last messages (hopefully showing some faults) that your buggy notebook is generating?
(I'm thinking about a remote shell that does e.g. "tail -f /var/log/messages" or something similar if systemd is being used)
Last edited by Pearlseattle; 04-29-2018 at 04:48 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.