non-functioning hotkeys on Vaio TX2

Bug #76924 reported by Seb Wills
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
acpi-support (Ubuntu)
Fix Released
Medium
Steve Langasek
linux (Ubuntu)
Won't Fix
Medium
Stefan Bader
linux-source-2.6.22 (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

Binary package hint: hotkey-setup

Most of the fn-hotkeys don't do anything on a Vaio TX2 (specifically I'm using a TX2XP, running Edgy (clean install)).

Here is the run-down. None of these cause anything to appear in /var/log/acpid.

Physical buttons below screen:
 "AV Mode" (text): nothing from showkey, not seen by Keyboard Shortcuts.

 Play/Pause symbol: showkey shows 0xe0 0x22 (down), 0xe0 0xa2 (up). Keyboard Shortcuts displays this as "XF86AudioPause" if you assign it to something, but it is not assigned to Play by default.

 Stop symbol: showkey prints 0xe0 0x24 (down), 0xe0 0x24 (up). Keyboard Shortcuts doesn't see anything.

 Previous track symbol: showkey prints 0xe0 0x10 (down), 0xe0 0x90 (up). Nothing in Keyboard Shortcuts.

 Next track symbol: showkey prints 0xe0 0x19 (down), 0xe0 0x99 (up). Nothing in Keyboard Shortcuts.

 Eject symbol: nothing in showkey or Keyboard Shortcuts.

Physical buttons on front of laptop:

 Mute symbol: nothing in showkey or Keyboard Shortcuts.

 Vol up: ditto
 Vol down: ditto

Fn+F-keys: None of these causes showkey to print anything, nor does Keyboard Shortcuts see them. They are:

 Fn+F5 is "brightness down"
 Fn+F6 is "brightness up"
 Fn+F7 is LCD/external toggle
 Fn+F10 has a magnify symbol
 Fn+F12 has a "zzz -> disk" (hibernate) symbol.

sonypi is mentioned in the boot log, but doesn't appear to load successfully. If I modprobe sonypi, it reports "No such device".

/proc/acpi/sony contains 'brightness' and 'brightness_default'.

'dmidecode -s system-manufacturer' gives "Sony Coroporation".
'dmidecode -s system-product-name' and 'dmidecode -s system-version' print a blank line.

Revision history for this message
unggnu (unggnu) wrote :

I can confirm that but some more things are working.
Since Edgy the multimedia keys like Play/Pause, Stop, Previous and Next work out of the box at least in Kubuntu.
Since Feisty the eject button works too at least in Ubuntu but the other working multimedia keys are not set by default except the Play/Pause-Key which handles the Pause function (better would be the Play/Pause function). They could be easily configured but default like in Kubuntu would be better.
What is not working is the "AV MODE" button, the standard volume up and down keys which all three have the same keycode 159 according to xev.
Completly dead seems to be the crt and magnify key.
FN+F3 and FN+F4 are out of the box usable for volume up and down but it is not painted on the keys and doesn't work under Windows but it is not bad since this could replace the not working default volume keys.
The brightness keys and hibernate button works fine and according to xev the other marked FN keys worked too.
So the only problem are the "AV MODE", volume up, volume down, crt and magnify keys.

Revision history for this message
unggnu (unggnu) wrote :

Multimedia keys are working fine out of the box in Gutsy but the buttons "AV MODE", volume up, volume down, crt and magnify keys are still not working.

Revision history for this message
unggnu (unggnu) wrote :

AV Mode, volume up and volume down have the same keycode. I guess this is a kernel issue.

Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

I'm retargeting this bug towards the upcoming Hardy kernel. I've tagged this as "hardy-kernel-candidate" so that we make sure to retarget this report once the new release is out. However against the linux-source-2.6.22 package this is being marked as "Won't Fix" as it does not meet the criteria for a stable release update. To learn more about the stable release update process please refer to https://wiki.ubuntu.com/StableReleaseUpdates . Thanks!

Changed in linux-source-2.6.22:
status: New → Won't Fix
Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

Hardy Heron Alpha2 was recently released. It contains an updated version of the kernel. You can download and try the new Hardy Heron Alpha2 release from http://cdimage.ubuntu.com/releases/hardy/alpha-2/ . You should be able to then test the new kernel via the LiveCD. If you can, please verify if this bug still exists or not and report back your results. General information regarding the release can also be found here: http://www.ubuntu.com/testing/hardy/alpha2 . Thanks!

Changed in linux:
status: New → Incomplete
Revision history for this message
unggnu (unggnu) wrote :

Current Hardy has still the same problem and there is a regression. The Sony Eject key which works since Feisty has no effect anymore. Should I make a new bug report for this?

Revision history for this message
unggnu (unggnu) wrote :

I have made a new bug report #76924 for the eject issue so it doesn't get lost.

Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

Hi unggnu,

Can you just give us a quick summary of which hotkeys and their corresponding key codes are still not working in Hardy. The following may also help: https://wiki.ubuntu.com/LaptopTestingTeam/HotkeyResearch . Also, can you attacht the following:

sudo dmidecode -s system-manufacturer
sudo dmidecode -s system-product-name
sudo dmidecode -s system-version

Thanks again and we appreciate your help and feedback.

Revision history for this message
unggnu (unggnu) wrote :

AV MODE" volume up, volume down, crt and magnify keys are not working in Hardy and of course the eject button.
AV Mode, volume up and volume down have the same keycode (159). CRT, eject and magnify keys have no keycode at all.

sudo dmidecode -s system-manufacturer
Sony Corporation

sudo dmidecode -s system-product-name
VGN-TX2XP_B

sudo dmidecode -s system-version
J001BKAX

Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

For the ones which don't generate key codes can you see if they generate ACPI events? (Method 3 of https://wiki.ubuntu.com/LaptopTestingTeam/HotkeyResearch) Thanks.

Revision history for this message
unggnu (unggnu) wrote :

Yes, they do.
the magnify key:
[Sat Feb 2 12:50:48 2008] received event "sony/hotkey SPIC 00000001 00000015"
[Sat Feb 2 12:50:48 2008] notifying client 4983[0:0]
[Sat Feb 2 12:50:48 2008] notifying client 5253[108:116]
[Sat Feb 2 12:50:48 2008] completed event "sony/hotkey SPIC 00000001 00000015"
[Sat Feb 2 12:50:48 2008] received event "sony/hotkey SPIC 00000001 0000003b"
[Sat Feb 2 12:50:48 2008] notifying client 4983[0:0]
[Sat Feb 2 12:50:48 2008] notifying client 5253[108:116]
[Sat Feb 2 12:50:48 2008] completed event "sony/hotkey SPIC 00000001 0000003b"

the eject button:
[Sat Feb 2 12:52:31 2008] received event "sony/hotkey SPIC 00000001 0000001b"
[Sat Feb 2 12:52:31 2008] notifying client 4983[0:0]
[Sat Feb 2 12:52:31 2008] notifying client 5253[108:116]
[Sat Feb 2 12:52:31 2008] executing action "/etc/acpi/ejectbtn.sh"
[Sat Feb 2 12:52:31 2008] BEGIN HANDLER MESSAGES
[Sat Feb 2 12:52:31 2008] END HANDLER MESSAGES
[Sat Feb 2 12:52:31 2008] action exited with status 0
[Sat Feb 2 12:52:31 2008] completed event "sony/hotkey SPIC 00000001 0000001b"

the crt key:
[Sat Feb 2 12:52:02 2008] received event "sony/hotkey SPIC 00000001 00000012"
[Sat Feb 2 12:52:02 2008] notifying client 4983[0:0]
[Sat Feb 2 12:52:02 2008] notifying client 5253[108:116]
[Sat Feb 2 12:52:02 2008] completed event "sony/hotkey SPIC 00000001 00000012"
[Sat Feb 2 12:52:02 2008] received event "sony/hotkey SPIC 00000001 0000003b"
[Sat Feb 2 12:52:02 2008] notifying client 4983[0:0]
[Sat Feb 2 12:52:02 2008] notifying client 5253[108:116]
[Sat Feb 2 12:52:02 2008] completed event "sony/hotkey SPIC 00000001 0000003b"

Btw. the crt key problem is more a bug of the new Intel driver or acpi scripts I guess (Bug #133568)

Changed in linux:
assignee: nobody → ubuntu-kernel-team
importance: Undecided → Medium
status: Incomplete → Triaged
Revision history for this message
unggnu (unggnu) wrote :

Btw. ejecting under Gutsy works fine and gives me the follow acpi event:

[Sun Feb 10 12:02:16 2008] received event "sony/hotkey SPIC 00000001 0000001b"
[Sun Feb 10 12:02:16 2008] notifying client 5049[107:114]
[Sun Feb 10 12:02:16 2008] notifying client 5112[0:0]
[Sun Feb 10 12:02:16 2008] executing action "/etc/acpi/ejectbtn.sh"
[Sun Feb 10 12:02:16 2008] BEGIN HANDLER MESSAGES
[Sun Feb 10 12:02:16 2008] END HANDLER MESSAGES
[Sun Feb 10 12:02:16 2008] action exited with status 0
[Sun Feb 10 12:02:16 2008] completed event "sony/hotkey SPIC 00000001 0000001b"

Maybe it is just a device issue so the script isn't able to open it with Vanilla and Hardy kernel cd device path.

Revision history for this message
Eagleamon (joseph-piron) wrote :

Hi everyone.

I've just bought a TX2HP vaio laptop and I'd like to install a minimalist debian on it.
But before, I wish to be sure the hotkeys will be functional.

I tried the live Hardy on it, but almost all the hotkeys aren't functional (eject i.e.).

Could you please tell me what's the status of this bug report ?

Thanks !

Revision history for this message
unggnu (unggnu) wrote :

The status is the same. All keys work except the mentioned above. The bug report for the eject key is Bug #217504.

Revision history for this message
unggnu (unggnu) wrote :

This is no duplicate of Bug #17365 since changing brightness works fine on Sony Vaio TX2.

Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

The Ubuntu Kernel Team is planning to move to the 2.6.27 kernel for the upcoming Intrepid Ibex 8.10 release. As a result, the kernel team would appreciate it if you could please test this newer 2.6.27 Ubuntu kernel. There are one of two ways you should be able to test:

1) If you are comfortable installing packages on your own, the linux-image-2.6.27-* package is currently available for you to install and test.

--or--

2) The upcoming Alpha5 for Intrepid Ibex 8.10 will contain this newer 2.6.27 Ubuntu kernel. Alpha5 is set to be released Thursday Sept 4. Please watch http://www.ubuntu.com/testing for Alpha5 to be announced. You should then be able to test via a LiveCD.

Please let us know immediately if this newer 2.6.27 kernel resolves the bug reported here or if the issue remains. More importantly, please open a new bug report for each new bug/regression introduced by the 2.6.27 kernel and tag the bug report with 'linux-2.6.27'. Also, please specifically note if the issue does or does not appear in the 2.6.26 kernel. Thanks again, we really appreicate your help and feedback.

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

Per a decision made by the Ubuntu Kernel Team, bugs will longer be assigned to the ubuntu-kernel-team in Launchpad as part of the bug triage process. The ubuntu-kernel-team is being unassigned from this bug report. Refer to https://wiki.ubuntu.com/KernelTeamBugPolicies for more information. Thanks.

Revision history for this message
Jim Lieb (lieb) wrote :

The kernel only processes the events the upper levels tell it to do. The comments indicate that the events
are being generated/recoginzed by ACPI etc. in the kernel but there is nothing in userland to handle it properly.
Hotkeys is the place to start. Where these buttons go after that may affect other packages. The kernel was
not handling the key because there was no setkeycode done for it.

affects: linux (Ubuntu) → hotkey-setup (Ubuntu)
Revision history for this message
Steve Langasek (vorlon) wrote :

ACPI hotkey events are supposed to be mapped to input events by the kernel now. The userspace mapping of ACPI events to keypresses is defunct, because the kernel input layer now rejects events injected by the acpi_fakekey command. This is why the eject key stopped working, even though the key is known to acpi-support. Reassigning to the kernel for this.

affects: hotkey-setup (Ubuntu) → linux (Ubuntu)
Revision history for this message
Steve Langasek (vorlon) wrote :

The handler for this ACPI event should also be pulled from acpi-support, now that it's non-functional.

Changed in acpi-support (Ubuntu):
status: New → Triaged
assignee: nobody → Steve Langasek (vorlon)
importance: Undecided → Medium
tags: added: regression-release
removed: cft-2.6.27
Stefan Bader (smb)
Changed in linux (Ubuntu):
assignee: nobody → Stefan Bader (stefan-bader-canonical)
Steve Langasek (vorlon)
Changed in acpi-support (Ubuntu):
status: Triaged → Fix Committed
Revision history for this message
Stefan Bader (smb) wrote :

Can we get this tested and compared against Jaunty. The sony acpi driver got reworked by then to make use of the input framework to supply a proper input device for the hotkeys. This stopped working in Hardy as that still uses acpi_fakekey but the keyboard driver was modified in upstream to ignore key that the keyboard was not supposed to have. This had some influence on several of those laptop hotkeys.

Revision history for this message
Stefan Bader (smb) wrote :

Setting to incomplete while waiting for feedback.

Changed in linux (Ubuntu):
status: Triaged → Incomplete
Revision history for this message
unggnu (unggnu) wrote :

The crt key works fine now but except of that nothing has changed at least with the Jaunty Live CD.

So the problems are the "AV MODE", volume up, volume down, magnify and eject keys.

First three most likely because there is no kernel support for them. They are completely dead.

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

unggnu,

Just to confirm that this is indeed a kernel problem (since the kernel team seems to think this should be implemented already), could you please step through steps 5-12 in https://wiki.ubuntu.com/Hotkeys/Troubleshooting? This will show us whether the kernel is generating events for each of these keys. If no events are generated, could you also run 'dmesg > dmesg.log' and attach the resulting dmesg.log file?

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

This bug was fixed in the package acpi-support - 0.124

---------------
acpi-support (0.124) karmic; urgency=low

  [ Steve Langasek ]
  * Drop events/sony-eject, confirmed in bug reports to no longer work due
    to its use of acpi_fakekey. This needs to be implemented in the kernel
    input layer, but in the meantime there's no reason to keep this here.
    LP: #76924.
  * Drop events/panasonic-{hibernatebtn,sleepbtn}, also reported to not work
    now due to the acpi_fakekey implementation.

  [ Michael Terry ]
  * debian/copyright: Convert to DEP5 format
  * ac.d, battery.d, power.sh, debian/init.d, debian/rules:
    - Don't install power hook directories, instead just call pm-powersave
  * debian/preinst:
    - Remove ac.d and battery.d conffiles

 -- Steve Langasek <email address hidden> Fri, 26 Jun 2009 15:41:38 -0700

Changed in acpi-support (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Stefan Bader (smb) wrote :

Anything new on this?

Revision history for this message
unggnu (unggnu) wrote :

The eject key still doesn't work again in current Karmic.
Besides of this there is only one change. The original volume up and down keys have a different keycode but instead of the correct function they have the XF86Launch1 and 2 one.

The magnifier key is still dead and the AV button still has the same keycode as one of the original volume keys.

tags: added: karmic
unggnu (unggnu)
Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Brad Figg (brad-figg) wrote : Unsupported series, setting status to "Won't Fix".

This bug was filed against a series that is no longer supported and so is being marked as Won't Fix. If this issue still exists in a supported series, please file a new bug.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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