You are not logged in.

#1 2016-02-12 14:57:01

daniel_alomar
Member
Registered: 2016-02-12
Posts: 4

USB printer to paused mode and does not print

Hi colleagues,

I have finally achieved add my Kyocera FS-1020D usb printer. The problem I have is the printer change to pause every time I print something.

I get some messages of "usblp0: removed" on dmesg

[ 5121.837139] usblp0: removed
[ 5121.848208] usblp 5-1.1:1.0: usblp0: USB Bidirectional printer dev 5 if 0 alt 0 proto 2 vid 0x0482 pid 0x000E
[ 5122.981775] usblp0: removed
[ 5128.001264] usblp 5-1.1:1.0: usblp0: USB Bidirectional printer dev 5 if 0 alt 0 proto 2 vid 0x0482 pid 0x000E

The printer is detected by the usb

$ lsusb
Bus 008 Device 003: ID 148f:3070 Ralink Technology, Corp. RT2870/RT3070 Wireless Adapter
Bus 008 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 007 Device 002: ID 046d:c043 Logitech, Inc. MX320/MX400 Laser Mouse
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 003: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
Bus 005 Device 005: ID 0482:000e Kyocera Corp. FS-1020D Printer

After removing android-udev, the printer is correctly detected by CUPS

$ sudo lpinfo -v
network beh
file cups-pdf:/
network http
network lpd
network ipps
network https
network socket
network ipp
direct usb://Kyocera/FS-1020D?serial=XAX5114665
network smb
direct hp
direct hpfax
$ /usr/lib/cups/backend/usb
DEBUG: Loading USB quirks from "/usr/share/cups/usb".
DEBUG: Loaded 130 quirks.
DEBUG: list_devices
DEBUG: libusb_get_device_list=15
DEBUG2: Printer found with device ID: ID:FS-1020D;MFG:Kyocera;CMD:PCLXL,PostScript Emulation,PCL5E,PJL;MDL:FS-1020D;CLS:PRINTER;DES:Kyocera Mita FS-1020D;CID:HP Laserjet 1300 Series; Device URI: usb://Kyocera/FS-1020D?serial=XAX5114665
direct usb://Kyocera/FS-1020D?serial=XAX5114665 "Kyocera FS-1020D" "Kyocera FS-1020D" "ID:FS-1020D;MFG:Kyocera;CMD:PCLXL,PostScript Emulation,PCL5E,PJL;MDL:FS-1020D;CLS:PRINTER;DES:Kyocera Mita FS-1020D;CID:HP Laserjet 1300 Series;" ""

I have added the printer to usbprinter rules

$ cat /etc/udev/rules.d/10-usbprinter.rules
ATTR{idVendor}=="0482", ATTR{idProduct}=="000E", MODE:="0660", GROUP:="lp"  

And added the printer using lpadmin command

sudo lpadmin -p Kyocera_FS-1020D -E -v "usb://Kyocera/FS-1020D?serial=XAX5114665" -P "/home/bernardo/Downloads/Kyocera-FS-1020D-Postscript-Kyocera.ppd"

I have removed the comment from the line #Group lp from the file /etc/cups/cups-files.conf and change group to lp (was root)

$ cat  /etc/cups/cups-files.conf    
-rw-r----- 1 root lp 2,9K 12 feb 13:04 /etc/cups/cups-files.conf

$ cat /etc/cups/cups-files.conf        
#
# File/directory/user/group configuration file for the CUPS scheduler.
# See "man cups-files.conf" for a complete description of this file.
#

# List of events that are considered fatal errors for the scheduler...
#FatalErrors config

# Do we call fsync() after writing configuration or status files?
#SyncOnClose No

# Default user and group for filters/backends/helper programs; this cannot be
# any user or group that resolves to ID 0 for security reasons...
#User daemon
Group lp

# Administrator user group, used to match @SYSTEM in cupsd.conf policy rules...
# This cannot contain the Group value for security reasons...
SystemGroup sys root


# User that is substituted for unauthenticated (remote) root accesses...
#RemoteRoot remroot

# Do we allow file: device URIs other than to /dev/null?
#FileDevice No

# Permissions for configuration and log files...
#ConfigFilePerm 0640
#LogFilePerm 0644

# Location of the file logging all access to the scheduler; may be the name
# "syslog". If not an absolute path, the value of ServerRoot is used as the
# root directory.  Also see the "AccessLogLevel" directive in cupsd.conf.
AccessLog /var/log/cups/access_log

# Location of cache files used by the scheduler...
#CacheDir /var/cache/cups

# Location of data files used by the scheduler...
#DataDir /usr/share/cups

# Location of the static web content served by the scheduler...
#DocumentRoot /usr/share/cups/doc

# Location of the file logging all messages produced by the scheduler and any
# helper programs; may be the name "syslog". If not an absolute path, the value
# of ServerRoot is used as the root directory.  Also see the "LogLevel"
# directive in cupsd.conf.
ErrorLog /var/log/cups/error_log

# Location of fonts used by older print filters...
#FontPath /usr/share/cups/fonts

# Location of LPD configuration
#LPDConfigFile xinetd:///etc/xinetd.d/cups-lpd

# Location of the file logging all pages printed by the scheduler and any
# helper programs; may be the name "syslog". If not an absolute path, the value
# of ServerRoot is used as the root directory.  Also see the "PageLogFormat"
# directive in cupsd.conf.
PageLog /var/log/cups/page_log

# Location of the file listing all of the local printers...
#Printcap /etc/printcap

# Format of the Printcap file...
#PrintcapFormat bsd
#PrintcapFormat plist
#PrintcapFormat solaris

# Location of all spool files...
#RequestRoot /var/spool/cups

# Location of helper programs...
#ServerBin /usr/lib/cups

# SSL/TLS keychain for the scheduler...
#ServerKeychain ssl

# Location of other configuration files...
#ServerRoot /etc/cups

# Location of Samba configuration file...
#SMBConfigFile 

# Location of scheduler state files...
#StateDir /run/cups

# Location of scheduler/helper temporary files. This directory is emptied on
# scheduler startup and cannot be one of the standard (public) temporary
# directory locations for security reasons...
#TempDir /var/spool/cups/tmp

I download the PPD file from http://www.openprinting.org/printer/Kyo … a-FS-1020D

The problem I have is when I try to print something, appears a page with the text:
ERROR:
ioerror
OFENDING COMMAND:
image
STACK:
-mark-
-mark-
-mark-

And the printer changes to paused mode

▼ Queue Name ▼    Description    Location    Make and Model    Status
Kyocera_FS-1020D    Kyocera FS-1020D        Kyocera Mita FS-1020D    Paused

Any clue?

Thanks in advance,

Daniel

Offline

#2 2016-02-12 17:35:29

paulkerry
Member
From: Sheffield, UK
Registered: 2014-10-02
Posts: 611

Re: USB printer to paused mode and does not print

It's the same manufacturer as this thread - https://bbs.archlinux.org/viewtopic.php?id=207299

Does changing the emulation on the printer to PCL and using a PCL driver as discussed in the above link from post #19 onwards work for you?

Offline

#3 2016-02-12 21:55:31

daniel_alomar
Member
Registered: 2016-02-12
Posts: 4

Re: USB printer to paused mode and does not print

Hi Paul,

Thanks for the tip. Now I get an strange text when I try to print a test page

Subsystem:    IMAGE
Error:              MissingData
Operator:       ReadImage
Position:         80

I have the same printer configure and working perfectly in a laptop with Kubuntu (15.10) using the driver Kyocera Mita FS-1020D (CUPS 2.1.0). In archlinux I have CUPS 2.1.3 version

After resume the printer, I get one page printed, but when I have tried to print another page (text or pdf), the printer change to pause state. No matter how many times I change to resume that the printer come back to pause... :-?

Something that can point to the problem: the "usblp0: removed" message from dmesg

10616.183226] usblp0: removed
[10616.195737] usblp 6-1.1:1.0: usblp0: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x0482 pid 0x000E
[10634.347416] usblp0: removed
[10636.361798] usblp 6-1.1:1.0: usblp0: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x0482 pid 0x000E
[10774.904014] usblp0: removed
[10776.201422] usblp 6-1.1:1.0: usblp0: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x0482 pid 0x000E
[17530.828596] usblp0: removed
[17531.888431] usblp 6-1.1:1.0: usblp0: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x0482 pid 0x000E
[17558.644494] usblp0: removed
[17560.080572] usblp 6-1.1:1.0: usblp0: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x0482 pid 0x000E
[17803.775084] usblp0: removed
[17804.212990] usblp 6-1.1:1.0: usblp0: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x0482 pid 0x000E
[17852.521019] usblp0: removed
[17852.538101] usblp 6-1.1:1.0: usblp0: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x0482 pid 0x000E
[18176.337849] usblp0: removed
[18178.356177] usblp 6-1.1:1.0: usblp0: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x0482 pid 0x000E
[18215.383117] usblp0: removed
[18217.398424] usblp 6-1.1:1.0: usblp0: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x0482 pid 0x000E
[18239.399152] usblp0: removed
[18241.413545] usblp 6-1.1:1.0: usblp0: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x0482 pid 0x000E
[18254.177110] usblp0: removed
[18255.704643] usblp 6-1.1:1.0: usblp0: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x0482 pid 0x000E
[18374.531625] usblp0: removed
[18375.301354] usblp 6-1.1:1.0: usblp0: USB Bidirectional printer dev 4 if 0 alt 0 proto 2 vid 0x0482 pid 0x000E

Regards

Last edited by daniel_alomar (2016-02-12 22:00:15)

Offline

#4 2016-02-12 22:48:05

paulkerry
Member
From: Sheffield, UK
Registered: 2014-10-02
Posts: 611

Re: USB printer to paused mode and does not print

The usblp module seems to be constantly dropping the connection: as a sanity check, is your usb cable OK, not too long and have you tried a different usb port? Have you tried the lts kernel?

You could also have found a bug: although it shouldn't be needed now, perhaps you could try blacklisting the usblp module - see https://wiki.archlinux.org/index.php/CU … B_printers for more info.

I'm also unsure if /etc/cups/cups-files.conf really needs any modification and if you really need /etc/udev/rules.d/10-usbprinter.rules

Offline

#5 2016-02-12 23:23:43

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,787
Website

Re: USB printer to paused mode and does not print

Moving to kernel and hardware.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#6 2016-02-15 20:15:02

daniel_alomar
Member
Registered: 2016-02-12
Posts: 4

Re: USB printer to paused mode and does not print

Hi,

Checking the dmesg log in the kubuntu laptop, it seems something common

[ 217.766567] usb 1-1.2: New USB device found, idVendor=0482, idProduct=000e
[ 217.766572] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 217.766575] usb 1-1.2: Product: Kyocera Mita FS-1020D
[ 217.766578] usb 1-1.2: Manufacturer: Kyocera Mita
[ 217.766581] usb 1-1.2: SerialNumber: XAX5114665
[ 217.895569] usblp 1-1.2:1.0: usblp1: USB Bidirectional printer dev 5 if 0 alt 0 proto 2 vid 0x0482 pid 0x000E
[ 217.895679] usbcore: registered new interface driver usblp
[ 223.171917] usblp1: removed
[ 223.175215] usblp 1-1.2:1.0: usblp1: USB Bidirectional printer dev 5 if 0 alt 0 proto 2 vid 0x0482 pid 0x000E
[ 407.775918] usblp1: removed
[ 410.033150] usblp 1-1.2:1.0: usblp1: USB Bidirectional printer dev 5 if 0 alt 0 proto 2 vid 0x0482 pid 0x000E
[ 455.281585] usblp1: removed
[ 467.205356] usblp 1-1.2:1.0: usblp1: USB Bidirectional printer dev 5 if 0 alt 0 proto 2 vid 0x0482 pid 0x000E
[ 547.921934] usblp1: removed
[ 547.926857] usblp 1-1.2:1.0: usblp1: USB Bidirectional printer dev 5 if 0 alt 0 proto 2 vid 0x0482 pid 0x000E
[ 916.523349] usblp1: removed
[ 940.546968] usblp 1-1.2:1.0: usblp1: USB Bidirectional printer dev 5 if 0 alt 0 proto 2 vid 0x0482 pid 0x000E
[ 981.515562] usblp1: removed
[ 993.068954] usblp 1-1.2:1.0: usblp1: USB Bidirectional printer dev 5 if 0 alt 0 proto 2 vid 0x0482 pid 0x000E
[ 1022.661838] usblp1: removed
[ 1022.916631] usblp 1-1.2:1.0: usblp1: USB Bidirectional printer dev 5 if 0 alt 0 proto 2 vid 0x0482 pid 0x000E
[ 1040.647244] usblp1: removed
[ 1040.901455] usblp 1-1.2:1.0: usblp1: USB Bidirectional printer dev 5 if 0 alt 0 proto 2 vid 0x0482 pid 0x000E

So it could be related to a bug or maybe the cable. I will search for a replacement cable and check it again.

I added the line in the /etc/udev/rules.d/10-usbprinter.rules 'cause the device was captured to the adbusers group alway by android-udev package. The point is that solution didn't work, so I decided finally to uninstall the android-udev package. What I should do in order to have android-udev and the usb printer at the same time?

Something strange. The page printer is displaced 3 cm up, in archlinux and Kubuntu. I though it could be related to the driver (KM1020EN.PPD), so I decided to change to the Generic PCL 6 but I get the same output, page displaced about 3 cm up. I think this is a hardware problem.

Offline

Board footer

Powered by FluxBB