"eeepc_wmi: Unknown key XX pressed" when pressing Fn+F keys on Asus Eee Pc 1016p

Bug #689393 reported by Spyros Blanas
24
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Fix Released
Low
Keng-Yu Lin
Maverick
Fix Released
Low
Keng-Yu Lin

Bug Description

I have an Asus Eee Pc 1016p with Ubuntu 10.10 (fresh install) and many Fn+F key combinations don't work. When the key combination is pressed, the line "eeepc_wmi: Unknown key XX pressed" appears at /var/log/messages.

Specifically:
Fn+F2 (turn wireless off) reports "eeepc_wmi: Unknown key 88 pressed".
Fn+F3 (disable touchpad) reports "eeepc_wmi: Unknown key 6b pressed".
Fn+F4 (monitor resolution) reports "eeepc_wmi: Unknown key e1 pressed".
Fn+F7 (monitor off) reports "eeepc_wmi: Unknown key e9 pressed".
Fn+F9 (start system monitor/task manager) reports "eeepc_wmi: Unknown key e0 pressed".

This seems related to bugs #662365 and #680741, although these bugs have been reported for different computers of the same Asus Eee Pc line.

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: linux-image-2.6.35-23-generic 2.6.35-23.41
Regression: No
Reproducible: Yes
ProcVersionSignature: Ubuntu 2.6.35-23.41-generic 2.6.35.7
Uname: Linux 2.6.35-23-generic i686
NonfreeKernelModules: wl
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.23.
AplayDevices:
 **** List of PLAYBACK Hardware Devices ****
 card 0: Intel [HDA Intel], device 0: ALC259 Analog [ALC259 Analog]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
Architecture: i386
ArecordDevices:
 **** List of CAPTURE Hardware Devices ****
 card 0: Intel [HDA Intel], device 0: ALC259 Analog [ALC259 Analog]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: spyros 1369 F.... pulseaudio
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
 Card hw:0 'Intel'/'HDA Intel at 0xf7cf8000 irq 46'
   Mixer name : 'Realtek ALC259'
   Components : 'HDA:10ec0269,1043841c,00100100'
   Controls : 11
   Simple ctrls : 7
Date: Sun Dec 12 14:10:24 2010
HibernationDevice: RESUME=UUID=e878dd14-cfae-40e8-8541-735181f10262
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Beta i386 (20100901.1)
MachineType: ASUSTeK Computer INC. 1016P
ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.35-23-generic root=UUID=45e732e5-e3df-4fde-9fa3-ee821db9d350 ro quiet splash
ProcEnviron:
 LANG=en_US.utf8
 SHELL=/bin/bash
RelatedPackageVersions: linux-firmware 1.38
RfKill:
 0: hci0: Bluetooth
  Soft blocked: no
  Hard blocked: no
SourcePackage: linux
dmi.bios.date: 06/12/2010
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 0502
dmi.board.asset.tag: To Be Filled By O.E.M.
dmi.board.name: 1015PE
dmi.board.vendor: ASUSTeK Computer INC.
dmi.board.version: x.xx
dmi.chassis.asset.tag: 0x00000000
dmi.chassis.type: 10
dmi.chassis.vendor: ASUSTeK Computer INC.
dmi.chassis.version: x.x
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr0502:bd06/12/2010:svnASUSTeKComputerINC.:pn1016P:pvrx.x:rvnASUSTeKComputerINC.:rn1015PE:rvrx.xx:cvnASUSTeKComputerINC.:ct10:cvrx.x:
dmi.product.name: 1016P
dmi.product.version: x.x
dmi.sys.vendor: ASUSTeK Computer INC.

Revision history for this message
Spyros Blanas (cid-e) wrote :
Keng-Yu Lin (lexical)
Changed in linux (Ubuntu):
status: New → Confirmed
importance: Undecided → Low
Revision history for this message
Keng-Yu Lin (lexical) wrote :

For WLAN key, someone has dealt with that in bug 662365.

Changed in linux (Ubuntu):
assignee: nobody → Keng-Yü Lin (lexical)
Revision history for this message
Keng-Yu Lin (lexical) wrote :

Besides the wifi toggle, could you try the upstream version of eeepc-wmi I put in http://people.canonical.com/~lexical/bugs/lp689393/ and try if other keys work.

Download the files there and execute commands like these:
`make`
`sudo rmmod eeepc-wmi`
`sudo insmod ./eeepc-wmi.ko`

Revision history for this message
Keng-Yu Lin (lexical) wrote :

It interests me more if Fn+F3 (disable touchpad) works. Please report if the hotkey works.

Keng-Yu Lin (lexical)
Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Keng-Yu Lin (lexical)
Changed in linux (Ubuntu):
status: Incomplete → Triaged
Keng-Yu Lin (lexical)
Changed in linux (Ubuntu):
status: Triaged → In Progress
Revision history for this message
Keng-Yu Lin (lexical) wrote :

This bug is found on 3 eeepc laptops I can reach. Upstream already contains most of the fix. Worth (and *needs*) carrying in Maverick.

Changed in linux (Ubuntu Maverick):
importance: Undecided → Low
Keng-Yu Lin (lexical)
Changed in linux (Ubuntu Maverick):
assignee: nobody → Keng-Yü Lin (lexical)
status: New → Triaged
Keng-Yu Lin (lexical)
Changed in linux (Ubuntu):
status: In Progress → Fix Committed
Changed in linux (Ubuntu Maverick):
status: Triaged → In Progress
Chris Van Hoof (vanhoof)
tags: added: hwe-blocker
Revision history for this message
Keng-Yu Lin (lexical) wrote :

A dkms package with the patched eeepc-wmi driver should fix this bug: https://launchpad.net/~lexical/+archive/eeepc

Revision history for this message
Shang Wu (shangwu) wrote :

Tested on a 1015PX model, Fn + F7 still not work as expected. It gives the following error in the syslog:

Mar 3 00:09:22 ubuntu-1015PX kernel: [ 634.256677] keyboard: can't emulate rawmode for keycode 245
Mar 3 00:09:22 ubuntu-1015PX kernel: [ 634.256725] keyboard: can't emulate rawmode for keycode 245

As for the Fn + F4 & Fn + F9 which needs to be define in the Keyboard Shortcut by the user, so everything else works as expected.

Tim Gardner (timg-tpi)
Changed in linux (Ubuntu Maverick):
status: In Progress → Fix Committed
Revision history for this message
Keng-Yu Lin (lexical) wrote :

SRU Justification

Impact: Several hotkey key codes are not added in the keymap of eeepc-wmi
driver. This makes these hotkeys unusable.

Fix: This bug can be fixed by adding the correct mapping in the keymap.
Three patches are carried from upstream. There is a sauce patch made by me
to make the touchpad toggle hotkey and OSD work in Maverick user space.

Testcase: Tested on Asus EEE PC 1011PX

Revision history for this message
Keng-Yu Lin (lexical) wrote :

@shang
  Fn+F7 is the hotkey to turn off the monitor. With the SRU, the key code is gotten but xev shows no ksym assigned.
  After looking at /usr/share/X11/xkb/symbols/inet, the related key codes are not assigned to a ksym.

// key <I252> { [ ] }; // KEY_BRIGHTNESS_ZERO -- brightness off
// key <I253> { [ ] }; // KEY_DISPLAY_OFF -- turn off display

  I wonder if X or gnome (most probably g-p-m) has dealt with this function (monitor off).

  However, I will suggest to report this as another bug for a user space expert to investigate.

Revision history for this message
Spyros Blanas (cid-e) wrote :

I used the dkms module at https://launchpad.net/~lexical/+archive/eeepc and I can confirm that all keys are now seen from userspace. Fn+F3 toggles the touchpad and is the only functionality that "just works". For Fn+F7, I see the same output as Shang Wu.

`xev` sees the following ksyms:
Fn+F2 as XF86WLAN
Fn+F4 as XF86Launch5
Fn+F7 as NoSymbol
Fn+F9 as XF86Launch1

I noticed that the XF86WLAN keysym issue has been reported as bug 385646.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package linux - 2.6.38-6.33

---------------
linux (2.6.38-6.33) natty; urgency=low

  [ Andy Whitcroft ]

  * d-i -- enable speakup-modules udeb
    - LP: #672699
  * rebase to 493f3358cb289ccf716c5a14fa5bb52ab75943e5
  * [Config] debian PPC64 configuration
  * [Config] cleanup powerpc config fixing unexpected inconsistancies
  * [Config] resync ppc64 configuration
  * SAUCE: match up ENTRY/END naming for 32/64 bit
  * rebase to fb62c00a6d8942775abc23d1621db1252e2d93d1
  * [Config] update configs after rebase to
    fb62c00a6d8942775abc23d1621db1252e2d93d1
  * [Config] pps_gen_parport no longer built

  [ Corentin Chary ]

  * SAUCE: (drop after 2.6.38) eeepc-wmi: reorder keymap
    - LP: #689393
  * SAUCE: (drop after 2.6.38) eeepc-wmi: add wlan key found on 1015P
    - LP: #689393

  [ John Johansen ]

  * SAUCE: Fix aufs calling of security_path_mknod
    - LP: #724456

  [ Kees Cook ]

  * SAUCE: proc: hide kernel addresses via %pK in /proc/<pid>/stack

  [ Tim Gardner ]

  * rebase to 2.6.38-rc7

  [ Upstream Kernel Changes ]

  * Revert "drm/i915: fix corruptions on i8xx due to relaxed fencing"

  [ Major Kernel Changes ]

  * rebase from v2.6.38-rc6 to v2.6.38-rc7 +
    fb62c00a6d8942775abc23d1621db1252e2d93d1
    - LP: #721389
    - LP: #722925
    - LP: #723672
    - LP: #723676
    - LP: #715318
 -- Andy Whitcroft <email address hidden> Mon, 07 Mar 2011 15:33:17 +0000

Changed in linux (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Brad Figg (brad-figg) wrote :

This bug is awaiting verification that the kernel in -proposed solves the problem. Please test the kernel and update this bug with the results. If the problem is solved, change the tag 'verification-needed' to 'verification-done'.

If verification is not done by one week from today, this fix will be dropped from the source code, and this bug will be closed.

See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you!

tags: added: verification-needed-maverick
Keng-Yu Lin (lexical)
tags: added: verification-done-maverick
removed: needs-upstream-testing verification-needed-maverick
Revision history for this message
Keng-Yu Lin (lexical) wrote :

The -proposed kernel fixed this bug. I verified on the EEEPC model Ax 1015PX.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package linux - 2.6.35-28.50

---------------
linux (2.6.35-28.50) maverick-proposed; urgency=low

  [ Brad Figg ]

  * Release Tracking Bug
    - LP: #734399

  [ Corentin Chary ]

  * SAUCE: (drop after 2.6.38) eeepc-wmi: reorder keymap
    - LP: #689393
  * SAUCE: (drop after 2.6.38) eeepc-wmi: add wlan key found on 1015P
    - LP: #689393

  [ Keng-Yu Lin ]

  * SAUCE: eeepc-wmi: set the touchpad toggle key code to F22
    - LP: #689393

  [ Tim Gardner ]

  * [Config] CONFIG_BOOT_PRINTK_DELAY=y
    - LP: #733191

  [ Upstream Kernel Changes ]

  * Revert "drm/radeon/bo: add some fallback placements for VRAM only
    objects."
    - LP: #652934
  * eeepc-wmi: add additional hotkeys
    - LP: #689393
  * xen: don't bother to stop other cpus on shutdown/reboot
    - LP: #727814
  * Yama: use thread group leader when creating match
    - LP: #729839
  * mmc: sdhci-pci: add ricoh e822 pci id with device specific quirks
    - LP: #730820
 -- Brad Figg <email address hidden> Sun, 13 Mar 2011 07:01:39 -0700

Changed in linux (Ubuntu Maverick):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.