LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Printer doesn't work after upgrade (https://www.linuxquestions.org/questions/slackware-14/printer-doesnt-work-after-upgrade-793574/)

Zielony 03-06-2010 03:26 AM

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.

mlangdn 03-06-2010 03:58 AM

Did you stop and restart cups? Run as root ldconfig? Or even a reboot is an order after such a massive upgrade.

Zielony 03-06-2010 04:24 AM

It isn't a fresh problem. I've dealt with it for a couple of days.

Zielony 03-06-2010 04:56 AM

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?

JimBrewster 03-06-2010 05:18 AM

I know it says mode 0777, but try making your user a member of group 'lp'.

Zielony 03-06-2010 05:24 AM

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.

bret381 03-06-2010 05:56 AM

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.

Zielony 03-06-2010 06:00 AM

I don't have usblp in kernel any more. It doesn't change anything. But my printer is being detected by CUPS.

bret381 03-06-2010 06:03 AM

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 :)

Zielony 03-06-2010 06:07 AM

I built hplip with '--enable-pp-build', but it also isn't it.

Dear maintainers, we're calling you…

Zielony 03-07-2010 04:05 AM

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


ginkgo 03-07-2010 06:21 AM

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.

Zielony 03-07-2010 07:53 AM

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

Zielony 03-07-2010 02:18 PM

Code:

Mar  7 20:46:48 zielony kernel: usb 2-1.8: usbfs: usb_submit_urb returned -22

Hangaber 03-07-2010 06:11 PM

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...)


All times are GMT -5. The time now is 11:07 AM.