Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
02-27-2015, 03:32 PM
|
#1
|
Member
Registered: Apr 2009
Location: Nokia (town), Finland
Distribution: Mint, Debian
Posts: 601
Rep:
|
hd-idle or laptop-mode-tools?
I have a desktop that also shares a disk to my other computers. Now the question is which SW should I use to run down the disk (WD5000AAKX - APM not supported) hd-idle or laptop-mode-tools?
My purpose is not so much to save energy, but to save the disk. The machine is on 24/7, so I guess it makes a difference, when the disk is relatively seldom used.
I was thinking of rundown time of 2 or 3 hours.
My worry is about the disk waking up on remote access and power related side effects.
The desktop is running Kubuntu 14.04.
|
|
|
02-28-2015, 07:54 AM
|
#2
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
I use laptop-mode-tools for exactly the same purpose (powering down disks that are rarely used), works fine here.
|
|
1 members found this post helpful.
|
02-28-2015, 03:38 PM
|
#3
|
Member
Registered: Apr 2009
Location: Nokia (town), Finland
Distribution: Mint, Debian
Posts: 601
Original Poster
Rep:
|
Thanks.
|
|
|
03-02-2015, 03:36 AM
|
#4
|
Member
Registered: Apr 2009
Location: Nokia (town), Finland
Distribution: Mint, Debian
Posts: 601
Original Poster
Rep:
|
I tried laptop-mode-tools, but at least the GUI only allows SATA power save to be used, but
no controlover how - it doesn't even show the time-out.
I think if the time-out is less than half an hour, it would rather be harmful than hepful.
I wonder if there's a way for more detailed control, or maybe I should try hd-idle instead.
|
|
|
03-02-2015, 05:51 AM
|
#5
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
Have a look at the files in /etc/laptop-mode-tools, they are well documented and allow fine gained control over anything laptop-mode-tools can do, including setting the timeouts.
|
|
1 members found this post helpful.
|
03-02-2015, 07:07 AM
|
#6
|
Member
Registered: Apr 2009
Location: Nokia (town), Finland
Distribution: Mint, Debian
Posts: 601
Original Poster
Rep:
|
Quote:
Originally Posted by tobisgd
have a look at the files in /etc/laptop-mode-tools, they are well documented and allow fine gained control over anything laptop-mode-tools can do, including setting the timeouts.
|
thanks!
|
|
|
03-03-2015, 06:33 AM
|
#7
|
Member
Registered: Apr 2009
Location: Nokia (town), Finland
Distribution: Mint, Debian
Posts: 601
Original Poster
Rep:
|
Hm, it doesn't seem to do the trick. Tried first with the default config file.
I also tried with edited config file:
Code:
LM_AC_HD_IDLE_TIMEOUT_SECONDS = 7200
NOLM_HD_IDLE_TIMEOUT_SECONDS = 7200
LM_AC_HD_POWERMGMT=127
NOLM_AC_HD_POWERMGMT=127
Restarted and run
and checked that all the disk-related power functions were enabled.
No effect - waited for 5 hours.
I manually started the GUI, because the menu entry doesn't seem to work.
The menu entry starts something that runs for a short while.
I only see something emerging into the task bar and then disappearing from there,
but no window opens or anything.
|
|
|
03-03-2015, 07:12 AM
|
#8
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
It may be possible that starting the GUI has overwritten your changes, have you checked that?
Also, laptop-mode-tools has to be started as a service/daemon, have you done that?
|
|
1 members found this post helpful.
|
03-03-2015, 12:11 PM
|
#9
|
Member
Registered: Apr 2009
Location: Nokia (town), Finland
Distribution: Mint, Debian
Posts: 601
Original Poster
Rep:
|
Quote:
Originally Posted by TobiSGD
It may be possible that starting the GUI has overwritten your changes, have you checked that?
|
The config file hasn't been overwritten. My editions are still there
Quote:
Also, laptop-mode-tools has to be started as a service/daemon, have you done that?
|
Now there seems to be a problem. Added enable-flag to /etc/default/acpi_config and set the ON-flag in the laptop-mode config file too.
Rebooted (twice) but it didn't start. By manually restarting I got it to run.
Now let's see if it does something after 2 hours...
Still have to figure out how to make it start automagically.
|
|
|
03-03-2015, 12:14 PM
|
#10
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
Usually your distribution comes with the apropriate tools to manage services/daemons, in case of Ubuntu it should be update-rc or something similar.
|
|
1 members found this post helpful.
|
03-03-2015, 01:15 PM
|
#11
|
Member
Registered: Apr 2009
Location: Nokia (town), Finland
Distribution: Mint, Debian
Posts: 601
Original Poster
Rep:
|
Thanks, I'll check it up.
It's been quite a while (before this Kubuntu) that I had to manually set up daemons.
Probably with Debian Lenny...
|
|
|
03-04-2015, 01:48 AM
|
#12
|
Member
Registered: Apr 2009
Location: Nokia (town), Finland
Distribution: Mint, Debian
Posts: 601
Original Poster
Rep:
|
It still doesn't work. Rebooted, manually started laptop-mode and checked the config.
After 4 hours the disks were still running.
It looks like the version in Kubuntu repo is not working here.
(Canonical has announced that it has stopped supporting laptop-mode-tools.)
|
|
|
03-04-2015, 01:49 AM
|
#13
|
Member
Registered: Apr 2009
Location: Nokia (town), Finland
Distribution: Mint, Debian
Posts: 601
Original Poster
Rep:
|
It still doesn't work. Rebooted, manually started laptop-mode and checked the config.
After 4 hours the disks were still running.
It looks like the version in Kubuntu repo is not working in my case.
(Canonical has announced that it has stopped supporting laptop-mode-tools.)
|
|
|
03-04-2015, 07:11 AM
|
#14
|
Moderator
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
|
That is weird, it is woprking fine for me on Gentoo. I guess you have to try alternatives, then.
|
|
|
03-05-2015, 04:29 PM
|
#15
|
Member
Registered: Apr 2009
Location: Nokia (town), Finland
Distribution: Mint, Debian
Posts: 601
Original Poster
Rep:
|
On TLP-site I saw something that I didn't think of:
Quote:
Hint: stopping the system disk for extended periods of time is unlikely to work, because applications and system daemons wake up the disk frequently. However for a 2nd disk in a swappable drive slot or the Ultrabay that is not accessed permanently, this setting may be quite useful.
|
I guess I'll go with suspend to RAM if the machine can be waken up by network traffic.
|
|
|
All times are GMT -5. The time now is 02:30 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.
|
Latest Threads
LQ News
|
|