Comment 52 for bug 29050

Revision history for this message
ycopin (yannick-copin) wrote :

I have the very same problem using HP Deskjet 695C on parallel port (with Ubuntu Dapper Beta with latest available updates).

Linux version 2.6.15-21-386 (buildd@rothera) (gcc version 4.0.3 (Ubuntu 4.0.3-1ubuntu5)) #1 PREEMPT Fri Apr 21 16:43:33 UTC 2006
gnome-cups-manager: 0.31-1.1ubuntu6
cupsys: 1.1.99.rc3-0ubuntu1

The printer is not detected, and the CUPS configuration tools does not offer any extra possibility:

Use a detected printer: no printers detected
Use another printer by specifying a port: hp no_device_found

Still, the printer was detected at boot time (but nothing about lp device):

dmesg:
[4294682.357000] parport: PnPBIOS parport detected.
[4294682.358000] parport0: PC-style at 0x378, irq 7 [PCSPP,TRISTATE]
[...]
[4294682.628000] parport0: Printer, HEWLETT-PACKARD DESKJET 690C

Cupsd is running, but there's no lp devices:

[sylvie@Traoumad:~]$ ls -l /dev/lp*
ls: /dev/lp*: No such file or directory

Now, following your advice, I did:

[sylvie@Traoumad:~]$ sudo -u cupsys /usr/lib/cups/daemon/cups-deviced 1 1 `id -u cupsys` ''
Password:
DEBUG: [cups-deviced] Added device "beh"...
DEBUG: [cups-deviced] Added device "bluetooth"...
DEBUG: [cups-deviced] Added device "hp:/no_device_found"...
DEBUG: [cups-deviced] Added device "smb"...
DEBUG: [cups-deviced] Added device "ipp"...
DEBUG: [cups-deviced] Added device "http"...
DEBUG: [cups-deviced] Added device "lpd"...
FATAL: Error inserting lp (/lib/modules/2.6.15-21-386/kernel/drivers/char/lp.ko): Operation not permitted
DEBUG: [cups-deviced] Added device "socket"...
Content-Type: application/ipp

[sylvie@Traoumad:~]$ sudo /usr/lib/cups/daemon/cups-deviced 1 1 `id -u cupsys` ''
DEBUG: [cups-deviced] Added device "beh"...
DEBUG: [cups-deviced] Added device "bluetooth"...
DEBUG: [cups-deviced] Added device "hp:/no_device_found"...
DEBUG: [cups-deviced] Added device "smb"...
DEBUG: [cups-deviced] Added device "ipp"...
DEBUG: [cups-deviced] Added device "http"...
DEBUG: [cups-deviced] Added device "lpd"...
DEBUG: [cups-deviced] Added device "parallel:/dev/lp0"...
DEBUG: [cups-deviced] Added device "socket"...
Content-Type: application/ipp

This created the lp0 device:

dmesg:
[4295800.375000] lp0: using parport0 (interrupt-driven).

and offered me the possibility to specify a port for the printer:

Use another printer by specifying a port: LPT #1

After these steps (which I have to do after every reboot), the printer works properly. There's however still strange things happening **while printing**:

* the 'General status' of the printer (as quoted in the Deskjet-695C
  Properties configuration tool) is:
  Printer not connected; will retry in 30 seconds...
* the Connection tab says the printer is:
  * Network printer CUPS (IPP)
  * URI: parallel:/dev/lp0

Once the job is over, the status turns to 'Ready', and the Connection comes back to "Local printer" on LPT #1.

I hope it helps, it's really a nasty bug.