Comment 35 for bug 369850

Revision history for this message
JL Granger (cptloulou) wrote : Re: Cannot set up parallel port printer on Ubuntu 9.04

It is not exactly the same problem because I use a PCI parallel port card to connect my HP-4L on my desktop but there are some similarities and it could help. The printing was fine with 9.04 but with 9.10 the printing was erratic (a lot of miscelleneous caracters and pages for 2 caracters to print), "par" option does not appear in hp-setup. When I compare parport0 line of dmesg in 9.04 and 9.10 they are really different with DMA and EPP in 9.04 and "using FIFO" and no EPP in 9.10.
in 9.10 : parport0: PC-style at 0xc880 (0xc800), irq 22, using FIFO [PCSPP,TRISTATE,COMPAT,ECP]

I use the solution of CAMILO with : dmesg|grep parport (to get io and irq); sudo rmmod lp ; sudo rmmod parport_pc ; sudo /sbin/insmod /lib/modules/2.6.31-15-generic/kernel/drivers/parport/parport_pc.ko io=0xc880 irq=22 dma=3; sudo /sbin/insmod /lib/modules/2.6.31-15-generic/kernel/drivers/char/lp.ko
I reinstalled (supress/new) the printer with system-> administration and it worked fine again
In dmesg i got now : parport0: PC-style at 0xc880, irq 22 [PCSPP,TRISTATE,EPP]. I am not sure for dma=3 but anyway it solve the problem.
Regards