asus-laptop module has incomplete support for hotkeys on Asus

Bug #268429 reported by Mackenzie Morgan
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
acpi-support (Ubuntu)
Invalid
Medium
Unassigned
linux (Ubuntu)
Expired
Low
Unassigned

Bug Description

Binary package hint: hal-info

Laptop model:
Asus Z3E v 1.0

F4 key has an Internet Explorer logo, but does not launch Firefox

ACPI event registered:
"hotkey ATKD 00000051 0000000e"

Reported in:
Ubuntu 8.04.1
x86_64

hal-info version: 20080508+git20080601-0ubuntu0.8.04

Changed in hal-info:
importance: Undecided → Medium
Revision history for this message
tuxo (beat-fasel) wrote :

I can confirm this bug.

Revision history for this message
Mackenzie Morgan (maco.m) wrote :

Unmarking as duplicate since acpi-support is no longer part of Jaunty and it also is still broken in Jaunty.

Revision history for this message
Martin Pitt (pitti) wrote :

Can you please walk through https://wiki.ubuntu.com/Hotkeys/Troubleshooting and check whether this key produces a key code as well? Please also do "lshal > /tmp/hal.txt" and attach /tmp/hal.txt here. Thank you!

Changed in hal-info:
status: New → Incomplete
assignee: nobody → pitti
Revision history for this message
Mackenzie Morgan (maco.m) wrote :

There is no output for this key in xev.

Changed in hal-info:
status: Incomplete → New
Revision history for this message
Martin Pitt (pitti) wrote :

Right, I meant installing input-utils and checking input-events in a VT (Ctrl+Alt+F1). This needs a hal-info mapping, but we need to find out which scan code it produces.

Changed in hal-info:
status: New → Incomplete
Revision history for this message
Mackenzie Morgan (maco.m) wrote : Re: [Bug 268429] Re: Web browser Fn key on Asus Z37E needs hal-info quirk

input-events doesn't register any keypress

Revision history for this message
Martin Pitt (pitti) wrote : Re: Web browser Fn key on Asus Z37E needs hal-info quirk

Can you please go further down the troubleshooting list then, and check whether the key produces an ACPI event?

Revision history for this message
Mackenzie Morgan (maco.m) wrote :

That's in the original report, but I'll copy and paste it down into this comment...
ACPI event registered:
"hotkey ATKD 00000051 0000000e"

Revision history for this message
Martin Pitt (pitti) wrote :

Ah, indeed, sorry.

So this leaves it to acpi-support to convert this ACPI event to a keypress. And indeed it already makes an attempt to do so in events/asus-internet, with the correct keycode:

event=hotkey (ATKD|HOTK) 00000051
action=/etc/acpi/webbtn.sh

and webbtn.sh uses "acpi_fakekey $KEY_WWW".

Revision history for this message
Martin Pitt (pitti) wrote : Re: Web browser Fn key on Asus Z37E does not work

Debugged with Mackenzie that the trigger works (by running acpid in foreground), and apparently acpi_fakekey is broken.

Revision history for this message
Martin Pitt (pitti) wrote : Re: acpi_fakekey does not work in jaunty

Debugged further with Mackenzie. acpi_fakekey opens the correct /dev/input/ device, but it doesn't actually work.

I confirmed this on my system:

  sudo acpi_fakekey 150

it also opens the right /dev/input/event4, and write()s to it, but I do not get any actual event back (with input-events).

Changed in acpi-support:
assignee: pitti → nobody
status: Incomplete → Triaged
Revision history for this message
Steve Langasek (vorlon) wrote :

acpi_fakekey is supposed to be eliminated in jaunty altogether, in favor of getting kernel acpi drivers in place that generate input events. See https://wiki.ubuntu.com/HotkeyArchitectureSpec.

Revision history for this message
Mackenzie Morgan (maco.m) wrote :

Steve:
After you said that in the other bug, I un-duped this one from the fakekey bug. I would *like* to do whatever debugging is necessary to get it working in kernelspace, but Martin said he doesn't know how things work in kernelspace and this was as far as he could get me.

Revision history for this message
Steve Langasek (vorlon) wrote :

Mackenzie,

Given the work required to get acpi_fakekey to work reliably in jaunty, I think it would actually be easier to get an ACPI kernel driver for your platform. There are several existing examples of this available: thinkpad_acpi and sony-laptop appear to work for people, and there is already an asus-laptop module in the kernel that probably just needs to be extended to handle this case.

Revision history for this message
Mackenzie Morgan (maco.m) wrote : Re: [Bug 268429] Re: acpi_fakekey does not work in jaunty

So I can I make this a kernel bug about the asus-laptop module? I've
got 2 hotkeys that need to be added to that module.

Revision history for this message
Mackenzie Morgan (maco.m) wrote :

Doing that...

 summary "asus-laptop module has incomplete support for hotkeys on Asus
Z37E"
 affects ubuntu/linux

Revision history for this message
Mackenzie Morgan (maco.m) wrote :
Andy Whitcroft (apw)
Changed in linux:
assignee: nobody → apw
status: New → In Progress
Andy Whitcroft (apw)
Changed in linux:
importance: Undecided → Low
Revision history for this message
Steve Langasek (vorlon) wrote :

marking invalid for acpi-support, since this should be handled in the kernel module.

Changed in acpi-support (Ubuntu):
status: Triaged → Invalid
Revision history for this message
Binnette (binnette) wrote :

Hello,

There is the same mater on my Asus F3JV. The real hot key for Screen Lock is Fn+Suppr.

== There is also a lot of bugs with all my hot-keys : ==

=== Config ===
* PC : Asus F3JV (alias Z53JV-AP030M)
* OS : Ubuntu 9.10 Karmic Koala

=== No event in xev ===
* Fn+F2 (Wifi on/off)
* Fn+F5 (Brightness down)
* Fn+F6 (Brightness up)
* Fn+F9 (Touchpad on/off)

=== Errors in log file ===
* Fn+F2
no error message

* Fn+F5
kernel: [ 2569.550813] ACPI Error (psargs-0359): [\_SB_.PCI0.P0P2.VGA_.LCDD] Namespace lookup failure, AE_NOT_FOUND
kernel: [ 2569.550831] ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PCI0.SBRG.EC0_._Q0E] (Node f701acf0), AE_NOT_FOUND

* Fn+F6
kernel: [ 2656.167994] ACPI Error (psargs-0359): [\_SB_.PCI0.P0P2.VGA_.LCDD] Namespace lookup failure, AE_NOT_FOUND
kernel: [ 2656.168036] ACPI Error (psparse-0537): Method parse/execution failed [\_SB_.PCI0.SBRG.EC0_._Q0F] (Node f701ad08), AE_NOT_FOUND

* Fn+F9
no error message

=== acpi_listen events ===
* Fn+F1 (Zzzz) : button/sleep SLPB 00000080
* Fn+F2 (wifi on/off) : nothing
* Fn+F3 (mail) : hotkey ATKD 00000050
* Fn+F4 (internet) : hotkey ATKD 00000051
* Fn+F5 (Brightness down) : nothing
* Fn+F6 (Brightness up) : nothing
* Fn+F7 (screen light off) : hotkey ATKD 00000034
* Fn+F7 (screen light on) : hotkey ATKD 00000033
* Fn+F8 (LCD/CRT) : hotkey ATKD 00000061
* Fn+F9 (touchpad on/off) : hotkey ATKD 0000006b
* Fn+F10 (mute) : hotkey ATKD 00000032
* Fn+F11 (volume down) : hotkey ATKD 00000031
* Fn+F12 (volume up) : hotkey ATKD 00000030
* Fn+espace (screen lock) : hotkey ATKD 0000005c
* Fn+← (previous) : hotkey ATKD 00000040
* Fn+→ (next) : hotkey ATKD 00000041
* Fn+↑ (stop) : hotkey ATKD 00000043
* Fn+↓ (play/pause) : hotkey ATKD 00000045

== Question ==

Do i have to create a new bug in launchpad ? Please answer me by mail. Also if you can help me, i never report a bug on launchpad.

Thanks ! ;-)

Revision history for this message
Rolf Leggewie (r0lf) wrote :

Can somebody affected by this bug please report it upstream to http://bugzilla.kernel.org/

I don't think Ubuntu can fix this bug as fast as upstream can. Please test the steps lined out in https://wiki.ubuntu.com/Hotkeys/Troubleshooting against a lucid live CD. Let me know if you need help.

Revision history for this message
Rolf Leggewie (r0lf) wrote :

When you've done that, please post the link to the ticket here.

Andy Whitcroft (apw)
Changed in linux (Ubuntu):
assignee: Andy Whitcroft (apw) → nobody
Revision history for this message
penalvch (penalvch) wrote :

Mackenzie Morgan, this bug was reported a while ago and there hasn't been any activity in it recently. We were wondering if this is still an issue? If so, could you please test for this with the latest development release of Ubuntu? ISO images are available from http://cdimage.ubuntu.com/daily-live/current/ .

If it remains an issue, could you please run the following command in the development release from a Terminal (Applications->Accessories->Terminal), as it will automatically gather and attach updated debug information to this report:

apport-collect -p linux <replace-with-bug-number>

Also, could you please test the latest upstream kernel available (not the daily folder) following https://wiki.ubuntu.com/KernelMainlineBuilds ? It will allow additional upstream developers to examine the issue. Once you've tested the upstream kernel, please comment on which kernel version specifically you tested. If this bug is fixed in the mainline kernel, please add the following tags:
kernel-fixed-upstream
kernel-fixed-upstream-VERSION-NUMBER

where VERSION-NUMBER is the version number of the kernel you tested. For example:
kernel-fixed-upstream-v3.13-rc3

This can be done by clicking on the yellow circle with a black pencil icon next to the word Tags located at the bottom of the bug description. As well, please remove the tag:
needs-upstream-testing

If the mainline kernel does not fix this bug, please add the following tags:
kernel-bug-exists-upstream
kernel-bug-exists-upstream-VERSION-NUMBER

As well, please remove the tag:
needs-upstream-testing

Once testing of the upstream kernel is complete, please mark this bug's Status as Confirmed. Please let us know your results. Thank you for your understanding.

tags: added: needs-kernel-logs needs-upstream-testing
Changed in linux (Ubuntu):
status: In Progress → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for linux (Ubuntu) because there has been no activity for 60 days.]

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

Other bug subscribers

Bug attachments

Remote bug watches

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