Oh thanks! Turns out i wasn't setting the display variable.

On Wednesday, 15 June 2016 08:08:28 UTC+1, Marek Marczykowski-Górecki wrote:
>
> -----BEGIN PGP SIGNED MESSAGE----- 
> Hash: SHA256 
>
> On Tue, Jun 14, 2016 at 09:11:41AM -0700, jkitt wrote: 
> > Are there any specific issues with ACPID in Dom0? 
> > 
> > For whatever reason the actions are not being executed. acpi_listen is 
> > displaying the event fine though. 
> > 
> > Is there an alternative? 
>
> It works fine for me. Maybe you've forgotten about some configuration? 
> This is mine: 
>
>     [marmarek@dom0 ~]$ cat /etc/acpi/events/lid-close 
>     event=button/lid LID close 
>     action=/etc/acpi/actions/lid-close.sh 
>     [marmarek@dom0 ~]$ cat /etc/acpi/actions/lid-close.sh 
>     #!/bin/sh 
>     
>     su -c 'DISPLAY=:0 XAUTHORITY=/var/run/lightdm/marmarek/xauthority 
>     xscreensaver-command -lock' marmarek 
>
>
>
> - -- 
> Best Regards, 
> Marek Marczykowski-Górecki 
> Invisible Things Lab 
> A: Because it messes up the order in which people normally read text. 
> Q: Why is top-posting such a bad thing? 
> -----BEGIN PGP SIGNATURE----- 
> Version: GnuPG v2 
>
> iQEcBAEBCAAGBQJXYP7jAAoJENuP0xzK19csWREH/R3zZ5JHYZGJetja/cI7/ZNx 
> HXPKnprjA02tugWOyInxP58DlgwPVtEk+MK2U+NO0mEFO3ISY0hBGDwX7o+QJroL 
> q9jQp9Yo+JMR/C4YHEiV7eL6WZE4S92Qm2TFQ0pO/zfBdc5QzL4wwjFLJeR/CsO8 
> vWUDAZ9Rp5MPoZ8XsQohd15+1Xz5y6iips911bfSFPhHajxTH/FtRdrnukGh0hVj 
> wzlD7mESfWkZewJCXStpdUQ4sKy3tsAbGndxduaujQRKN/4WHZn9eixggIOd6GW5 
> 42cuMfbsiuyUYQGdobjVpj/x/nmfN0VD9AtzJpnamtWz/Dgdi53QmbGpvLlNbX8= 
> =MUcT 
> -----END PGP SIGNATURE----- 
>

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/1d8f45a3-389a-41b7-b621-0ca5d80d8d7b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to