Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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]#
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.
"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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.