"Unplugged or turned off": wrong!

Bug #341646 reported by Nicolò Chieffo
2
Affects Status Importance Assigned to Milestone
hal-cups-utils (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: cups

CUPS thinks that the printer is off (Samsung ML-1640)
steps to reproduce:
- insert the printer USB cable
- open System->Administration->Printers
- click New (the printer is autoconfigured and uses the driver Samsung ML-1640, SpliX V. 2.0.0)
- Print something
IT WORKS!!!
- now unplug the printer
- replug the printer
THE PRINTER WON'T WORK!!! "Unplugged or turned off"

you can make it work removing and readding the printer in the configuration utility

The printer is anyway recognized by lsusb and by hal.
Restarting the CUPS service does not fix the problem.
If I'm not wrong, also a reboot does not fix the problem!

ProblemType: Bug
Architecture: i386
CupsErrorLog: Error: [Errno 13] Permesso negato: '/var/log/cups/error_log'
DistroRelease: Ubuntu 9.04
Lpstat:
 dispositivo per ML-1640-Series: hal:///org/freedesktop/Hal/devices/usb_device_4e8_3292_144QBKAQ412519L__if0_printer_noserial
 dispositivo per Samsung-ML-1710: lpd://192.168.0.1/LPRServer
MachineType: Dell Inc. Latitude E6400
Package: cups 1.3.9-15
Papersize: a4
PpdFiles:
 Samsung-ML-1710: Samsung ML-1710, SpliX V. 2.0.0
 ML-1640-Series: Samsung ML-1640, SpliX V. 2.0.0
ProcCmdLine: root=/dev/sda2 ro quiet splash
ProcEnviron:
 PATH=(custom, user)
 LANG=it_IT.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.28-9.31-generic
SourcePackage: cups

Revision history for this message
Nicolò Chieffo (yelo3) wrote :
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Can you please reactivate the printer via "cupsenable" or with system-config-printer (right-click printer, then click "Enabled")? Now you should be able to print.

Now unplug the printer, wait 5 seconds, and plug it in again. Then attach your /var/log/syslog file to this bug report. Do not compress the file.

Changed in cups:
status: New → Incomplete
Revision history for this message
Nicolò Chieffo (yelo3) wrote : Re: [Bug 341646] Re: "Unplugged or turned off": wrong!

It works, thanks!
here you are the syslog (I removed the lines before the usb disconnection)

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Can you run "lpinfo -v" on your machine, with your USB printer plugged in and turned on?

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Please replace your file

/usr/lib/hal/scripts/hal_lpadmin

by the attached file and make it executable with

sudo chmod 755 /usr/lib/hal/scripts/hal_lpadmin

Then unplug and replug your printer. Does it get re-enabled now?

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package hal-cups-utils - 0.6.19+git20090217-0ubuntu2

---------------
hal-cups-utils (0.6.19+git20090217-0ubuntu2) jaunty; urgency=low

  * debian/patches/10_hal-lpadmin-use-always-usblp-hal-uris.patch: Handle
    queues with CUPS URIs using the "hal" backend correctly (LP: #341646).
  * debian/rules: Fixed typo.

 -- Till Kamppeter <email address hidden> Fri, 13 Mar 2009 00:25:32 +0100

Changed in hal-cups-utils:
status: Incomplete → Fix Released
Revision history for this message
Nicolò Chieffo (yelo3) wrote :

Sorry if I've not tested it yet, I need to come back home because I
have my printer there

Revision history for this message
Nicolò Chieffo (yelo3) wrote :

I've received the update
hal-cups-utils 0.6.19+git20090217-0ubuntu2

I've rebooted but the situation is still the same for me.
lpinfo -v shows both hal & usb 'ports':
direct hal:///org/freedesktop/Hal/devices/usb_device_4e8_3292_144QBKAQ412519L__if0_printer_noserial
direct usb://Samsung/ML-1640%20Series

This is strange because when I insert the USB cable, the printer is detected, and a tray icon appears (a printer + a hand lens) but the printer status does not change to 'Inactive'

As you can see in the syslog3 that I will attache, the printer is not re-enabled, it seems that he is trying to add a new printer, failing because he does not find the correct driver

Changed in hal-cups-utils:
status: Fix Released → Confirmed
Revision history for this message
Nicolò Chieffo (yelo3) wrote :
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

The problem was that hal_lpadmin has used different methods to determine whether for a printer reported by HAL there is already a print queue set up for the plugging and unplugging cases

Please replace your file

/usr/lib/hal/scripts/hal_lpadmin

by the attached file and make it executable with

sudo chmod 755 /usr/lib/hal/scripts/hal_lpadmin

Then unplug and replug your printer. Does it get re-enabled now?

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package hal-cups-utils - 0.6.19+git20090217-0ubuntu3

---------------
hal-cups-utils (0.6.19+git20090217-0ubuntu3) jaunty; urgency=low

  * debian/patches/15_hal-lpadmin-fix-device-id-reading-find-configured-queues-by-same-method-for-plug-and-unplug.patch:
    Fixed reading of the printer device ID (LP: #306301) and let hal_lpadmin
    use the same method for finding already configured CUPS queues on plugging
    and unplugging the printer (LP: #341646, LP: #139317).

 -- Till Kamppeter <email address hidden> Sat, 14 Mar 2009 00:00:32 +0100

Changed in hal-cups-utils:
status: Confirmed → Fix Released
Revision history for this message
Nicolò Chieffo (yelo3) wrote :

I will test it on friday, sorry for these long delays

Revision history for this message
Nicolò Chieffo (yelo3) wrote :

Ok it's working, thanks!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.