Re: Some "media keys" not detected by xev?
- From: Dances With Crows <danceswithcrows@xxxxxxx>
- Date: 31 Mar 2008 15:20:22 GMT
Anton81 staggered into the Black Sun and said:
I bought a keyboard which has some media keys. I detected some of
their keycodes with xev and wrote corresponding xmodmap entries.
xmodmap entries? Not xbindkeys entries? xmodmap's only purpose is
binding single keys to single KeySyms. xbindkeys can bind single keys
or key combinations to arbitrary commands, which is a lot more useful.
But quite a few keys don't seem to give any xev response. Is it
possible to make them work?
Pressing a key on a keyboard should generate a scancode, which gets fed
to the kernel's keyboard module. When X has the console, that scancode
is translated into a keycode using some sort of map somewhere in the
bowels of X. I think you can manipulate that map using XKB, but XKB is
poorly documented and a complete mess. The keycode is then translated
into a KeySym using the keyboard map that xmodmap modifies. If the
scancode isn't being mapped to a keycode, I'm not sure exactly what
you'd do to fix that. I'd like to know though.
--
207. The following are not legal weapons in a duel: Steamrollers,
Nerve Gas, Land Mines, Midgets.
My blog and resume: http://crow202.dyndns.org:8080/wordpress/
Matt G|There is no Darkness in Eternity/But only Light too dim for us to see
.
- References:
- Some "media keys" not detected by xev?
- From: Anton81
- Some "media keys" not detected by xev?
- Prev by Date: Re: Trouble sending e-mail -- DNS related
- Next by Date: Re: Passing variables from shell script to another
- Previous by thread: Some "media keys" not detected by xev?
- Next by thread: Re: Some "media keys" not detected by xev?
- Index(es):