Bug 142996 - print/hplip3 - HP LaserJet 2300L exists in models.dat, but is not found by print/hplip
Summary: print/hplip3 - HP LaserJet 2300L exists in models.dat, but is not found by pr...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-20 02:10 UTC by leif
Modified: 2010-05-21 17:01 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description leif 2010-01-20 02:10:06 UTC
	
HP LaserJet 2300L connected to /dev/ugen4.2
Printer definition is found in models.dat, but hplip-utilities like hp-setup and hp-probe claims it is not 

dmesg:
ugen4.2: <Hewlett-Packard> at usbus4

usbconfig: 
ugen0.1: <UHCI root HUB Intel> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON
..
ugen4.1: <UHCI root HUB Intel> at usbus4, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON
ugen4.2: <hp LaserJet 2300L Hewlett-Packard> at usbus4, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON

# hp-setup -i -busb

HP Linux Imaging and Printing System (ver. 3.9.8)
Printer Discovery Utility ver. 4.1

--------------------
| DEVICE DISCOVERY |
--------------------

No devices found on the 'usb' bus. If this isn't the result you are expecting,
check to make sure your devices are properly connected and powered on.

# hp-probe -busb

HP Linux Imaging and Printing System (ver. 3.9.8)
Printer/Fax Setup Utility ver. 9.0

Error: No device selected/specified or that supports this functionality.

syslog says:

Jan 20 02:26:27 arnold python: io/hpmud/model.c 528: no hp_LaserJet_2300L attributes found in /usr/local/share/hplip/data/models/models.dat
Jan 20 02:26:27 arnold python: io/hpmud/model.c 539: no hp_LaserJet_2300L attributes found in /usr/local/share/hplip/data/models/unreleased/unreleased.dat
Jan 20 02:26:27 arnold python: io/hpmud/musb.c 2028: ignoring hp:/usb/hp_LaserJet_2300L?serial=CNBDB48144 support=0
Jan 20 02:26:27 arnold python: hp-setup[24772]: error: No device selected/specified or that supports this functionality.


But /usr/local/share/hplip/data/models/models.dat contains an entry for the printer:

[hp_laserjet_2300]
..
model1=HP LaserJet 2300 Printer
model2=HP LaserJet 2300n Printer
model3=HP LaserJet 2300d Printer
model4=HP LaserJet 2300dn Printer
model5=HP LaserJet 2300dtn Printer
model6=HP LaserJet 2300L Printer
...
Comment 1 leif 2010-01-20 08:42:42 UTC
In hplip-3.9.8/io/hpmud/model.c, line 426 I added debug:

         section[n-2]=0; /* remove ']' and CR */
         BUG("Comparing '%s' and '%s'\n",model,section);
         if (strcasecmp(model, section) == 0)
         {

I saw hplip looked for a [hp_laserjet_2300l] section, but there is only

[hp_laserjet_2300]
[hp_laserjet_2300_series]

in models.dat

So I copied the [hp_laserjet_2300] section to a new section 
[hp_laserjet_2300l]

and hp-setup finds my printer and I can print happily ever after :-)

But surely this can't be the right method?

Leif
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2010-01-21 20:58:27 UTC
Maintainer of print/hplip,

Please note that PR ports/142996 has just been submitted.

If it contains a patch for an upgrade, an enhancement or a bug fix
you agree on, reply to this email stating that you approve the patch
and a committer will take care of it.

The full text of the PR can be found at:
    http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/142996

-- 
Edwin Groothuis via the GNATS Auto Assign Tool
edwin@FreeBSD.org
Comment 3 Edwin Groothuis freebsd_committer freebsd_triage 2010-01-21 20:58:30 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 4 Pav Lucistnik freebsd_committer freebsd_triage 2010-05-04 15:49:59 UTC
State Changed
From-To: feedback->open

Fix synopsis, reset feedback, this really is about hplip3
Comment 5 Chris Petrik 2010-05-13 05:01:01 UTC
Hello,

can you please update to 3.10.2 and see if this problems persists?
Comment 6 Max Brazhnikov freebsd_committer freebsd_triage 2010-05-15 21:35:08 UTC
State Changed
From-To: open->feedback

Sumbmitter has been asked to test the latest version.
Comment 7 leif 2010-05-16 01:22:17 UTC
I can print with .

Although I get this error:
  # /usr/local/etc/rc.d/hpssd start
Starting hpssd.
error: attempted to read from '/root/.hplip/hplip.conf'
error: dbus failed to load (python-dbus ver. 0.80+ required). Exiting...
/usr/local/etc/rc.d/hpssd: WARNING: failed to start hpssd

But it seems not to be important....
I have installed dbus-python-0.83.1

Leif
Comment 8 Chris Petrik 2010-05-16 12:15:57 UTC
Did you compile with Dbus support, it is off by default now.

Also can you should me a list of installed dbus, python ports after you
install hplip3 so I can see if hplip3 fails to install a needed dep.

Also can you give me a full debug output of that error message?
Comment 9 Chris Petrik 2010-05-16 12:18:21 UTC
Doesn't hplip3 install a systray icon? It does with KDE never had to use
the rc.d file, which really should be removed as it's outdated etc.. I
kept it as the first commiter refused to remove it.
Comment 10 Chris Petrik 2010-05-16 14:57:57 UTC
 Did you compile with Dbus support, it is off by default now.

 Also can you should me a list of installed dbus, python ports after you
 install hplip3 so I can see if hplip3 fails to install a needed dep.

 Also can you give me a full debug output of that error message?
Comment 11 Chris Petrik 2010-05-16 14:58:31 UTC
 Doesn't hplip3 install a systray icon? It does with KDE never had to use
 the rc.d file, which really should be removed as it's outdated etc.. I
 kept it as the first commiter refused to remove it.
Comment 12 Chris Petrik 2010-05-16 15:53:32 UTC
Do you have dbus options enabled, they are off by default
Comment 13 Chris Petrik 2010-05-17 07:21:58 UTC
Please hold off this PR until the new print/hplip is updated and
print/hplip3 is removed.
Comment 14 Chris Petrik 2010-05-20 23:15:02 UTC
This PR can be closed as the submitter is using a non default user layout.
hplip search ~/.hplip/hplip.conf for custom configs due to the fact the
submitter uses a special user with no home dir hplip fails to search the
config dir and gives an error.
Comment 15 Mark Linimon freebsd_committer freebsd_triage 2010-05-21 17:00:12 UTC
State Changed
From-To: feedback->closed

Maintainer claims that this is due to a non-default layout.