[ltp] ACPI problem (bis)

James McKenzie linux-thinkpad@linux-thinkpad.org
Sun, 27 Feb 2005 12:47:44 -0700


morpheus wrote:
> On Feb 26, 2005 1:36 PM, Uwe Walter wrote:
> 
>>On Sa, 2005-02-26 at 12:51 +0100, Romuald Fleury wrote:
>>
>>>i already did that. ( events are displayed for all ALT+Fx , but scripts 
>>>not started ! )
> 
> 
> Wow, that sounds really frustrating.  One other thing you can try is to see if maybe the scripts are trying to run but getting an error or something.  Edit your /etc/acpi/events/Fn-Fx file, and change the action= line to:
> action=sh myscript.sh &>/tmp/myscript.log
> 
> Also, edit the /etc/acpi/actions/myscript.sh and add this line at the top (just after #!/bin/bash
> shopt -o xtrace
> 
> This should output all script commands to the logfile.
> 
This may be something as simple as making sure the scripts are 
executable by ordinary users.  The proper setup is 755 (rwxr-xr-x) for 
each script file.
-- 
James McKenzie