You are not logged in.

#1 2010-04-27 15:24:11

sveinemann
Member
Registered: 2007-09-30
Posts: 108

[Solved]Laptop-mode disabled on resume after suspend?

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 smile

Last edited by sveinemann (2010-04-27 15:49:55)

Offline

#2 2010-04-27 15:49:41

sveinemann
Member
Registered: 2007-09-30
Posts: 108

Re: [Solved]Laptop-mode disabled on resume after suspend?

Fixed by adding a script in /etc/pm/sleep.d/. Check out Laptop-mode homepage.
http://samwel.tk/laptop_mode/faq

Offline

#3 2010-04-27 16:38:47

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Re: [Solved]Laptop-mode disabled on resume after suspend?

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

#4 2010-06-28 19:42:16

thms
Member
Registered: 2010-02-01
Posts: 120

Re: [Solved]Laptop-mode disabled on resume after suspend?

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

#5 2010-07-09 07:51:24

thms
Member
Registered: 2010-02-01
Posts: 120

Re: [Solved]Laptop-mode disabled on resume after suspend?

Anyone else?

Offline

#6 2010-08-09 16:50:15

thms
Member
Registered: 2010-02-01
Posts: 120

Re: [Solved]Laptop-mode disabled on resume after suspend?

Am I the only one who has this problem with S2R and laptop mode tools?

Offline

#7 2010-09-18 23:24:06

LukeGee
Member
Registered: 2009-12-27
Posts: 13

Re: [Solved]Laptop-mode disabled on resume after suspend?

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

#8 2010-10-10 11:44:57

LukeGee
Member
Registered: 2009-12-27
Posts: 13

Re: [Solved]Laptop-mode disabled on resume after suspend?

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

#9 2010-10-13 13:33:48

BHoward
Member
Registered: 2010-10-07
Posts: 11

Re: [Solved]Laptop-mode disabled on resume after suspend?

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

#10 2010-11-02 12:47:58

korpenkraxar
Member
Registered: 2006-04-02
Posts: 123

Re: [Solved]Laptop-mode disabled on resume after suspend?

Will 00powersave be restored when pm-utils is updated?

Offline

Board footer

Powered by FluxBB