Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I have a keyboard that has a scroll wheel, but it doesn't work on Ubuntu and xev command doesn't show anything when moving it. But with the dmesg command I found this:

When moving the scroll wheel up:

atkbd serio0: Unknown key pressed (translated set 2, code 0x8b on isa0060/serio0).
atkbd serio0: Use 'setkeycodes e00b <keycode>' to make it known.

When moving the scroll wheel down:

atkbd serio0: Unknown key released (translated set 2, code 0x8b on isa0060/serio0).
atkbd serio0: Use 'setkeycodes e00b <keycode>' to make it known.

It seems to be the same key but the pressed/released change if moving it up/down.

xmodmap -pke | grep croll shows:

keycode  78 = Scroll_Lock NoSymbol Scroll_Lock
keycode 185 = XF86ScrollUp NoSymbol XF86ScrollUp
keycode 186 = XF86ScrollDown NoSymbol XF86ScrollDown

How do I configure it so when "pressed" is keycode 185 and when "released" is keycode 186?

share|improve this question
    
What was the dmesg command you used? I try to find out something else here: askubuntu.com/questions/450066/… –  rubo77 yesterday
add comment

1 Answer

you should use setkeycodes to assign a keycode.

http://www.jveweb.net/en/archives/2011/01/configure-unrecognized-keys-in-linux.html

the scan code of the keys were unrecognized, this is, no key code was found to be associated with the scan code, the important value here appears right next to the setkeycodes command. So You have to define e00b

find out an unused keycode with

xmodmap -pke | less

and then assign a key code with the command

setkeycodes
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.