You are not logged in.

#1 2014-03-25 21:39:20

giuseppe
Member
From: Bari, Italy
Registered: 2013-06-17
Posts: 11
Website

Samsung ML-2160 not detected anymore

That printer worked until some weeks ago... today I tried to print something, but I got this message instead "Waiting for printer to become available.", but the printer never gets available.

So I tried to remove cups and install it again (sudo pacman -R cups samsung-unified-driver && yaourt -S samsung-unified-driver).
But if I try to add the printer from the cups web interface (localhost:631), cups doesn't find it anymore!
Anyway it's detected by lsusb:

...
Bus 001 Device 003: ID 04e8:330f Samsung Electronics Co., Ltd
...

and by /usr/lib/cups/backend/usb too:

DEBUG: Loading USB quirks from "/usr/share/cups/usb".
DEBUG: Loaded 67 quirks.
DEBUG: list_devices
DEBUG: libusb_get_device_list=8
DEBUG2: Printer found with device ID: MFG:Samsung;CMD:SPL,FWV,PIC,EXT;MDL:ML-2160 Series;CLS:PRINTER;MODE:SPL5,R0STATUS:BUSY; Device URI: usb://Samsung/ML-2160%20Series?serial=Z6RMB8GC9F02E8H
direct usb://Samsung/ML-2160%20Series?serial=Z6RMB8GC9F02E8H "Samsung ML-2160 Series" "Samsung ML-2160 Series" "MFG:Samsung;CMD:SPL,FWV,PIC,EXT;MDL:ML-2160 Series;CLS:PRINTER;MODE:SPL5,R0STATUS:BUSY;" ""

I also have an epson lan printer, but it's detected without problems

Help me please! sad

Offline

#2 2014-04-15 08:48:03

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,390

Re: Samsung ML-2160 not detected anymore

I'm trying to install the same just now, no luck.
cups doesn't fint it.
When i connect the printer, i've this log too:

[root@Portatile erminia]# journalctl --since=-1m|tail
apr 15 10:45:11 Portatile kernel: usbip-host 2-1.2:1.0: 2-1.2 is not in match_busid table... skip!
apr 15 10:45:11 Portatile systemd[1]: Starting Printer.
apr 15 10:45:11 Portatile systemd[1]: Reached target Printer.
apr 15 10:45:11 Portatile systemd[1]: Starting Configure Plugged-In Printer...
apr 15 10:45:11 Portatile systemd[1]: Started Configure Plugged-In Printer.
apr 15 10:45:11 Portatile udev-configure-printer[561]: add usb-002-005
apr 15 10:45:11 Portatile udev-configure-printer[561]: device devpath is /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2
apr 15 10:45:11 Portatile udev-configure-printer[561]: Device vendor/product is 04E8:330F
apr 15 10:45:11 Portatile udev-configure-printer[561]: MFG:Samsung MDL:ML-2160 Series SERN:- serial:Z6RMB8GC5A0058M
apr 15 10:45:12 Portatile udev-configure-printer[561]: no corresponding CUPS device found

It is systemd related, maybe?


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

#3 2014-04-15 09:07:54

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,390

Re: Samsung ML-2160 not detected anymore

...just hooked up to a slightly less updated netbook, and it seems to work:

kokonicki@netbook /mnt/iso $ sudo tail /var/log/everything.log 
Apr  2 02:37:51 localhost kernel: usblp0: removed
Apr  2 02:37:51 localhost kernel: usblp 2-1:1.0: usblp0: USB Bidirectional printer dev 31 if 0 alt 0 proto 2 vid 0x04E8 pid 0x330F
Apr 15 11:04:30 localhost udev-configure-printer: URI contains USB serial number
Apr 15 11:04:30 localhost udev-configure-printer: URI match: usb://Samsung/ML-2160%20Series?serial=Z6RMB8GC5A0058M
Apr 15 11:04:30 localhost udev-configure-printer: About to add queue for usb://Samsung/ML-2160%20Series?serial=Z6RMB8GC5A0058M
Apr 15 11:04:30 localhost udev-add-printer: add_queue: URIs=['usb://Samsung/ML-2160%20Series?serial=Z6RMB8GC5A0058M']
Apr 15 11:04:31 localhost udev-add-printer: PPD: lsb/usr/cupsfilters/textonly.ppd; Status: 3
Apr 15 11:04:31 localhost udev-configure-printer[30904]: No ID match for device usb://Samsung/ML-2160%20Series?serial=Z6RMB8GC5A0058M:
Apr 15 11:04:31 localhost udev-configure-printer[30904]: MFG:Samsung;MDL:ML-2160 Series;CMD:SPL,FWV,PIC,EXT;
Apr 15 11:04:31 localhost udev-configure-printer[30904]: Using lsb/usr/cupsfilters/textonly.ppd (status: 3)

Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

#4 2014-04-15 09:48:04

giuseppe
Member
From: Bari, Italy
Registered: 2013-06-17
Posts: 11
Website

Re: Samsung ML-2160 not detected anymore

Actually I think the problem is just a kernel compatibility issue with the drivers, occurring with the version 3.13 of linux.
A workaround is sticking with an old release of the kernel simply by installing the linux-lts package or a older linux one from the Arch Rollback Machine.
The problem is that my netbook is pretty slow and I need there a newer kernel to maximize the performances.

Anyway it seems that we have to wait for Samsung to update their drivers.

Offline

#5 2014-04-15 10:25:28

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,390

Re: Samsung ML-2160 not detected anymore

mmh, on my netbook i've kernel-netbook version 3.12.1, and it seems to work there.
So, did you tried with kernel-lts keeping everything else the same and it worked?


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

#6 2014-04-15 14:35:27

giuseppe
Member
From: Bari, Italy
Registered: 2013-06-17
Posts: 11
Website

Re: Samsung ML-2160 not detected anymore

yes smile

Offline

#7 2014-04-15 15:36:13

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,390

Re: Samsung ML-2160 not detected anymore

That's odd,
I tried on another system with Kernel 3.13.7 and the printer worked flawlessly, i couldn't figure out why.
Anyway, i saw that giving 777 permissions to /dev/bus/usb/something/something (changes everytime you connect the printer), then cups sees it without issues.
In the end, i narrowed down the issue and it seems that the user "daemon" needs to access that file with rw permissions, so i wrote down an udev rule:

# cat /etc/udev/rules.d/86-my-printer.rules
ATTR{idVendor}=="04e8", ATTR{idProduct}=="330f", GROUP="lp",OWNER="daemon" ,MODE="660"

unplugged the printer
issued:

udevadm control --reload-rules

replugged the printer
Now it works;
as the device is connected, the /dev/usb/something/something file is owned by daemon and group lp., and cups can access it.
What puzzles me is that i double checked, and in my passwd file the "daemon" use *IS* in the lp group, see:

#grep daemon /etc/passwd /etc/group
/etc/passwd:daemon:x:2:2:daemon:/sbin:/bin/false            #<-- user daemon exists
/etc/passwd:git:x:999:999:git daemon user:/:/bin/bash
/etc/group:bin:x:1:root,bin,daemon
/etc/group:daemon:x:2:root,bin,daemon
/etc/group:adm:x:4:root,daemon
/etc/group:lp:x:7:daemon                                #<-- user daemon is in the lp group!

You could try to do the same, but at this point o don't know if my issue is the same as yours.
In the case you solve your issue in the same way, then we could ask to some developer to explain us what's going on!


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

#8 2015-03-18 16:50:27

student975
Member
From: Russian Federation
Registered: 2011-03-05
Posts: 613

Re: Samsung ML-2160 not detected anymore

@kokoko3k,

Really thanks, you (with udev rule example) have made alive my Kyocera printer again! smile


"I exist" is the best myth I know..

Offline

Board footer

Powered by FluxBB