> I have installed a Logitech Gamepad on my machine recently. I could not get
> EMC to recognize it using hal_input, but it works fine using hal_joystick.

I had a similar problem when I first installed Hardy and had not had
a problem with Dapper.

I don't remember all the details but I believe the protections on
the files in /dev/input/* were created with protections without
read/write access required for a non-root user.

I made a new udev rules file:
/etc/udev/rules.d/50-emc_hal_input.rules

$ cat 50-emc*
SUBSYSTEM=="input", mode="0660", group="plugdev"
KERNEL=="event*", mode="0660", group="plugdev"

With this file you can use reboot or try:
  $ udevadm trigger

My input dir looks like:
# ls -lR /dev/input
/dev/input:
total 0
drwxr-xr-x 2 root root        80 2008-12-06 17:00 by-id
drwxr-xr-x 2 root root       160 2008-12-06 17:00 by-path
crw-rw---- 1 root plugdev 13, 64 2008-12-06 17:00 event0
crw-rw---- 1 root plugdev 13, 65 2008-12-06 17:00 event2
crw-rw---- 1 root plugdev 13, 66 2008-12-06 17:00 event2
crw-rw---- 1 root plugdev 13, 67 2008-12-06 17:00 event3
crw-rw---- 1 root plugdev 13, 68 2008-12-06 17:00 event4
crw-rw---- 1 root plugdev 13,  0 2008-12-06 17:00 js0
crw-rw---- 1 root plugdev 13, 63 2008-12-06 17:00 mice
crw-rw---- 1 root plugdev 13, 32 2008-12-06 17:00 mouse0
crw-rw---- 1 root plugdev 13, 33 2008-12-06 17:00 mouse1

/dev/input/by-id:
total 0
lrwxrwxrwx 1 root root 9 2008-12-06 17:00 
usb-GreenAsia_Inc._USB_Joystick-event-joystick -> ../event2
lrwxrwxrwx 1 root root 6 2008-12-06 17:00 
usb-GreenAsia_Inc._USB_Joystick-joystick -> ../js0

/dev/input/by-path:
total 0
lrwxrwxrwx 1 root root 9 2008-12-06 17:00 
pci-0000:00:10.0-usb-0:2:1.0-event-joystick -> ../event2
lrwxrwxrwx 1 root root 6 2008-12-06 17:00 pci-0000:00:10.0-usb-0:2:1.0-joystick 
-> ../js0
lrwxrwxrwx 1 root root 9 2008-12-06 17:00 platform-i8042-serio-0-event-kbd -> 
../event1
lrwxrwxrwx 1 root root 9 2008-12-06 17:00 platform-i8042-serio-1-event-mouse -> 
../event4
lrwxrwxrwx 1 root root 9 2008-12-06 17:00 platform-i8042-serio-1-mouse -> 
../mouse1
lrwxrwxrwx 1 root root 9 2008-12-06 17:00 platform-pcspkr-event-spkr -> 
../event3


test:
   $ halrun
   halcmd: loadusr -W hal_input -KRAL Joystick
   halcmd: show comp
   Loaded HAL Components:
   ID      Type  Name                                      PID   State
        3  User  halcmd23913                               23913 ready
        2  User  hal_input                                 23926 ready

-- 
Dewey Garrett


------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to