Le Dimanche 21 Mai 2006 21:03, [EMAIL PROTECTED] a écrit : > Hello, > > I want to use linux for dvd writing and scanning. > Both my scanner (Canon) and my dvd writer (BenQ) are usb devices. > > How can I know which device files these devices use? Or how can I configure > a device file for these devices? > > Thank you very much in advance, > Steffen > > > pseiko pseiko # lsusb > Bus 003 Device 001: ID 0000:0000 > Bus 002 Device 001: ID 0000:0000 > Bus 001 Device 009: ID 04a5:1007 Acer Peripherals Inc. (now BenQ Corp.) > Bus 001 Device 007: ID 04a9:2220 Canon, Inc. > Bus 001 Device 004: ID 0d49:7010 Maxtor > Bus 001 Device 002: ID 05e3:0606 Genesys Logic, Inc. > Bus 001 Device 001: ID 0000:0000 > > > pseiko pseiko # cat /proc/bus/usb/devices [snip] > //The scanner > > T: Bus=01 Lev=02 Prnt=02 Port=01 Cnt=01 Dev#= 7 Spd=12 MxCh= 0 > D: Ver= 1.10 Cls=ff(vend.) Sub=00 Prot=ff MxPS= 8 #Cfgs= 1 > P: Vendor=04a9 ProdID=2220 Rev= 1.00 > S: Manufacturer=Canon > S: Product=CanoScan > C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=500mA > I: If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=ff Driver=(none) > E: Ad=81(I) Atr=03(Int.) MxPS= 1 Ivl=16ms > E: Ad=82(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms > E: Ad=03(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms > > // I guess this is the dvd writer? > > T: Bus=01 Lev=02 Prnt=02 Port=02 Cnt=02 Dev#= 9 Spd=480 MxCh= 0 > D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 > P: Vendor=04a5 ProdID=1007 Rev= 1.12 > S: Product=USB 2.0 Storage Device > C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 0mA > I: If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage > E: Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms > E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=125us
Hi, I am not sure what you mean by "device file". If you mean a device node, that is a logical file in /dev, you will not find any for the scanner. 1) For the scanner. First of all, make sure your scanner is supported ! I switched from canon to epson because canon scanners were not very welle supported. Then, you have to emerge sane-backends with the usb useflag set. Figure out which backend your scanner use on the sane website (sane-project.org, if memory serves). Then, in the config file of the backend, set the usb id : usb <product id> <device id> For example, I added use 0x4b8 0x110 to /etc/sane.d/epson.conf for sane to detect my epson 1650. If your scanner is always plugged, you'll need to emerge coldplug and rc-update add coldplug default. You might have permission problems at that stage. Check the permissions on /proc/bus/usb/001/007. You must have rw rights to be able to use the scanner. 2) For the CD burner. It seems your cd-burner uses the usb-storage driver. It should then appear as /dev/sdX, provided you configured your kernel correctly. It should be useable at that address. You can do an lsscsi to figure out what to tell cdrecord, but any GUI (k3b...) should be able to detect and use your burner. I hope this helps, -- Jonathan -- gentoo-user@gentoo.org mailing list