[Pkg-acpi-devel] Bug#619918: Bug#619918: getXconsole break in asus-touchpad.sh

Milan Čermák mcermak at chello.cz
Sat Jan 28 18:12:54 UTC 2012


Hi Michael,
the difference is between running the script as a user and running the 
script through acpid.
When run by user (common or root), the script works just fine and 
touchpad is toggled.
When run by acpid, the event is delivered, the script is executed but 
fails to retrieve the device list from 'xinput'. Hence, the touchpad is 
not toggled.

As far as I was able to diagnose, the script has no environment 
variables (UID not set, LOGNAME not set, USER not set) when run by acpid.

With acpid 2.0.7-1, the script worked (I was able to toggle the touchpad 
with a hotkey). With acpid 2.0.7-1squeeze3, it doesn't work.

Hope this helps,
Milan

Dne 28.1.2012 12:14, Michael Meskes napsal(a):
> On Sat, Jan 28, 2012 at 10:48:38AM +0100, Milan Čermák wrote:
>> The message seen by Roman Nikolaev "Couldnt get a file descriptor
>> referring to the console" is indeed printed when the script is run
>> by a user owning the X session.
>> When run by root, the script runs fine and toggles the touchpad alright.
>
> So everything works? Why do you want to reopen then? Sorry, I don't really
> understand what you're trying to accomplish.
>
>> This behavior is seen since update of acpid to 2.0.7-1squeeze3 and
>> possibly caused by security fix in 2.0.7-1squeeze2.
>
> So what exactly worked with 2.0.7-1 but doesn't anymore with 2.0.7-1squeeze3?
>
> Michael







More information about the Pkg-acpi-devel mailing list