Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 199775

Summary: net-print/hplip-2.7.10 doesn't find officejet l7700
Product: Gentoo Linux Reporter: Billy DeVincentis <billydv1>
Component: Current packagesAssignee: Denis Dupeyron (RETIRED) <calchan>
Status: VERIFIED NEEDINFO    
Severity: normal CC: printing
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Billy DeVincentis 2007-11-20 13:41:36 UTC
I  have  an  officejet  l7700.  HPLIP  updated  last  night  and  when  I  tried  to  access  device  it  refused.  Unmerging  ,reemerging  and  rebooting  didnt  help.  It  simply  doesnt  recognize  the  device  under  2.7.10  in  hp  device  manager,  refreshing  doesnt  change  anything.  This  was  repeatable  on  2  machines,  1  x86  and  one  amd64.

Reproducible: Always
Comment 1 Denis Dupeyron (RETIRED) gentoo-dev 2007-11-20 20:28:55 UTC
Could you please run 'hp-check' as root and attach the result to this bug ?

Denis.
Comment 2 Billy DeVincentis 2007-11-20 22:07:14 UTC
Denis, I already reverted to 2.7.9 because I need the machine but I will try to reemerge the new ebuild and do that tomorrow.
Comment 3 Denis Dupeyron (RETIRED) gentoo-dev 2007-11-20 22:14:20 UTC
(In reply to comment #2)
> Denis, I already reverted to 2.7.9 because I need the machine but I will try to
> reemerge the new ebuild and do that tomorrow.

No problem. Additional question: did you migrate to kernel 2.6.23 at the same time? Because if you did it could be the reason.

Denis.
Comment 4 Billy DeVincentis 2007-11-21 11:50:51 UTC
No,  I  was  at  the  new  kernel  (2.6.23r1) already  running  2.7.9.  This  was  the  case  on  both  machines,  and  revdep-rebuild  didnt  show  any  problems.  Im  not  sure  if  the  l7700  is  the  problem  for  the  new  hplip  but  I  can  tell  you  when  I  switched  back  on  both  machines (l7700  is  on  a  usb  switch  so  its  attached  to  both  these  machines  and  one  that  runs  debian),  the  l7700  immediately  showed  up.  BTW  the  Debian  machine  has  the  same  version  and  it  works (2.7.10  is  in  the  debian  experimental  currently).
Comment 5 Denis Dupeyron (RETIRED) gentoo-dev 2007-11-21 12:01:16 UTC
You may also want to try to rename /etc/udev/rules.d/70-hpmud.rules to /etc/udev/rules.d/55-hpmud.rules or reuse the 55-hpmud.rules provided by the 2.7.9 ebuild.

Denis.
Comment 6 Billy DeVincentis 2007-11-22 03:12:21 UTC
Okay,  I  reinstalled  in  order  to  try  to  get  this  fixed,  here  is  the  output,


hp-check[14603]: info: :
Initializing. Please wait...
scheduler is running

1.2.12

Linux Windows2 2.6.23-gentoo-r1 #1 SMP PREEMPT Thu Nov 8 06:49:03 EST 2007 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4200+ AuthenticAMD GNU/Linux

hp-check[14603]: info: :
hp-check[14603]: info: :---------------
hp-check[14603]: info: :| SYSTEM INFO |
hp-check[14603]: info: :---------------
hp-check[14603]: info: :
hp-check[14603]: info: :[01mBasic system information:[0m
hp-check[14603]: info: :Linux Windows2 2.6.23-gentoo-r1 #1 SMP PREEMPT Thu Nov 8 06:49:03 EST 2007 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4200+ AuthenticAMD GNU/Linux
hp-check[14603]: info: :
hp-check[14603]: info: :[01mDistribution:[0m
hp-check[14603]: info: :gentoo 0.0
hp-check[14603]: info: :[01m
HPOJ running?[0m
hp-check[14603]: info: :No, HPOJ is not running (OK).
hp-check[14603]: info: :
hp-check[14603]: info: :[01mChecking Python version...[0m
hp-check[14603]: info: :OK, version 2.4.4 installed
hp-check[14603]: info: :
hp-check[14603]: info: :[01mChecking PyQt version...[0m
hp-check[14603]: info: :OK, version 3.17 installed.
hp-check[14603]: info: :
hp-check[14603]: info: :[01mChecking SIP version...[0m
hp-check[14603]: info: :OK, Version 4.7.1 installed
hp-check[14603]: info: :
hp-check[14603]: info: :[01mChecking for CUPS...[0m
hp-check[14603]: info: :Status: scheduler is running
hp-check[14603]: info: :Version: 1.2.12
hp-check[14603]: info: :
hp-check[14603]: info: :[01mChecking for Reportlab...[0m
warning: Version < 2.0 (1.2). HPLIP fax coverpages requires Reportlab 2.0+.
hp-check[14603]: info: :
hp-check[14603]: info: :----------------
hp-check[14603]: info: :| DEPENDENCIES |
hp-check[14603]: info: :----------------
hp-check[14603]: info: :
hp-check[14603]: info: :
hp-check[14603]: info: :[01mChecking for dependency: cups - Common Unix Printing System...[0m
hp-check[14603]: info: :OK, found.
hp-check[14603]: info: :
hp-check[14603]: info: :[01mChecking for dependency: cups-devel- Common Unix Printing System development files...[0m
hp-check[14603]: info: :OK, found.
hp-check[14603]: info: :
hp-check[14603]: info: :[01mChecking for dependency: gcc - GNU Project C and C++ Compiler...[0m
hp-check[14603]: info: :OK, found.
hp-check[14603]: info: :
hp-check[14603]: info: :[01mChecking for dependency: GhostScript - PostScript and PDF language interpreter and previewer...[0m
hp-check[14603]: info: :OK, found.
hp-check[14603]: info: :
hp-check[14603]: info: :[01mChecking for dependency: libcrypto - OpenSSL cryptographic library...[0m
hp-check[14603]: info: :OK, found.
hp-check[14603]: info: :
hp-check[14603]: info: :[01mChecking for dependency: libjpeg - JPEG library...[0m
hp-check[14603]: info: :OK, found.
hp-check[14603]: info: :
hp-check[14603]: info: :[01mChecking for dependency: libnetsnmp-devel - SNMP networking library development files...[0m
hp-check[14603]: info: :OK, found.
hp-check[14603]: info: :
hp-check[14603]: info: :[01mChecking for dependency: libpthread - POSIX threads library...[0m
hp-check[14603]: info: :OK, found.
hp-check[14603]: info: :
hp-check[14603]: info: :[01mChecking for dependency: libtool - Library building support services...[0m
hp-check[14603]: info: :OK, found.
hp-check[14603]: info: :
hp-check[14603]: info: :[01mChecking for dependency: libusb - USB library...[0m
hp-check[14603]: info: :OK, found.
hp-check[14603]: info: :
hp-check[14603]: info: :[01mChecking for dependency: make - GNU make utility to maintain groups of programs...[0m
hp-check[14603]: info: :OK, found.
hp-check[14603]: info: :
hp-check[14603]: info: :[01mChecking for dependency: PIL - Python Imaging Library (required for commandline scanning with hp-scan)...[0m
hp-check[14603]: info: :OK, found.
hp-check[14603]: info: :
hp-check[14603]: info: :[01mChecking for dependency: ppdev - Parallel port support kernel module....[0m
error: NOT FOUND! This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.
hp-check[14603]: info: :
hp-check[14603]: info: :[01mChecking for dependency: PyQt - Qt interface for Python...[0m
hp-check[14603]: info: :OK, found.
hp-check[14603]: info: :
hp-check[14603]: info: :[01mChecking for dependency: python-devel - Python development files...[0m
hp-check[14603]: info: :OK, found.
hp-check[14603]: info: :
hp-check[14603]: info: :[01mChecking for dependency: Python 2.3 or greater - Required for fax functionality...[0m
hp-check[14603]: info: :OK, found.
hp-check[14603]: info: :
hp-check[14603]: info: :[01mChecking for dependency: Python 2.2 or greater - Python programming language...[0m
hp-check[14603]: info: :OK, found.
hp-check[14603]: info: :
hp-check[14603]: info: :[01mChecking for dependency: Reportlab - PDF library for Python...[0m
warning: NOT FOUND! This is an OPTIONAL dependency. Some HPLIP functionality may not function properly.
hp-check[14603]: info: :
hp-check[14603]: info: :[01mChecking for dependency: SANE - Scanning library...[0m
hp-check[14603]: info: :OK, found.
hp-check[14603]: info: :
hp-check[14603]: info: :[01mChecking for dependency: SANE - Scanning library development files...[0m
hp-check[14603]: info: :OK, found.
hp-check[14603]: info: :
hp-check[14603]: info: :[01mChecking for dependency: scanimage - Shell scanning program...[0m
hp-check[14603]: info: :OK, found.
hp-check[14603]: info: :
hp-check[14603]: info: :[01mChecking for dependency: xsane - Graphical scanner frontend for SANE...[0m
hp-check[14603]: info: :OK, found.
hp-check[14603]: info: :
hp-check[14603]: info: :
hp-check[14603]: info: :----------------------
hp-check[14603]: info: :| HPLIP INSTALLATION |
hp-check[14603]: info: :----------------------
hp-check[14603]: info: :
hp-check[14603]: info: :
hp-check[14603]: info: :[01mCurrently installed HPLIP version...[0m
hp-check[14603]: info: :HPLIP 2.7.10 currently installed in '/usr/share/hplip'.
hp-check[14603]: info: :
hp-check[14603]: info: :[01mCurrent contents of '/etc/hp/hplip.conf' file:[0m
hp-check[14603]: info: :# hplip.conf.  Generated from hplip.conf.in by configure.

[hpssd]
# Note: hpssd does not support dynamic ports
# Port 2207 is the IANA assigned port for hpssd
port=2207

[hplip]
version=2.7.10

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/HP
ppdbase=/usr/share/ppd
doc=/usr/share/doc/hplip-2.7.10
icon=/usr/share/applications
cupsbackend=/usr/libexec/cups/backend
foomatic=/usr/share/foomatic

# Following values are determined at configure time and cannot be changed.
[configure]
network-build=yes
pp-build=yes
gui-build=yes
scanner-build=yes
fax-build=yes
cups11-build=no
doc-build=yes
shadow-build=no
foomatic-xml-install=no
foomatic-ppd-install=yes
internal-tag=2.7.10.11

hp-check[14603]: info: :
hp-check[14603]: info: :----------------------
hp-check[14603]: info: :| INSTALLED PRINTERS |
hp-check[14603]: info: :----------------------
hp-check[14603]: info: :
hp-check[14603]: info: :
hp-check[14603]: info: :[01mEpson_R300[0m
hp-check[14603]: info: :[01m----------[0m
hp-check[14603]: info: :Type: Unknown
hp-check[14603]: info: :Installed in HPLIP?: No, not using the hp: or hpfax: CUPS backend.
hp-check[14603]: info: :Device URI: usb://EPSON/Stylus%20Photo%20R300
hp-check[14603]: info: :PPD: /etc/cups/ppd/Epson_R300.ppd
hp-check[14603]: info: :PPD Description: Epson Stylus Photo R300 - CUPS+Gutenprint v5.1.3
hp-check[14603]: info: :Printer status: printer Epson_R300 is idle.  enabled since Sat 10 Nov 2007 11:03:59 AM EST
warning: Printer is not HPLIP installed. Printers must use the hp: or hpfax: CUPS backend to function in HPLIP.
hp-check[14603]: info: :[01mOfficejet_Pro_L7700[0m
hp-check[14603]: info: :[01m-------------------[0m
hp-check[14603]: info: :Type: Printer
hp-check[14603]: info: :Installed in HPLIP?: Yes, using the hp: CUPS backend.
hp-check[14603]: info: :Device URI: hp:/usb/Officejet_Pro_L7700?serial=MY75H530GH
hp-check[14603]: info: :PPD: /etc/cups/ppd/Officejet_Pro_L7700.ppd
hp-check[14603]: info: :PPD Description: HP OfficeJet Pro L7700 Foomatic/hpijs (recommended)
hp-check[14603]: info: :Printer status: printer Officejet_Pro_L7700 is idle.  enabled since Wed 21 Nov 2007 10:07:21 PM EST
hp-check[14603]: info: :[01mOfficejet_Pro_L7700_fax[0m
hp-check[14603]: info: :[01m-----------------------[0m
hp-check[14603]: info: :Type: Fax
hp-check[14603]: info: :Installed in HPLIP?: Yes, using the hpfax: CUPS backend.
hp-check[14603]: info: :Device URI: hpfax:/usb/Officejet_Pro_L7700?serial=MY75H530GH
hp-check[14603]: info: :PPD: /etc/cups/ppd/Officejet_Pro_L7700_fax.ppd
hp-check[14603]: info: :PPD Description: HP Fax
hp-check[14603]: info: :Printer status: printer Officejet_Pro_L7700_fax is idle.  enabled since Tue 20 Nov 2007 07:30:21 AM EST
hp-check[14603]: info: :[01mOfficejet_Pro_L7700_Windows1[0m
hp-check[14603]: info: :[01m----------------------------[0m
hp-check[14603]: info: :Type: Unknown
hp-check[14603]: info: :Installed in HPLIP?: No, not using the hp: or hpfax: CUPS backend.
hp-check[14603]: info: :Device URI: smb://MSHOME/WINDOWS1/Printer6
hp-check[14603]: info: :PPD: /etc/cups/ppd/Officejet_Pro_L7700_Windows1.ppd
hp-check[14603]: info: :PPD Description: HP OfficeJet Pro L7700 Foomatic/hpijs (recommended)
hp-check[14603]: info: :Printer status: printer Officejet_Pro_L7700_Windows1 is idle.  enabled since Sun 28 Oct 2007 09:17:42 AM EDT
warning: Printer is not HPLIP installed. Printers must use the hp: or hpfax: CUPS backend to function in HPLIP.
hp-check[14603]: info: :
hp-check[14603]: info: :----------------------
hp-check[14603]: info: :| SANE CONFIGURATION |
hp-check[14603]: info: :----------------------
hp-check[14603]: info: :
hp-check[14603]: info: :[01m'hpaio' in '/etc/sane.d/dll.conf'...[0m
hp-check[14603]: info: :OK, found. SANE backend 'hpaio' is properly set up.
hp-check[14603]: info: :
hp-check[14603]: info: :[01mChecking output of 'scanimage -L'...[0m
hp-check[14603]: info: :device `hpaio:/usb/Officejet_Pro_L7700?serial=MY75H530GH' is a Hewlett-Packard Officejet_Pro_L7700 all-in-one

hp-check[14603]: info: :
hp-check[14603]: info: :---------------------
hp-check[14603]: info: :| PYTHON EXTENSIONS |
hp-check[14603]: info: :---------------------
hp-check[14603]: info: :
hp-check[14603]: info: :[01mChecking 'cupsext' CUPS extension...[0m
hp-check[14603]: info: :OK, found.
hp-check[14603]: info: :
hp-check[14603]: info: :[01mChecking 'pcardext' Photocard extension...[0m
hp-check[14603]: info: :OK, found.
hp-check[14603]: info: :
hp-check[14603]: info: :[01mChecking 'hpmudext' I/O extension...[0m
hp-check[14603]: info: :OK, found.
hp-check[14603]: info: :
hp-check[14603]: info: :[01mChecking 'scanext' SANE scanning extension...[0m
hp-check[14603]: info: :OK, found.
hp-check[14603]: info: :
hp-check[14603]: info: :
hp-check[14603]: info: :-----------------
hp-check[14603]: info: :| USB I/O SETUP |
hp-check[14603]: info: :-----------------
hp-check[14603]: info: :
hp-check[14603]: info: :
hp-check[14603]: info: :[01mChecking for permissions of USB attached printers...[0m
hp-check[14603]: info: :HP Device 0x2312 at 001:005: 
hp-check[14603]: info: :    Device URI: hp:/usb/Officejet_Pro_L7700?serial=MY75H530GH
hp-check[14603]: info: :    Device node: /dev/bus/usb/001/005
hp-check[14603]: info: :    Mode: 0664
hp-check[14603]: info: :getfacl: Removing leading '/' from absolute path names
# file: dev/bus/usb/001/005
# owner: root
# group: lp
user::rw-
group::rw-
other::r--


hp-check[14603]: info: :
hp-check[14603]: info: :-----------
hp-check[14603]: info: :| SUMMARY |
hp-check[14603]: info: :-----------
hp-check[14603]: info: :
error: 5 errors and/or warnings.
hp-check[14603]: info: :
hp-check[14603]: info: :Please refer to the installation instructions at:
hp-check[14603]: info: :http://hplip.sourceforge.net/install/index.html

Comment 7 Billy DeVincentis 2007-11-22 03:30:46 UTC
Denis,  I  copied  the  udev  rules  from  the  2.7.9  and  reused  them  with  2.7.10  and  it  works,  cant  tell  you  if  theres  any  other  bugs  as  I  dont  have  much  to  use  on  it  now  but  if  I  switch  my  usb  switch  to  set  it  to  another  computer  it  shows  unconnected  and  switching  it  back  and  refreshing,  it  shows  up  right  away.  I  will  keep  it  using  this  setup  and  continue  to  test  it.  
Comment 8 Denis Dupeyron (RETIRED) gentoo-dev 2007-11-22 08:17:49 UTC
OK, nothing wrong in your hp-check result. Is your user in the lp group ?

Denis.
Comment 9 Denis Dupeyron (RETIRED) gentoo-dev 2007-12-23 10:34:11 UTC
(In reply to comment #8)
> OK, nothing wrong in your hp-check result. Is your user in the lp group ?

Closing this as NEEDINFO until you tell me you still have the issue and your user is in the lp group.

Denis.
Comment 10 Billy DeVincentis 2007-12-23 12:03:07 UTC
Sorry Dennis for not having gotten back to you. The problem lies in the udev rules. I simply made a copy of the udev rules from the older hplip and replaced the one that gets installed with the new one.


here is what /etc/udev/rules.d/55-hpmud.rules (from previous version) says


# Udev rules file for HP printer products.

ACTION!="add", GOTO="hpmud_rules_end"
SUBSYSTEM=="ppdev", OWNER="lp", GROUP="lp", MODE="0666"
SUBSYSTEM!="usb|usb_device", GOTO="hpmud_rules_end"

# Check for AiO products (0x03f0xx11).
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="??11", OWNER="lp", GROUP="lp", MODE="0666"
# Check for Photosmart products (0x03f0xx02).
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="??02", OWNER="lp", GROUP="lp", MODE="0666"
# Check for Business Inkjet products (0x03f0xx12).
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="??12", OWNER="lp", GROUP="lp", MODE="0666"
# Check for Deskjet products (0x03f0xx04).
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="??04", OWNER="lp", GROUP="lp", MODE="0666"
# Check for LaserJet products (0x03f0xx17).
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="??17", OWNER="lp", GROUP="lp", MODE="0666"

LABEL="hpmud_rules_end"



In the new version it gets marked in at 70-hpmud but realistically, I'm not sure what difference that makes. What is for sure is that this config does work as I've been using it successfully since I opened the bug.
Comment 11 Denis Dupeyron (RETIRED) gentoo-dev 2007-12-23 12:38:11 UTC
Could you please make sure your user is in the lp group ? Because that's a requirement that was re-introduced by some of the changes in the hpmud rules.

Denis.
Comment 12 Billy DeVincentis 2007-12-23 19:25:15 UTC
I can't believe I didn't catch that at the end of the emerge. Works fine once I'm was in lp.  Closing this bug.