1. 22 Mar, 2012 3 commits
    • Seth Forshee's avatar
      toshiba_acpi: Refuse to load on machines with buggy INFO implementations · f11f999e
      Seth Forshee authored
      Several Satellite models have a buggy implementation of the INFO method
      that causes ACPI exceptions when executed:
      
       ACPI Error: Result stack is empty! State=ffff88012d70f800 (20110413/dswstate-98)
       ACPI Exception: AE_AML_NO_RETURN_VALUE, Missing or null operand (20110413/dsutils-646)
       ACPI Exception: AE_AML_NO_RETURN_VALUE, While creating Arg 0 (20110413/dsutils-763)
       ACPI Error: Method parse/execution failed [\_SB_.VALZ.GETE] (Node ffff880131175eb0), AE_AML_NO_RETURN_VALUE (20110413/psparse-536)
       ACPI Error: Method parse/execution failed [\_SB_.VALZ.INFO] (Node ffff880131175ed8), AE_AML_NO_RETURN_VALUE (20110413/psparse-536)
       toshiba_acpi: ACPI INFO method execution failed
       toshiba_acpi: Failed to query hotkey event
      
      All known machines with this implementation also have a WMI interface
      with event GUID 59142400-C6A3-40FA-BADB-8A2652834100 which is not seen
      on any other models. Refuse to load toshiba_acpi on machines with this
      guid.
      Signed-off-by: default avatarSeth Forshee <seth.forshee@canonical.com>
      Signed-off-by: default avatarMatthew Garrett <mjg@redhat.com>
      f11f999e
    • Azael Avalos's avatar
      toshiba_acpi: Support additional hotkey scancodes · af502837
      Azael Avalos authored
      These scancodes are used by many of the models now supported with
      the addition of TOS1900 device support.
      Signed-off-by: default avatarAzael Avalos <coproscefalo@gmail.com>
      Signed-off-by: default avatarSeth Forshee <seth.forshee@canonical.com>
      Signed-off-by: default avatarMatthew Garrett <mjg@redhat.com>
      af502837
    • Seth Forshee's avatar
      toshiba_acpi: Support alternate hotkey interfaces · 29cd293f
      Seth Forshee authored
      There are two types of problems that prevent hotkeys from working
      on many of the machines supported by toshiba_acpi. The first of
      these is the lack of a functioning SCI for hotkey events. For these
      machines it is possible to filter the Fn keypresses from the
      keyboard and generate a notification by executing the ACPI NTFY
      method.
      
      The second problem is a lack of support for HCI_SYSTEM_EVENT, which
      is used for reading the hotkey scancodes. On these machines the
      scancodes can be read by executing the ACPI NTFY method.
      
      This patch fixes both problems by installing an i8042 filter when
      the NTFY method is present to generate notifications and by
      detecting which of INFO or HCI_SYSTEM_EVENT is supported for
      reading scancodes. If neither method of reading scancodes is
      supported, the hotkey input device is not registered.
      Signed-off-by: default avatarAzael Avalos <coproscefalo@gmail.com>
      Signed-off-by: default avatarSeth Forshee <seth.forshee@canonical.com>
      Signed-off-by: default avatarMatthew Garrett <mjg@redhat.com>
      29cd293f
  2. 20 Mar, 2012 37 commits