LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 04-12-2009, 08:36 AM   #1
lindylex
Member
 
Registered: Mar 2007
Posts: 166

Rep: Reputation: 17
disable suspend when I close the laptop lid


I would like to disable suspend when I close the laptop lid.

/etc/acpi/events/lm_lid
Code:
event=button[ /]lid
action=/etc/acpi/actions/lm_lid.sh %e
/etc/acpi/actions/lm_lid.sh
Code:
#! /bin/sh

test -f /usr/sbin/laptop_mode || exit 0

# lid button pressed/released event handler

/usr/sbin/laptop_mode auto

Following this logic in those files I thought I could edit something obvious in a text file but I don not see any options to disable this behavior. I think laptop-mode.conf file might contain a lsoution but I am unsure after looking at it contents.

Thanks
 
Old 04-13-2009, 12:05 AM   #2
kzutter
Member
 
Registered: Nov 2007
Location: Carson City, NV USA
Distribution: Various, but always Debian based
Posts: 70

Rep: Reputation: 15
Disable action

Try this in /etc/acpi/actions/lm_lid.sh

Code:
#! /bin/sh

test -f /usr/sbin/laptop_mode || exit 0

# lid button pressed/released event handler

# /usr/sbin/laptop_mode auto
 
Old 04-14-2009, 12:14 AM   #3
lindylex
Member
 
Registered: Mar 2007
Posts: 166

Original Poster
Rep: Reputation: 17
kzutter, I tried that but when I close the lid the laptop still goes to sleep. I think something else might be executing a command when the lid closes.

I am using KDE desktop.
 
Old 04-14-2009, 07:51 AM   #4
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,650

Rep: Reputation: 525Reputation: 525Reputation: 525Reputation: 525Reputation: 525Reputation: 525
Look in KDE's power management settings?
 
Old 04-14-2009, 09:52 AM   #5
lindylex
Member
 
Registered: Mar 2007
Posts: 166

Original Poster
Rep: Reputation: 17
AlucardZero, thanks I right clicked on that icon with the battery or electric power icon on it. It is called KPowersave, Configure KPowerSave, General Setting, Button Events, Lid Close Button on the drop down I choose an empty field. Now everything is fine.

Thanks.
 
Old 04-14-2009, 09:53 AM   #6
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,650

Rep: Reputation: 525Reputation: 525Reputation: 525Reputation: 525Reputation: 525Reputation: 525
It's gnome-power-manager in Gnome, glad you found the KDE equivalent.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Suspend on lid close works in kde but not gnome. fedora core 6 on dell inspiron 5100 mikegorb Linux - Laptop and Netbook 1 01-22-2007 12:35 AM
Inspiron 8200 Laptop - Close Lid rshillin Linux - Laptop and Netbook 9 11-30-2006 01:27 AM
IBM thinkpad A31p How to enable Suspend on lid close for FC4? Boomba Linux - Laptop and Netbook 1 11-07-2005 10:22 PM
disable apm standby on lid close laurentwahl Linux - General 0 05-03-2005 04:54 PM
Suspend to Disk problem when I close my laptop lid xbaez Mandriva 0 06-23-2004 09:41 AM


All times are GMT -5. The time now is 05:15 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration