WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] Print-server on DomU

On Friday, 15 December 2006 00:03:27 -0500,
Alexey Koptsevich wrote:

> >The printer, as it seems, is recognized:

> > printserver:~# lsusb
> > Bus 001 Device 002: ID 04b8:0005 Seiko Epson Corp. Stylus Printer
> > Bus 001 Device 001: ID 0000:0000

> Does this printer work in native Linux, without Xen?

Yes. It works in Debian GNU/Linux Sarge without Xen. Likewise I have
done some tests in dom0. I'm using the kernel provided by Xemsource in
both dom0 and domU. Then, if the printer works in dom0, it would work in
domU.

Dom0:

sirius:~# lsmod
Module                  Size  Used by
xt_physdev              2512  1
iptable_filter          2784  1
ip_tables              13620  1 iptable_filter
x_tables               12036  2 xt_physdev,ip_tables
bridge                 49748  0
snd_via82xx            27384  0
gameport               13384  1 snd_via82xx
snd_ac97_codec         96608  1 snd_via82xx
snd_ac97_bus            2304  1 snd_ac97_codec
snd_pcm                92740  2 snd_via82xx,snd_ac97_codec
snd_timer              24132  1 snd_pcm
snd_page_alloc          9608  2 snd_via82xx,snd_pcm
snd_mpu401_uart         7296  1 snd_via82xx
snd_rawmidi            24192  1 snd_mpu401_uart
snd_seq_device          8364  1 snd_rawmidi
snd                    52292  7 
snd_via82xx,snd_ac97_codec,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq_device
serio_raw               6020  0
shpchp                 43136  0
pci_hotplug            26492  1 shpchp
soundcore               9056  1 snd
amd64_agp              12004  1
agpgart                34472  1 amd64_agp
usblp                  12000  0
reiserfs              234992  2
dm_mirror              21616  0
dm_snapshot            17344  0
dm_mod                 53880  6 dm_mirror,dm_snapshot
via_rhine              22180  0
uhci_hcd               31600  0
mii                     5824  1 via_rhine
processor              18836  0

sirius:~# ll /dev/lp0
ls: /dev/lp0: No such file or directory
sirius:~# modprobe parport
sirius:~# modprobe parport_pc
sirius:~# modprobe lp
sirius:~# ll /dev/lp0
crw-rw----  1 root lp 6, 0 2006-12-16 14:45 /dev/lp0

And «cat "test" > /dev/lp0» performs the printing. Then, I unhide the
usb device and reboot the dom0.

sirius:~# ll /dev/usb/lp0
crw-rw----  1 root lp 180, 0 2006-12-16 11:59 /dev/usb/lp0
sirius:~# escputil -u -i -r /dev/usb/lp0
Escputil version 4.2.7, Copyright (C) 2000-2001 Robert Krawitz
Escputil comes with ABSOLUTELY NO WARRANTY; for details type 'escputil -l'
This is free software, and you are welcome to redistribute it
under certain conditions; type 'escputil -l' for details.

           Ink color    Percent remaining
               Black     81
                Cyan     45
             Magenta     85
              Yellow     57

DomU (I make it with debootstrap):

printserver:~# ll /dev/lp0
ls: /dev/lp0: No such file or directory
printserver:~# modprobe parport
printserver:~# modprobe parport_pc
printserver:~# modprobe lp
printserver:~# ll /dev/lp0
ls: /dev/lp0: No such file or directory

Should I install other(s) module(s) or to hide another device from dom0?
Can the missign /dev/lp0 device be the cause of missing /dev/usb/lp0?

Regards,
Daniel
-- 
Daniel Bareiro - System Administrator
Fingerprint: BFB3 08D6 B4D1 31B2 72B9  29CE 6696 BF1B 14E6 1D37
Powered by Debian GNU/Linux Etch - Linux user #188.598

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>