View previous topic :: View next topic |
Author |
Message |
dizzysaurus n00b
Joined: 31 Jul 2003 Posts: 38 Location: MI, US
|
Posted: Sun Aug 31, 2003 1:43 am Post subject: root can run xset from commandline, but not from acpid |
|
|
Hi Guys/Gals,
I'm running X on a Dell Latitude C610 and can use "xset -display :0 dpms force off" to turn off the screen and I'd like to do the same when I close the laptop lid.
My acpi script in /etc/acpi/lidbtn.sh is being kicked off successfully but the X server is denying the connection from xset.
If I su to root I can run the xset command just fine, and I use exactly the same command in the lidbtn.sh script. running "xhost +" will allow the lidbtn.sh xset to connect, but I don't want my display that accessible. I've tried xhost +localhost but that doesn't work, and neither does xhost +daikini (my hostname). Only "xhost +" allows the connection from the acpi run script.
Has anyone run into something like this before?
Thanks,
Anthony. |
|
Back to top |
|
|
rajeshd n00b
Joined: 22 Aug 2003 Posts: 37
|
Posted: Sun Aug 31, 2003 2:24 am Post subject: xhost |
|
|
Try,
What user are you running your ACPI script as? If it's a non-root user, say ACPI, then you can also try,
xhost supports both user names and host names. |
|
Back to top |
|
|
dizzysaurus n00b
Joined: 31 Jul 2003 Posts: 38 Location: MI, US
|
Posted: Sun Aug 31, 2003 4:30 pm Post subject: |
|
|
did the trick. You, sir, are a most wonderful person
Thanks! |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|