You are not logged in.

#1 2009-03-21 09:55:50

MrAllan
Member
Registered: 2008-12-08
Posts: 132

[SOLVED] Prevent laptop from sleeping when closing lid.

I have installed an NFS server on my laptop, so it's running long times without me directly using it. In order to save space and power, I would like to close the lid.
Basically, all I want it to do is turn of the screen, and not go to sleep. Currently, when closing the lid, it turns of the screen, but also attempts to sleep (which results in a kernel panic).
I read about the ACPI package somewhere, but I guess there's an easier way to turn off this "feature" without having to install ACPI?

Thanks in advance!

Last edited by MrAllan (2009-03-22 11:55:21)

Offline

#2 2009-03-21 10:20:16

signor_rossi
Member
Registered: 2007-08-24
Posts: 257

Re: [SOLVED] Prevent laptop from sleeping when closing lid.

Are you running X and some DE?

Offline

#3 2009-03-21 10:49:25

MrAllan
Member
Registered: 2008-12-08
Posts: 132

Re: [SOLVED] Prevent laptop from sleeping when closing lid.

signor_rossi wrote:

Are you running X and some DE?

No, usually I don't even login locally (only over SSH) and stay at the CLI login screen.

Offline

#4 2009-03-21 13:13:15

signor_rossi
Member
Registered: 2007-08-24
Posts: 257

Re: [SOLVED] Prevent laptop from sleeping when closing lid.

On my system HAL is monitoring the lid switch, powerdevil (kde4 power manager) reacts on this and other events from HAL according to what I set in my KDE systemsettings. I think HAL alone doesn't initiate anything, do you have some other powermanager/cpufreq daemon running? Maybe that one is responsible for the suspend action, and you can set it to not do anything on a lid event in some configuration file...

[val@tux ~]$ lshal --monitor

Start monitoring devicelist:
-------------------------------------------------
14:07:01.891: computer_logicaldev_input_2 property button.state.value = true
14:07:01.897: computer_logicaldev_input_2 condition ButtonPressed = lid
14:07:02.128: computer_logicaldev_input_2 property button.state.value = false
14:07:02.134: computer_logicaldev_input_2 condition ButtonPressed = lid

14:07:05.639: computer_logicaldev_input_2 property button.state.value = true
14:07:05.645: computer_logicaldev_input_2 condition ButtonPressed = lid
14:07:05.845: computer_logicaldev_input_2 property button.state.value = false
14:07:05.851: computer_logicaldev_input_2 condition ButtonPressed = lid

SignorRossi.

Offline

#5 2009-03-22 08:58:44

MrAllan
Member
Registered: 2008-12-08
Posts: 132

Re: [SOLVED] Prevent laptop from sleeping when closing lid.

Can anyone recommend some good software that does the trick?

Offline

#6 2009-03-22 10:53:19

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,922

Re: [SOLVED] Prevent laptop from sleeping when closing lid.

acpid seems to be simplest way to achieve what you want.
Check acpid Wiki , tip 4.3 .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#7 2009-03-22 11:55:05

MrAllan
Member
Registered: 2008-12-08
Posts: 132

Re: [SOLVED] Prevent laptop from sleeping when closing lid.

Lone_Wolf wrote:

acpid seems to be simplest way to achieve what you want.
Check acpid Wiki , tip 4.3 .

OK, thanks!

Offline

Board footer

Powered by FluxBB