1. 29 4月, 2008 3 次提交
    • H
      ACPI: thinkpad-acpi: enhance box identification output (v2) · 8c74adbc
      Henrique de Moraes Holschuh 提交于
      During initialization, thinkpad-acpi outputs some messages to make sure
      releavant box identification information is easily available in-line with
      the rest of the driver messages.
      
      Enhance those messages to output the alfanumeric model number as well.
      Signed-off-by: NHenrique de Moraes Holschuh <hmh@hmh.eng.br>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      8c74adbc
    • H
      ACPI: thinkpad-acpi: warn once about weird hotkey masks · 92889022
      Henrique de Moraes Holschuh 提交于
      thinkpad-acpi knows for a while now how to best program the hotkeys by
      default, and always enable them by default.  Unfortunately, this
      information has not filtered down everywhere it needs to, yet.  Notably,
      old ibm-acpi documentation and most "thinkpad setup guides" will have wrong
      information on this area.
      
      Warn the local admin once whenever any of the following patterns are met:
      
      1. Attempts to set hotkey mask to 0xffff (artifact from docs and config
         for the old ibm-acpi driver and behaviour).  This mask makes no
         real-world sense;
      
      2. Attempts to set hotkey mask to 0xffffffff, which means the user is
         trying to just have "everything work" without even reading the
         documentation, or that we need to get a bug report, because there
         is a new thinkpad out there with new exciting hot keys :-)
      
      3. Attempts to set hotkey mask to 0xffffff, which is almost never the
         correct way to set up volume and brightness event reporting (and with
         the current state-of-the-art, it is known to never be right way to do
         it).
      
      The driver will perform any and all requested operations, though,
      regardless of any warnings.  I hope these warnings can be removed one or
      two years from now.
      Signed-off-by: NHenrique de Moraes Holschuh <hmh@hmh.eng.br>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      92889022
    • H
      ACPI: thinkpad-acpi: BIOS backlight mode helper (v2.1) · b5972796
      Henrique de Moraes Holschuh 提交于
      Lenovo ThinkPads with generic ACPI backlight level control can be easily
      set to react to keyboard brightness key presses in a more predictable way
      than what they do when in "DOS / bootloader" mode after Linux brings
      up the ACPI interface.
      
      The switch to the ACPI backlight mode in the firmware is designed to be
      safe to use only as an one way trapdoor.  One is not to force the firmware
      to switch back to "DOS/bootloader" mode except by rebooting.  The mode
      switch itself is performed by calling any of the ACPI _BCL methods at least
      once.
      
      When in ACPI mode, the backlight firmware just issues (standard) events for
      the brightness up/down hot key presses along with the non-standard HKEY
      events which thinkpad-acpi traps, and doesn't touch the hardware.
      
      thinkpad-acpi will:
      
      1. Place the ThinkPad firmware in ACPI backlight control mode
         if one is available
      2. Suppress HKEY backlight change notifications by default
         to avoid double-reporting when ACPI video is loaded when
         the ThinkPad is in ACPI backlight control mode
      3. Urge the user to load the ACPI video driver
      
      The user is free to use either the ACPI video driver to get the brightness
      key events, or to override the thinkpad-acpi default hotkey mask to get
      them from thinkpad-acpi as well (this will result in duplicate events if
      ACPI video is loaded, so let's hope distros won't screw this up).
      
      Provided userspace is sane, all should work (and *keep* working), which is
      more that can be said about the non-ACPI mode of the new Lenovo ThinkPad
      BIOSes when coupled to current userspace and X.org drivers.
      
      Full guidelines for backlight hot key reporting and use of the
      thinkpad-acpi backlight interface have been added to the documentation.
      Signed-off-by: NHenrique de Moraes Holschuh <hmh@hmh.eng.br>
      Cc: Matthew Garrett <mjg59@srcf.ucam.org>
      Cc: Thomas Renninger <trenn@suse.de>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      b5972796
  2. 05 3月, 2008 1 次提交
  3. 16 2月, 2008 7 次提交
  4. 14 2月, 2008 1 次提交
  5. 07 2月, 2008 1 次提交
  6. 02 2月, 2008 20 次提交
  7. 14 12月, 2007 1 次提交
    • H
      ACPI: thinkpad-acpi: fix lenovo keymap for brightness · 56a185b4
      Henrique de Moraes Holschuh 提交于
      Starting in 2.6.23...
      
      Several reports from X60 users complained that the default Lenovo keymap
      issuing EV_KEY KEY_BRIGHTNESS_UP/DOWN input events caused major issues when
      the proper brightness support through ACPI video.c was loaded.
      
      Therefore, remove the generation of these events by default, which is the
      right thing for T60, X60, R60, T61, X61 and R61 with their latest BIOSes.
      
      Distros that want to misuse these events into OSD reporting (which requires
      an ugly hack from hell in HAL) are welcome to set up the key map they need
      through HAL.  That way, we don't break everyone else's systems.
      Signed-off-by: NHenrique de Moraes Holschuh <hmh@hmh.eng.br>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      56a185b4
  8. 20 11月, 2007 1 次提交
  9. 06 11月, 2007 5 次提交