Setting up keyboard buttons under GNOME.

Discussion in 'Installation/Configuration' started by Andy505, Oct 8, 2007.

  1. Andy505

    Andy505 New Member

    Hello again..

    My toshiba laptop came with "media keys" on the Keyboard.. A play button, a start the web browser button, and a volume knob that isn't directly wired into the sound card. Obviously, none of them are automatically set up by Linux.

    I need to run a piece of software that can tell me the ANSI codes for these buttons when I push them, and then I can configure GNOME to make them do something. Are there any HOWTOs for this kind of thing?

    Any advice helps,
    Andrew.
     
  2. Andy505

    Andy505 New Member

    Update

    1) Used 'xev' to get keycodes for media keys;
    2) Used /etc/X11/inet to compare keycodes with existing keyboard maps; a4techKB21 is a close match..
    in xorg.conf, set
    Section "InputDevice"
    Identifier "Keyboard0"
    Driver "kbd"
    Option "XkbModel" "a4techKB21"
    Option "XkbLayout" "us"
    EndSection
    Where "XkbModel" used to be "pc105".
    Change didn't work. Anybody have any suggestions?
     

Share This Page