You are not logged in.

#1 2013-01-29 20:48:03

camarao
Member
Registered: 2013-01-29
Posts: 26

Printing problems with hp laserjet cp1515n [found problem]

Dear Arch users,

A couple of weeks ago I installed for the first time an Arch linux on my brand new Dell laptop with an UEFI MB. It took a while until I could understand how UEFI works but eventually I sort it out and got Arch installed. Unfortunatelly there are some small problems to be straiten out. One of them is the fact that printing with my laser printer (see subject line) is not working.

for the last couple of days I was searching through all post I could find around on the internet, mainly here at the Arch forum. Unfortunatelly I could not find anything nearly describing what I am living on my system. Well here is a brief description of what is happening. After installing Arch, I opted for KDE desktop environment and I made the full instalation. After installing additional software (gimp, inkskape, etc.) I needed to install my printer. At first I couldn't get permission. Than reading the Arch tutorial for CUPS, I saw that the 'lp' permission was not setup properly. Well Have done as described there. Then I tryed to install using the GUI from KDE for installing an usb printer and for my surprise there was not such an option. I intalled than de hp-toolbox, and than it was easy to install the printer. It was automatically recognized and everything was there. The problem was, when I open an archive (text, web page, doesn't matter) and send it to print, the spooler went well theoretically sent to printer and then popped up a notification saying printing finished. Opening the printing cue, I can see that the archive was still there and marked as pending. That was the point where I started to search around for potential solutions or similar solutions.

After sudying a lot I came to a conclusions that it probably have something to do with permissions. Unfortunately I could not find out where or which permissions to change in order to get something printed. I found some "debugging" and information commands and I am posting the results here;


# systemctl status cups
cups.service - CUPS Printing Service                                                                                     
          Loaded: loaded (/usr/lib/systemd/system/cups.service; enabled)                                                 
          Active: active (running) since Tue 2013-01-29 13:26:21 BRST; 4h 43min ago                                     
        Main PID: 525 (cupsd)                                                                                           
          CGroup: name=systemd:/system/cups.service                                                                     
                  └─525 /usr/sbin/cupsd -f                                                                               
                                                                                                                         
Jan 29 17:39:46 XXXX-archs hp[12186]: io/hpmud/musb.c 588: invalid usb_open: Permission denied                           
Jan 29 17:40:14 XXXX-archs systemd[1]: Started CUPS Printing Service.                                                   
Jan 29 17:43:27 XXXX-archs systemd[1]: Started CUPS Printing Service.                                                   
Jan 29 17:44:19 XXXX-archs systemd[1]: Started CUPS Printing Service.
Jan 29 17:44:26 XXXX-archs systemd[1]: Started CUPS Printing Service.
Jan 29 17:44:51 XXXX-archs systemd[1]: Started CUPS Printing Service.
Jan 29 17:45:05 XXXX-archs systemd[1]: Started CUPS Printing Service.
Jan 29 17:56:35 XXXX-archs systemd[1]: Started CUPS Printing Service.
Jan 29 17:56:36 XXXX-archs systemd[1]: Started CUPS Printing Service.
Jan 29 17:56:36 XXXX-archs systemd[1]: Started CUPS Printing Service.

# systemctl status cups.socket
cups.socket - CUPS Printing Service Sockets
          Loaded: loaded (/usr/lib/systemd/system/cups.socket; enabled)
          Active: active (running) since Tue 2013-01-29 13:26:10 BRST; 4h 45min ago# /usr/lib/cups/backend/usb
DEBUG: list_devices
DEBUG: libusb_get_device_list=10
DEBUG2: Printer found with device ID: MFG:Hewlett-Packard;CMD:PJL,PML,PCLXL,POSTSCRIPT,PCL;MDL:HP Color LaserJet CP1515n;CLS:PRINTER;DES:Hewlett-Packard Color LaserJet CP1515n;MEM:MEM=55MB;COMMENT:RES=600x8; Device URI: usb://HP/Color%20LaserJet%20CP1515n?serial=00BRAS85501Y
direct usb://HP/Color%20LaserJet%20CP1515n?serial=00BRAS85501Y "HP Color LaserJet CP1515n" "HP Color LaserJet CP1515n" "MFG:Hewlett-Packard;CMD:PJL,PML,PCLXL,POSTSCRIPT,PCL;MDL:HP Color LaserJet CP1515n;CLS:PRINTER;DES:Hewlett-Packard Color LaserJet CP1515n;MEM:MEM=55MB;COMMENT:RES=600x8;" ""

Jan 29 13:26:10 XXXX-archs systemd[1]: Starting CUPS Printing Service Sockets.
Jan 29 13:26:10 XXXX-archs systemd[1]: Listening on CUPS Printing Service Sockets.

# lsusb
Bus 001 Device 003: ID 03f0:4417 Hewlett-Packard EWS UPD
Bus 003 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 004 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 003: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 003 Device 004: ID 0c45:648d Microdia
Bus 004 Device 004: ID 0cf3:e004 Atheros Communications, Inc.

# /usr/lib/cups/backend/usb
DEBUG: list_devices
DEBUG: libusb_get_device_list=10
DEBUG2: Printer found with device ID: MFG:Hewlett-Packard;CMD:PJL,PML,PCLXL,POSTSCRIPT,PCL;MDL:HP Color LaserJet CP1515n;CLS:PRINTER;DES:Hewlett-Packard Color LaserJet CP1515n;MEM:MEM=55MB;COMMENT:RES=600x8; Device URI: usb://HP/Color%20LaserJet%20CP1515n?serial=00BRAS85501Y
direct usb://HP/Color%20LaserJet%20CP1515n?serial=00BRAS85501Y "HP Color LaserJet CP1515n" "HP Color LaserJet CP1515n" "MFG:Hewlett-Packard;CMD:PJL,PML,PCLXL,POSTSCRIPT,PCL;MDL:HP Color LaserJet CP1515n;CLS:PRINTER;DES:Hewlett-Packard Color LaserJet CP1515n;MEM:MEM=55MB;COMMENT:RES=600x8;" ""

# lpinfo -v
network ipps
network smb
direct hp
network socket
network http
network ipp
file cups-pdf:/
network lpd
network beh
network https
direct ptal
direct hpfax

# usb-devices

T:  Bus=01 Lev=01 Prnt=01 Port=02 Cnt=01 Dev#=  3 Spd=480 MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=03f0 ProdID=4417 Rev=01.00
S:  Manufacturer=Hewlett-Packard
S:  Product=HP Color LaserJet CP1515n
S:  SerialNumber=00BRAS85501Y
C:  #Ifs= 2 Cfg#= 1 Atr=c0 MxPwr=2mA
I:  If#= 0 Alt= 0 #EPs= 2 Cls=07(print) Sub=01 Prot=02 Driver=(none)
I:  If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=01 Prot=01 Driver=(none)

The out put from the last command (usb-devices) I only copyed the relevant part from the printer in question.

the couple of last lines of CUPS error.log are;

E [29/Jan/2013:17:44:48 -0200] [Job 14] Stopping unresponsive job.
E [29/Jan/2013:17:52:25 -0200] [Client 14] Request for subdirectory "/admin/log/error_log?".
E [29/Jan/2013:17:52:41 -0200] [Client 14] Request for subdirectory "/admin/log/error_log?".
E [29/Jan/2013:18:05:47 -0200] [cups-deviced] PID 14408 (dnssd) stopped with status 1!
E [29/Jan/2013:18:16:37 -0200] [cups-deviced] PID 15151 (dnssd) stopped with status 1!

I hope somebody could help me out to find where to change permission (if necessary) or point me out to an different road.

Thanks

Last edited by camarao (2013-02-08 02:36:36)

Offline

#2 2013-01-30 00:44:40

juray
Member
Registered: 2012-01-12
Posts: 20

Re: Printing problems with hp laserjet cp1515n [found problem]

check the file

/etc/cups/cupsd.conf

does your user exists in the goup named in section "SystemGroup" ? for example: is your user in "wheel" group? or: Is the "wheel" goup in this conf file? if not, you dont have prmissions to administrate the printers.

also try, with started cups service, in the internet browser this adress

http://localhost:631/admin

but i think you will need set up conf file ...

Offline

#3 2013-01-31 10:31:38

camarao
Member
Registered: 2013-01-29
Posts: 26

Re: Printing problems with hp laserjet cp1515n [found problem]

Juray,

thanks a lot, but it did not work. I added the wheel group (where I belong) I edited directly on the conf file, but still every time I start a printer job now, the job is set on hold and when I release it manually it stays stuck as an pending job. In other words Your idea did not work. But it was worth a try since I did not though of it.

Thanks

Offline

#4 2013-02-01 12:26:28

camarao
Member
Registered: 2013-01-29
Posts: 26

Re: Printing problems with hp laserjet cp1515n [found problem]

After a lot of fiddling around I messed up all cups to the point that I couldn't
access localhost:631. Well I uninstalled cups and their configuration file and
installed everything from scratch. Then I tried to reinstall all the printer,
and this time my deskjet was not automatically recognized and even adding the lp
group to SystemGroup cupsd.conf file did not helped.

I found an web page
(http://etutorials.org/Linux+systems/how+linux+works/Chapter+12+Printing/12.5+
CUPS/) which helped me to at least nail down where the problem could be or at least I belive that. I
installed the test printer as described and when i try to activate the printer
it does not gete activated. Doesn't matter if i do it using sudo or directly
root.

I hope this could give someone an idea, where or what I could change/install.

thanks

Offline

#5 2013-02-01 17:23:14

camarao
Member
Registered: 2013-01-29
Posts: 26

Re: Printing problems with hp laserjet cp1515n [found problem]

OK here am I again.

as mentioned before I created an bogus printer with:

lpadmin -p test -v file:/dev/null

verified the presence of the printer;

lpstat -p

$ lpstat -p
printer Color_LaserJet_cp1515n disabled since Fri 01 Feb 2013 02:55:59 PM BRST -
        reason unknown
printer hp930c is idle.  enabled since Thu 31 Jan 2013 11:30:21 PM BRST
printer test is idle.  enabled since Fri 01 Feb 2013 02:54:57 PM BRST

At first "test" printer was disabled for an uknown reason.

tried to use lpadmin -p test to enable the printer as described on the previusly mentioned web site, but couldn't get to enable printer "test". After reading alittle more on the internet I found the command cupsenable <printer> and indeed it changed the printer status.

tried to print;

echo test | lp -d test

result:

$ echo test | lp -d test
lp: Destination "test" is not accepting jobs.

I tried to change the condition of the Color laser printer but did not made any difference with the cups command.

Conclusion: how can I modify this status to make the printer accept jobs?

Offline

#6 2013-02-08 02:28:23

camarao
Member
Registered: 2013-01-29
Posts: 26

Re: Printing problems with hp laserjet cp1515n [found problem]

Well this is just an closing post for this topic.

After all that internet searching and looking for the problem, I've remembered that my CP1515n printer has an ethernet card. So I connected the printer to the net, installed the driver and "voi la" it worked.

Conclusion: It seems that the problem either still lies on the "usblp" module which still seems to be conflicting with cups (see arch cups wiki) or something else.

I'll try to do my best in placing an bug report. If there is someone else with the same or similar problem please let me know.

Offline

Board footer

Powered by FluxBB