Skip to contentSkip to conversation

Generic hotkey driver for dock ejecting

DISCUSSION Matthew Garrett 2 participants 2 messages Aug 26, 2005 – Aug 27, 2005 1 message not in the archive ACPI

lore
Share & tools
lore
#0 lore raw

I'm playing with a Dell Latitude D610. By doing

echo "0:\\_SB.PCI0.PCIE.GDCK::\\SB_PCI0.PCIE.GDCK::0:0"

Quoted 1 line

/proc/hotkey/event_config

I can get an event when I push the eject request button on the dock. I guess the appropriate thing to do in response to this is to call the dock's eject method (the dock appears to be \_SB.PCI0.PCIE.GDCK, which has _EJ0, _EJ3 and _EJ4 methods). How do I go about this?

Signature · 8 lines
Matthew Garrett | [email protected]


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
#2 lore raw
In reply to a message not in the archive

Hi!

Quoted 10 lines

I'm playing with a Dell Latitude D610. By doing

echo "0:\_SB.PCI0.PCIE.GDCK::\SB_PCI0.PCIE.GDCK::0:0"

Quoted 1 line

/proc/hotkey/event_config

I can get an event when I push the eject request button on the dock. I guess the appropriate thing to do in response to this is to call the dock's eject method (the dock appears to be \_SB.PCI0.PCIE.GDCK, which has _EJ0, _EJ3 and _EJ4 methods). How do I go about this?

Well, I guess you need to hot-unplug devices in the dock and only then call the eject methods.

BTW it would be nice to have some common infrastructure; I have thinkpad with dock here, too...

Signature · 9 lines
64 bytes from 195.113.31.123: icmp_seq=28 ttl=51 time=448769.1 ms         



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf