You are not logged in.
Funny thing. Laptop-mode is suppose to turn off bluetooth when on battery. This works when I unplug the laptop from the powersupply. Now, if i suspend the laptop. Bluetooth is enabled on resume. And then I have to manually restart laptop-mode for it to disable bluetooth again? It doesn't say anything about this in the wiki, and yes laptop-mode is set in rc.conf. Thanks
Last edited by sveinemann (2010-04-27 15:49:55)
Offline
Fixed by adding a script in /etc/pm/sleep.d/. Check out Laptop-mode homepage.
http://samwel.tk/laptop_mode/faq
Offline
This should already be taken care of in /usr/lib/pm-utils/sleep.d/99laptop-mode (file is owned by the laptop-mode-tools package).
Offline
sveinemann,
I have the same problem (there is a 01laptop-mode in /usr/lib/pm-utils/sleep.d/ but it seems to have no effect)
Can you please post your solution? I can't find it in FAQ.
TIA
Offline
Anyone else?
Offline
Am I the only one who has this problem with S2R and laptop mode tools?
Offline
I've the same problem. The problem istn't that the script under sleep.d isn't executed but I think it's that at this moment the file where laptop-mode-tools looks if the AC is plugged says that it is plugged but it isn't. It takes a while, so I solved the problem for me in the 01laptop-mode script:
(sleep 2s; /usr/sbin/laptop-mode auto force) &
So it waits 2 seconds before executing laptop-mode. (I do this in an extra shell in the background to not block the other pm-utils scripts)
Offline
Well, good news I found the problem.
It was really pm-utils. There is a script 00powersave which is therefore executed
after 01laptop-mode. It executes the hooks in power.d which break
the settings laptop-mode-tools did.
So, my problems is solved. I just dropped the 00powersave script because
the things this does are obsolete because of laptop-mode tools
Offline
Glad you figured this out as it solved one of my problems as well.
My load_cycle_count on my hard drive was raising at about 30 an hour. None of the scripts in the Wiki would solve the problem and I had to run "hdparm -B 255 /dev/sda" manually in order to fix it. After removing 00powersave the script in the Wiki actually did its job. Thanks again.
Offline
Will 00powersave be restored when pm-utils is updated?
Offline