[ltp] Re: Problem with acpi action

Dimitris Kogias linux-thinkpad@linux-thinkpad.org
Thu, 10 May 2007 10:09:13 -0700


Guillermo Juárez wrote:
> I have some progress. I think the script is being run but the problem
> comes from xrandr accessing my display.
> 
> This is what I get from /var/log/acpid:
> 
> [Thu May 10 13:38:21 2007] received event "ibm/hotkey HKEY 00000080
> 00001007"
> [Thu May 10 13:38:21 2007] notifying client 6529[0:0]
> [Thu May 10 13:38:21 2007] notifying client 7321[0:0]
> [Thu May 10 13:38:21 2007] executing action "/etc/acpi/default.sh
> ibm/hotkey HKEY 00000080 00001007"
> [Thu May 10 13:38:21 2007] BEGIN HANDLER MESSAGES
> Can't open display
> Can't open display
> [Thu May 10 13:38:21 2007] END HANDLER MESSAGES
> [Thu May 10 13:38:21 2007] action exited with status 1
> [Thu May 10 13:38:21 2007] completed event "ibm/hotkey HKEY 00000080
> 00001007"
> 
> 
> You may notice the double "Can't open display". How can I prevent this
> behavior?
> 
> My distro is gentoo just in case some of you had the same problem.

Try printing out the values of the DISPLAY and XAUTHORITY environment
variables from within the xrandr script.

D.