Skip to contentSkip to conversation

Receiving ACPI notifications generically

DISCUSSION Matthew Garrett 2 participants 4 messages Jun 5, 2005 – Jun 7, 2005 1 message not in the archive ACPI

lore
Share & tools
lore
#0 lore raw

It seems that Acer laptops send an ACPI notification when bay devices are hotplugged (Notify (\_SB.PCI0.IDE0.SECN.BAY1, 0x01)). Obviously, I /could/ catch this by writing a small driver that hooks the notification and then use that to send an ACPI event. Is there any way to do this from userspace? Can the generic hotkey driver be subverted in this way?

Signature · 10 lines
Matthew Garrett | [email protected]
                                



-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
#1 lore raw
Quoted 6 lines · Matthew Garrett

It seems that Acer laptops send an ACPI notification when bay devices are hotplugged (Notify (\_SB.PCI0.IDE0.SECN.BAY1, 0x01)). Obviously, I /could/ catch this by writing a small driver that hooks the notification and then use that to send an ACPI event. Is there any way to do this from userspace? Can the generic hotkey driver be subverted in this way?

Please send me output of acpidmp, then I can show you an example how to configure generic-hotkey-driver for this case. BTW, we need to add battery-hotplug code to respond this event. Thanks,
Luming

Quoted 16 lines
Signature · 15 lines
-- 
Matthew Garrett | [email protected]
                                



-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
Acpi-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/acpi-devel

-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20

A message that is not in the archive (sent off-list or not yet received): 20050606155913.GB5067-qYCAlGQNbcFrdx17CPfAsdBPR1lH4CV8@public.gmane.org

#3 lore raw
Quoted 1 line · Luming

Please send me output of acpidmp, then I can show you an example how to configure generic-hotkey-driver for this case. BTW, we need to add battery-hotplug code to respond this event.

I'm afraid I don't have the machine to hand (and so can't send a full acpidmp), but here's the DSDT:

Signature · 1 line
Matthew Garrett | [email protected]
#4 lore raw
Quoted 5 lines · Matthew Garrett
Quoted 1 line · Luming

Please send me output of acpidmp, then I can show you an example how

to configure generic-hotkey-driver for this case. BTW, we need to add battery-hotplug code to respond this event.

Huh, is this ide-bay-hotplug?

Quoted 2 lines

I'm afraid I don't have the machine to hand (and so can't send a full acpidmp), but here's the DSDT:

Try this:

echo "0:\\_SB.PCI0.IDE0.SECN.BAY1::\\_SB.PCI0.IDE0.SECN.BAY1::1:1" > event_config

Quoted 2 lines

--
Matthew Garrett | [email protected]

-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20