Bug 2909

Summary: error after HP printer configured in MCC, after exit of MCC, in console window (SOLVED)
Product: Mageia Reporter: dennis drown <dadrown1>
Component: RPM PackagesAssignee: Florian Hubold <doktor5000>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: Normal CC: tmb
Version: 1   
Target Milestone: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Source RPM: hplip CVE:
Status comment:
Attachments: error.log
messages.txt
newest message.txt

Description dennis drown 2011-10-02 16:47:33 CEST
i have a HP laserjet 1200, when i configure it in MCC it creates it,when i exit mcc to console i see this message:

**** Incorrect IEEE 1284 Device ID: [u'3-distribution/HP/hp-laserjet_1200-pcl3.ppd.gz']
**** Actual ID is MFG:Hewlett-Packard;MDL:HP LaserJet 1200;
**** Please report a bug against the HPLIP component

so i'm reporting it, don't know if thats here or report it to HPLIP.org

if i delete the printer and reconfig i get the same thing

system is up to date

it may or may not print a test page
sometimes when i reboot it will print what i tried to print
most times it doesn't
Comment 1 Remco Rijnders 2011-10-03 08:29:02 CEST
Florian, can you have a look at this one please?

Assignee: bugsquad => doktor5000
Source RPM: (none) => hplip

Comment 2 Florian Hubold 2011-10-03 11:36:55 CEST
There are already several corrected IEEE 1284 Device IDs using foomatic data. This should definitely be reported to hplip developers: https://bugs.launchpad.net/hplip/+filebug

In the meantime i'll see what i can do about it.

Status: NEW => ASSIGNED

Comment 3 Florian Hubold 2011-10-04 19:50:40 CEST
OK, so most of the 1284DeviceIDs are fixed in the hpijs/hpcups drivers, but seems the PPDs not:

$ zgrep 1284DeviceID  /usr/share/ppd/HP/hp-laserjet_1200-pcl3.ppd.gz
*1284DeviceID: "MFG:HP;MDL:hp laserjet 1200;DES:hp laserjet 1200;"

Which should rather be:

*1284DeviceID: "MFG:Hewlett-Packard;MDL:HP LaserJet 1200;DES:HP LaserJet 1200;"

Investigating.
Comment 4 Florian Hubold 2011-10-04 23:05:20 CEST
OK, so this 1284 DeviceID is normally only used to find the correct driver for a printer: http://fedoraproject.org/wiki/Features/AutomaticPrintDriverInstallation

This is no real error and is not the cause of the printer not working.
Please attach your /var/log/cups/error.log
Comment 5 dennis drown 2011-10-05 11:00:10 CEST
Created attachment 896 [details]
error.log

this is the latest error.log
Comment 6 Florian Hubold 2011-10-05 12:13:26 CEST
The device URI is wrong:
"DEVICE_URI=usb://HP/LaserJet%201200"

should be
hp:/usb/...

Could you please tell how you setup your printer in the first place?

You can change the connection in CUPS web frontend in the administration dropdown menu for your printer, look for "Modify printer". What connections options/driver does it offer to you?
Comment 7 dennis drown 2011-10-05 21:32:42 CEST
setup:
i opened a console
su -  to root
mcc

this is how i have set up this printer
i was using mandriva tho


these are the options/driver it offers:

modify Hewlett-Packard-HP-LaserJet-1200
Current Connection: 	usb://HP/LaserJet%201200
Local Printers: 	SCSI Printer
HP LaserJet 1200 (HP LaserJet 1200)   (** i tried this didnt work**)
HP Printer (HPLIP)
HP Fax (HPLIP)
Discovered Network Printers: 	
Other Network Printers: 	AppSocket/HP JetDirect
Backend Error Handler
LPD/LPR Host or Printer
Internet Printing Protocol (ipp)
Internet Printing Protocol (http)
Windows Printer via SAMBA
	
did the modify printer this is what it says now:

Modify Hewlett-Packard-HP-LaserJet-1200
Current Connection: 	hp:/usb//HP/LaserJet%201200
Local Printers: 	SCSI Printer
HP Printer (HPLIP)
HP Fax (HPLIP)
Discovered Network Printers: 	
Other Network Printers: 	AppSocket/HP JetDirect
LPD/LPR Host or Printer
Windows Printer via SAMBA
Internet Printing Protocol (ipp)
Internet Printing Protocol (http)
Backend Error Handler
Comment 8 Florian Hubold 2011-10-05 22:06:07 CEST
OK, and what was the result of the modification? Are you able to print now?
Comment 9 dennis drown 2011-10-06 11:16:36 CEST
no still not able to print no matter which way i configure it
MCC or the localhost:631 interface

i'm going to try different drivers for the hp 1200
Comment 10 Florian Hubold 2011-10-06 12:33:49 CEST
Please show the output of 
rpm -qa | grep hplip
and attach your /etc/cups/printers.conf.

Also it seems you are using the wrong or an old PPD. It should either be hp-laserjet_1200-pcl3.ppd or hp-laserjet_1200-ps.ppd. You should completely remove the printer in CUPS web frontend and readd it using CUPS.
Comment 11 Florian Hubold 2011-10-06 12:52:01 CEST
Also as linuxprinting/openprinting is currently still down, regarding to http://www.linuxquestions.org/questions/linux-hardware-18/problem-in-configuring-hp-laserjet-1200-a-330696/ you could try using "plxmono" as driver which seems to work fine.

But still, you should completely remove the printer and then readd it via CUPS.
Comment 12 dennis drown 2011-10-06 14:24:29 CEST
[theone@localhost ~]$ rpm -qa | grep hplip
hplip-3.11.7-1.1.mga1
hplip-gui-3.11.7-1.1.mga1
hplip-hpijs-3.11.7-1.1.mga1
hplip-model-data-3.11.7-1.1.mga1
hplip-hpijs-ppds-3.11.7-1.1.mga1

wouldn't let me attach /etc/cups/printer.conf but here is contents of the file:

# Printer configuration file for CUPS v1.4.6
# Written by cupsd on 2011-10-06 08:05
# DO NOT EDIT THIS FILE WHEN CUPSD IS RUNNING
<Printer HP_LaserJet_1200>
Info HP LaserJet 1200
Location 
MakeModel HP LaserJet 1200 pcl3, hpcups 3.11.7
DeviceURI usb://HP/LaserJet%201200
State Idle
StateTime 1317902678
Type 36876
Filter application/vnd.cups-raw 0 -
Filter application/vnd.cups-raster 0 hpcups
Accepting Yes
Shared No
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
</Printer>

deleted and readded the printer thru cups
i tried the "pxlmono" driver- it didnt work
Comment 13 dennis drown 2011-10-06 14:26:52 CEST
this printer is attached with a belkin usb to 25pin conversion cable but it works under windows xp and did work under mandriva any version
Comment 14 Florian Hubold 2011-10-06 15:12:53 CEST
That could likely be the problem.
Could you please unplug the printer, and then open up a terminal and run the following command as root:

tailf /var/log/messages | tee messages.txt

Then plugin the printer, wait till there are no more new messages shown in the output in the terminal, then press Strg+C and attach the resulting file messages.txt here.
Comment 15 dennis drown 2011-10-06 15:27:40 CEST
[root@localhost ~]# tailf /var/log/messages | tee messages.txt
Oct  6 09:07:56 localhost mgaapplet[3666]: updating inactive backport media Core Backports (distrib7), Core Backports Testing (distrib9), Nonfree Backports (distrib17), Nonfree Backports Testing (distrib19), Tainted Backports (distrib27), Tainted Backports Testing (distrib29), Core 32bit Backports (distrib37), Core 32bit Backports Testing (distrib39)
Oct  6 09:07:56 localhost mgaapplet[3666]: running: urpmi.update Core Backports (distrib7)
Oct  6 09:07:57 localhost mgaapplet[3666]: running: urpmi.update Core Backports Testing (distrib9)
Oct  6 09:07:58 localhost mgaapplet[3666]: running: urpmi.update Nonfree Backports (distrib17)
Oct  6 09:07:59 localhost mgaapplet[3666]: running: urpmi.update Nonfree Backports Testing (distrib19)
Oct  6 09:07:59 localhost mgaapplet[3666]: running: urpmi.update Tainted Backports (distrib27)
Oct  6 09:08:00 localhost mgaapplet[3666]: running: urpmi.update Tainted Backports Testing (distrib29)
Oct  6 09:08:01 localhost mgaapplet[3666]: running: urpmi.update Core 32bit Backports (distrib37)
Oct  6 09:08:02 localhost mgaapplet[3666]: running: urpmi.update Core 32bit Backports Testing (distrib39)
Oct  6 09:08:11 localhost mgaapplet[3666]: Packages are up to date
Comment 16 dennis drown 2011-10-06 15:34:55 CEST
Created attachment 907 [details]
messages.txt
Comment 17 dennis drown 2011-10-06 15:40:05 CEST
[root@localhost ~]# tailf /var/log/messages | tee messages.txt
Oct  6 09:07:58 localhost mgaapplet[3666]: running: urpmi.update Nonfree Backports (distrib17)
Oct  6 09:07:59 localhost mgaapplet[3666]: running: urpmi.update Nonfree Backports Testing (distrib19)
Oct  6 09:07:59 localhost mgaapplet[3666]: running: urpmi.update Tainted Backports (distrib27)
Oct  6 09:08:00 localhost mgaapplet[3666]: running: urpmi.update Tainted Backports Testing (distrib29)
Oct  6 09:08:01 localhost mgaapplet[3666]: running: urpmi.update Core 32bit Backports (distrib37)
Oct  6 09:08:02 localhost mgaapplet[3666]: running: urpmi.update Core 32bit Backports Testing (distrib39)
Oct  6 09:08:11 localhost mgaapplet[3666]: Packages are up to date
Oct  6 09:28:35 localhost drakconf.real[8115]: ### Program is starting ###
Oct  6 09:28:38 localhost edit-urpm-sources.pl[8131]: ### Program is starting ###
Oct  6 09:30:57 localhost drakconf.real[8115]: modified file /etc/mcc.conf


after reading rest of message, the previous was after printer unplugged and not plugged in again
Comment 18 Florian Hubold 2011-10-06 15:44:59 CEST
You need to run the command, and then plugin the printer (printer should be On for that) otherwise the output is useless.
Comment 19 dennis drown 2011-10-06 15:46:23 CEST
Created attachment 908 [details]
newest message.txt

redid what you asked , here is the message.txt file
Comment 20 dennis drown 2011-10-06 15:48:27 CEST
message.txt is unplugged/plugged power cable

newest message.txt is unplugged/plugged USB cable
Comment 21 dennis drown 2011-10-06 16:07:51 CEST
latest message.txt

unplugged usb
ran command
plugged in usb
ctrl-c

Oct  6 09:28:35 localhost drakconf.real[8115]: ### Program is starting ###
Oct  6 09:28:38 localhost edit-urpm-sources.pl[8131]: ### Program is starting ###
Oct  6 09:30:57 localhost drakconf.real[8115]: modified file /etc/mcc.conf
Oct  6 09:43:34 localhost kernel: usb[10593]: segfault at 0 ip 00007f6697ca0c5c sp 00007fff798b3fc8 error 4 in libc-2.12.1.so[7f6697c21000+168000]
Oct  6 10:00:18 localhost kernel: usb[13186]: segfault at 0 ip 00007f335af65c5c sp 00007fffee3ae3f8 error 4 in libc-2.12.1.so[7f335aee6000+168000]
Oct  6 10:00:44 localhost kernel: usb[13308]: segfault at 0 ip 00007fd80a8e1c5c sp 00007fff94059ef8 error 4 in libc-2.12.1.so[7fd80a862000+168000]
Oct  6 10:01:01 localhost CROND[13380]: (root) CMD (nice -n 19 run-parts --report /etc/cron.hourly)
Oct  6 10:01:07 localhost kernel: usb[13429]: segfault at 0 ip 00007f84d1d21c5c sp 00007fff03e9ee18 error 4 in libc-2.12.1.so[7f84d1ca2000+168000]
Oct  6 10:01:34 localhost kernel: usb[13556]: segfault at 0 ip 00007f6f9a29fc5c sp 00007fff963dd3c8 error 4 in libc-2.12.1.so[7f6f9a220000+168000]
Oct  6 10:02:35 localhost kernel: usb 4-3: USB disconnect, address 2
Oct  6 10:04:44 localhost kernel: usb 5-3: new full speed USB device using ohci_hcd and address 2
Oct  6 10:04:44 localhost kernel: usb 5-3: New USB device found, idVendor=050d, idProduct=0002
Oct  6 10:04:44 localhost kernel: usb 5-3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Oct  6 10:04:44 localhost kernel: usb 5-3: Product: IEEE-1284 Controller
Oct  6 10:04:44 localhost kernel: usb 5-3: Manufacturer: Belk USB Printing Support
Oct  6 10:04:44 localhost mtp-probe: checking bus 5, device 2: "/sys/devices/pci0000:00/0000:00:13.0/usb5/5-3"
Oct  6 10:04:44 localhost mtp-probe: bus: 5, device: 2 was not an MTP device
Comment 22 Florian Hubold 2011-10-06 18:11:03 CEST
Well, this is not looking good, there are some segfaults. And only the converter itself is recognised, not the attached printer, it seems.

Adding our kernel maintainer in CC.

CC: (none) => tmb

Comment 23 dennis drown 2011-10-06 18:19:39 CEST
(In reply to comment #22)
> Well, this is not looking good, there are some segfaults. And only the
> converter itself is recognised, not the attached printer, it seems.
> 
> Adding our kernel maintainer in CC.

let me know if you need me to do anything to get this resolved

i can still print what i need to in Winxp
Comment 24 dennis drown 2011-10-06 20:03:53 CEST
ok i got it to work, can print what i want now

current config is :

Description:	HP LaserJet 1200
Location:	
Driver:	HP LaserJet 1200 Foomatic/lj4dith (color, 2-sided printing)
Connection:	usb://HP/LaserJet%201200
Defaults:	job-sheets=none, none media=na_letter_8.5x11in sides=one-sided

i went thru the list of drivers until i hit this one
dont know why it works but it does

thank you for your help

p.s. if you still need me to try something let me know

thanks again
dennis drown 2011-10-06 20:04:24 CEST

Summary: error after HP printer configured in MCC, after exit of MCC, in console window => error after HP printer configured in MCC, after exit of MCC, in console window (SOLVED)

Comment 25 dennis drown 2011-10-06 20:06:21 CEST
Driver:    HP LaserJet 1200 Foomatic/lj4dith (color, 2-sided printing)

with a belkin usb to 25pin conversion cable

Status: ASSIGNED => RESOLVED
Resolution: (none) => WORKSFORME