Topic: Works on Linux, but only as root?
Hi, I just downloaded HidSharp and compiled the solution on Linux. I had to change the Target to ".NET 3.5" for all projects, but it compiled and ran.
However, it fails unless I run as root. It appears that something requires permissions, but I can't tell what. Here are some more details.
Any advice or hints would be appreciated!
-Doug
$ ls -al /dev/bus/usb/002/009 crw-rwxr-- 1 root plugdev 189, 136 Jun 8 14:20 /dev/bus/usb/002/009
$ mono HidSharp.Test.exe
Complete device list (took 73 ms to get 0 devices):
Opening HID class device...
Failed to open device.
$ sudo mono HidSharp.Test.exe
Complete device list (took 90 ms to get 2 devices):
BirdBrain Tools Finch (VID 9044, PID 4369, version 266)
(unnamed) (VID 16700, PID 33121, version 512)
Opening HID class device...
BirdBrain Tools Finch (VID 9044, PID 4369, version 266)
(unnamed) (VID 16700, PID 33121, version 512)
Max Lengths:
Input: 9
Output: 2
Feature: 0
The operating system name for this device is:
/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6.1/2-1.6.1:1.0/0003:413C:8161.0001/hidraw/hidraw0