Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
crazy setkeycodes
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
loux.thefuture
Tux's lil' helper
Tux's lil' helper


Joined: 15 Nov 2005
Posts: 135

PostPosted: Wed Feb 07, 2007 3:23 pm    Post subject: crazy setkeycodes Reply with quote

hello,
if i don't use setkeycodes, dmesg complains about missing e011 so i add
"setkeycodes e011 239" and now when i hit the key i got 244 from xbindkeys
how can this happens ?
if i launch getkeycodes :
e0 00: 0 0 0 0 0 0 0 0
e0 08: 0 0 0 0 0 0 0 0
e0 10: 165 239 194 0 0 0 0 0
e0 18: 0 163 0 0 96 97 0 0
e0 20: 113 140 164 0 166 0 0 0
e0 28: 0 0 255 0 0 0 114 0
e0 30: 115 0 150 0 0 98 255 99
e0 38: 100 0 0 0 0 0 0 0
so 244 is never assign
how can it be possible ?
thanks
loux.thefuture

if i use "setkeycodes e011 165" i got 144 from xev !!!
_________________
"So long and thanks for all the fishs !"
Back to top
View user's profile Send private message
agorf
Retired Dev
Retired Dev


Joined: 21 Aug 2006
Posts: 8
Location: Ioannina, Greece

PostPosted: Fri Apr 06, 2007 12:51 am    Post subject: Reply with quote

Same thing here. The second argument to setkeycodes is a different keycode from what xev spits out later when I hit the key.
Back to top
View user's profile Send private message
cbandito
n00b
n00b


Joined: 11 May 2007
Posts: 5

PostPosted: Fri May 11, 2007 5:20 am    Post subject: Reply with quote

loux.thefuture wrote:
hello,
i add "setkeycodes e011 239" and now when i hit the key i got 244 from xbindkeys

if i launch getkeycodes :
e0 10: 165 239 194 0 0 0 0 0


I'm getting the same behaviour in amd64. Specifically,

without X running
Code:
# setkeycodes e008 136
$ showkey -k
kb mode was UNICODE
[ if you are trying this under X, it might not work
since the X server is also reading /dev/console ]

press any key (program terminates 10s after last keypress)...
keycode 136 press
keycode 136 release


inside X
Code:
$ xev | grep keycode
    state 0x0, keycode 122 (keysym 0x0, NoSymbol), same_screen YES,
    state 0x0, keycode 122 (keysym 0x0, NoSymbol), same_screen YES,


The keycode in X changes with the keycode specified i.e., with "setkeycodes e011 142", showkey reports 142 and xev reports 223.

Can anyone explain this?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum