LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   evdev Multimedia keys (https://www.linuxquestions.org/questions/linux-hardware-18/evdev-multimedia-keys-679261/)

PaladinOfKaos 10-27-2008 01:39 AM

evdev Multimedia keys
 
I have an IBM enhanced performance USB keyboard (or one very similar). It has a set of multimedia keys: stop, play/pause, back, forward, volume-, volume+, a musical note (launch media player?), and mute. Those were working with the kbd driver, but aren't now that I've switched to evdev. (By working I mean xev reported them. I never set up xmodmap to use them, but I presume they would have worked had I bothered.)

There are also a set of application keys that didn't return anything at all in xev. They do create output with showkeys -k.

All of the multimedia keys seem to be on /dev/input/event4, with the normal keys being on event3.
Code:

I: Bus=0003 Vendor=04b3 Product=301b Version=0110
N: Name="Lite-On Technology USB Productivity Option Keyboard( has the hub in # 1 )"
P: Phys=usb-0000:00:1d.0-1.1/input0
S: Sysfs=/class/input/input3
U: Uniq=
H: Handlers=kbd event3
B: EV=120013
B: KEY=1000000000007 ff9f207ac14057ff febeffdfffefffff fffffffffffffffe
B: MSC=10
B: LED=1f

I: Bus=0003 Vendor=04b3 Product=301b Version=0110
N: Name="Lite-On Technology USB Productivity Option Keyboard( has the hub in # 1 )"
P: Phys=usb-0000:00:1d.0-1.1/input1
S: Sysfs=/class/input/input4
U: Uniq=
H: Handlers=kbd event4
B: EV=13
B: KEY=ff 2000000 3878d8000001 e000000000000 0
B: MSC=10

I can only assume something is messed up with my evdev configuration, but I don't know what. The two InputDevices sections are as follows:
Code:

Section "InputDevice"

    # generated from default
    Identifier    "Keyboard0"
    Driver        "evdev"
    Option        "Device" "/dev/input/event3"
EndSection

Section "InputDevice"
    Identifier    "Keyboard1"
    Driver        "evdev"
    Option        "Device" "/dev/input/event4"
EndSection

I figured such a setup would simply accept every event from the two event interfaces, but apparently not. I know event4 emits something when I hit the multimedia keys - cat /dev/input/event4 shows predictable patterns of characters depending on the key I hit. X just isn't understanding those messages. Any hints on fixing my evdev configuration to work with my multimedia keys would be awesome. I can get the output from showkeys -k, if that would be helpful.

cladisch 10-28-2008 04:42 AM

Quote:

Originally Posted by PaladinOfKaos (Post 3322778)
Code:

Section "InputDevice"

    # generated from default
    Identifier    "Keyboard0"
    Driver        "evdev"
    Option        "Device" "/dev/input/event3"
EndSection

Section "InputDevice"
    Identifier    "Keyboard1"
    Driver        "evdev"
    Option        "Device" "/dev/input/event4"
EndSection

I figured such a setup would simply accept every event from the two event interfaces, but apparently not.

Do you have configured both keyboard devices to generate core events?

Something like this:
Code:

Section "ServerLayout"
    ...
    InputDevice "Keyboard0" "CoreKeyboard"
    InputDevice "Keyboard1" "SendCoreEvents"



All times are GMT -5. The time now is 09:41 AM.