[Bug 1310248] Re: [Lenovo Thinkpad X220] wireless switch doesn't generate an acpi event
Posted a separate report at https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1389268 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1310248 Title: [Lenovo Thinkpad X220] wireless switch doesn't generate an acpi event To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1310248/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1310248] Re: [Lenovo Thinkpad X220] wireless switch doesn't generate an acpi event
Came to this bug while searching on my the wireless toggle switch doesn't work on my Thinkpad X1 Carbon after a fresh Ubuntu 14.10 install. I understand some of the reasoning above, which seems to say, that it is not really an issue because the button press can be intercepted through other ways and dealt with then, but I want to say that is the only key that is not working out of the box, so it is really confusing, and just plain bad user experience. Even after reading the solution above, I can't get it to work on my laptop. I can use rfkill command for now, but, oh boy, it would be great to the key properly working. It appears that the code in charge of handling the X1 Carbon adaptive keyboard is here and rfkill handling is there: https://kernel.googlesource.com/pub/scm/linux/kernel/git/jic23/iio/+/refs/heads/togreg/drivers/platform/x86/thinkpad_acpi.c So, it's either my stock kernel doesn't have it, or something else is broken. Here's some info about your system. root@x1:~# cat /proc/cmdline BOOT_IMAGE=/vmlinuz-3.16.0-24-generic.efi.signed root=/dev/mapper/ubuntu--vg-root ro quiet splash acpi_osi=Linux acpi_enforce_resources=lax i915.i915_enable_rc6=1 i915.i915_enable_fbc=1 i915.lvds_downclock=1 i915.semaphores=1 vt.handoff=7 root@x1:~# uname -r 3.16.0-24-generic root@x1:~# ls /dev/input/by-path/platform-thinkpad_acpi-event -lh lrwxrwxrwx 1 root root 9 Nov 2 19:45 /dev/input/by-path/platform-thinkpad_acpi-event - ../event7 # nothing ever fires when I press all extra buttons including the wireless one root@x1:~# input-events 7 /dev/input/event7 bustype : BUS_HOST vendor : 0x17aa product : 0x5054 version : 16641 name: ThinkPad Extra Buttons phys: thinkpad_acpi/input0 bits ev : EV_SYN EV_KEY EV_MSC EV_SW waiting for events timeout, quitting # acpi events fire for all extra buttons except the wireless one! root@x1:~# acpi_listen -t 100 ibm/hotkey LEN0068:00 0080 1105 ibm/hotkey LEN0068:00 0080 1106 ibm/hotkey LEN0068:00 0080 1108 ibm/hotkey LEN0068:00 0080 110a ibm/hotkey LEN0068:00 0080 1101 ibm/hotkey LEN0068:00 0080 1101 ibm/hotkey LEN0068:00 0080 1101 video/switchmode VMOD 0080 ibm/hotkey LEN0068:00 0080 110e So, since nothing fires on both channels, it seems I can't manually bind the button to rfkill either. Please tell me what I can do to help. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1310248 Title: [Lenovo Thinkpad X220] wireless switch doesn't generate an acpi event To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1310248/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1310248] Re: [Lenovo Thinkpad X220] wireless switch doesn't generate an acpi event
SergeiS, thank you for your comment. So your hardware and problem may be tracked, could you please file a new report with Ubuntu by executing the following in a terminal while booted into the default Ubuntu kernel (not a mainline one) via: ubuntu-bug linux For more on this, please read the official Ubuntu documentation: Ubuntu Bug Control and Ubuntu Bug Squad: https://wiki.ubuntu.com/Bugs/BestPractices#X.2BAC8-Reporting.Focus_on_One_Issue Ubuntu Kernel Team: https://wiki.ubuntu.com/KernelTeam/KernelTeamBugPolicies#Filing_Kernel_Bug_reports https://wiki.ubuntu.com/Kernel/Policies/DuplicateBugs Ubuntu Community: https://help.ubuntu.com/community/ReportingBugs#Bug_reporting_etiquette When opening up the new report, please feel free to subscribe me to it. As well, please do not announce in this report you created a new bug report. Thank you for your understanding. Helpful bug reporting tips: https://wiki.ubuntu.com/ReportingBugs -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1310248 Title: [Lenovo Thinkpad X220] wireless switch doesn't generate an acpi event To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1310248/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1310248] Re: [Lenovo Thinkpad X220] wireless switch doesn't generate an acpi event
Here's the awnser of the thinkpad_acpi module maintainer: https://www .mail-archive.com/platform-driver-x86@vger.kernel.org/msg05285.html To summarize: The patch itself is technically correct and leads to the old behaviour. But he'd prefer not to apply the patch, because the event is already propagated through the thinkpad_acpi input device. The input device is located at /dev/input/by-path/platform- thinkpad_acpi-event and toggling the switch twice raises the following events: $ sudo input-events 6 /dev/input/event6 bustype : BUS_HOST vendor : 0x17aa product : 0x5054 version : 16641 name: ThinkPad Extra Buttons phys: thinkpad_acpi/input0 bits ev : EV_SYN EV_KEY EV_MSC EV_SW waiting for events 19:07:04.424098: EV_SW SW_RADIO 0 19:07:04.424098: EV_SYN code=0 value=0 19:07:05.982584: EV_SW SW_RADIO 1 19:07:05.982584: EV_SYN code=0 value=0 I haven't figured out yet, how I can make use of the input event device. There doesn't seem to be any scriptable daemon listening to it. Alternativley one can use rfkill uevents via the udev daemon. A working rule could be: SUBSYSTEM==rfkill, ATTR{type}==wlan, ENV{RFKILL_STATE}==1, RUN+=/usr/local/bin/toggle-blue I guess this bug can be marked as invalid. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1310248 Title: [Lenovo Thinkpad X220] wireless switch doesn't generate an acpi event To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1310248/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1310248] Re: [Lenovo Thinkpad X220] wireless switch doesn't generate an acpi event
Link to the upstream report: https://www.mail-archive.com/platform- driver-...@vger.kernel.org/msg05283.html -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1310248 Title: [Lenovo Thinkpad X220] wireless switch doesn't generate an acpi event To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1310248/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1310248] Re: [Lenovo Thinkpad X220] wireless switch doesn't generate an acpi event
** Description changed: - $ 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): - - 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 + $ 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 + # 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. + 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 0080 7000 - Thanks. - --- + Upstream URL: https://www.mail-archive.com/platform- + driver-...@vger.kernel.org/msg05283.html + + --- ApportVersion: 2.14.1-0ubuntu3.2 Architecture: amd64 AudioDevicesInUse: - USERPID ACCESS COMMAND - /dev/snd/controlC0: tobias 2256 F pulseaudio - tobias 2324 F pulseaudio + USERPID ACCESS COMMAND + /dev/snd/controlC0: tobias 2256 F pulseaudio + tobias 2324 F pulseaudio CurrentDesktop: KDE DistroRelease: Ubuntu 14.04 InstallationDate: Installed on 2013-03-24 (438 days ago) InstallationMedia: Kubuntu 12.10 Quantal Quetzal - Release amd64 (20121017.1) Lsusb: - Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub - Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub - Bus 001 Device 003: ID 04f2:b217 Chicony Electronics Co., Ltd Lenovo Integrated Camera (0.3MP) - Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub - Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub + Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub + Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub + Bus 001 Device 003: ID 04f2:b217 Chicony Electronics Co., Ltd Lenovo Integrated Camera (0.3MP) + Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub + Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub MachineType: LENOVO 4291ZPK Package: linux (not installed) ProcFB: 0 inteldrmfb ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.13.0-27-generic root=UUID=9a62bd25-d065-4486-a18d-5a3f2a6c3473 ro quiet splash vt.handoff=7 ProcVersionSignature: Ubuntu 3.13.0-27.50-generic 3.13.11 RelatedPackageVersions: - linux-restricted-modules-3.13.0-27-generic N/A - linux-backports-modules-3.13.0-27-generic N/A - linux-firmware 1.127.2 + linux-restricted-modules-3.13.0-27-generic N/A + linux-backports-modules-3.13.0-27-generic N/A + linux-firmware 1.127.2 Tags: trusty Uname: Linux 3.13.0-27-generic x86_64 UpgradeStatus: Upgraded to trusty on 2014-04-18 (48 days ago) UserGroups: adm cdrom dialout dip lpadmin plugdev sambashare sudo vboxusers _MarkForUpload: True dmi.bios.date: 07/18/2013 dmi.bios.vendor: LENOVO dmi.bios.version: 8DET69WW (1.39 ) dmi.board.asset.tag: Not Available dmi.board.name: 4291ZPK dmi.board.vendor: LENOVO dmi.board.version: Not Available dmi.chassis.asset.tag: No Asset Information dmi.chassis.type: 10 dmi.chassis.vendor: LENOVO dmi.chassis.version: Not Available dmi.modalias: dmi:bvnLENOVO:bvr8DET69WW(1.39):bd07/18/2013:svnLENOVO:pn4291ZPK:pvrThinkPadX220:rvnLENOVO:rn4291ZPK:rvrNotAvailable:cvnLENOVO:ct10:cvrNotAvailable: dmi.product.name: 4291ZPK dmi.product.version: ThinkPad X220 dmi.sys.vendor: LENOVO -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1310248 Title: [Lenovo Thinkpad X220] wireless switch doesn't generate an acpi event To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1310248/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1310248] Re: [Lenovo Thinkpad X220] wireless switch doesn't generate an acpi event
Ok, the first commit introducing the issue is https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=1696d9dc57e062ce5200f6a42a6aaada15b434bb Taking a look at the subsequent commit at https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=8b5301c5ff2568236c6e3b3d0c93a3e4194ec3f5 makes me think, this is an intentional behaviour. ** Tags removed: needs-bisect -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1310248 Title: [Lenovo Thinkpad X220] wireless switch doesn't generate an acpi event To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1310248/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1310248] Re: [Lenovo Thinkpad X220] wireless switch doesn't generate an acpi event
I've taken a deeper look into the thinkpad acpi module and found a quite simple solution, which doesnt require deprecated APIs. The patch is tested against upstream kernel 3.15-rc8 as well as Ubuntu-3.13.0-29.53. ** Patch added: 0001-Make-Thinkpad-hw-wireless-switch-propagate-an-acpi-e.patch https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1310248/+attachment/4127780/+files/0001-Make-Thinkpad-hw-wireless-switch-propagate-an-acpi-e.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1310248 Title: [Lenovo Thinkpad X220] wireless switch doesn't generate an acpi event To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1310248/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1310248] Re: [Lenovo Thinkpad X220] wireless switch doesn't generate an acpi event
Tobias Stegmann, the issue you are reporting is an upstream one. Could you please report this problem through the appropriate channel by following the instructions _verbatim_ at https://wiki.ubuntu.com/Bugs/Upstream/kernel ? Please provide a direct URL to your e-mail to the mailing list once you have made it so that it may be tracked. Thank you for your understanding. ** Tags added: bisect-done ** Changed in: linux (Ubuntu) Status: Incomplete = Triaged -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1310248 Title: [Lenovo Thinkpad X220] wireless switch doesn't generate an acpi event To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1310248/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1310248] Re: [Lenovo Thinkpad X220] wireless switch doesn't generate an acpi event
** Tags added: patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1310248 Title: [Lenovo Thinkpad X220] wireless switch doesn't generate an acpi event To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1310248/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1310248] Re: [Lenovo Thinkpad X220] wireless switch doesn't generate an acpi event
Hi, unfortunatly the issue has not been fixed in the latest upstream kernel. The kernel version I used to test was: $ uname -r 3.15.0-031500rc8-generic For the test I ran acpi_listen and toggled the switch numerous times. Out of curiosity I also checked some older kernel images: 3.11.10-03111010-generic, which is the last 3.11 iteration, is working fine: $ acpi_listen -t 10 ibm/hotkey HKEY 0080 7000 and its broken with 3.12.0-031200rc1-generic, which is the first 3.12 release candiate. I hope this helps to track it down. ** Tags added: kernel-bug-exists-upstream kernel-bug-exists- upstream-3.12-rc1 kernel-bug-exists-upstream-3.15-rc8 ** Changed in: linux (Ubuntu) Status: Incomplete = Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1310248 Title: [Lenovo Thinkpad X220] wireless switch doesn't generate an acpi event To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1310248/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1310248] Re: [Lenovo Thinkpad X220] wireless switch doesn't generate an acpi event
Tobias Stegmann, the next step is to fully commit bisect the kernel in order to identify the offending commit. Could you please do this following https://wiki.ubuntu.com/Kernel/KernelBisection ? ** Tags removed: kernel-bug-exists-upstream-3.12-rc1 ** Tags added: needs-bisect regression-release ** Changed in: linux (Ubuntu) Status: Confirmed = Incomplete -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1310248 Title: [Lenovo Thinkpad X220] wireless switch doesn't generate an acpi event To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1310248/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs