View previous topic :: View next topic |
Author |
Message |
mad_ady n00b
Joined: 14 Jul 2004 Posts: 54
|
Posted: Mon Jul 19, 2004 11:07 am Post subject: kernel 2.6.5 and hotplug usb |
|
|
Hello again. I seem to have a problem with my usb devices (they don't work!)
First off - the printer.
I compiled everything I needed as kernel modules, started the system and configured a printer with cups. (By the way, the printer is a hp656c, if it matters). The thing is I can't print anything...
here's some output:
Code: |
....
i2c_adapter i2c-0: master_send: writing 4 bytes.
bttv0: gpio: en=00000007, out=00000004 in=003ffff8 [audio: off]
bttv0: gpio: en=00000007, out=00000004 in=003ffff8 [audio: off]
bttv0: gpio: en=00000007, out=00000000 in=003ffff8 [audio: tuner]
usb 3-2: new full speed USB device using address 2
drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 2 if 0 alt 1 proto 2 vid 0x03F0 pid 0x2304
bttv0: gpio: en=00000007, out=00000004 in=003ffff8 [audio: off]
|
I've checked and there is a file called /dev/usb/lp0 .. so... it should work, right?
Unfortunatelly, it doesn't Perhaps I'll find out why...
Next, I tried to plug in my digital camera and that didn't work (or at list digikam didn't find it)
here's what dmesg has to say about it:
Code: |
usb 3-1: new full speed USB device using address 3
|
However, there wasn't any new file in /dev/usb
I think there's something wrong with hotplug (although it starts flawlesly at boot-up):
Code: |
frost dev # hotplug usb
Bad USB agent invocation, no action
|
If you have any ideas what I'm doing wrong, please let me know!
Thanks! |
|
Back to top |
|
|
oumpah-pah Guru
Joined: 18 Jul 2004 Posts: 575 Location: Lausanne, Switzerland
|
Posted: Mon Jul 19, 2004 11:21 am Post subject: |
|
|
When I configured cups, it used /dev/usblp0 as printer by default. You should try to create a symlink to /dev/usb/lp0 with that name.
And do you use udev or devfs ? |
|
Back to top |
|
|
mad_ady n00b
Joined: 14 Jul 2004 Posts: 54
|
Posted: Mon Jul 19, 2004 5:52 pm Post subject: |
|
|
Wow! You were right! I've just created the symlink and the thing started printing (forgot to delete the old print jobs!). Scared the hell out of me, but it works! Thanks.
By the way, I'm using udev, but I compiled support for devfs just to be sure. Will my symlink remain after I reboot? (there's only one way to find out...)
Now... what sould I do with the camera? |
|
Back to top |
|
|
oumpah-pah Guru
Joined: 18 Jul 2004 Posts: 575 Location: Lausanne, Switzerland
|
Posted: Mon Jul 19, 2004 6:32 pm Post subject: |
|
|
If you currently use devfs, the symlink will remain. If you use pure udev, then you have a little bit more to do. Let me know if it disapears after reboot... |
|
Back to top |
|
|
mad_ady n00b
Joined: 14 Jul 2004 Posts: 54
|
Posted: Tue Jul 20, 2004 6:34 am Post subject: |
|
|
I rebooted and the symlink remains.
I also compiled SCSI support (emulation, discs), and USB storage support in my kernel, and unfortunatelly, my camera still won't work.
Well, at least the printer does... Thanks! |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|