LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 08-26-2008, 10:53 AM   #1
mangogreg
LQ Newbie
 
Registered: May 2005
Posts: 4

Rep: Reputation: 0
Lid Close = Sleep


I've just purchased an Aspire One (Acer) because I needed an inexpensive Linux-based laptop.

OS: Linpus Lite - based on Fedora
(Intel Atom 1.6GHz, 8GB SSD)

The laptop goes into sleep mode when I close the lid. I talked to Acer tech support and they said that this is software controlled, that there is no easy LL GUI resolution - in other words, no selection box to change the default as is available with XP.


I only have basic Linux/Unix command-line experience. Please let me know what adjustments need to be made in order for there to be NO action when the lid is closed. (I'd prefer it if an "action" was brought up via an "event", possibly in the power.conf file.) The following, I believe, provides the appropriate information ("action" and "event" folders are in "/etc/acpi/"):

[root@localhost actions]# ls -a
. .. sleep.lid.sh sleep.sh
[root@localhost actions]# cat sleep.lid.sh
#!/bin/bash
#lid_status=`lshal |grep "button.state.value" | grep true`
/etc/init.d/acpid stop
lid_action="X`cat /home/user/.kde/share/config/kpowersaverc |grep ActionOnLidClose |cut -d"=" -f2`"
case $lid_action in
XSHUTDOWN)
/sbin/shutdown -h now
;;
XSTANDBY)
#echo standby>> /home/user/a
#echo $lid_status>> /home/user/a
# if [ "X$lid_status" != "X" ]; then
/bin/dbus-send --system --print-reply --dest=org.freedesktop.Hal /org/freedesktop/Hal/devices/computer org.freedesktop.Hal.Device.SystemPowerManagement.Suspend int32:0
# fi
;;
*)
echo noaction
;;
esac
/etc/init.d/acpid start
[root@localhost actions]#
 
Old 08-28-2008, 03:58 AM   #2
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Lubuntu
Posts: 19,176
Blog Entries: 4

Rep: Reputation: 430Reputation: 430Reputation: 430Reputation: 430Reputation: 430
There should be a power control icon near to your clock - probably looks like a plug if you're on mains power or a battery if on battery power. On KDE (and Gnome, I think) you should be able to right click it and configure the settings. On KPowerSave, at least, you can change it to take no action on lid close.
 
Old 08-28-2008, 03:17 PM   #3
mangogreg
LQ Newbie
 
Registered: May 2005
Posts: 4

Original Poster
Rep: Reputation: 0
"The laptop goes into sleep mode when I close the lid. I talked to Acer tech support and they said that this is software controlled, that there is no easy LL GUI resolution - in other words, no selection box to change the default as is available with XP."

KDE/Gnome aren't, and can't easily be installed. I've been told to look under "/etc/acpi/events/power.conf" to find the control, but the lidclose command is not there. The command is found under "/etc/acpi/actions/sleep.lid.sh" (as above), and I don't know how to change it appropriately.
 
  


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
Inspiron 8200 Laptop - Close Lid rshillin Linux - Laptop and Netbook 9 11-30-2006 12:27 AM
How to poll /proc for lid open/close? hollywoodb Linux - Laptop and Netbook 6 08-17-2006 05:19 PM
Sytem hang when I close laptop lid Rosewing Linux - Laptop and Netbook 0 09-18-2005 02:11 PM
disable apm standby on lid close laurentwahl Linux - General 0 05-03-2005 03:54 PM
lid close generates no acpi event mannyzen76 Linux - Laptop and Netbook 0 02-21-2004 11:37 PM


All times are GMT -5. The time now is 04:47 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