showkey and xev show different key codes

Bug #23432 reported by Lauri W Ahonen
6
Affects Status Importance Assigned to Milestone
xev (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

I tried to get mouse emulation to use the unneeded enter key as mousebutton2,
but ran into problems.
Steps to reproduce, bug appears every time:
Start xev on an ibook, press the button between right command and arrow left (I
think the key is named Enter).

Xev reports keycode 108. Press arrow down, xev reports keycode as 104.

As root, echo "108" > /proc/sys/dev/mac_hid/mouse_button2_keycode
Now Enter should act as mouse2, but instead arrow down acts as mouse2! If I
enter 104 (the code for arrow down), the mouse2 functionality gets assigned to
pg up (aka. fn+arrow up, keycode 99).
I guess I could find the right code for Enter by trial and error, but this is
really annoying.

Tags: apple ppc
Revision history for this message
Lauri W Ahonen (lwahonen) wrote :

This is on breezy badger.

Revision history for this message
Lauri W Ahonen (lwahonen) wrote :

The bug is in xev, and also appears in Fedora..

Showkey gives completely different keycodes, and they work as ok. Should this be
sent to the xev developers, or is xev "working as intended"?

Matt Zimmerman (mdz)
Changed in xev:
assignee: nobody → pitti
Revision history for this message
Martin Pitt (pitti) wrote :

Apparently X and console key codes do not have much in common. Please use showkey to figure out the correct code.

Changed in xev:
assignee: pitti → nobody
Revision history for this message
Tollef Fog Heen (tfheen) wrote :

X keycodes and console keycodes are two totally different concepts which don't have anything to do with each other. Rejecting the bug.

Changed in xev:
status: Unconfirmed → Rejected
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.