[ltp] Question on X60

Matt Graham linux-thinkpad@linux-thinkpad.org
Tue, 27 Feb 2007 16:38:43 -0500


On Tuesday 27 February 2007 15:13, after a long battle with technology, 
Dieter Jurzitza wrote:
> I am using openSUSE 10.2 on the lenovo X60. Everything is working to
> my total satisfaction except [for] two dumb key combinations.
> Both of the sequences create ACPI-events, xev does not see anything,
> for both keys simply nothing seems to happen.
>
> FN-F7 reports
> Feb 27 21:06:12 oekan22p [acpid]: received event "ibm/hotkey HKEY
> 00000080 00001007"
> Feb 27 21:06:12 oekan22p [acpid]: executing action
> "/usr/lib/dockutils/dockhandler "ibm/hotkey HKEY 00000080 00001007""
> Feb 27 21:06:12 oekan22p [acpid]: action exited with status 1

/usr/lib/dockutils/dockhandler was executed with args "ibm/hotkey HKEY 
00000080 00001007".  It returned 1, which usually means something went 
wrong.  Programs return 0 when everything's worked properly.  So:  What 
does dockhandler do?  Does it write a logfile?  

> FN-F2 reports
> Feb 27 21:06:55 oekan22p [acpid]: received event "ibm/hotkey HKEY
> 00000080 00001002"
> Feb 27 21:06:55 oekan22p [acpid]: executing action
> "/usr/lib/dockutils/dockhandler "ibm/hotkey HKEY 00000080 00001002""
> Feb 27 21:06:55 oekan22p [acpid]: action exited with status 1

Yep, similar things here except the last arg is 00001002 not 00001007.

> The file /usr/lib/dockutils/dockhandler contains nothing meaningful
> in this regard, those events are simply ignored :-(

Is this thing a shell script or a binary?  I have 1 script in /etc/acpi 
that handles all ACPI events.  It splits $1 into $group/$action, and 
then has a lot of case/esac statements.  There's a default event that 
execs 'logger "ACPI group $group action $action is not defined" ', so 
events without cases get captured too.

> echo "lcd_disable" > /proc/acpi/ibm/video
> does nothing. The display remains on, the file /proc/acpi/ibm/video
> does not change.

Dunno.  Then again, I use radeontool, not /proc, to turn off the 
backlight on my T42p.

-- 
   Q: How many surrealists does it take to change a light bulb?
   A: Two. One to hold the giraffe and the other to fill the bathtub
   with brightly colored machine tools.
There is no Darkness in Eternity/But only Light too dim for us to see