1. 06 11月, 2007 3 次提交
    • H
      ACPI: thinkpad-acpi: prefer standard ACPI backlight level control · e11e211a
      Henrique de Moraes Holschuh 提交于
      Newer Lenovo BIOSes support the standard ACPI backlight brightness
      interface (_BCM, _BQC, _BCL).  It should be used instead of the native
      thinkpad backlight brightness control interface when possible.
      
      This patch disables the native brightness support in the driver by default
      when we detect that the standard ACPI interface is available.  The local
      admin can still enable it using the module parameter "brightness_enable".
      
      Note that we need to detect the standard ACPI backlight interface only in
      boxes for which we would load the native backlight interface in the first
      place, and that no ThinkPad BIOS has _BCL but misses the other methods, so
      the detection routines can be really simple.
      Signed-off-by: NHenrique de Moraes Holschuh <hmh@hmh.eng.br>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      e11e211a
    • H
      ACPI: thinkpad-acpi: add brightness_force parameter · 87cc537a
      Henrique de Moraes Holschuh 提交于
      Add a "brightness_enable" module parameter that allows the local admin to
      force the backlight support to not be enabled.
      
      It can also be used to force the backlight support to be enabled, but that
      is currently a no-op as the backlight support is enabled by default when
      available.  This will be changed by a different patch.
      Signed-off-by: NHenrique de Moraes Holschuh <hmh@hmh.eng.br>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      87cc537a
    • H
      ACPI: thinkpad-acpi: support 16 levels of brightness (v3) · a3f104c0
      Henrique de Moraes Holschuh 提交于
      Lenovo ThinkPads often have 16 brightness levels in EC, and not just eight
      levels like older ThinkPads.  They also have standard ACPI backlight
      brightness control.
      
      We detect the number of brightness levels by the presence of a BCLL package
      with 16 entries.  If BCLL is not there, we assume eight levels (Z6*).  If
      it is there, but it doesn't have 16 entries, we assume eight levels (T60).
      Otherwise we assume sixteen levels (T61, X61, etc).
      
      We don't use _BCL because it can have side-effects in thinkpads.  Thanks to
      Thomas Renninger <trenn@suse.de> for notifying me of this potential
      problem.
      
      Using the standard ACPI backlight brightness control *instead* of the
      native thinkpad backlight control is a better idea, though.  A different
      patch will take care of this.
      Signed-off-by: NHenrique de Moraes Holschuh <hmh@hmh.eng.br>
      Cc: Thomas Renninger <trenn@suse.de>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      a3f104c0
  2. 20 10月, 2007 2 次提交
  3. 26 9月, 2007 1 次提交
  4. 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
  5. 12 8月, 2007 1 次提交
  6. 22 7月, 2007 13 次提交
  7. 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
  8. 29 4月, 2007 4 次提交
  9. 25 4月, 2007 6 次提交
  10. 22 4月, 2007 3 次提交
  11. 31 3月, 2007 2 次提交
  12. 26 3月, 2007 2 次提交