1. 14 5月, 2009 4 次提交
    • G
      eeepc-laptop: support for super hybrid engine (SHE) · 158ca1d7
      Grigori Goronzy 提交于
      The older eeepc-acpi driver allowed to control the SHE performance
      preset through a ACPI function for just this purpose. SHE underclocks
      and undervolts the FSB and undervolts the CPU (at preset 2,
      "powersave"), or slightly overclocks the CPU (at preset 0,
      "performance"). Preset 1 is the default setting with default clocks and
      voltage.
      
      The new eeepc-laptop driver doesn't support it anymore.
      The attached patch adds support for it to eeepc-laptop. It's very
      straight-forward and almost trivial.
      Signed-off-by: NGrigori Goronzy <greg@chown.ath.cx>
      Signed-off-by: NCorentin Chary <corentincj@iksaif.net>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      158ca1d7
    • A
      eeepc-laptop: Work around rfkill firmware bug · 978605c4
      Alan Jenkins 提交于
      1) Buggy firmware can change the RFKILL state by itself. This is easily
         detected.  The RFKILL API states that in such cases, we should call
         rfkill_force_state() to notify the core.
      
         I have reported the bug to Asus. I believe this is the right thing
         to do for robustness, even if this particular firmware bug is fixed.
      
      2) The same bug causes the wireless toggle key to be reported as 0x11
         instead of 0x10.  0x11 is otherwise unused, so it should be safe to
         add this as a new keycode.
      
      The bug is triggered by removing the laptop battery while hibernated.
      
      On resume, the wireless toggle key causes the firmware to toggle the
      wireless state itself.  (Also, the key is reported as 0x11 when the
      current wireless state is OFF).
      
      This is very poor behaviour because the OS can't predict whether the
      firmware is controlling the RFKILL state.
      
      Without this workaround, the bug means users have to press the wireless
      toggle key twice to enable, due to the OS/firmware conflict.  (Assuming
      rfkill-input or equivalent is being used).  The workaround avoids this.
      
      I believe that acpid scripts which toggle the value of the sysfs state file
      when the toggle key is pressed will be rendered ineffective by the bug,
      regardless of this workaround.  If they simply toggle the state, when the
      firmware has already toggled it, then you will never see a state change.
      
      Tested on "EEEPC 4G" only.
      Signed-off-by: NAlan Jenkins <alan-jenkins@tuffmail.co.uk>
      Signed-off-by: NCorentin Chary <corentincj@iksaif.net>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      978605c4
    • D
      eeepc-laptop: report brightness control events via the input layer · 64b86b65
      Darren Salt 提交于
      This maps the brightness control events to one of two keys, either
      KEY_BRIGHTNESSDOWN or KEY_BRIGHTNESSUP, as needed.
      
      Some mapping has to be done due to the fact that the BIOS reports them as
      <base value> + <current brightness index>; the selection is done according to
      the sign of the change in brightness (if this is 0, no keypress is reported).
      
      (Ref. http://lists.alioth.debian.org/pipermail/debian-eeepc-devel/2009-April/002001.html)
      Signed-off-by: NDarren Salt <linux@youmustbejoking.demon.co.uk>
      Signed-off-by: NCorentin Chary <corentincj@iksaif.net>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      64b86b65
    • A
      eeepc-laptop: fix wlan rfkill state change during init · fbc97e4c
      Alan Jenkins 提交于
      When an rfkill device is registered, the rfkill core will change its
      state to the system default. So we need to prepare for state changes
      *before* we register it. That means installing the eeepc-specific ACPI
      callback which handles the hotplug of the wireless network adaptor.
      
      This problem doesn't occur during normal operation.  You have to
      
      1) Boot with wireless enabled. eeepc-laptop should load automatically.
      2) modprobe -r eeepc-laptop
      3) modprobe eeepc-laptop
      
      On boot, the default rfkill state will be set to enabled.
      With the current core code, step 2) will disable the wireless.
      Therefore in step 3), the wireless will change state during registration,
      from disabled to enabled.  But without this fix, the PCI device for the
      wireless adaptor will not appear.
      Signed-off-by: NAlan Jenkins <alan-jenkins@tuffmail.co.uk>
      Acked-by: NMatthew Garrett <mjg@redhat.com>
      Signed-off-by: NCorentin Chary <corentincj@iksaif.net>
      Signed-off-by: NLen Brown <len.brown@intel.com>
      fbc97e4c
  2. 24 4月, 2009 5 次提交
  3. 18 4月, 2009 5 次提交
  4. 08 4月, 2009 5 次提交
  5. 07 4月, 2009 1 次提交
  6. 05 4月, 2009 3 次提交
  7. 04 4月, 2009 17 次提交