DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have an all-in-one scanner/printer from HP. I used to be able to scan and print without problem. Now I can print but only scan if I use xsane as root. Xsane says "no devices available". I went to the 'Users and Groups' app under 'System -> Administration' and my user *is* in the scanner group. The checkbox next to 'Use Scanners' is already checked.
I recently removed hpoj, then more recently I tried to reinstall it and aptitude tried to remove hpijs and hplip ... in the past I think I had both installed. hpoj doesn't allow me to select my printer from cups so I'd rather stick with hpijs. I don't know if this effects things at all though.
I happen to dealing with the problem myself. The problem is that udev is setting the permissions on the usb device /dev/bus/usb/###/### to 0660 with the user root and the group either lp or scanner.
There is a rule in /lib/udev/rules.d/50-udev-default.rules which sets the printer info:
You need to replace your vendor and product id's, you can find them like this:
Code:
lsusb
Bus 001 Device 002: ID 04b8:0813 Seiko Epson Corp. Stylus CX6500/6600
I don't consider this a good fix though. You could have sane run as group lp (or cups run as group scanner), or create some lpscanner group for the bother of them. I'm not really sure how to reconcile the need for the two groups at the moment.
Thanks for the fast reply. I tried this and it works.
BTW, I tried other things after your post that didn't work. There's a file in /etc/default/ called saned. It has an option for "RUN_AS_USER" which I set to "lp". After setting another option "RUN" to "yes" I executed "/etc/init.d/saned restart" but this resulted in nothing useful. Your solution seems to produce the desired effect. If you come across something more elegant, please do post it as it would interest me. Thanks.
Also, do you think this is an error in some particular piece of software? As I stated, the xsane program used to work for me just fine until a few days ago.
Thanks for the fast reply. I tried this and it works.
Good. I am happy for you
But ... .. . (and read this to the end, please)
Quote:
As I stated, the xsane program used to work for me just fine until a few days ago.
So, what did you change?
What distro are you running this on ? [Your profile, at Left says "Distribution: Debian etch, lenny, squeeze", so which, exactly, is it?]
Quote:
I have an all-in-one scanner/printer from HP
Ok, but
- What model is it, exactly?
- What is its USB ID, if it is connected by USB ?
- Where's the link to the manufacturer's PDF manual for it?
Etc... .. .
Apologies if you see me as whining at you, but you'll appreciate that LQ is a valuable resource. Google re-indexes it about every minute (so they clearly see it as a useful resource of information).
If you don't include vital search terms ( your scanner's model number, its USB IDs (or other unique identification) your distro... ) then we are less able to help you personally (perhaps by doing searches for you) and the internet search engines will be unable to help other people running your distro with your specific HP scanner problems.
Maybe you have by now solved your problems, with Meson's inspired help but how has that helped the wider community?
Does that matter to you?
Please think about this, and then add a reply to this thread with the DETAILS, so those search-engines can index it to help others searching for a resolution to the same problem.
I think I said that I tried to uninstall 'hpoj' and found that I couldn't re-install it without removing other vital print oriented packages. I believe that at an earlier time I had all of those packages installed, hpoj, hpijs, and hplip. I may be wrong but I thought I was clear.
Quote:
What distro are you running this on ? [Your profile, at Left says "Distribution: Debian etch, lenny, squeeze", so which, exactly, is it?]
Right now I use Debian Squeeze. I used to run Etch and Lenny. I've reinstalled once because I changed hardware (if that makes sense...)
Quote:
Ok, but
- What model is it, exactly?
- What is its USB ID, if it is connected by USB ?
- Where's the link to the manufacturer's PDF manual for it?
Sorry about that.
HP Photosmart C3180 All-in-one
Bus 003 Device 002: ID 03f0:5611 Hewlett-Packard PhotoSmart C3180
I don't have a link for the manufacturer's manual.
Quote:
Please think about this, and then add a reply to this thread with the DETAILS, so those search-engines can index it to help others searching for a resolution to the same problem.
Scanner permission problem: A simple solution that worked for me.
Hi.
I have recently installed Arch Linux. However, my multipurpose printer-scanner (a HP Deskjet F2280 ) would not scan unless I ran xsane as root. (Sane could only find a scanner if it ran with root permissions.) A friend helped me track down the problem. It was not sufficient for the user to be in the "scanner" group, but adding the user to the "lp" group as well, solved the problem. (A user can be a member of many groups simultaneously.)
Hope this info will help someone out there.
Does anyone know why udev (or sane?) sometimes seems to ignore the rules in the /lib/udev/rules.d directory?
Mensons post (#2) is a good example of what I mean. He had to create a custom rule in /etc/udev/rules.d/99-custom.rules to get his scanner working. I've had to do the same in the past too. Even though both scanner devices were in the /lib/udev/rules.d/53-sane.rules file.
In the end I just copied and pasted everything from the 53-sane.rules file to a custom file /etc/udev/rules.d/96-scanner.rules
Now xsane detects the three different scanners my laptop has access to with no problem (a Mustek 1200, Canoscan n1240u & another which is not mine). But shouldn't 53-sane.rules have allowed that anyway? All three scanners were given rules in 53-sane.rules, so why was a custom file needed in a different directory?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.