LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-06-2010, 03:26 AM   #1
Zielony
LQ Newbie
 
Registered: Mar 2010
Posts: 17

Rep: Reputation: 1
Printer doesn't work after upgrade


After last Current upgrade my printer stopped working. In syslog I have:
Code:
Mar  6 10:20:38 zielony hp[7400]: io/hpmud/musb.c 1026: bulk_write failed buf=0xbfe96184 size=8192 len=-5: Success
Mar  6 10:20:38 zielony hp[7400]: io/hpmud/musb.c 1393: unable to write data hp:/usb/DeskJet_840C?serial=CN0CE1B288KV: Success
Mar  6 10:20:38 zielony kernel: usb 2-1.8: BOGUS urb flags, 1 --> 0
I obviously tried to add printer in CUPS hundreds times. Here is my hp-check -t:
Code:
---------------                                                                                         
| SYSTEM INFO |                                                                                         
---------------                                                                                         
                                                                                                        
Basic system information:                                                                               
Linux zielony 2.6.32.2 #1 SMP PREEMPT Wed Jan 6 14:36:12 CET 2010 i686 Intel(R) Core(TM) i5 CPU         750  @ 2.67GHz GenuineIntel GNU/Linux                                                                   
                                                                                                        
Distribution:                                                                                           
unknown 0.0                                                                                             
                                                                                                        
Checking Python version...                                                                              
OK, version 2.6.4 installed                                                                             
                                                                                                        
Checking PyQt 4.x version...                                                                            
OK, version 4.6.2 installed.                                                                            
                                                                                                        
Checking for CUPS...                                                                                    
Status: planista jest uruchomiony                                                                       
Version: 1.4.2                                                                                          
error_log is set to level: warn                                                                         
                                                                                                        
Checking for dbus/python-dbus...                                                                        
dbus daemon is running.                                                                                 
python-dbus version: 0.83.0                                                                             
                                                                                                        
                                                                                                        
------------------------------------                                                                    
| COMPILE AND RUNTIME DEPENDENCIES |                                                                    
------------------------------------                                                                    
                                                                                                        
note: To check for compile-time only dependencies, re-run hp-check with the -c parameter (ie, hp-check -c).                                                                                                     
note: To check for run-time only dependencies, re-run hp-check with the -r parameter (ie, hp-check -r). 
                                                                                                        
Checking for dependency: CUPS - Common Unix Printing System...                                          
OK, found.                                                                                              
                                                                                                        
Checking for dependency: CUPS devel- Common Unix Printing System development files...                   
OK, found.                                                                                              
                                                                                                        
Checking for dependency: CUPS image - CUPS image development files...                                   
OK, found.                                                                                              
                                                                                                        
Checking for dependency: DBus - Message bus system...                                                   
OK, found.                                                                                              
                                                                                                        
Checking for dependency: gcc - GNU Project C and C++ Compiler...                                        
OK, found.                                                                                              
                                                                                                        
Checking for dependency: GhostScript - PostScript and PDF language interpreter and previewer...         
OK, found.                                                                                              
                                                                                                        
Checking for dependency: libcrypto - OpenSSL cryptographic library...                                   
OK, found.                                                                                              
                                                                                                        
Checking for dependency: libjpeg - JPEG library...                                                      
OK, found.                                                                                              
                                                                                                        
Checking for dependency: libnetsnmp-devel - SNMP networking library development files...                
OK, found.                                                                                              
                                                                                                        
Checking for dependency: libpthread - POSIX threads library...                                          
OK, found.                                                                                              
                                                                                                        
Checking for dependency: libtool - Library building support services...                                 
OK, found.                                                                                              
                                                                                                        
Checking for dependency: libusb - USB library...                                                        
OK, found.                                                                                              
                                                                                                        
Checking for dependency: make - GNU make utility to maintain groups of programs...                      
OK, found.                                                                                              
                                                                                                        
Checking for dependency: PIL - Python Imaging Library (required for commandline scanning with hp-scan)...                                                                                                       
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.                                                                                            
                                                                                                        
Checking for dependency: PolicyKit - Administrative policy framework...                                 
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.                                                                                            
                                                                                                        
Checking for dependency: PyQt 4 DBus - DBus Support for PyQt4...                                        
OK, found.                                                                                              
                                                                                                        
Checking for dependency: Python DBus - Python bindings for DBus...                                      
OK, found.                                                                                              
                                                                                                        
Checking for dependency: Python devel - Python development files...                                     
OK, found.                                                                                              
                                                                                                        
Checking for dependency: Python libnotify - Python bindings for the libnotify Desktop notifications...  
OK, found.                                                                                              
                                                                                                        
Checking for dependency: Python XML libraries...                                                        
OK, found.                                                                                              
                                                                                                        
Checking for dependency: Python 2.3 or greater - Required for fax functionality...                      
OK, found.                                                                                              
                                                                                                        
Checking for dependency: Python 2.2 or greater - Python programming language...                         
OK, found.                                                                                              
                                                                                                        
Checking for dependency: Reportlab - PDF library for Python...                                          
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.                                                                                            
                                                                                                        
Checking for dependency: SANE - Scanning library...                                                     
OK, found.                                                                                              
                                                                                                        
Checking for dependency: SANE - Scanning library development files...                                   
OK, found.                                                                                              
                                                                                                        
Checking for dependency: scanimage - Shell scanning program...                                          
OK, found.                                                                                              
                                                                                                        
Checking for dependency: xsane - Graphical scanner frontend for SANE...                                 
OK, found.                                                                                              
                                                                                                        
                                                                                                        
----------------------                                                                                  
| HPLIP INSTALLATION |                                                                                  
----------------------                                                                                  
                                                                                                        
                                                                                                        
Currently installed HPLIP version...                                                                    
HPLIP 3.9.12 currently installed in '/usr/share/hplip'.                                                 
                                                                                                        
Current contents of '/etc/hp/hplip.conf' file:                                                          
# hplip.conf.  Generated from hplip.conf.in by configure.                                               
                                                                                                        
[hplip]                                                                                                 
version=3.9.12                                                                                          
                                                                                                        
[dirs]                                                                                                  
home=/usr/share/hplip                                                                                   
run=/var/run                                                                                            
ppd=/usr/share/cups/model/HP                                                                            
ppdbase=/usr/share/cups/model                                                                           
doc=/usr/doc/hplip-3.9.12                                                                               
icon=/usr/share/applications                                                                            
cupsbackend=/usr/lib/cups/backend                                                                       
cupsfilter=/usr/lib/cups/filter                                                                         
drv=/usr/share/cups/drv/hp                                                                              
                                                                                                        
# Following values are determined at configure time and cannot be changed.                              
[configure]                                                                                             
network-build=yes                                                                                       
pp-build=no                                                                                             
gui-build=yes                                                                                           
scanner-build=yes                                                                                       
fax-build=yes                                                                                           
dbus-build=yes                                                                                          
cups11-build=no                                                                                         
doc-build=yes                                                                                           
shadow-build=yes                                                                                        
hpijs-install=no                                                                                        
foomatic-drv-install=yes                                                                                
foomatic-ppd-install=no                                                                                 
foomatic-rip-hplip-install=yes                                                                          
hpcups-install=yes                                                                                      
cups-drv-install=yes                                                                                    
cups-ppd-install=no                                                                                     
internal-tag=3.9.12.29                                                                                  
restricted-build=no                                                                                     
ui-toolkit=qt4                                                                                          
qt3=no                                                                                                  
qt4=yes                                                                                                 
policy-kit=no                                                                                           
hpijs-only-build=no                                                                                     
lite-build=no                                                                                           
udev-acl-rules=no                                                                                       
hpcups-only-build=no                                                                                    
hpijs-only-build=no                                                                                     
                                                                                                        
                                                                                                        
Current contents of '/var/lib/hp/hplip.state' file:                                                     
# hplip.state - HPLIP runtime persistent variables.                                                     
                                                                                                        
[plugin]                                                                                                
installed=0                                                                                             
eula=0                                                                                                  
                                                                                                        
                                                                                                        
                                                                                                        
Current contents of '~/.hplip/hplip.conf' file:                                                         
[last_used]                                                                                             
device_uri = hp:/usb/Deskjet_F300_series?serial=CN695GJ1TY04KH                                          
                                                                                                        
                                                                                                        
                                                                                                        
--------------------------                                                                              
| DISCOVERED USB DEVICES |                                                                              
--------------------------                                                                              
                                                                                                        
  Device URI                                Model                                                       
  ----------------------------------------  --------------------                                        
  hp:/usb/DeskJet_840C?serial=CN0CE1B288KV  HP DeskJet 840C                                             
                                                                                                        
---------------------------------                                                                       
| INSTALLED CUPS PRINTER QUEUES |                                                                       
---------------------------------                                                                       
                                                                                                        
                                                                                                        
HP_DeskJet_840C                                                                                         
---------------                                                                                         
Type: Printer                                                                                           
Device URI: hp:/usb/DeskJet_840C?serial=CN0CE1B288KV                                                    
PPD: /etc/cups/ppd/HP_DeskJet_840C.ppd                                                                  
PPD Description: HP Deskjet 840c, hpcups 3.9.12                                                         
Printer status: drukarka HP_DeskJet_840C drukuje teraz HP_DeskJet_840C-0. włączona od sob, 6 mar 2010, 10:20:23 Processing page 2...                                                                            
Communication status: Good                                                                              
                                                                                                        
                                                                                                        
----------------------                                                                                  
| SANE CONFIGURATION |                                                                                  
----------------------                                                                                  
                                                                                                        
'hpaio' in '/etc/sane.d/dll.conf'...                                                                    
OK, found. SANE backend 'hpaio' is properly set up.                                                     
                                                                                                        
Checking output of 'scanimage -L'...                                                                    
                                                                                                        
No scanners were identified. If you were expecting something different,                                 
check that the scanner is plugged in, turned on and detected by the                                     
sane-find-scanner tool (if appropriate). Please read the documentation                                  
which came with this software (README, FAQ, manpages).                                                  
                                                                                                        
                                                                                                        
---------------------                                                                                   
| PYTHON EXTENSIONS |                                                                                   
---------------------                                                                                   
                                                                                                        
Checking 'cupsext' CUPS extension...                                                                    
OK, found.                                                                                              
                                                                                                        
Checking 'pcardext' Photocard extension...                                                              
OK, found.                                                                                              
                                                                                                        
Checking 'hpmudext' I/O extension...                                                                    
OK, found.                                                                                              
                                                                                                        
Checking 'scanext' SANE scanning extension...                                                           
OK, found.                                                                                              
                                                                                                        
                                                                                                        
                                                                                                        
-----------------                                                                                       
| USB I/O SETUP |                                                                                       
-----------------                                                                                       
                                                                                                        
Checking for permissions of USB attached printers...                                                    
                                                                                                        
HP Device 0x604 at 002:003:                                                                             
    Device URI: hp:/usb/DeskJet_840C?serial=CN0CE1B288KV                                                
    Device node: /dev/bus/usb/002/003                                                                   
    Mode: 0777                                                                                          
getfacl: Removing leading '/' from absolute path names                                                  
# file: dev/bus/usb/002/003                                                                             
# owner: root                                                                                           
# group: lp
user::rwx
group::rwx
other::rwx



---------------
| USER GROUPS |
---------------

root bin daemon sys adm disk wheel floppy tape


-----------
| SUMMARY |
-----------

error: 3 errors and/or warnings.

Please refer to the installation instructions at:
http://hplip.sourceforge.net/install/index.html


Done.
I really don't know where the problem is.
 
Old 03-06-2010, 03:58 AM   #2
mlangdn
Senior Member
 
Registered: Mar 2005
Location: Kentucky
Distribution: Slackware64-current
Posts: 1,845

Rep: Reputation: 452Reputation: 452Reputation: 452Reputation: 452Reputation: 452
Did you stop and restart cups? Run as root ldconfig? Or even a reboot is an order after such a massive upgrade.
 
Old 03-06-2010, 04:24 AM   #3
Zielony
LQ Newbie
 
Registered: Mar 2010
Posts: 17

Original Poster
Rep: Reputation: 1
It isn't a fresh problem. I've dealt with it for a couple of days.
 
Old 03-06-2010, 04:56 AM   #4
Zielony
LQ Newbie
 
Registered: Mar 2010
Posts: 17

Original Poster
Rep: Reputation: 1
I've just upgraded left 2 updates which I hadn't had, I mean: udev (basing on the http://www.linuxquestions.org/questi...ernels-793583/) and kernel. But it still doesn't work. If my printer HP 840C is connected via USB, do I need parallel port support in CUPS, which is now disabled?
 
Old 03-06-2010, 05:18 AM   #5
JimBrewster
Member
 
Registered: Feb 2010
Location: usa:/dev/random
Distribution: Slackware-15.0; -current
Posts: 245

Rep: Reputation: 60
I know it says mode 0777, but try making your user a member of group 'lp'.
 
Old 03-06-2010, 05:24 AM   #6
Zielony
LQ Newbie
 
Registered: Mar 2010
Posts: 17

Original Poster
Rep: Reputation: 1
I'm in this group, but it isn't going about user permissions, because printing as root doesn't work as well.

The maintainers should care, because my system is configured properly and it still doesn't support a printer after upgrade.

Last edited by Zielony; 03-06-2010 at 05:44 AM.
 
Old 03-06-2010, 05:56 AM   #7
bret381
Member
 
Registered: Nov 2009
Location: Alabama
Distribution: Arch x86_64
Posts: 650

Rep: Reputation: 79
I believe the problem lies with cups 1.4.2. I also had problems with cups detecting my USB printer. From what I understand anyway is that there is a problem with usblp and that supposedly if you blacklist usblp it SHOULD see your printer. Didn't work for me though. I went back to cups 1.3 and everything worked again.
 
Old 03-06-2010, 06:00 AM   #8
Zielony
LQ Newbie
 
Registered: Mar 2010
Posts: 17

Original Poster
Rep: Reputation: 1
I don't have usblp in kernel any more. It doesn't change anything. But my printer is being detected by CUPS.
 
Old 03-06-2010, 06:03 AM   #9
bret381
Member
 
Registered: Nov 2009
Location: Alabama
Distribution: Arch x86_64
Posts: 650

Rep: Reputation: 79
I would go back to 1.3. There are numerous threads about printers that have stopped working with 1.4 with and without usblp. I don't know what the problem is other than cups 1.4
 
Old 03-06-2010, 06:07 AM   #10
Zielony
LQ Newbie
 
Registered: Mar 2010
Posts: 17

Original Poster
Rep: Reputation: 1
I built hplip with '--enable-pp-build', but it also isn't it.

Dear maintainers, we're calling you…

Last edited by Zielony; 03-06-2010 at 06:14 AM.
 
Old 03-07-2010, 04:05 AM   #11
Zielony
LQ Newbie
 
Registered: Mar 2010
Posts: 17

Original Poster
Rep: Reputation: 1
I also tried connecting via usb://, but source of the problem was the same. Does kernel need to be compiled with some special options to work with CUPS 1.4? I don't have usblp in kernel.

Some other error from syslog:
Code:
Mar  7 11:16:07 zielony hp[1090]: io/hpmud/musb.c 1991: invalid usb_open: Permission denied
Mar  7 11:16:07 zielony last message repeated 3 times

Last edited by Zielony; 03-07-2010 at 04:18 AM.
 
Old 03-07-2010, 06:21 AM   #12
ginkgo
LQ Newbie
 
Registered: Sep 2009
Posts: 18

Rep: Reputation: 1
this is the problem of the hplip 3.9.12. you can check the other thread about cups and print.
I use the hp 3.10.2 and compile with new feature. It work for my hp-3325 printer now.
 
Old 03-07-2010, 07:53 AM   #13
Zielony
LQ Newbie
 
Registered: Mar 2010
Posts: 17

Original Poster
Rep: Reputation: 1
So I compiled hplip 3.10.2 with '--enable-hpijs-install' and upgraded, but nothing changed… I checked both usb:// and hp://.

Last edited by Zielony; 03-07-2010 at 08:08 AM.
 
Old 03-07-2010, 02:18 PM   #14
Zielony
LQ Newbie
 
Registered: Mar 2010
Posts: 17

Original Poster
Rep: Reputation: 1
Code:
Mar  7 20:46:48 zielony kernel: usb 2-1.8: usbfs: usb_submit_urb returned -22
 
Old 03-07-2010, 06:11 PM   #15
Hangaber
Member
 
Registered: Sep 2004
Location: USA
Distribution: Slackware
Posts: 163

Rep: Reputation: 51
I also had a problem printing after the upgrade. I manually merged my old cupsd.conf with cupsd.conf.net, but still no go.

I deleted the printer via cups and tried to re-add it, and it was not showing (usb / canon)

From another forum/thread, I performed;
Quote:
~$ lsmod |grep usblp
usblp 9539 0

~$ rmmod usblp

/etc/rc.d/rc.cups stop
cups: stopped scheduler. [ OK ]

/etc/rc.d/rc.cups start
cups: started scheduler. [ OK ]
I then tried to add the printer via the cups web interface, and it appeared. I then added my 'allowed' user via the web interface, printed a test page - it worked.

(Oh, my test page just came out almost 100% black. Still tweaking...)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
My printer won't work in Linux. Can I install Windows in a VM to use my printer? Caboose79 Linux - Hardware 5 07-14-2008 11:05 AM
Wireless switch doesn't work after upgrade/dist-upgrade angelofhope Debian 10 01-02-2008 04:46 AM
Ran dist upgrade and now my printer does not work davholla Debian 1 10-28-2006 11:17 AM
Printer does not work anymore after upgrade to Opensuse 10.1. soenderup SUSE / openSUSE 11 06-12-2006 02:11 PM
printer modules not loaded; parallel printer doesn't work blinux1 Linux - Newbie 7 06-24-2004 09:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration