LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 09-27-2010, 04:54 PM   #1
page_seven
Member
 
Registered: Jun 2010
Distribution: CRUX 3.0
Posts: 76

Rep: Reputation: 0
Udev rules for "Mitsumi Electric Apple Extended USB Keyboard"


I am writing a udev rule for my apple keyboard. I cannot get a working symlink because it shows up as two /dev/input/eventX device nodes, one which shows activity when I 'cat' it, the other which does not. The symlink usually points to the "dead" one. Anyone have experience with these keyboards?

Vendor: 05ac
Product: 020b
 
Old 09-29-2010, 11:25 PM   #2
page_seven
Member
 
Registered: Jun 2010
Distribution: CRUX 3.0
Posts: 76

Original Poster
Rep: Reputation: 0
this grepped output, which is the result of 'udevadm info --export-db | grep -B 11 -A 10 020b', shows my problem. The only thing unique to the keyboard that I can see is ID_INPUT_KEYBOARD. I tried using ENV{ID_INPUT_KEYBOARD}=="1", but seem to have trouble matching the ID_* properties.


Code:
N: bus/usb/003/020
S: char/189:275
E: UDEV_LOG=3
E: DEVPATH=/devices/pci0001:00/0001:00:02.0/0001:01:0b.1/usb3/3-1/3-1.3
E: SUBSYSTEM=usb
E: DEVNAME=bus/usb/003/020
E: ID_VENDOR=Mitsumi_Electric
E: ID_VENDOR_ENC=Mitsumi\x20Electric
E: ID_VENDOR_ID=05ac
E: ID_MODEL=Apple_Extended_USB_Keyboard
E: ID_MODEL_ENC=Apple\x20Extended\x20USB\x20Keyboard
E: ID_MODEL_ID=020b
E: ID_REVISION=0410
E: ID_SERIAL=Mitsumi_Electric_Apple_Extended_USB_Keyboard
E: ID_BUS=usb
E: ID_USB_INTERFACES=:030101:030000:
E: MAJOR=189
E: MINOR=275
E: DEVTYPE=usb_device
E: DRIVER=usb
E: DEVICE=/proc/bus/usb/003/020
E: PRODUCT=5ac/20b/410
--
E: DEVPATH=/devices/pci0001:00/0001:00:02.0/0001:01:0b.1/usb3/3-1/3-1.3/3-1.3:1.0/input/input56/event1
E: SUBSYSTEM=input
E: DEVNAME=input/event1
E: ID_INPUT=1
E: ID_INPUT_KEY=1
E: ID_INPUT_KEYBOARD=1
E: ID_VENDOR=Mitsumi_Electric
E: ID_VENDOR_ENC=Mitsumi\x20Electric
E: ID_VENDOR_ID=05ac
E: ID_MODEL=Apple_Extended_USB_Keyboard
E: ID_MODEL_ENC=Apple\x20Extended\x20USB\x20Keyboard
E: ID_MODEL_ID=020b
E: ID_REVISION=0410
E: ID_SERIAL=Mitsumi_Electric_Apple_Extended_USB_Keyboard
E: ID_TYPE=hid
E: ID_BUS=usb
E: ID_USB_INTERFACES=:030101:030000:
E: ID_USB_INTERFACE_NUM=00
E: ID_USB_DRIVER=usbhid
E: ID_PATH=pci-0001:01:0b.1-usb-0:1.3:1.0
E: MAJOR=13
E: MINOR=65
--
E: UDEV_LOG=3
E: DEVPATH=/devices/pci0001:00/0001:00:02.0/0001:01:0b.1/usb3/3-1/3-1.3/3-1.3:1.1/input/input57/event2
E: SUBSYSTEM=input
E: DEVNAME=input/event2
E: ID_INPUT=1
E: ID_INPUT_KEY=1
E: ID_VENDOR=Mitsumi_Electric
E: ID_VENDOR_ENC=Mitsumi\x20Electric
E: ID_VENDOR_ID=05ac
E: ID_MODEL=Apple_Extended_USB_Keyboard
E: ID_MODEL_ENC=Apple\x20Extended\x20USB\x20Keyboard
E: ID_MODEL_ID=020b
E: ID_REVISION=0410
E: ID_SERIAL=Mitsumi_Electric_Apple_Extended_USB_Keyboard
E: ID_TYPE=hid
E: ID_BUS=usb
E: ID_USB_INTERFACES=:030101:030000:
E: ID_USB_INTERFACE_NUM=01
E: ID_USB_DRIVER=usbhid
E: ID_PATH=pci-0001:01:0b.1-usb-0:1.3:1.1
E: MAJOR=13
E: MINOR=66
edit: had to use IMPORT{program}="input_id %p" to get ID_INPUT_KEYBOARD.

Last edited by page_seven; 10-01-2010 at 05:05 PM. Reason: edit
 
  


Reply



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
how do I debug "udev rules" SaintDanBert Linux - Software 10 09-25-2010 03:53 PM
backtrack 3 USB Version (Extended) "boot error" vin_akleh Linux - Newbie 3 09-17-2009 01:31 AM
How to edit "/etc/udev/rules.d/40-basic-permissions.rules" file cygan Linux - Newbie 11 03-09-2009 05:22 AM
"MITSUMI FA404M" FDD and Usb card reader...problems dutche Slackware 4 02-22-2006 03:01 PM
USB mouse support thru usb "hub" of MS keyboard.. zeppelin Linux - Hardware 3 07-29-2003 11:25 PM

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

All times are GMT -5. The time now is 06:57 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
Open Source Consulting | Domain Registration