You are not logged in.
Hi there!
Since I upgraded to GNOME 3 recently, my laptop (Acer Aspire TimelineX 3820TG) doesn't suspend anymore when I close the lid. Instead, it just turns off the screen. If I choose suspend from the menu, it does suspend properly.
I googled a bit and found out that the option what to do on closing the lid was dropped in GNOME 3, setting suspend as default action. That's exactly what I want...
Also, I checked that option via gnome-tweak-tool and dconf-editor, and (surprise!) it was set to 'suspend'.
Anyone got an idea what to do to make it suspend again on closing the lid?
Last edited by perpetrator (2011-10-17 14:25:26)
Offline
i have the same problem - no suspend upon closing laptop lid. I also have another problem blank black screen upon resume from suspend (which ever way I use to suspend). I have HP pavilion DV6 3141ea (AMD).
Offline
Install the gnome-tweak-tool package and then under the "Shell" tab you will be able to set the action performed when the lid is closed.
Offline
I already have gnome-tweak tool and the action to take when laptop lid is closed is already set to suspend.
Offline
Any solution yet? Still having the problem.
The setting in gnome-tweak-tool has no effect, it also doesn't shutdown when I choose the option.
Offline
First of all, i don't use GNOME 3 so i can't help you here specifically but you can configure your system to suspend when closing the lid regardless of your desktop environment.
Install ACPI and ACPID. Add ACPID to your daemon list and run:
rc.d start acpidas root.
Now open the file "/etc/acpi/handler.sh/" and under the section "button/lid)" type pm-suspend (if you don't have it install it - you can install it with comman "pacman -S pm-utils").
My /etc/acpi/handler.sh file (i have shown only button/lid section):
button/lid)
#echo "LID switched!">/dev/tty5
pm-suspend
;;Try the wiki also for more information:
ACPI https://wiki.archlinux.org/index.php/Acpid
pm-utils https://wiki.archlinux.org/index.php/Pm-utils
Last edited by Shark (2011-08-22 22:44:14)
If you have built castles in the air, your work need not be lost; that is where they should be. Now put foundations under them.
Henry David Thoreau
Registered Linux User: #559057
Offline
Hi Shark, thanks for your reply. Since I didn't need my notebook the last few weeks I totally forgot about this issue.
Your method works like a charm, I actually had acpid already installed and running, as well as pm-utils. Just needed that one line in the configuration file.
The only problem is that it does not lock my gnome session when I suspend this way. However, when I suspend by pressing the power button or via the gnome menu, it does lock the session. Any ideas how to fix this?
Offline
Don't use gnome either, but if you figure out the command Gnome issues to lock the session, all you have to do is add it to the above configuration for suspending and it should issue that command as well. Check here for an example:
https://wiki.archlinux.org/index.php/Ac … ple_Events
You'll probably have to replace xscreensaver and its associated command with whatever gnome is using, but the idea is the same.
I laugh, yet the joke is on me
Offline
Hi Shark, thanks for your reply. Since I didn't need my notebook the last few weeks I totally forgot about this issue.
Your method works like a charm, I actually had acpid already installed and running, as well as pm-utils. Just needed that one line in the configuration file.
The only problem is that it does not lock my gnome session when I suspend this way. However, when I suspend by pressing the power button or via the gnome menu, it does lock the session. Any ideas how to fix this?
Try this:
pm-suspend && su -c - yourusername DISPLAY=:0.0 /usr/bin/gnome-screensaver-command --lockIf you have built castles in the air, your work need not be lost; that is where they should be. Now put foundations under them.
Henry David Thoreau
Registered Linux User: #559057
Offline
Thank you again for your help, I finally got that working now.
Just for the record, I had to put the command in quotes (otherwise it would parse --lock as an option for su). I also changed the order of the commands to make sure it shows the lock screen immediately after restarting (and not the desktop for a few secs). So, my line looks like this:
su -c - username "DISPLAY=:0.0 /usr/bin/gnome-screensaver-command --lock" && pm-suspendOffline
Great!
Mark the thread SOLVED.
If you have built castles in the air, your work need not be lost; that is where they should be. Now put foundations under them.
Henry David Thoreau
Registered Linux User: #559057
Offline
Sorry to bother you again, but for some reason it doesn't work anymore...
Somehow it can't lock the GNOME session, because when I enter the above line from /etc/acpi/handler.sh manually as root in TTY1, I get this error:
** Message: Failed to get session bus: Befehlszeile »dbus-launch --autolaunch=c9375f4ea0008d92177b28db000009ae --binary-syntax --close-stderr« brach mit von Null verschiedenem Beenden-Status 1 ab: No protocol specified\nAutolaunch error: X11 initialization failed.\nIf I enter this command inside GNOME, everything works just fine, it locks the screen and suspends.
EDIT:
Setting the XAUTHORITY environment variable properly did the trick. Therefore, I borrowed some lines from here: https://wiki.archlinux.org/index.php/Su … losing_lid
Thread marked as SOLVED again. ![]()
Last edited by perpetrator (2011-10-17 14:25:11)
Offline