1 |
Le Dimanche 21 Mai 2006 21:03, gentoo@×××××××××××××××.de a écrit : |
2 |
> Hello, |
3 |
> |
4 |
> I want to use linux for dvd writing and scanning. |
5 |
> Both my scanner (Canon) and my dvd writer (BenQ) are usb devices. |
6 |
> |
7 |
> How can I know which device files these devices use? Or how can I configure |
8 |
> a device file for these devices? |
9 |
> |
10 |
> Thank you very much in advance, |
11 |
> Steffen |
12 |
> |
13 |
> |
14 |
> pseiko pseiko # lsusb |
15 |
> Bus 003 Device 001: ID 0000:0000 |
16 |
> Bus 002 Device 001: ID 0000:0000 |
17 |
> Bus 001 Device 009: ID 04a5:1007 Acer Peripherals Inc. (now BenQ Corp.) |
18 |
> Bus 001 Device 007: ID 04a9:2220 Canon, Inc. |
19 |
> Bus 001 Device 004: ID 0d49:7010 Maxtor |
20 |
> Bus 001 Device 002: ID 05e3:0606 Genesys Logic, Inc. |
21 |
> Bus 001 Device 001: ID 0000:0000 |
22 |
> |
23 |
> |
24 |
> pseiko pseiko # cat /proc/bus/usb/devices |
25 |
[snip] |
26 |
> //The scanner |
27 |
> |
28 |
> T: Bus=01 Lev=02 Prnt=02 Port=01 Cnt=01 Dev#= 7 Spd=12 MxCh= 0 |
29 |
> D: Ver= 1.10 Cls=ff(vend.) Sub=00 Prot=ff MxPS= 8 #Cfgs= 1 |
30 |
> P: Vendor=04a9 ProdID=2220 Rev= 1.00 |
31 |
> S: Manufacturer=Canon |
32 |
> S: Product=CanoScan |
33 |
> C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=500mA |
34 |
> I: If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=ff Driver=(none) |
35 |
> E: Ad=81(I) Atr=03(Int.) MxPS= 1 Ivl=16ms |
36 |
> E: Ad=82(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms |
37 |
> E: Ad=03(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms |
38 |
> |
39 |
> // I guess this is the dvd writer? |
40 |
> |
41 |
> T: Bus=01 Lev=02 Prnt=02 Port=02 Cnt=02 Dev#= 9 Spd=480 MxCh= 0 |
42 |
> D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 |
43 |
> P: Vendor=04a5 ProdID=1007 Rev= 1.12 |
44 |
> S: Product=USB 2.0 Storage Device |
45 |
> C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 0mA |
46 |
> I: If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage |
47 |
> E: Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms |
48 |
> E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=125us |
49 |
|
50 |
Hi, |
51 |
|
52 |
I am not sure what you mean by "device file". If you mean a device node, that |
53 |
is a logical file in /dev, you will not find any for the scanner. |
54 |
|
55 |
1) For the scanner. |
56 |
|
57 |
First of all, make sure your scanner is supported ! I switched from canon to |
58 |
epson because canon scanners were not very welle supported. |
59 |
|
60 |
Then, you have to emerge sane-backends with the usb useflag set. |
61 |
|
62 |
Figure out which backend your scanner use on the sane website |
63 |
(sane-project.org, if memory serves). |
64 |
|
65 |
Then, in the config file of the backend, set the usb id : |
66 |
usb <product id> <device id> |
67 |
|
68 |
For example, I added |
69 |
use 0x4b8 0x110 to /etc/sane.d/epson.conf for sane to detect my epson 1650. |
70 |
|
71 |
If your scanner is always plugged, you'll need to emerge coldplug and |
72 |
rc-update add coldplug default. |
73 |
|
74 |
You might have permission problems at that stage. Check the permissions |
75 |
on /proc/bus/usb/001/007. You must have rw rights to be able to use the |
76 |
scanner. |
77 |
|
78 |
2) For the CD burner. |
79 |
|
80 |
It seems your cd-burner uses the usb-storage driver. It should then appear |
81 |
as /dev/sdX, provided you configured your kernel correctly. It should be |
82 |
useable at that address. You can do an lsscsi to figure out what to tell |
83 |
cdrecord, but any GUI (k3b...) should be able to detect and use your burner. |
84 |
|
85 |
I hope this helps, |
86 |
|
87 |
-- Jonathan |
88 |
|
89 |
|
90 |
-- |
91 |
gentoo-user@g.o mailing list |