LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 04-23-2018, 08:27 AM   #46
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511

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.

Cheers !
 
1 members found this post helpful.
Old 04-27-2018, 09:44 AM   #47
Vlaj
LQ Newbie
 
Registered: Apr 2018
Posts: 28

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Rickkkk View Post
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.

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?

Last edited by Vlaj; 04-27-2018 at 11:58 AM.
 
Old 04-27-2018, 01:26 PM   #48
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881

Rep: Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063Reputation: 2063
Quote:
Originally Posted by Vlaj View Post
...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.
 
1 members found this post helpful.
Old 04-27-2018, 02:25 PM   #49
Vlaj
LQ Newbie
 
Registered: Apr 2018
Posts: 28

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jsbjsb001 View Post
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?
 
Old 04-27-2018, 03:01 PM   #50
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
Quote:
Originally Posted by Vlaj View Post
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.

Cheers - let us know how you make out !
 
Old 04-27-2018, 04:19 PM   #51
Pearlseattle
Member
 
Registered: Aug 2007
Location: Zurich, Switzerland
Distribution: Gentoo
Posts: 999

Rep: Reputation: 142Reputation: 142
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)?
 
Old 04-27-2018, 10:33 PM   #52
Vlaj
LQ Newbie
 
Registered: Apr 2018
Posts: 28

Original Poster
Rep: Reputation: Disabled
Thanks guys,

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?
 
Old 04-28-2018, 12:18 PM   #53
Vlaj
LQ Newbie
 
Registered: Apr 2018
Posts: 28

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Pearlseattle View Post
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"

What's causing this?

Last edited by Vlaj; 04-28-2018 at 12:27 PM.
 
Old 04-29-2018, 02:09 PM   #54
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec and Dartmouth, Nova Scotia CANADA
Distribution: Arch, AntiX, ArtiX
Posts: 1,364

Rep: Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511Reputation: 511
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.

Cheers !
 
Old 04-29-2018, 04:41 PM   #55
Pearlseattle
Member
 
Registered: Aug 2007
Location: Zurich, Switzerland
Distribution: Gentoo
Posts: 999

Rep: Reputation: 142Reputation: 142
Quote:
Originally Posted by Vlaj View Post
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"

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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Computer Randomly Shuts down in Suse 11.4 kalliso Linux - General 2 03-19-2012 01:20 PM
Ubuntu Laptop Randomly Shuts Off. JoeyArnold Linux - Newbie 41 10-19-2011 04:39 PM
Temperature is OK but System Shuts Down Randomly xp_newbie Linux - Hardware 13 06-24-2008 11:15 PM
DMA randomly shuts itself off RemusX2 Linux - Hardware 2 03-17-2007 10:22 AM
Mandrake 10.1 randomly shuts down JeffSketch Mandriva 5 05-12-2005 05:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration