LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-27-2008, 12:39 AM   #1
PaladinOfKaos
LQ Newbie
 
Registered: Mar 2006
Location: Oregon, Earth, Sol System, Orion Arm, Milky Way Galaxy
Distribution: Gentoo
Posts: 13
Blog Entries: 1

Rep: Reputation: 0
Unhappy 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.
 
Old 10-28-2008, 03:42 AM   #2
cladisch
Member
 
Registered: Oct 2008
Location: Earth
Distribution: Slackware
Posts: 228

Rep: Reputation: 54
Quote:
Originally Posted by PaladinOfKaos View Post
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"
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel 2.6.26 and multimedia keys salemboot Linux - Laptop and Netbook 0 07-24-2008 07:34 AM
multimedia keys on fedora 7 rimvydazas Linux - General 3 06-17-2007 07:37 AM
Keyboard Multimedia keys l00zer Linux - Hardware 3 04-01-2007 08:17 PM
A how-to for Logitech multimedia keys Scrapz Linux - Hardware 16 08-30-2005 08:41 AM
Multimedia keys killerbob Slackware 2 05-20-2005 09:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration