kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* USB Printer does not work
@ 2009-01-02 16:50 André Roth
  2009-01-04 13:30 ` Avi Kivity
  0 siblings, 1 reply; 2+ messages in thread
From: André Roth @ 2009-01-02 16:50 UTC (permalink / raw)
  To: kvm


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é



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: USB Printer does not work
  2009-01-02 16:50 USB Printer does not work André Roth
@ 2009-01-04 13:30 ` Avi Kivity
  0 siblings, 0 replies; 2+ messages in thread
From: Avi Kivity @ 2009-01-04 13:30 UTC (permalink / raw)
  To: André Roth; +Cc: kvm

André Roth wrote:
> 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 ?
>   

An messages in dmesg?

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

-- 
error compiling committee.c: too many arguments to function


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-01-04 13:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-02 16:50 USB Printer does not work André Roth
2009-01-04 13:30 ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).