toshiba_acpi: Unknown key 158
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | linux (Ubuntu) |
Medium
|
Joseph Salisbury | ||
Bug Description
If I press the wireless key (see attached image) on my Toshiba P50W I get the following error in dmesg:
toshiba_acpi: Unknown key 158
I'd expect this key to toggle flight mode.
---
ApportVersion: 2.15.1-0ubuntu4
Architecture: amd64
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/
/dev/snd/
CurrentDesktop: Unity
DistroRelease: Ubuntu 15.04
HibernationDevice: RESUME=
InstallationDate: Installed on 2013-12-26 (400 days ago)
InstallationMedia: Ubuntu 13.10 "Saucy Salamander" - Release amd64 (20131016.1)
MachineType: TOSHIBA Satellite P50W-B
NonfreeKernelMo
Package: linux (not installed)
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=
ProcVersionSign
RelatedPackageV
linux-
linux-
linux-firmware 1.141
Tags: vivid
Uname: Linux 3.18.0-11-generic x86_64
UpgradeStatus: Upgraded to vivid on 2013-12-26 (400 days ago)
UserGroups: adm autopilot cdrom dip libvirtd lpadmin netdev plugdev sambashare sudo wireshark
_MarkForUpload: True
dmi.bios.date: 08/08/2014
dmi.bios.vendor: INSYDE Corp.
dmi.bios.version: 1.40
dmi.board.
dmi.board.name: Type2 - Board Product Name1
dmi.board.vendor: Type2 - Board Vendor Name1
dmi.board.version: Type2 - Board Version
dmi.chassis.
dmi.chassis.type: 10
dmi.chassis.vendor: OEM Chassis ManuFacturer
dmi.chassis.
dmi.modalias: dmi:bvnINSYDECo
dmi.product.name: Satellite P50W-B
dmi.product.
dmi.sys.vendor: TOSHIBA
| Robert Ancell (robert-ancell) wrote : | #1 |
| Robert Ancell (robert-ancell) wrote : | #2 |
| Robert Ancell (robert-ancell) wrote : | #3 |
Looking at [1] it does seem to be upstream as commit fec278a1ddcb060
It would be nice to have this backported.
This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:
apport-collect 1416277
and then change the status of the bug to 'Confirmed'.
If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.
This change has been made by an automated script, maintained by the Ubuntu Kernel Team.
| Changed in linux (Ubuntu): | |
| status: | New → Incomplete |
apport information
| tags: | added: apport-collected vivid |
| description: | updated |
apport information
| Robert Ancell (robert-ancell) wrote : CRDA.txt | #7 |
apport information
apport information
apport information
apport information
apport information
apport information
apport information
apport information
apport information
apport information
apport information
apport information
| Changed in linux (Ubuntu): | |
| status: | Incomplete → Confirmed |
apport information
apport information
| Robert Ancell (robert-ancell) wrote : | #21 |
Also two keys on this laptop have incorrect behaviour - see bug 1416302.
| Joseph Salisbury (jsalisbury) wrote : | #22 |
Would it be possible for you to test the latest upstream kernel? Refer to https:/
If this bug is fixed in the mainline kernel, please add the following tag 'kernel-
If the mainline kernel does not fix this bug, please add the tag: 'kernel-
If you are unable to test the mainline kernel, for example it will not boot, please add the tag: 'kernel-
Once testing of the upstream kernel is complete, please mark this bug as "Confirmed".
Thanks in advance.
[0] http://
| Changed in linux (Ubuntu): | |
| importance: | Undecided → Medium |
| status: | Confirmed → Incomplete |
| Robert Ancell (robert-ancell) wrote : | #23 |
Tested with kernel from http://
$ uname -r
3.19.0-
Pressing rfkill button has no effect and generates unknown key warning in dmesg.
| tags: | added: kernel-bug-exists-upstream |
| Changed in linux (Ubuntu): | |
| status: | Incomplete → Confirmed |
| Joseph Salisbury (jsalisbury) wrote : | #24 |
Commit fec278a has been in mainline as of v3.14-rc1. So the mainline kernel tested in #23 should have had this commit.
It was also added by your patch in bug 1416302, but in toshiba_
Can you you test the wireless key when you test the kernels for bug 1416302? If it also fixes this bug, that patch should take care of both bugs.
| tags: | added: kernel-da-key |
| Robert Ancell (robert-ancell) wrote : | #25 |
Tested both kernels in bug 1416302 and the wireless key seems to be generating an appropriate event with these.
| Robert Ancell (robert-ancell) wrote : | #26 |
I double checked 3.19.0-
| Joseph Salisbury (jsalisbury) wrote : | #27 |
Just to confirm:
This test kernel fixed both bugs:
Vivid: http://
This test kernel only fixed bug1416302 and not bug 1416277:
mainline: http://
| Robert Ancell (robert-ancell) wrote : | #28 |
Both "Vivid" and "mainline" generated appropriate ACPI events for the wireless key. I think this is because:
- In "Vivid" we added a check for this hardware variant and use the alt keymap which I added the wireless key to
- In "mainline" we don't use the alt keymap but commit fec278a means the standard keymap handles the wireless key
- In [1] we don't get the ACPI event, which is strange because I'd expect the same behaviour as "mainline". Which suggests to me this kernel doesn't have change fec278a?
[1] http://
| Joseph Salisbury (jsalisbury) wrote : | #29 |
The links I posted in comment #27 are the Vivid and Mainline trees that had the patch you created applied.
The Mainline kernel I posted, is the v3.19-rc6 kernel that already has commit fec278a, but also has your patch. This means the wireless key is defined in both the alt and standard keymaps. It also means it has the DMI_MATCH to use the alt map for the P50W model.
Like you say, it is strange that the vanilla mainline kernel does not generate the wireless event when it is defined in the standard keymap but not the alt keymap. I confirmed that the vanilla mainline kernel does have commit fec278a. It's been in mainline as of 3.14-rc1:
git describe --contains fec278a
v3.14-rc1~54^2~2
| Enzo (zcappa) wrote : | #30 |
I have a Toshiba Satellite L845, that suffers the same issue descrived here. I've tried with the kernels listed here and also the latest Mainline, none worked.
But I was able to solve it wit this patch:
diff --git a/drivers/
index 76441dc..f3c488a 100644
--- a/drivers/
+++ b/drivers/
@@ -222,6 +222,12 @@ static const struct dmi_system_id toshiba_
},
},
+ {
+ .matches = {
+ DMI_MATCH(
+ DMI_MATCH(
+ },
+ },
{}
};
The patch at #2 converts 158 to hex (0x9e) that's why it didn't work for me. Also, the alternative mapping already has the code 158 it at line 236:
{ KE_KEY, 0x158, { KEY_WLAN } },
So, only adding the DMI rule in order to use the alt mapping does the trick (no need for the patch at #2)
| Joseph Salisbury (jsalisbury) wrote : | #31 |
I created a couple more test kernels, which include a patch for both the Toshiba P50W and L845 added to the alt keymap. I created a vivid test kernel with the patch applied, as well as a mainline kernel with the patch. They can be downloaded from:
vivid: http://
patched mainline: http://
Note for the vivid kernel, you will need to install both the linux-image and linux-image-extra .deb packages.
| Joseph Salisbury (jsalisbury) wrote : | #32 |
| tags: | added: patch |
| Enzo (zcappa) wrote : | #33 |
I've tested the Vivid kernel and works fine in my Satellite L845. I'll try to test the Mainline later.
| Changed in linux (Ubuntu): | |
| status: | Confirmed → Triaged |
| Robert Ancell (robert-ancell) wrote : | #34 |
Running both 3.18.0-
| Joseph Salisbury (jsalisbury) wrote : | #35 |
Thanks for testing. I'll send this patch upstream and SRU to Ubuntu.
| Changed in linux (Ubuntu): | |
| assignee: | nobody → Joseph Salisbury (jsalisbury) |
| status: | Triaged → In Progress |
| Joseph Salisbury (jsalisbury) wrote : | #36 |
@Robert, does this test kernel fix both this bug and bug 1416302 ?
| Robert Ancell (robert-ancell) wrote : | #37 |
@Joseph. Yes; both kernels seem to generate appropriate events for the wireless, video mode and touchpad keys.
| Joseph Salisbury (jsalisbury) wrote : | #38 |
Thanks for the update, Robert. I broke the patch out into two separate patches, one for each Toshiba models. I'll send the patches upstream and cc them to stable. If upstream gives the thumbs up, I'll also SRU them to the Ubuntu kernels.
The two models being the P50-W for this bug. I created a separate bug for the L845 model, reported by @Enzo, which is bug 1428302
| Joseph Salisbury (jsalisbury) wrote : | #39 |
I sent the patches upstream[0]. Upstream asked if we could test two new patches that will replace the need for DMI matching. I build a mainline test kernel with these two patches. It can be downloaded from:
http://
Robert and Enzo, can you test this kernel, so we can provide some feedback to upstream?
Thanks in advance!
| Enzo (zcappa) wrote : | #40 |
Sorry, but unfortunately I don't have the laptop anymore...
| Robert Ancell (robert-ancell) wrote : | #41 |
$ uname -r
4.0.0-040000rc2
$ acpi_listen
video/brightnes
video/brightnessup BRTUP 00000086 00000000
video/switchmode VMOD 00000080 00000000 K
cd/prev CDPREV 00000080 00000000 K
cd/play CDPLAY 00000080 00000000 K
cd/next CDNEXT 00000080 00000000 K
button/volumedown VOLDN 00000080 00000000 K
button/volumeup VOLUP 00000080 00000000 K
button/mute MUTE 00000080 00000000 K
button/mute MUTE 00000080 00000000 K
button/wlan WLAN 00000080 00000000 K
button/volumedown VOLDN 00000080 00000000 K
button/volumeup VOLUP 00000080 00000000 K
i.e. all keys working. This patch looks a lot cleaner :)
| Joseph Salisbury (jsalisbury) wrote : | #42 |
Great. Thanks for testing, Robert. I'll report the results back to upstream.
| Joseph Salisbury (jsalisbury) wrote : | #43 |
Upstream will have one addition revision of these patches before submitting to mainline and stable. I'll build a test kernel when it is available and post a link to it.
Thanks again for all the help!
| German (namreg) wrote : | #44 |
This bug affects me, I have a Toshiba Satellite L845D.
| Enzo (zcappa) wrote : | #45 |
German, please test the kernel provided in this bugs to see if they fix your problem. You can find them in the comment #39.
| Robert Ancell (robert-ancell) wrote : | #46 |
I noticed today that my touchpad toggle button is not working (in Artful). I'm not sure if I correctly tested it because it doesn't show in comment #41.
When I press the key I get:
$ sudo acpi_listen
TOS1900:00 00000080 0000013f
TOS1900:00 00000080 000001bf
Which suggests this model (Toshiba P50W) uses the 0x13f from toshiba_
| Robert Ancell (robert-ancell) wrote : | #47 |
Perhaps also worth mentioning that the zoom in / zoom out keys don't seem to generate a named event:
$ sudo acpi_listen
TOS1900:00 00000080 000001ff
TOS1900:00 00000080 00000102
TOS1900:00 00000080 00000182
TOS1900:00 00000080 00000103
TOS1900:00 00000080 00000183
TOS1900:00 00000080 00000100
(The 1ff and 100 events are the alt key)
These codes are in both the toshiba_acpi_keymap and toshiba_
| Joseph Salisbury (jsalisbury) wrote : | #48 |
I guess it's been a while since I last posted. Can those affected by this bug test the latest 4.13 kernel to see if the fix ever made it upstream? The kernel can be downloaded from:
| Changed in linux (Ubuntu): | |
| status: | In Progress → Incomplete |


There seems to be a patch for this already [1] - it might just need someone with commit privileges to push it.
[1] https:/ /lkml.org/ lkml/2014/ 1/14/142