You are not logged in.

#1 2007-06-05 23:46:41

fivre
Member
Registered: 2007-04-17
Posts: 97

Setkeycodes is not working

fivre@nrte: ~ $ sudo setkeycodes e074 280
KDSETKEYCODE: Invalid argument
failed to set scancode f4 to keycode 280

Why does this happen?

Offline

#2 2007-06-09 03:48:00

fivre
Member
Registered: 2007-04-17
Posts: 97

Re: Setkeycodes is not working

Bump

Offline

#3 2007-06-09 15:30:58

lanrat
Member
From: Poland
Registered: 2003-10-28
Posts: 1,274

Re: Setkeycodes is not working

Isn't 280 too high? I think the maximum keycode is 255.

Offline

#4 2007-06-11 02:41:01

mixtr
Member
From: Ottawa
Registered: 2007-02-27
Posts: 47

Re: Setkeycodes is not working

It is too high, you can view all of the keycodes with xmodmap -pke, and you don't need sudo to run setkeycodes or xmodmap


-- mixtr

Offline

#5 2007-06-11 13:12:05

lanrat
Member
From: Poland
Registered: 2003-10-28
Posts: 1,274

Re: Setkeycodes is not working

One more advice: xorg keycodes are usually different from kernel keycodes. First, you have to set some kernel keycode to the scancode and then kernel keycode to some xorg symbol (or not if you don't need it because after assigning kernel keycode the button should work in xorg - check it with xev).

Offline

Board footer

Powered by FluxBB