PurposeOfReason
March 4th, 2008, 11:11 AM
In my /etc/acpe/handlers.sh file I have it set so that when I close the lid it suspends and is locked with gnome screensaver with this
#!/bin/bash
sleep 1 &&
gnome-screensaver-command -l &&
sleep 3 &&
sudo pm-suspend --quirk-s3-bios --quirk-s3-mode &&
But of course it doesn't work. If I run it as a normal user, it works. So I figured it was because acpi runs as root, so I ran the script as root and got:
** Message: Failed to connect to the D-BUS daemon: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
What would be wrong? I've tried the script with and without the sudo and it is set up for no password.
#!/bin/bash
sleep 1 &&
gnome-screensaver-command -l &&
sleep 3 &&
sudo pm-suspend --quirk-s3-bios --quirk-s3-mode &&
But of course it doesn't work. If I run it as a normal user, it works. So I figured it was because acpi runs as root, so I ran the script as root and got:
** Message: Failed to connect to the D-BUS daemon: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
What would be wrong? I've tried the script with and without the sudo and it is set up for no password.