← Back to team overview

kernel-packages team mailing list archive

[Bug 1310248] Re: Thinkpad X220 wireless switch doesn't generate an acpi event

 

Tobias Stegmann, try it now, as I forgot to change the package.

** Package changed: linux-lts-trusty (Ubuntu) => linux (Ubuntu)

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1310248

Title:
  Thinkpad X220 wireless switch doesn't generate an acpi event

Status in “linux” package in Ubuntu:
  Incomplete

Bug description:
  $ lsb_release -rd
  Description:    Ubuntu 14.04 LTS
  Release:        14.04

  
  I use a customized acpi event script to disable bluetooth on my Thinkpad x220, if I toggle the hardware wifi switch (not Fn+F5):

  $ cat /etc/acpi/ibm-wireless-switch.sh 
  #!/bin/sh

  test -f /usr/share/acpi-support/state-funcs || exit 0

  # Find and toggle wireless of bluetooth devices on ThinkPads

  . /usr/share/acpi-support/state-funcs

  # disable bluetooth on wireless activate to save battery
  if isAnyWirelessPoweredOn; then
      # Wireless was turned on
      logger "Wireless switch turned on: Disable bluetooth."
      echo disable > /proc/acpi/ibm/bluetooth
  fi

  
  This used to work fine with Ubuntu 13.10, however it stopped working with 14.04. More precisely the switch doesnt generate an acpi event anymore. To check that I used acpi_listen.

  $ acpi_listen -t 10
  # nothing happens here

  
  Using 14.04 with kernel version 3.11.0-19 from 13.10 the switch works fine again:

  $ acpi_listen -t 10
  ibm/hotkey HKEY 00000080 00007000

  Thanks.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1310248/+subscriptions