1. 02 2月, 2008 5 次提交
    • H
      ACPI: thinkpad-acpi: add X61t HKEY events · d1edb2b5
      Henrique de Moraes Holschuh 提交于
      Tomas Carnecky reports that events 0x5009 and 0x500a are swivel events, and
      that 0x500b/0x500c are tablet pen storage bay events.
      
      Document these events, and avoid nasty messages when they happen.
      Signed-off-by: NHenrique de Moraes Holschuh <hmh@hmh.eng.br>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      d1edb2b5
    • H
      ACPI: thinkpad-acpi: wakeup on hotunplug reporting · a713b4d7
      Henrique de Moraes Holschuh 提交于
      Handle some HKEY events that the firmware uses to report the reason for a
      wake up, and to also notify that the system could go back to sleep (if it
      woke up just to eject something from the bay, or to undock).
      
      The driver will report the reason of the last wake up in the sysfs
      attribute "wakeup_reason": 0 for "none, unknown, or standard ACPI wake up
      event", 1 for "bay ejection request" and 2 for "undock request".
      
      The firmware will also report if the operation that triggered the wake up
      has been completed, by issuing an HKEY 0x3003 or 0x4003 event.  If the
      operation fails, no event is sent.  When such a hotunplug sucessfull
      notification is issued, the driver sets the attribute
      "wakeup_hotunplug_complete" to 1.
      
      While the firmware does tell us whether we are waking from a suspend or
      hibernation scenario, the Linux way of hibernating makes this information
      not reliable, and therefore it is not reported.
      
      The idea is that if any of these attributes are non-zero, userspace might
      want to do something at the end of the "wake up from sleep" procedures,
      such as offering to send the machine back into sleep as soon as it is safe
      to do so.
      Signed-off-by: NHenrique de Moraes Holschuh <hmh@hmh.eng.br>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      a713b4d7
    • H
      ACPI: thinkpad-acpi: cleanup hotkey_notify and HKEY log messages · 3b64b51d
      Henrique de Moraes Holschuh 提交于
      Use a generic message on hotkey_notify to log unknown and unhandled events,
      and cleanup hotkey_notify a little.
      
      Also, document event 0x5010 (brightness changed notification) and do not
      log it as an unknown event (even if we do not use it for anything right
      now).
      Signed-off-by: NHenrique de Moraes Holschuh <hmh@hmh.eng.br>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      3b64b51d
    • H
      ACPI: thinkpad-acpi: bump up version to 0.18 · 50efd831
      Henrique de Moraes Holschuh 提交于
      The NVRAM polling support for hot keys is reason enough to
      bump up the version string.  Do it.
      Signed-off-by: NHenrique de Moraes Holschuh <hmh@hmh.eng.br>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      50efd831
    • H
      ACPI: thinkpad-acpi: add CMOS NVRAM polling for hot keys (v9) · 01e88f25
      Henrique de Moraes Holschuh 提交于
      Older ThinkPad models do not export some of the hot keys over the
      event-based ACPI hot key interface.  For these models, one has to poll
      the CMOS NVRAM to check the key state at a rate faster than the expected
      rate at which the user might repeatedly press the same hot key.
      
      This patch implements this functionality for many of the hotkeys in a
      transparent way: hot keys will now Just Work, and the driver knows the
      best approach (events or NVRAM polling) to employ, based on the
      HKEY.MHKA ACPI method.
      
      Also, the driver can turn off the polling when there are no users for
      the hot keys that need such polling.
      
      The NVRAM-based hot keys of the A3x series that have never been
      implemented by later models are not supported, to avoid changes in the
      keymap of the input devices that could cause headaches in the future.
      
      There is a Kconfig option to avoid compiling the NVRAM polling code, as
      it is not very small, and unlikely to be useful on any ThinkPad newer
      than a T40, X31 or R52.
      
      This feature is based on a previous effort by Richard Hughes.
      Signed-off-by: NHenrique de Moraes Holschuh <hmh@hmh.eng.br>
      Cc: Richard Hughes <hughsient@gmail.com>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      01e88f25
  2. 06 11月, 2007 4 次提交
  3. 20 10月, 2007 2 次提交
  4. 26 9月, 2007 1 次提交
  5. 17 9月, 2007 2 次提交
    • H
      ACPI: thinkpad-acpi: bump up version to 0.16 · 3b0c6485
      Henrique de Moraes Holschuh 提交于
      Name it thinkpad-acpi version 0.16 to avoid any confusion with some 0.15
      thinkpad-acpi development snapshots and backports that had input layer
      support, but no hotkey_report_mode support.
      Signed-off-by: NHenrique de Moraes Holschuh <hmh@hmh.eng.br>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      3b0c6485
    • H
      ACPI: thinkpad-acpi: revert new 2.6.23 CONFIG_THINKPAD_ACPI_INPUT_ENABLED option · ff80f137
      Henrique de Moraes Holschuh 提交于
      Revert new 2.6.23 CONFIG_THINKPAD_ACPI_INPUT_ENABLED Kconfig option because
      it would create a legacy we don't want to support.
      
      CONFIG_THINKPAD_ACPI_INPUT_ENABLED was added to try to fix an issue that is
      now moot with the addition of the netlink ACPI event report interface to
      the ACPI core.
      
      Now that ACPI core can send events over netlink, we can use a different
      strategy to keep backwards compatibility with older userspace, without the
      need for the CONFIG_THINKPAD_ACPI_INPUT_ENABLED games.  And it arrived
      before CONFIG_THINKPAD_ACPI_INPUT_ENABLED made it to a stable mainline
      kernel, even, which is Good.
      
      This patch is in sync with some changes to thinkpad-acpi backports, that
      will keep things sane for userspace across different combinations of kernel
      versions, thinkpad-acpi backports (or the lack thereof), and userspace
      capabilities:
      
      Unless a module parameter is used, thinkpad-acpi will now behave in such a
      way that it will work well (by default) with userspace that still uses only
      the old ACPI procfs event interface and doesn't care for thinkpad-acpi
      input devices.
      
      It will also always work well with userspace that has been updated to use
      both the thinkpad-acpi input devices, and ACPI core netlink event
      interface, regardless of any module parameter.
      
      The module parameter was added to allow thinkpad-acpi to work with
      userspace that has been partially updated to use thinkpad-acpi input
      devices, but not the new ACPI core netlink event interface.  To use this
      mode of hot key reporting, one has to specify the hotkey_report_mode=2
      module parameter.
      
      The thinkpad-acpi driver exports the value of hotkey_report_mode through
      sysfs, as well.  thinkpad-acpi backports to older kernels, that do not
      support the new ACPI core netlink interface, have code to allow userspace
      to switch hotkey_report_mode at runtime through sysfs.  This capability
      will not be provided in mainline thinkpad-acpi as it is not needed there.
      Signed-off-by: NHenrique de Moraes Holschuh <hmh@hmh.eng.br>
      Cc: Michael S. Tsirkin <mst@dev.mellanox.co.il>
      Cc: Hugh Dickins <hugh@veritas.com>
      Cc: Richard Hughes <hughsient@gmail.com>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      ff80f137
  6. 12 8月, 2007 1 次提交
  7. 22 7月, 2007 13 次提交
  8. 01 6月, 2007 1 次提交
    • H
      ACPI: thinkpad-acpi: do not use named sysfs groups · cc4c24e1
      Henrique de Moraes Holschuh 提交于
      The initial version of the thinkpad-acpi sysfs interface (not yet released
      in any stable mainline kernel) made liberal use of named sysfs groups, in
      order to get the attributes more organized.
      
      This proved to be a really bad design decision.  Maybe if attribute groups
      were as flexible as a real directory, and if binary attributes were not
      second-class citizens, the idea of subdirs and named groups would not have
      been so bad.
      
      This patch makes all the thinkpad-acpi sysfs groups anonymous (thus
      removing the subdirs), adds the former group names as a prefix (so that
      hotkey/enable becomes hotkey_enable for example), and updates the
      documentation.
      
      These changes will make the thinkpad-acpi sysfs ABI a lot easier to
      maintain.
      Signed-off-by: NHenrique de Moraes Holschuh <hmh@hmh.eng.br>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      cc4c24e1
  9. 29 4月, 2007 4 次提交
  10. 25 4月, 2007 6 次提交
  11. 22 4月, 2007 1 次提交