You are not logged in.

#1 2004-12-07 05:35:01

Registered: 2004-12-07
Posts: 27

libusbscanner DEVICE isn't set

My usbscanner works only when i manually set the DEVICE variable in /etc/hotplug/usb/libusbscanner to something like /proc/bus/usb/001/00x if i don't set it, it remains empty and the script fails and  programs can't open the device.
I think that DEVICE is suposed to be set automatically, but it doesn't, the scanner device changes on each reboot, sometimes is 004 and sometimes 002 and i have to put that value on DEVICE each time i reboot.
Searching in google i found that hotplug doesn't set DEVICE on 2.6 kernels and in some libusbscanner scripts they add commands like sed and printf to set that variable but it doesn't work for me, it outputs wrong number error on printf or something like that.
Do you know how can i fix it so i don't have to change DEVICE variable manually?


Board footer

Powered by FluxBB