[Lenovo ThinkPad ?40 series] Wireless key cannot turn BT off

Bug #1396429 reported by Po-Hsu Lin on 2014-11-26
24
This bug affects 3 people
Affects Status Importance Assigned to Milestone
HWE Next
Low
Unassigned
acpi-support (Ubuntu)
Low
Unassigned

Bug Description

CID: 201308-14073 Lenovo T440s with 14.04.1(trusty)
CID: 201301-12474 with 12.04.5(lts-trusty)

The wireless hotkey can only control the wireless network, it can't control the Bluetooth.

Steps:
1. Install 14.04 + update (3.13.0-40)
2. Turn BT off with the wireless hotkey

Expected result:
* Bluetooth can be controlled by the wireless hotkey.

Actual result:
* Only wireless network will be turned off.

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: linux-image-3.13.0-40-generic 3.13.0-40.69
ProcVersionSignature: Ubuntu 3.13.0-40.69-generic 3.13.11.10
Uname: Linux 3.13.0-40-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.5
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC1: ubuntu 1679 F.... pulseaudio
 /dev/snd/controlC0: ubuntu 1679 F.... pulseaudio
CRDA:
 country TW:
  (2402 - 2472 @ 40), (3, 27)
  (5270 - 5330 @ 40), (3, 17), DFS
  (5735 - 5815 @ 40), (3, 30)
CurrentDesktop: Unity
Date: Tue Nov 25 03:03:31 2014
HibernationDevice: RESUME=UUID=a5a46803-6e30-4659-a224-b651d53e2536
InstallationDate: Installed on 2014-11-25 (0 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140417)
Lsusb:
 Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
 Bus 001 Device 004: ID 5986:026a Acer, Inc
 Bus 001 Device 003: ID 8087:07dc Intel Corp.
 Bus 001 Device 002: ID 0bdb:193e Ericsson Business Mobile Networks BV
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
MachineType: LENOVO 20ARZ00SUS
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.13.0-40-generic root=UUID=57ef6133-f168-455e-a5e3-773a4131cbe0 ro quiet splash vt.handoff=7
RelatedPackageVersions:
 linux-restricted-modules-3.13.0-40-generic N/A
 linux-backports-modules-3.13.0-40-generic N/A
 linux-firmware 1.127.8
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 08/07/2013
dmi.bios.vendor: LENOVO
dmi.bios.version: GJET53WW (2.01 )
dmi.board.asset.tag: Not Available
dmi.board.name: 20ARZ00SUS
dmi.board.vendor: LENOVO
dmi.board.version: Win8 Pro DPK TPG
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: Not Available
dmi.modalias: dmi:bvnLENOVO:bvrGJET53WW(2.01):bd08/07/2013:svnLENOVO:pn20ARZ00SUS:pvrThinkPadT440s:rvnLENOVO:rn20ARZ00SUS:rvrWin8ProDPKTPG:cvnLENOVO:ct10:cvrNotAvailable:
dmi.product.name: 20ARZ00SUS
dmi.product.version: ThinkPad T440s
dmi.sys.vendor: LENOVO

Po-Hsu Lin (cypressyew) wrote :

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
tags: added: bios-outdated-2.30
Daniel Manrique (roadmr) on 2014-11-26
Changed in linux (Ubuntu):
importance: Undecided → Low

Also note that it can't turn the mobile broadband off as well.

Anthony Wong (anthonywong) wrote :

I can't find this bug during enablement. Can acpi_osi=\"!Windows 2012\" workaround this issue?

Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Changed in hwe-next:
status: New → Incomplete
Po-Hsu Lin (cypressyew) wrote :

Hello Anthony,
the tweak: acpi_osi=\"!Windows 2012\" in grub cannot fix this issue on this laptop with 14.04 (3.13.0-24).

Debugging information:
ubuntu@201308-14073:~$ sudo showkey -k
kb mode was ?UNKNOWN?
[ if you are trying this under X, it might not work
since the X server is also reading /dev/console ]

press any key (program terminates 10s after last keypress)...
keycode 238 press
keycode 238 release
^Ccaught signal 2, cleaning up...

ubuntu@201308-14073:~$ sudo showkey -s
kb mode was ?UNKNOWN?
[ if you are trying this under X, it might not work
since the X server is also reading /dev/console ]

press any key (program terminates 10s after last keypress)...
0x9c
0xe0 0x73 0xe0 0xf3
0xe0 0x73 0xe0 0xf3
^Ccaught signal 2, cleaning up...

ubuntu@201308-14073:~$ xev | sed -n 's/^.*state \([0-9].*\), keycode *\([0-9]\+\) *\(.*\), .*$/keycode \2 = \3, state = \1/p'
keycode 36 = (keysym 0xff0d, Return), state = 0x0
keycode 246 = (keysym 0x1008ff95, XF86WLAN), state = 0x0
keycode 246 = (keysym 0x1008ff95, XF86WLAN), state = 0x0
keycode 246 = (keysym 0x1008ff95, XF86WLAN), state = 0x0
keycode 246 = (keysym 0x1008ff95, XF86WLAN), state = 0x0

rfkill list after pressing the wireless key:
ubuntu@201308-14073:~$ rfkill list
0: tpacpi_bluetooth_sw: Bluetooth
 Soft blocked: no
 Hard blocked: no
1: tpacpi_wwan_sw: Wireless WAN
 Soft blocked: no
 Hard blocked: no
2: hci0: Bluetooth
 Soft blocked: no
 Hard blocked: no
3: phy0: Wireless LAN
 Soft blocked: yes
 Hard blocked: no

This issue could be found on other Lenovo laptops as well:
https://bugs.launchpad.net/ubuntu/+source/linux-lts-trusty/+bug/1355019

Changed in hwe-next:
status: Incomplete → Confirmed
Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Changed in hwe-next:
status: Confirmed → New
Changed in linux (Ubuntu):
assignee: Anthony Wong (anthonywong) → Adam Lee (adam8157)
Changed in hwe-next:
status: New → Triaged
Adam Lee (adam8157) on 2014-12-09
description: updated
Changed in hwe-next:
assignee: nobody → Adam Lee (adam8157)
importance: Undecided → Low
status: Triaged → Confirmed
summary: - [Lenovo T440s] Wireless key cannot turn BT off on 14.04.1
+ [Lenovo ThinkPad ?40 series] Wireless key cannot turn BT off
Adam Lee (adam8157) wrote :

This is not a kernel's but acpi-support's bug.

/etc/acpi/events/ibm-wireless should respond "button/wlan WLAN 00000080 00000000"

Adam Lee (adam8157) wrote :

additional info for #6:

/etc/acpi/events/ibm-wireless better check if it's a thinkpad model at first, or this generic WLAN key will affect other laptops too.

Changed in linux (Ubuntu):
status: Confirmed → Invalid
Adam Lee (adam8157) on 2014-12-12
Changed in acpi-support (Ubuntu):
importance: Undecided → High
no longer affects: linux (Ubuntu)
Adam Lee (adam8157) on 2014-12-12
Changed in hwe-next:
importance: Low → High
status: Confirmed → Triaged
Adam Lee (adam8157) wrote :

patch has been submitted to Debian and Ubuntu maintainers

Changed in hwe-next:
status: Triaged → In Progress

The attachment "0001-respond-Lenovo-ThinkPad-40-series-Fn-F8.patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Adam Lee (adam8157) on 2015-01-09
Changed in hwe-next:
status: In Progress → Triaged
Adam Lee (adam8157) on 2015-01-27
Changed in acpi-support (Ubuntu):
assignee: nobody → Michael Meskes (meskes)
Michael Meskes (meskes) wrote :

Could anyone please explain to me why this bug was assigned to me? I'm not part of the team that takes care of this package for Ubuntu.

Steve Langasek (vorlon) on 2015-01-28
Changed in acpi-support (Ubuntu):
assignee: Michael Meskes (meskes) → nobody
Adam Lee (adam8157) wrote :

Hi, @Michael

I assigned to you because I noticed you are the maintainer of Debian's acpi-support package, and we grab updates from Debian. Sorry for not explained.

btw, I sent that package to you and debian acpi dev list at Dec 25 2014, no response yet.. could you please take a look?

> I assigned to you because I noticed you are the maintainer of Debian's
> acpi-support package, and we grab updates from Debian. Sorry for not
> explained.

While this is true for a lot of packages, it's completely the opposite for
acpi-support. Upstream for acpi-support is Ubuntu, Debian adds a lot of
changes to the Ubuntu version, but those do not make their way back.

> btw, I sent that package to you and debian acpi dev list at Dec 25 2014,
> no response yet.. could you please take a look?

Yes, I saw your email, but with Debian's freeze I haven't spend any time on
new packages lately. Normal workflow will resume shortly.

Michael
--
Michael Meskes
Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
Michael at BorussiaFan dot De, Meskes at (Debian|Postgresql) dot Org
Jabber: michael.meskes at gmail dot com
VfL Borussia! Força Barça! Go SF 49ers! Use Debian GNU/Linux, PostgreSQL

Steve Langasek (vorlon) wrote :

I don't believe the change to /etc/acpi/ibm-wireless.sh is correct.

+rfkill list | grep tpacpi_bluetooth_sw || exit 0
+

If a machine has wireless but no bluetooth antenna, this change has the affect of preventing the switch from toggling the wireless state. That's not what we want to have happen here.

Steve Langasek (vorlon) on 2015-02-11
tags: removed: patch
Adam Lee (adam8157) wrote :

@Steve, thanks, here is the v2 patch only acts on new using-general-acpi-event ThinkPad models.

Adam Lee (adam8157) wrote :

additional explanation of the v2 patch:

that "rfkill list | grep tpacpi_bluetooth_sw || exit 0" only skips new using-general-acpi-event and having-no-thinkpad-bt models, which falls back to the state without this patch, wifi could be toggled(but bt couldn't), so it's safe and what we expect.

The issue could be reproduced on
Lenovo E450, CID 201407-15368 with 14.04.2 (utopic)
Lenovo E450, CID 201408-15472 with 14.04.2 (utopic)
Lenovo E555, CID 201411-16166 with 14.04.2 (utopic)

 $ acpi_listen

 button/wlan WLAN 00000080 00000000 K

tags: added: 201407-15368
tags: added: 201408-15472
tags: added: 201411-16166
tags: added: beijing-lab
Anthony Wong (anthonywong) wrote :

Steve, do you have any comment to the v2 patch in #14?

The issue could be reproduced on
Lenovo E450, CID 201408-15790 with 14.04.2 (utopic)
Lenovo E550, CID 201411-16167 with 14.04.2 (utopic)

 $ acpi_listen

 button/wlan WLAN 00000080 00000000 K

tags: added: 201408-15790 201411-16167
tags: added: 201501-16541 201501-16542
Adam Lee (adam8157) on 2015-05-14
Changed in hwe-next:
importance: High → Medium
Changed in acpi-support (Ubuntu):
importance: High → Medium
Adam Lee (adam8157) on 2015-10-12
Changed in acpi-support (Ubuntu):
importance: Medium → Low
Changed in hwe-next:
importance: Medium → Low
Changed in hwe-next:
assignee: Adam Lee (adam8157) → nobody
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers