ACPI events

Dmitry Kolosov ivakras1 at gmail.com
Mon Feb 9 16:04:53 PST 2009


Hi all!
I have acpi events mapped to Fn+F7 (lcd brightness up) and to Fn+F8 (lcd 
brightness down), and several other combinations. I think the corresponding 
code in my `acpidump -dt` produced asl file is:
<code>
If (LEqual (Local1, 0x07))
{
   Store ("Fn+F7 Pressed", Debug)
   If (LEqual (OSYS, 0x07D6))
   {
      If (IGDS)
      {
         BRTN (0x87)
      }
      Else
      {
         Notify (^^PCI0.PEGP.VGA.LCD, 0x87)
      }
   }
   Else
   {
      Store (0x15, SMIF)
      Store (Zero, TRP0)
   }
   Sleep (0x32)
   Store (0xB6, Index (DerefOf (Index (Local0, 0x02)), Zero))
   Store (One, Index (DerefOf (Index (Local0, 0x02)), One))
}
</code>

and
<code>
If (LEqual (Local1, 0x08))
{
   Store ("Fn+F8 Pressed", Debug)
   If (LEqual (OSYS, 0x07D6))
   {
      If (IGDS)
      {
         BRTN (0x86)
      }
      Else
      {
         Notify (^^PCI0.PEGP.VGA.LCD, 0x86)
      }
   }
   Else
   {
      Store (0x14, SMIF)
      Store (Zero, TRP0)
   }
   Sleep (0x32)
   Store (0xB7, Index (DerefOf (Index (Local0, 0x02)), Zero))
   Store (One, Index (DerefOf (Index (Local0, 0x02)), One))
}
</code>

It is no effect when i pressed it, it is also no keycodes sent (tested with 
xev). The question is: how to debug usage of this combinations? Is there a way 
to get it work?
Thanks!


More information about the freebsd-acpi mailing list