Bug 276824 - HP Photosmart C4180 drops out of ready for printing after scanning
Summary: HP Photosmart C4180 drops out of ready for printing after scanning
Status: VERIFIED FIXED
: 280047 (view as bug list)
Alias: None
Product: openSUSE 10.3
Classification: openSUSE
Component: Printing (show other bugs)
Version: Alpha 4
Hardware: i586 Other
: P5 - None : Major (vote)
Target Milestone: ---
Assignee: Johannes Meixner
QA Contact: Johannes Meixner
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-22 00:01 UTC by Sid Boyce
Modified: 2007-06-05 10:40 UTC (History)
0 users

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sid Boyce 2007-05-22 00:01:07 UTC
Same on my x86 PC (10.3 Alpha4) and on a relative's x86_64 PC (10.3 Alpha3plus), both have the same model of printers attached.
1. Print a document, works.
2. Scan a document, works.
3. Print a document, does not work.
 # lpq
Q8110B is not ready
Rank    Owner   Job     File(s)                         Total Size
1st     lancelo 71      JDunn_Kendrick                  66560 bytes

4. Reboot and lprm job_number, OOo .odt document prints.
"rccups restart" has no effect. http://localhost:631 and start printer, problem still there.
# lpq
Q8110B is not ready
Rank    Owner   Job     File(s)                         Total Size
1st     lancelo 71      JDunn_Kendrick                  66560 bytes
barrabas:/ftp/May07 # lprm 71
barrabas:/ftp/May07 # rccups restart
Shutting down cupsd                                                   done
Starting cupsd                                                        done
#### had to start printer from http://localhost:631, but lpq says it's still not ready.
barrabas:/ftp/May07 # lpq
Q8110B is not ready
no entries
barrabas:/ftp/May07 # lpq
Q8110B is not ready
Rank    Owner   Job     File(s)                         Total Size
1st     lancelo 72      JDunn_Kendrick                  66560 bytes
barrabas:/ftp/May07 # lprm 72
barrabas:/ftp/May07 # lpq
Q8110B is not ready
Rank    Owner   Job     File(s)                         Total Size
1st     lancelo 73      JDunn_Kendrick                  66560 bytes
Comment 1 Sid Boyce 2007-05-22 00:03:14 UTC
barrabas:/ftp/May07 # lpq
Q8110B is not ready
no entries
barrabas:/ftp/May07 # rccups restart
Shutting down cupsd                                                   done
Starting cupsd                                                        done
barrabas:/ftp/May07 # lpq
Q8110B is not ready
no entries
Comment 2 Sid Boyce 2007-05-22 00:05:16 UTC
Scan still works.
Comment 3 Johannes Meixner 2007-05-22 10:00:33 UTC
Provide debugging info as follwos:

A)
A1: Set the "LogLevel debug" in /etc/cups/cupsd.conf.
A2: Stop cupsd.
A3: Move /var/log/cups/error_log* to another location (or delete it)
    in order to avoid having to search through gigantic log files.
A4: Start cupsd.
A5: echo "PRINT001" | logger
A6: Print a document.

B)
B1: echo "SCAN001" | logger
B2: Scan a document with debugging as described in
http://en.opensuse.org/SDB:Configuring_Scanners_from_SUSE_LINUX_9.2
    "Trouble-Shooting (Debugging)"

C)
C1: echo "PRINT002" | logger
C2: Try to print a second document.

D)
grep -A 10000 "PRINT001" /var/log/messages | grep -i usb

E)
Provide /etc/cups/* /var/log/cups/* and the debugging info
from steps B2 and D as attachments to this bug.
Comment 4 Sid Boyce 2007-05-22 10:42:59 UTC
Will do the above. Here is the last 60 lines of error_log from the stuff I originally did.
# tail -60 /var/log/cups/error_log
I [22/May/2007:00:52:50 +0100] Listening to /var/run/cups/cups.sock (Domain)
I [22/May/2007:00:52:50 +0100] Loaded configuration file "/etc/cups/cupsd.conf"
I [22/May/2007:00:52:50 +0100] Using default TempDir of /var/spool/cups/tmp...
I [22/May/2007:00:52:50 +0100] Cleaning out old temporary files in "/var/spool/cups/tmp"...
I [22/May/2007:00:52:50 +0100] Configured for up to 100 clients.
I [22/May/2007:00:52:50 +0100] Allowing up to 100 client connections per host.
I [22/May/2007:00:52:50 +0100] Using policy "default" as the default!
I [22/May/2007:00:52:50 +0100] Full reload is required.
I [22/May/2007:00:52:50 +0100] Loaded MIME database from '/etc/cups': 36 types, 40 filters...
I [22/May/2007:00:52:50 +0100] Loading job cache file "/var/cache/cups/job.cache"...
I [22/May/2007:00:52:50 +0100] Full reload complete.
I [22/May/2007:00:52:50 +0100] Listening to :::631 on fd 0...
I [22/May/2007:00:52:50 +0100] Listening to 0.0.0.0:631 on fd 2...
I [22/May/2007:00:52:50 +0100] Listening to /var/run/cups/cups.sock on fd 3...
I [22/May/2007:00:53:13 +0100] Adding start banner page "none" to job 72.
I [22/May/2007:00:53:13 +0100] Adding end banner page "none" to job 72.
I [22/May/2007:00:53:13 +0100] Job 72 queued on "Q8110B" by "lancelot".
I [22/May/2007:00:53:28 +0100] Job 72 was canceled by "root".
I [22/May/2007:00:54:09 +0100] commptr=""
I [22/May/2007:00:54:09 +0100] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=9107)
I [22/May/2007:00:54:14 +0100] commptr="?op=start-printer&printer_name=Q8110B"
I [22/May/2007:00:54:14 +0100] Started "/usr/lib/cups/cgi-bin/admin.cgi" (pid=9109)
E [22/May/2007:00:54:15 +0100] Resume-Printer: Unauthorized
I [22/May/2007:00:54:15 +0100] Saving printers.conf...
I [22/May/2007:00:54:15 +0100] Printer "Q8110B" started by "root".
I [22/May/2007:00:54:18 +0100] commptr=""
I [22/May/2007:00:54:18 +0100] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=9110)
I [22/May/2007:00:54:32 +0100] Adding start banner page "none" to job 73.
I [22/May/2007:00:54:32 +0100] Adding end banner page "none" to job 73.
I [22/May/2007:00:54:32 +0100] Job 73 queued on "Q8110B" by "lancelot".
I [22/May/2007:00:54:32 +0100] Started filter /usr/lib/cups/filter/pstops (PID 9111) for job 73.
I [22/May/2007:00:54:32 +0100] Started filter /usr/lib/cups/filter/foomatic-rip (PID 9112) for job 73.
I [22/May/2007:00:54:32 +0100] Started backend /usr/lib/cups/backend/hal (PID 9113) for job 73.
E [22/May/2007:00:54:32 +0100] [Job 73] Unable to open HAL device "hal:///org/freedesktop/Hal/devices/usb_device_3f0_5711_MY6CMH72JX04J7_if1_printer_MY6CMH72JX04J7"
E [22/May/2007:00:54:32 +0100] PID 9113 (/usr/lib/cups/backend/hal) stopped with status 1!
I [22/May/2007:00:54:32 +0100] Hint: Try setting the LogLevel to "debug" to find out more.
E [22/May/2007:00:54:34 +0100] PID 9112 (/usr/lib/cups/filter/foomatic-rip) stopped with status 9!
I [22/May/2007:00:54:34 +0100] Hint: Try setting the LogLevel to "debug" to find out more.
I [22/May/2007:00:54:34 +0100] [Job 73] Backend returned status 1 (failed)
I [22/May/2007:00:54:34 +0100] Saving printers.conf...
I [22/May/2007:01:02:19 +0100] Job 73 was canceled by "root".
I [22/May/2007:01:02:28 +0100] Scheduler shutting down normally.
I [22/May/2007:01:02:28 +0100] Saving remote.cache...
I [22/May/2007:01:02:28 +0100] Saving job cache file "/var/cache/cups/job.cache"...
I [22/May/2007:01:02:28 +0100] Listening to :::631 (IPv6)
I [22/May/2007:01:02:28 +0100] Listening to 0.0.0.0:631 (IPv4)
I [22/May/2007:01:02:28 +0100] Listening to /var/run/cups/cups.sock (Domain)
I [22/May/2007:01:02:28 +0100] Loaded configuration file "/etc/cups/cupsd.conf"
I [22/May/2007:01:02:28 +0100] Using default TempDir of /var/spool/cups/tmp...
I [22/May/2007:01:02:28 +0100] Cleaning out old temporary files in "/var/spool/cups/tmp"...
I [22/May/2007:01:02:28 +0100] Configured for up to 100 clients.
I [22/May/2007:01:02:28 +0100] Allowing up to 100 client connections per host.
I [22/May/2007:01:02:28 +0100] Using policy "default" as the default!
I [22/May/2007:01:02:28 +0100] Full reload is required.
I [22/May/2007:01:02:28 +0100] Loaded MIME database from '/etc/cups': 36 types, 40 filters...
I [22/May/2007:01:02:28 +0100] Loading job cache file "/var/cache/cups/job.cache"...
I [22/May/2007:01:02:28 +0100] Full reload complete.
I [22/May/2007:01:02:28 +0100] Listening to :::631 on fd 0...
I [22/May/2007:01:02:28 +0100] Listening to 0.0.0.0:631 on fd 2...
I [22/May/2007:01:02:28 +0100] Listening to /var/run/cups/cups.sock on fd 3...
Comment 5 Johannes Meixner 2007-05-22 11:53:00 UTC
This one looks interesting:
-----------------------------------------------------------------------------
E [22/May/2007:00:54:32 +0100] [Job 73] Unable to open HAL device
"hal:///org/freedesktop/Hal/devices/usb_device_3f0_5711_MY6CMH72JX04J7_if1_printer_MY6CMH72JX04J7"
E [22/May/2007:00:54:32 +0100] PID 9113 (/usr/lib/cups/backend/hal)
stopped with status 1!
-----------------------------------------------------------------------------

Did you set up the print queue using the hal backend?
Check what "lpstat -v" shows you.

If you use the hal backend, I guess you did set up the print queue
using the Gnome printer setup tool which prefers the hal backend
for any USB printer.

A HP all-in-one device must be set up with the hp backend.
Use YaST or even better use hp-setup (special setup tool from HP).

For background information see
https://bugzilla.novell.com/show_bug.cgi?id=184798
in particular item "D".

If you use the hal backend, I would like to knwo how exactly you
did the print queue setup. I.e. which exact tool did you use.
Comment 6 Sid Boyce 2007-05-23 22:48:25 UTC
Printers were set up with YaST.
 # lpstat -v
device for HP_DESKJET_840C_USB_2: usb://HP/DESKJET%20840C?serial=HU05V1T104KV
device for Q8110B: hal:///org/freedesktop/Hal/devices/usb_device_3f0_5711_MY6CMH72JX04J7_if1_printer_MY6CMH72JX04J7

I am very busy at the moment, probably will be able to have a further look tomorrow night.
Comment 7 Sid Boyce 2007-05-23 22:57:11 UTC
 # hp-info

HP Linux Imaging and Printing System (ver. 1.7.4a)
Device Information Utility ver. 3.4

Copyright (c) 2001-7 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

warning: Inrecognized URI: usb://HP/DESKJET%20840C?serial=HU05V1T104KV
warning: Inrecognized URI: hal:///org/freedesktop/Hal/devices/usb_device_3f0_5711_MY6CMH72JX04J7_if1_printer_MY6CMH72JX04J7

Choose device from probed devices connected on bus(es): usb:

Num.  Device-URI                                             CUPS printer(s)
----  -----------------------------------------------------  -------------------------------------
0     hp:/usb/DeskJet_840C?serial=HU05V1T104KV
1     hp:/usb/Photosmart_C4100_series?serial=MY6CMH72JX04J7

Enter number 0...1 for device (q=quit) ?1

hp:/usb/Photosmart_C4100_series?serial=MY6CMH72JX04J7

Device Parameters (dynamic data):
  Parameter                     Value(s)
  ----------------------------  ----------------------------------------------------------
  3bit-status-code              24
  3bit-status-name              NoFault
  agent1-ack                    True
  agent1-desc                   Black cartridge
  agent1-dvc                    16150
  agent1-health                 0
  agent1-health-desc            Good/OK
  agent1-hp-ink                 False
  agent1-id                     16
  agent1-kind                   3
  agent1-known                  False
  agent1-level                  83
  agent1-level-trigger          0
  agent1-sku                    337
  agent1-type                   1
  agent1-virgin                 True
  agent2-ack                    True
  agent2-desc                   Tri-color cartridge
  agent2-dvc                    5220
  agent2-health                 0
  agent2-health-desc            Good/OK
  agent2-hp-ink                 False
  agent2-id                     17
  agent2-kind                   3
  agent2-known                  False
  agent2-level                  92
  agent2-level-trigger          0
  agent2-sku                    342/343
  agent2-type                   2
  agent2-virgin                 True
  agent3-ack                    False
  agent3-desc                   Photo cartridge
  agent3-dvc                    0
  agent3-health                 1
  agent3-health-desc            Not installed
  agent3-hp-ink                 False
  agent3-id                     0
  agent3-kind                   3
  agent3-known                  False
  agent3-level                  0
  agent3-level-trigger          7
  agent3-sku                    348
  agent3-type                   3
  agent3-virgin                 False
  agent4-ack                    False
  agent4-desc                   Photo gray cartridge
  agent4-dvc                    0
  agent4-health                 1
  agent4-health-desc            Not installed
  agent4-hp-ink                 False
  agent4-id                     0
  agent4-kind                   3
  agent4-known                  False
  agent4-level                  0
  agent4-level-trigger          7
  agent4-sku                    100
  agent4-type                   10
  agent4-virgin                 False
  back-end                      hp
  cups-printer
  cups-uri                      hp:/usb/Photosmart_C4100_series?serial=MY6CMH72JX04J7
  dev-file
  device-state                  1
  device-uri                    hp:/usb/Photosmart_C4100_series?serial=MY6CMH72JX04J7
  deviceid                      MFG:HP;MDL:Photosmart C4100
                                series;CMD:MLC,PCL,PML,DW-PCL,DESKJET,DYN;1284.4DL:4d,4e,1
                                ;CLS:PRINTER;DES:Q8110B;SN:MY6CMH72JX04J7;S:038000C4840010
                                21002c1800053c288005c;J: ;Z:0102,0503f169014649,0600;
  duplexer                      0
  error-state                   0
  host
  in-tray1                      True
  in-tray2                      False
  is-hp                         True
  media-path                    3
  panel                         0
  panel-line1
  panel-line2
  photo-tray                    0
  port                          1
  r                             4
  revision                      3
  rg                            002
  rr                            000004
  rs                            002000004
  scan-uri                      hpaio:/usb/Photosmart_C4100_series?serial=MY6CMH72JX04J7
  serial                        MY6CMH72JX04J7
  status-code                   1000
  status-desc                   The printer is idle.
  supply-door                   0
  top-door                      1

Model Parameters (static data):
  Parameter                     Value(s)
  ----------------------------  ----------------------------------------------------------
  align-type                    1
  clean-type                    1
  color-cal-type                3
  copy-type                     0
  embedded-server-type          0
  fax-type                      0
  fw-download                   0
  icon                          Photosmart_C4100.png
  io-control                    0
  io-mfp-mode                   3
  io-mode                       1
  io-scan-port                  0
  io-support                    2
  linefeed-cal-type             0
  model                         Photosmart_C4100_series
  model-ui                      HP Photosmart c4100 series
  model1                        Photosmart C4100 series
  model2                        Photosmart C4110
  model3                        Photosmart C4140
  model4                        Photosmart C4150
  model5                        Photosmart C4180
  model6                        Photosmart C4183
  model7                        Photosmart C4188
  panel-check-type              0
  pcard-type                    1
  pq-diag-type                  0
  r-type                        1
  r0-agent1-kind                3
  r0-agent1-sku                 98
  r0-agent1-type                1
  r0-agent2-kind                3
  r0-agent2-sku                 93/95
  r0-agent2-type                2
  r0-agent3-kind                3
  r0-agent3-sku                 99
  r0-agent3-type                3
  r0-agent4-kind                3
  r0-agent4-sku                 100
  r0-agent4-type                10
  r10-agent1-kind               3
  r10-agent1-sku                851
  r10-agent1-type               1
  r10-agent2-kind               3
  r10-agent2-sku                854/855
  r10-agent2-type               2
  r10-agent3-kind               3
  r10-agent3-sku                858
  r10-agent3-type               3
  r10-agent4-kind               3
  r10-agent4-sku                100
  r10-agent4-type               10
  r2-agent1-kind                3
  r2-agent1-sku                 98
  r2-agent1-type                1
  r2-agent2-kind                3
  r2-agent2-sku                 93/95
  r2-agent2-type                2
  r2-agent3-kind                3
  r2-agent3-sku                 99
  r2-agent3-type                3
  r2-agent4-kind                3
  r2-agent4-sku                 100
  r2-agent4-type                10
  r4-agent1-kind                3
  r4-agent1-sku                 337
  r4-agent1-type                1
  r4-agent2-kind                3
  r4-agent2-sku                 342/343
  r4-agent2-type                2
  r4-agent3-kind                3
  r4-agent3-sku                 348
  r4-agent3-type                3
  r4-agent4-kind                3
  r4-agent4-sku                 100
  r4-agent4-type                10
  r8-agent1-kind                3
  r8-agent1-sku                 129
  r8-agent1-type                1
  r8-agent2-kind                3
  r8-agent2-sku                 136/135
  r8-agent2-type                2
  r8-agent3-kind                3
  r8-agent3-sku                 138
  r8-agent3-type                3
  r8-agent4-kind                3
  r8-agent4-sku                 100
  r8-agent4-type                10
  scan-style                    1
  scan-type                     1
  status-battery-check          0
  status-dynamic-counters       1
  status-type                   2
  support-released              1
  support-type                  2
  support-ver                   1.6.6
  tech-class                    DJGenericVIP
  tech-type                     2

Status History (most recent first):
  Date/Time             Code   Status Description                        User      Job ID
  --------------------  -----  ----------------------------------------  --------  --------
  23/05/07 23:54:45     1000   The printer is idle.                      root
  22/05/07 01:04:39     2001   Scan job completed.                       root
  22/05/07 01:04:23     2000   Scan job started.                         root
  22/05/07 00:36:18     2001   Scan job completed.                       root
  22/05/07 00:35:36     2000   Scan job started.                         root

Comment 8 Sid Boyce 2007-05-23 22:59:58 UTC
 # chkconfig hplip
hplip  on
barrabas:/home/lancelot # lpq
Q8110B is not ready
Rank    Owner   Job     File(s)                         Total Size
1st     root    74      .gmp4player_rc                  1024 bytes
2nd     boycie  75      http://192.168.100.1/config.htm 198656 bytes
barrabas:/home/lancelot # /etc/init.d/hplip restart
Stopping hpiod:                                            [  OK  ]
Stopping hpssd:                                            [  OK  ]
Starting hpiod:                                            [  OK  ]
Starting hpssd:                                            [  OK  ]
Note: You may have to restart the cupsd.
barrabas:/home/lancelot # rccups restart
Shutting down cupsd                                                   done
Starting cupsd                                                        done
barrabas:/home/lancelot # lpq
Q8110B is not ready
Rank    Owner   Job     File(s)                         Total Size
1st     root    74      .gmp4player_rc                  1024 bytes
2nd     boycie  75      http://192.168.100.1/config.htm 198656 bytes
Comment 9 Sid Boyce 2007-05-23 23:17:38 UTC
I've run hp-setup and chosen USB, both printers printed the test page. That's as far as I can get tonight, up at 06:00 for an all-day stint.
Comment 10 Sid Boyce 2007-05-23 23:20:21 UTC
Regarding the print queue setup, YaST didn't ask for it, so I presume there is a default queue used.
Comment 11 Sid Boyce 2007-05-23 23:39:39 UTC
http://localhost:631 and removed the old printers, set Photosmart_C4100 as the default printer. 
# lpq
Photosmart_C4100 is ready
no entries

Used xsane to scan in an image.

barrabas:/ftp/May07 # lpq
Photosmart_C4100 is ready
no entries

# lpr ~/.bashrc
All works, seems "hp-setup" needed to be done.
# lpq
Photosmart_C4100 is ready
no entries

# lpr /boot/grub/menu.lst
File printed from another box on the network.
Comment 12 Sid Boyce 2007-05-23 23:49:26 UTC
# lpstat -v
device for DeskJet_840C: hp:/usb/DeskJet_840C?serial=HU05V1T104KV
device for Photosmart_C4100: hp:/usb/Photosmart_C4100_series?serial=MY6CMH72JX04J7

Scanning over the network is also working.
Comment 13 Johannes Meixner 2007-05-24 08:58:06 UTC
Michal,
for your information:

Because of comment #6 ("Printers were set up with YaST")
it is actually a duplicate of bug #184798 or bug #175323
(i.e. another example how YaST fails to set up
a particular HP all-in-one device correctly).

Michal,
because this bug is for openSUSE 10.3
it seems bug #175323 is not yet 100% fixed.
How does YaST find out if a device is a HP all-in-one?
Did you notice
https://bugzilla.novell.com/show_bug.cgi?id=184798#c12
Comment 15 Johannes Meixner 2007-06-05 08:42:43 UTC
*** Bug 280047 has been marked as a duplicate of this bug. ***