Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] printing worked yesterday, now doesn't after update
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
brihall
Tux's lil' helper
Tux's lil' helper


Joined: 29 Apr 2003
Posts: 86
Location: Colorado, USA

PostPosted: Wed Mar 15, 2006 3:43 am    Post subject: [SOLVED] printing worked yesterday, now doesn't after update Reply with quote

Something updated in today's/yesterday's emerge -uD world has broken printing. At first I thought is was just the hplip update from 0.9.8 to 0.9.9, but then I realized that I could no longer print at all, even at the command line. I rebooted, made sure cups, etc was running. No dice. hplip and cups can't seem to talk to the printer, although scanning from a usb scanner works fine and the printer is visibile via lsusb:

Bus 002 Device 006: ID 03f0:1004 Hewlett-Packard DeskJet 970c/970cse

Trying to print test pages from the previously correctly working printer configs via the cups web interface results in:

Description: HP DeskJet 970C hpijs
Location:
Printer State: stopped, accepting jobs.
"Unable to open USB device "usb://HP/DeskJet%20970C?serial=MY99N1117TJT": No such device"
Device URI: usb://HP/DeskJet%20970C?serial=MY99N1117TJT

Trying to add a new "test" printer in cups and selecting USB Printer#1 also does not work, fails the same way.

The odd thing is that I keep seeing messages about the printer being removed in /var/log/messages, even though the printer is connected and the usblp module is still there:

drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 6 if 0 alt 1 proto 2 vid 0x03F0 pid 0x1004
drivers/usb/class/usblp.c: usblp0: removed

# lsmod|grep usblp
usblp 11776 0

This does nothing:
lsmod > lp

Doesn't make sense... Haven't changed the kernel or modules either. revdep-rebuild only
complained about kdegraphics, which I'm currently rebuilding. I wonder if this is somehow related to the failure of dbus-0.61 to emerge properly? dbus-0.60-r4 is running currently.

Please help me figure this out. This is my wife's computer and she'll be quite unhappy when she finds out she can't print!

I've had few problems running ~amd64, but ~x86 seems more problematic...

# cat /proc/bus/usb/devices
T: Bus=02 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 8 Spd=12 MxCh= 0
D: Ver= 1.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=03f0 ProdID=1004 Rev= 1.00
S: Manufacturer=Hewlett-Packard
S: Product=DeskJet 970C
S: SerialNumber=MY99N1117TJT
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 2mA
I: If#= 0 Alt= 0 #EPs= 2 Cls=07(print) Sub=01 Prot=01 Driver=usblp
E: Ad=81(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=02(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
I: If#= 0 Alt= 1 #EPs= 2 Cls=07(print) Sub=01 Prot=02 Driver=usblp
E: Ad=01(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=82(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms

emerge --info:

Portage 2.1_pre6-r3 (default-linux/x86/2006.0, gcc-3.4.5, glibc-2.4-r0, 2.6.15-ck4 i686)
=================================================================
System uname: 2.6.15-ck4 i686 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.12.0_pre16
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-lang/python: 2.4.2-r1
sys-apps/sandbox: 1.2.17
sys-devel/autoconf: 2.13, 2.59-r7
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils: 2.16.1-r2
sys-devel/libtool: 1.5.22
virtual/os-headers: 2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -mtune=athlon-xp -pipe -Os -funit-at-a-time -frename-registers -fomit-frame-pointer -fno-ident -msse2"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -mtune=athlon-xp -pipe -Os -funit-at-a-time -frename-registers -fomit-frame-pointer -fno-ident -msse2 -fvisibility-inlines-hidden -fno-enforce-eh-specs"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--nospinner"
FEATURES="autoconfig ccache collision-protect confcache digest distlocks metadata-transfer nodoc noinfo sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.mirrors.pair.com /http://mirror.datapipe.net/gentoo http://gentoo.osuosl.org/ http://gentoo.llarian.net/"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -s"
LINGUAS="en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="x86 7zip X a52 aac abook acpi allegro alsa apache2 apm arts artworkextra avi bash-completion berkdb bitmap-fonts bzip2 cairo ccache cdinstall cdio cdparanoia chroot cli crypt ctype cups dba dbus dedicated dga dio dnd dri dvd dvdr dvdread effects emboss encode expat ext-png ext-zlib extensions fame fastbuild fat firefox flatfile foomaticdb force-cgi-redirect fortran ftp gb gd gdbm gif gimp gimpprint ginac glut glx gmail gmailtimestamps gnome gnome-print gpgme gphoto2 gpm gs gstreamer gtk gtk2 gzip hal imlib imlib2 inkjar java joystick jpeg kde keyscrub lame lcd lesstif libdsk libg++ libwww lm_sensors lynxkeymap lzo mad maildir matrox mbox mcal md5sum memlimit mikmod mimencode mixer mmap mmx mod motif moznocompose moznoirc moznomail mozsvg mozxmlterm mp3 mpeg mpeg2 mplayer musepack music ncurses net network nptl nptlonly offensive ofx ogg oggvorbis on-the-fly-crypt opengl oss pam pam_chroot pam_console pam_timestamp parse-clocks pcre pdf pdflib perl physfs pic png posix ppds python qt quicktime rar rdesktop readline real rogue rtc scanner sdl server session shorten simplexml snmp soap sockets sounds sox spell spl sse sse2 ssl sysfs szip tcltk tcpd tga theora threads tokenizer transcode truetype truetype-fonts type1 type1-fonts udev unicode usb uudeview v4l v4l2 vfat videos vnc vorbis wxwindows x11vnc xatrix xface xml xmms xosd xprint xscreensaver xsl xv xvmc yv12 zip zlib elibc_glibc kernel_linux linguas_en userland_GNU"
Unset: ASFLAGS, CTARGET, LANG, LC_ALL


Last edited by brihall on Wed Mar 15, 2006 5:05 am; edited 1 time in total
Back to top
View user's profile Send private message
brihall
Tux's lil' helper
Tux's lil' helper


Joined: 29 Apr 2003
Posts: 86
Location: Colorado, USA

PostPosted: Wed Mar 15, 2006 4:34 am    Post subject: Reply with quote

Well, one problem was cups was unhappy because I had LINGUAS set but not LANG. I added this to /etc/make.conf:

LANG="en_US"
LINGUAS="en"

that fixed the problem in /var/log/cups/error_log.

Printing is still messed up, though. I cannot select USB Printer #1 when creating a printer in cups anymore, I have to select "hp:/usb/DeskJet_970C?serial=MY99N1117TJT (HP DeskJet_970)". After creating the printer it doesn't work. Also, how come I can no longer select the foomatic/hpijs drivers? They see to have disappeared. I've re-emerged hplip, cups, foomatic* several times but no hpijs, was that dropped from hplip and I also need to emerge hpijs or something?
Back to top
View user's profile Send private message
brihall
Tux's lil' helper
Tux's lil' helper


Joined: 29 Apr 2003
Posts: 86
Location: Colorado, USA

PostPosted: Wed Mar 15, 2006 4:58 am    Post subject: Reply with quote

OK, figured out why hpijs printing didn't work. There's something wrong with hplip-0.9.9; reverting to hplip-0.9.8-r2 fixed printing for me. Filing bug report...
Back to top
View user's profile Send private message
brihall
Tux's lil' helper
Tux's lil' helper


Joined: 29 Apr 2003
Posts: 86
Location: Colorado, USA

PostPosted: Wed Mar 15, 2006 5:06 am    Post subject: Reply with quote

bug # 126256
Back to top
View user's profile Send private message
depontius
Veteran
Veteran


Joined: 05 May 2004
Posts: 1843

PostPosted: Wed Mar 15, 2006 1:32 pm    Post subject: Reply with quote

Just to add another voice on this...

Last night (3-14) we discovered we couldn't print, either. Checked logs and found that on 3-13 I'd upgraded to hplip-0.9.9, and that hplip-0.9.7-r3 was now considered stable. (I began using hplip when there was no stable.) So I simply took hplip out of /etc/portage/package.keywords and let my system downgrade to stable. Now it works.

As for the symptoms:
I have an HP LaserJet 1320 connected with USB, and CUPS thought it was offline. I brought up the hp-toolbox, and the toolbox thought the printer was either powered down or disconnected. I didn't think to try hp-probe until after downgrading hplip. Prior to downgrading, I did all the various restarts and power cycles. I even rebooted, once. One difference from your bug report... In my case, it appeared that CUPS could see hplip, but hplip couldn't see the printer.
_________________
.sigs waste space and bandwidth
Back to top
View user's profile Send private message
Vanquirius
Developer
Developer


Joined: 14 Jun 2002
Posts: 1297
Location: Ethereal plains

PostPosted: Wed Mar 15, 2006 3:32 pm    Post subject: Reply with quote

I masked =0.9.9 until I can test it better, but it works for me.
_________________
Hello.
Back to top
View user's profile Send private message
depontius
Veteran
Veteran


Joined: 05 May 2004
Posts: 1843

PostPosted: Wed Mar 15, 2006 4:57 pm    Post subject: Reply with quote

Vanquirius wrote:
I masked =0.9.9 until I can test it better, but it works for me.

Is there anything I can do to help with it?
I'll have to schedule around the kids' schoolwork of course, but other than that I have no problem with swapping levels and getting information.

Now for a more general question, applicable to this issue.
Many pieces of Gentoo have slots, and you can install multiple versions simultaneously, picking one for usage.
Can any (or just about any) arbitrary package be slotted?
Two slots for hplip would make it take less time to swap, test, swap back, and print homework.

I understand that it's possible to make an installed package into a binary. I suspect it would help to make hplip-0.9.7-r3 into a binary before installing 0.9.9, and make that one into a binary, as well. That would make swapping faster. Now that I think of it, /etc/conf.d/hplip differs between the 2 releases. When you make a binary, does it handle that issue, as well?
_________________
.sigs waste space and bandwidth
Back to top
View user's profile Send private message
Vanquirius
Developer
Developer


Joined: 14 Jun 2002
Posts: 1297
Location: Ethereal plains

PostPosted: Wed Mar 15, 2006 5:53 pm    Post subject: Reply with quote

Hi,

depontius wrote:
Is there anything I can do to help with it?
I'll have to schedule around the kids' schoolwork of course, but other than that I have no problem with swapping levels and getting information.


I am a bit busy now, but if I need any help reproducing it, I'll give you a ping.

Quote:
Many pieces of Gentoo have slots, and you can install multiple versions simultaneously, picking one for usage.
Can any (or just about any) arbitrary package be slotted?


Not quite feasible. SLOTting is more for packages you need to have multiple versions of which installed, like gtk+. SLOTting something like hplip will force the installation of files to non-standard locations and generate a lot of bugs in the process.

Quote:
I understand that it's possible to make an installed package into a binary. I suspect it would help to make hplip-0.9.7-r3 into a binary before installing 0.9.9, and make that one into a binary, as well. That would make swapping faster. Now that I think of it, /etc/conf.d/hplip differs between the 2 releases. When you make a binary, does it handle that issue, as well?


Yup, a binary covers everything. Use quickpkg and emerge -gK.

Cheers
_________________
Hello.
Back to top
View user's profile Send private message
Pandor
Tux's lil' helper
Tux's lil' helper


Joined: 16 Nov 2005
Posts: 128
Location: Belgium

PostPosted: Sun Mar 19, 2006 12:23 pm    Post subject: Reply with quote

This seems to be usb related then.
Because i have no problems at all printing with hplip-0.9.9.

Code:
 emerge -vp hplip foomatic* cups

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] net-print/hplip-0.9.9  +X +cups +foomaticdb +ppds -qt -scanner -snmp +usb 0 kB
[ebuild   R   ] net-print/foomatic-3.0.2  0 kB
[ebuild   R   ] net-print/cups-1.1.23-r7  -gnutls +nls +pam +samba -slp +ssl 0 kB


Code:
Description: HP Deskjet 5550
Location: router
Printer State: idle, accepting jobs.
Device URI: lpd://192.168.123.254/LPT1


printing from gimp-print:
Code:
Description: HP Deskjet 5550
Location: router
Printer State: processing, accepting jobs.
"Spooling LPR job, 68% complete..."
Device URI: lpd://192.168.123.254/LPT1


This is a lpr/lpd share on my wireless router (has a usb printer port).
Prints just fine from cups/gimp-print (or any other app for that matter)
Back to top
View user's profile Send private message
kyron
Apprentice
Apprentice


Joined: 26 Aug 2002
Posts: 198
Location: Montreal, Qc.

PostPosted: Tue Mar 21, 2006 1:40 pm    Post subject: Reply with quote

Nudge... I'm also having some problems with these new hplip drivers. Actually, upgrading hp drivers have always been a pain but, in general cases, after 1 or 2 hours of start/restart/reboot things would fall in place. I am getting fed up with this...I'll mask other upgrades from now on. Now note that this isn't a flame towards the package maintainer since I am sure it all works fine on a virgin system. I have printing but lost scanning and even the hp-toolbox won't talk to my printer:
hp-toolbox:
Code:
kyron@kyron ~ $ hp-toolbox

HP Linux Imaging and Printing System (ver. x.x.x)
HP Device Manager ver. 6.2

Copyright (c) 2003-6 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.

toolbox [ERROR]: Unsupported model: PSC_2100_Series
QPainter::begin: Cannot paint null pixmap
QPainter::setPen: Will be reset by begin()
QPainter::setBrush: Will be reset by begin()
QPainter::setBrush: Will be reset by begin()
QPainter::setPen: Will be reset by begin()
Traceback (most recent call last):
  File "/usr/share/hplip/ui/devmgr4.py", line 826, in ContinueDeviceListRefresh
    icon = self.CreatePixmap()
  File "/usr/share/hplip/ui/devmgr4.py", line 713, in CreatePixmap
    if d.tech_type in (TECH_TYPE_COLOR_INK, TECH_TYPE_MONO_INK):
AttributeError: 'Device' object has no attribute 'tech_type'
Traceback (most recent call last):
  File "/usr/share/hplip/ui/devmgr4.py", line 785, in ContinueDeviceListRefresh
    self.UpdateDevice()
  File "/usr/share/hplip/ui/devmgr4.py", line 696, in UpdateDevice
    self.UpdateTabs()
  File "/usr/share/hplip/ui/devmgr4.py", line 904, in UpdateTabs
    self.UpdateStatusTab()
  File "/usr/share/hplip/ui/devmgr4.py", line 998, in UpdateStatusTab
    if d.tech_type in (TECH_TYPE_COLOR_INK, TECH_TYPE_MONO_INK):
AttributeError: 'Device' object has no attribute 'tech_type'

hp-setup:
Code:
kyron ~ # hp-setup

HP Linux Imaging and Printing System (ver. x.x.x)
Printer/Fax Setup Utility ver. 1.2

Copyright (c) 2003-6 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.

Using device: hp:/usb/PSC_2100_Series?serial=MY338F51240F

(Note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.)

Traceback (most recent call last):
  File "/usr/bin/hp-setup", line 223, in ?
    if not mq['fax-type'] and setup_fax:
KeyError: 'fax-type'

Now, this last bit tells me I might have a python problem but have no idea what to do to fix it if it's the case...
If anyone has a clue, I'd be happy to hear it since I need to scan ;)

Edit:python-updater didn't fix this issue before someone suggests it ;)
_________________
M$ Windows: When in doubt, REBOOT
Linux: When in doubt, RTFM ;-)
Back to top
View user's profile Send private message
Vanquirius
Developer
Developer


Joined: 14 Jun 2002
Posts: 1297
Location: Ethereal plains

PostPosted: Tue Mar 21, 2006 7:12 pm    Post subject: Reply with quote

kyron wrote:
I'll mask other upgrades from now on.


0.9.9 has been masked for a while already... Some people have given me hints about stuff getting misinstalled and libusb problems - until I fix it, it shall remain masked.
_________________
Hello.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum