You are not logged in.

#1 2012-03-04 10:01:13

felihommen
Member
From: Roquetas de Mar, Spain
Registered: 2012-03-04
Posts: 6

[SOLVED] CUPS doesn't detect USB Samsung ML-2010 printer

Hi. I only speak a little English. Sorry for that.

I have got an USB Samsung ML-2010 printer. Before I used cups-usblp from AUR, and it worked. But it doesn't work now. The cups-usblp maintainer suggests to use cups instead of cups-usblp. Searching with google, it appears that other people don't have problems with this printer, cups, and archlinux. But I do. Cups' web interface doesn't detect it.
Well, this is how are the things now:


$ lsusb | grep Samsung
Bus 002 Device 004: ID 04e8:326c Samsung Electronics Co., Ltd ML-2010P Mono Laser Printer

$ ls -l /dev/bus/usb/002/004
crw-rw-r-- 1 root lp 189, 131 mar  4 09:56 /dev/bus/usb/002/004

$ grep usb /lib/udev/rules.d/50-udev-default.rules
# 'libusb' device nodes
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", MODE="0664"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", IMPORT{builtin}="usb_id"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ENV{ID_USB_INTERFACES}=="*:0701??:*", GROUP="lp"

$ sudo grep SystemGroup /etc/cups/cupsd.conf
SystemGroup sys root lp

$ groups
lp wheel games video audio optical storage scanner power users

$ cat /etc/modprobe.d/blacklist.conf
blacklist usblp

$ lsmod | grep usblp
(no output)

$ cat /etc/udev/rules.d/10-cups_device_link.rules
KERNEL=="lp[0-9]", SYMLINK+="%k", GROUP="lp"

$ cat /etc/udev/rules.d/10-usbprinter.rules
ATTR{idVendor}=="04e8", ATTR{idProduct}=="326c", MODE:="0660", GROUP:="lp"

$ rc.d status cupsd
:: Checking cupsd status                                                                                                   [STARTED]

$ pacman -Q cups ghostscript gsfonts gutenprint foomatic-db foomatic-db-engine foomatic-db-nonfree foomatic-filters splix
cups 1.5.2-1
ghostscript 9.05-1
gsfonts 1.0.7pre44-3
gutenprint 5.2.7-3
foomatic-db 1:4.0.7_20110707-1
foomatic-db-engine 1:4.0.7_20110707-1
foomatic-db-nonfree 1:4.0.7_20110707-1
foomatic-filters 1:4.0.7_20110707-1
splix 2.0.0-11

I open http://localhost:631 in my browser, click "add new printer" and I get just "Serial printer #1"
at "local printers". There isn't my printer. I use KDE, and KDE's tool for adding printers doesn's detect it either.

I miss archlinux, but I need to print.
What may be wrong? What may be I am missing?

Thanks a lot for your comments and help.

Last edited by felihommen (2012-03-04 20:33:39)

Offline

#2 2012-03-04 12:41:43

ratcheer
Member
Registered: 2011-10-09
Posts: 912

Re: [SOLVED] CUPS doesn't detect USB Samsung ML-2010 printer

Never mind. I see you already tried my suggestion. Sorry.

Tim

Last edited by ratcheer (2012-03-04 12:43:07)

Offline

#3 2012-03-04 15:28:09

pyther
Member
Registered: 2008-01-21
Posts: 1,395
Website

Re: [SOLVED] CUPS doesn't detect USB Samsung ML-2010 printer

Do you have the usblp module loaded?

To check:

lsmod | grep usblp

Website - Blog - arch-home
Arch User since March 2005

Offline

#4 2012-03-04 19:10:26

felihommen
Member
From: Roquetas de Mar, Spain
Registered: 2012-03-04
Posts: 6

Re: [SOLVED] CUPS doesn't detect USB Samsung ML-2010 printer

usblp is blacklisted. "lsmod | grep usblp" returns no output, but I tried with and without usblp module loaded.
Thanks, pyther.

Offline

#5 2012-03-04 19:19:26

pyther
Member
Registered: 2008-01-21
Posts: 1,395
Website

Re: [SOLVED] CUPS doesn't detect USB Samsung ML-2010 printer

Woops missed that in your original post.

With usblp unloaded what is the output of

/usr/lib/cups/backend/usb

Website - Blog - arch-home
Arch User since March 2005

Offline

#6 2012-03-04 19:53:53

felihommen
Member
From: Roquetas de Mar, Spain
Registered: 2012-03-04
Posts: 6

Re: [SOLVED] CUPS doesn't detect USB Samsung ML-2010 printer

$ /usr/lib/cups/backend/usb

DEBUG: list_devices
DEBUG: usb_find_busses=2
DEBUG: usb_find_devices=5
direct usb://Samsung/ML-2010?serial=4421BKDP825064X. "Samsung ML-2010" "Samsung ML-2010" "MFG:Samsung;CMD:GDI;MDL:ML-2010;CLS:PRINTER;STATUS:BUSY;" ""

Offline

#7 2012-03-04 19:59:09

pyther
Member
Registered: 2008-01-21
Posts: 1,395
Website

Re: [SOLVED] CUPS doesn't detect USB Samsung ML-2010 printer

So cups (backend) is detecting the printer. I would try restarting cups, going to the web interface and trying to add the printer. If that doesn't work I would do the following

# Removes Cups
pacman -Rd cups
# Removes all cups config
rm -r /etc/cups/*
# Install cups
pacman -S cups

Website - Blog - arch-home
Arch User since March 2005

Offline

#8 2012-03-04 20:33:04

felihommen
Member
From: Roquetas de Mar, Spain
Registered: 2012-03-04
Posts: 6

Re: [SOLVED] CUPS doesn't detect USB Samsung ML-2010 printer

Solved!

Restarting cupsd didn't work.
But reinstalling cups...

$ sudo pacman -Rdc cups (it is a dependency of kdeadmin-system-config-printer-kde which I had installed)

$ sudo rm -r /etc/cups/*

I realize cupsd is already running:
$ ps aux | grep cupsd
root      1549  0.0  0.1  75548  4080 ?        Ss   21:04   0:00 cupsd -C /etc/cups/cupsd.conf
felipe    1690  0.0  0.0   8416  1028 pts/1    S+   21:13   0:00 grep cups

I kill it
$ sudo -SIGKILL 1549

$ ps aux | grep cupsd
felipe    1694  0.0  0.0   8416  1024 pts/1    S+   21:13   0:00 grep cups

Ok. Reinstall cups
$ sudo pacman -S cups
   
Start cups daemon:
$ sudo rc.d start cupsd

Open firefox. Go to web interface, bla, bla, bla.... And it's there!

I feel really silly. It was a fresh install, so I didn't think about reinstalling.
Printed some jobs and worked perfectly. I used the gutenprint driver.

Thanks a lot, pyther.  I thought yours wasn't a very useful suggestion, but it really was. I'm so happy. I owe you.

Offline

Board footer

Powered by FluxBB