Comment 27 for bug 18864

Revision history for this message
Steve Langasek (vorlon) wrote :

Hi Jeffrey,

# acpi_listen
ibm/hotkey HKEY 00000080 00001009

That event is not mapped to anything in /etc/acpi. The dedicated key on the dock itself does work as expected.

I believe the fix is as simple as these three lines:

# cat events/lenovo-undock
event=ibm/hotkey HKEY 00000080 00001009
action=/etc/acpi/undock.sh

# cat undock.sh
#!/bin/sh

echo 1 > /sys/devices/platform/dock.0/undock

Sure, we can do that; but is that what's done when the Prepare-for-undock key is pressed?