You are not logged in.

#1 2010-04-24 23:48:36

eyecreate
Member
Registered: 2009-10-29
Posts: 14

where's all the /dev/usb?

I have a script which works on my other linux computers that looks for a "printer"(actually a xyron wishblade) as a device inside /dev/usb, but my arch setup is the onl one which it won't work, which seems to be related to the fact there is not /dev/usb folder. Is there a way to "get it back" with a config file or something or is there another place I should point the script at?

Offline

#2 2010-04-25 00:03:53

chpln
Member
From: Australia
Registered: 2009-09-17
Posts: 361

Re: where's all the /dev/usb?

Would /dev/usb be the same as /dev/bus/usb?  If so, you should just be able to create a symlink.

Offline

#3 2010-04-25 00:06:34

eyecreate
Member
Registered: 2009-10-29
Posts: 14

Re: where's all the /dev/usb?

No, /dev/bus/usb has subfolders. /dev/usb has just devices, each named for what it is. Specifically, the script is looking for ones starting "lp*", which are ones detected as printers.

Offline

#4 2010-04-25 00:29:33

chpln
Member
From: Australia
Registered: 2009-09-17
Posts: 361

Re: where's all the /dev/usb?

I'm not sure what might have been responsible for maintaining /dev/usb in the past.  A solution would be to create a udev rule to create a symlink between usb/lp0 and the actual device.   This should be a good starting place.

Offline

#5 2010-04-25 12:10:32

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: where's all the /dev/usb?

'mkdir /dev/usb' as root?

Offline

#6 2010-04-25 14:36:41

pyther
Member
Registered: 2008-01-21
Posts: 1,395
Website

Re: where's all the /dev/usb?

karol wrote:

'mkdir /dev/usb' as root?

Are you nuts? /dev isn't a place for directories and files!!! It is a place for devices....

@OP /dev/usb/lp0 is created as a result of loading usblp. Likely you have usblp blacklisted because cups 1.4.xx doesn't work with usblp unless if compiled it without usblib support.


Website - Blog - arch-home
Arch User since March 2005

Offline

#7 2010-04-25 15:46:42

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: where's all the /dev/usb?

@pyther
OK, 'mkdir' was just plain stupid, but what about MAKEDEV, mknod or some other magic incantation?
http://www.linuxforums.org/forum/redhat … post161982

Offline

#8 2010-04-25 17:33:11

eyecreate
Member
Registered: 2009-10-29
Posts: 14

Re: where's all the /dev/usb?

So is there a way I can safely either get usblp and cups to work(and won't break on upgrades) or is there a way to rewrite the script using usblib?  Can usblp still run for those things that use it and cups just use usblib?(both running)

Offline

#9 2010-04-25 17:35:56

pyther
Member
Registered: 2008-01-21
Posts: 1,395
Website

Re: where's all the /dev/usb?

Maybe you can start by telling us what your script does?


Website - Blog - arch-home
Arch User since March 2005

Offline

#10 2010-04-25 17:43:01

eyecreate
Member
Registered: 2009-10-29
Posts: 14

Re: where's all the /dev/usb?

Here's the exact package:
http://aur.archlinux.org/packages.php?ID=30433

The package is just one python script, one glade file, and some pngs. It searches for cutters in /dev/usb/lp*. I tried redirecting it to /dev/bus/usb/007/005(I found this location using lshal), but it didn't seem to work.

Offline

#11 2010-04-25 17:55:14

pyther
Member
Registered: 2008-01-21
Posts: 1,395
Website

Re: where's all the /dev/usb?

I can't figure out what that script does, but take a look at this package: http://aur.archlinux.org/packages.php?ID=35029 it'll use usblp instead of libusb


Website - Blog - arch-home
Arch User since March 2005

Offline

Board footer

Powered by FluxBB