Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 Apr 18 '14 at 20:57

you should use setkeycodes to assign a keycode.


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

share|improve this answer

Your Answer


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.