Skip to contentSkip to conversation

USB Printer does not work

DISCUSSION André Roth 2 participants 2 messages Jan 2, 2009 – Jan 4, 2009 KVM

lore
Share & tools
lore
#0 lore raw

Hello List,

I'm using kvm-82 and I'm trying to attach a HP 1200 per USB to my guest system (Debian/lenny, 2.6.26-1-amd64). This works so far, the usblp module is loaded and I get a /dev/usb/lp0. I can print text/plain by catting text to the device.

But using CUPS, the device is not detected due to a failing ioctl:

   # strace /usr/lib/cups/backend/usb 2>&1 | grep error\\\|lp0 -i
   ...
   open("/dev/usb/lp0", O_RDWR|O_EXCL)     = 3
   ioctl(3, SNDCTL_DSP_SYNC, 0x7fff90018760) = -1 EIO (Input/output error)

Specifying the device manually does not work either. On the host system this works without problems. The CPU is an Intel Core2 Quad Q9300.

How can I further debug this ?

Thanks,

andré

#1 lore raw
Quoted 11 lines · André Roth

Hello List,

I'm using kvm-82 and I'm trying to attach a HP 1200 per USB to my guest system (Debian/lenny, 2.6.26-1-amd64). This works so far, the usblp module is loaded and I get a /dev/usb/lp0. I can print text/plain by catting text to the device.

But using CUPS, the device is not detected due to a failing ioctl:

   # strace /usr/lib/cups/backend/usb 2>&1 | grep error\\\|lp0 -i
   ...
   open("/dev/usb/lp0", O_RDWR|O_EXCL)     = 3
   ioctl(3, SNDCTL_DSP_SYNC, 0x7fff90018760) = -1 EIO (Input/output error)
Quoted 5 lines

Specifying the device manually does not work either. On the host system this works without problems. The CPU is an Intel Core2 Quad Q9300.

How can I further debug this ?

An messages in dmesg?

Though I'm afraid I know very little about USB. You might try the qemu list.

Signature · 1 line
error compiling committee.c: too many arguments to function