I'm trying to install a DCP 7010L on a freshly installed arch and having the printer working on it would be much apreciated.
I used the wiki page and everything went ok, except it won't print, like Doehni describe it. Anyway I found this topic and did this to my system :
# lsusb
Bus 002 Device 002: ID 04f9:0182 Brother Industries, Ltd Composite Device
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 005: ID 0bc2:3101 Seagate RSS LLC
Bus 001 Device 004: ID 058f:6362 Alcor Micro Corp. Hi-Speed 21-in-1 Flash Card Reader/Writer (Internal/External)
Bus 001 Device 003: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
# ls -al /dev/bus/usb/002
total 0
drwxr-xr-x 2 root root 80 janv. 2 19:08 .
drwxr-xr-x 4 root root 80 janv. 2 19:08 ..
crw-rw-r-- 1 root root 189, 128 janv. 2 19:08 001
crw-rw-r-- 1 root scanner 189, 129 janv. 2 19:08 002
#53-sane.rules
# Brother DCP-7010
ATTR{idVendor}=="04f9", ATTR{idProduct}=="0182", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes"
#/etc/udev/rules.d/10-cups-usb.rules (created)
ATTR{idVendor}=="04f9", ATTR{idProduct}=="0182", MODE:="0664", GROUP:="scanner", ENV{libsane_matched}:="yes"
I'm using cups 1.4 and my user is in the lp and scanner groups ...
what am I doing wrong ?
thanx for the help
bnm
]]>Ive also some problems here - but I'm not sure whether I have the right cupsd.conf. Could someone upload his/her cupsd.conf.pacnew so I can check?
Anyway, this
# Epson Stylus DX-5050
ATTR{idVendor}=="04b8", ATTR{idProduct}=="082b", MODE="0664", GROUP="lp", ENV{libsane_matched}:="yes"
As I wrote in my original post to this thread, AFAIK, the assignment operators for MODE and GROUP, as well as for ENV{libsane_matched}, should be ':='.
Jay
]]>MODE:="0664", GROUP:="lp"
Anyway, this
# Epson Stylus DX-5050
ATTR{idVendor}=="04b8", ATTR{idProduct}=="082b", MODE="0664", GROUP="lp", ENV{libsane_matched}:="yes"
is my /etc/udev/rules.d/10-cups-usb.rules, but the printer still is in the group "scanner", not "lp".
[root@rottencore ddamnmess]# ls -l /dev/bus/usb/001
insgesamt 0
crw-rw-r-- 1 root root 189, 0 21. Okt 18:54 001
crw-rw-r-- 1 root root 189, 1 21. Okt 18:54 002
crw-rw-r-- 1 root scanner 189, 2 21. Okt 18:54 003
crw-rw-r-- 1 root root 189, 3 21. Okt 18:54 004
Im in the group lp, usblp is blacklisted, the rule should be correct
# lsusb
Bus 001 Device 003: ID 04b8:082b Seiko Epson Corp. Stylus DX5050
and I unplugged the printer several times, even did a reboot. Still, nothing. The printer seems to be ready, but whenever I want to print something "waiting for printer to be available blabla"
]]>Gnux: can you show what the rule looks like once you modified it. Not sure which part of the lsusb output I should put in there.
I copied the original rule from a generic rule located in /lib/udev/rules.d/* . Then I modified the idvendor and product + the mode (from 0660 to 0664)
As far as I can see, your rule seems correct ie with the right ids: the one I used in fact. The first id is for the idVendor variable and the second for the idProduct var.
Does it work for you finally? And if not, what's your problem?
]]>ATTR{idVendor}=="03f0", ATTR{idProduct}=="4811", MODE:="0664", GROUP:="lp", ENV{libsane_matched}:="yes"
#lsusb
Bus 001 Device 004: ID 0781:b7b9 SanDisk Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 002: ID 046d:c404 Logitech, Inc. TrackMan Wheel
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 03f0:4811 Hewlett-Packard PSC 1600
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
cat /etc/udev/rules.d/10-cups-usb.rules
# HP PSC 1610
ATTR{Hewlett-Packard}=="03f0", ATTR{PSC 1600}=="4811", MODE:="0664", GROUP:="lp", ENV{libsane_matched}:="yes"
please tell me if I made any mistakes. Maybe something else should go in the ENV area?
well, in the mean time, maybe I should read other udev rules
]]>First, I blacklist my usblp module in /etc/rc.conf/
MODULES=(usbcore !usblp)
After that (and a check to my cupsd.conf file) I thought it will be ok..It wasnt in fact, I've got a message telling me that the printer was waiting to be avail or sth like that
So I got to change an udev rule. I create in /etc/udev/rules.d a special file for my printer (10-cups-usb.rules)
[root@deskann rules.d]# cat 10-cups-usb.rules
# Brother HL-2030
ATTR{idVendor}=="04f9", ATTR{idProduct}=="0027", MODE:="0664", GROUP:="lp", ENV{libsane_matched}:="yes"
I found the ATTR values by looking at the lsusb output, in my case:
#lsusb
Bus 004 Device 004: ID 04f9:0027 Brother Industries, Ltd HL-2030 Laser Printer
With that it should work, BUT be very careful, it's := not = . The mode 664 was recommended here, but in a first round, it didn't work.
Finally I got to
#gpasswd my_user lp
and after that it works finally for a test page...
So to sum up:
1 - blacklist usblp and check if cupsd.conf is in his new form (else cp cupsd.conf.pacnew cupsd.conf)
2 - create a custom udev rules in /etc/udev/rules.d for your device (the ATTR values in lsusb + 664 mode). Unplugged your printer and check if your hack works thanks to a #ls -al /dev/bus/usb/<your_bus_number>/
It should give sth like :
[root@deskann rules.d]# ls -al /dev/bus/usb/004/
total 0
drwxr-xr-x 2 root root 80 oct. 18 11:20 .
drwxr-xr-x 7 root root 140 oct. 18 11:06 ..
crw-rw-r-- 1 root root 189, 384 oct. 18 11:06 001
crw-rw-r--+ 1 root lp 189, 387 oct. 18 11:28 004
3 - gpasswd your_user lp
Hope it will help ppl sparing some time...
]]>