linux-acpi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Notifications about ACPI events in userspace?
@ 2017-05-12  8:37 Florian Echtler
  2017-05-12 10:06 ` Lukas Wunner
  0 siblings, 1 reply; 8+ messages in thread
From: Florian Echtler @ 2017-05-12  8:37 UTC (permalink / raw)
  To: linux-acpi


[-- Attachment #1.1: Type: text/plain, Size: 1133 bytes --]

Hi everyone,

I'm currently adding support for the iMac's target display mode (TDM) to Linux.
When an external DisplayPort source is added/removed, the following ACPI code is
invoked:

    Scope (\_SB.PCI0.LPCB.SMC)
    {
        Device (DPPT)
        {
            Name (_HID, EisaId ("APP000C"))  // _HID: Hardware ID
            Name (_CID, "smc-dppt")  // _CID: Compatible ID
        }
    }

   Scope (\_SB.PCI0.LPCB.EC)
    {
        Method (_Q30, 0, NotSerialized)  // _Qxx: EC Query
        {
            Notify (\_SB.PCI0.LPCB.SMC.DPPT, 0x80) // Status Change
        }

        Method (_Q31, 0, NotSerialized)  // _Qxx: EC Query
        {
            Notify (\_SB.PCI0.LPCB.SMC.DPPT, 0x81) // Information Change
        }
    }


I've already verified that the method calls do indeed take place, by turning on
EC debugging. The APP000C device does also exist in /sys.

However, I'm not seeing anything happening with either acpi_listen or kacpimon.
Does this require any kernel changes, or could I subscribe to these events somehow?

Best, Florian
-- 
SENT FROM MY DEC VT50 TERMINAL


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2017-05-14 13:13 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-12  8:37 Notifications about ACPI events in userspace? Florian Echtler
2017-05-12 10:06 ` Lukas Wunner
2017-05-12 11:05   ` Florian Echtler
2017-05-13 12:18     ` Lukas Wunner
2017-05-13 16:47       ` Florian Echtler
2017-05-14  8:11         ` Lukas Wunner
2017-05-14  9:25           ` Florian Echtler
2017-05-14 13:13             ` Lukas Wunner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).