[opensuse] [Leap 42.1] Scanner not working in user account
My printer/scanner, a Brother DCP-7040, appears to have been installed correctly [1]; printing works properly, and scanning works quite fine in the root account. The scanner is seen by the system, as the following results show: loki:~ # scanimage -L device `brother3:bus7;dev1' is a Brother DCP-7040 USB scanner loki:~ # sane-find-scanner -q found USB scanner (vendor=0x04f9, product=0x01e9) at libusb:009:003 loki:~ # scanimage -T scanimage: rounded value of br-x from 215.9 to 215.88 scanimage: rounded value of br-y from 355.6 to 355.567 scanimage: scanning image of size 1648x2291 pixels at 24 bits/pixel scanimage: acquiring RGB frame, 8 bits/sample scanimage: reading one scanline, 4944 bytes... FAIL Error: Out of memory That last result is a little surprising, but the scanner does work properly in xsane run in the root account. In a user account, however, I get the following results: loki@loki:~> scanimage -L device `brother3:bus7;dev1' is a Brother DCP-7040 USB scanner loki@loki:~> scanimage -T scanimage: open of device brother3:bus7;dev1 failed: Error during device I/O Xsane fails with the same error. AFAICT, this is a permissions error somewhere in the installed system, but I have been through everything, twice, and cannot find what it might be. My best guess at this point is that I might need to add a line specific to this scanner to /etc/udev/rules.d/56-sane-backends-autoconfig.rules; however, that file seems just to tell the system what scanner driver to use -- that driver appears to have been correctly detected, as the above scanimage results show. [1] This includes adding a line to /etc/udev/rules.d/55-libsane.rules and installing drivers from Brother; the drivers installed without error, and the line in libsane-rules is the same one that worked OK in openSUSE 12.3. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 12/17/2015 5:38 PM, Darryl Gregorash wrote:
AFAICT, this is a permissions error somewhere in the installed system, but I have been through everything, twice, and cannot find what it might be.
I wonder if you just have to add your normal user to some group that can use the scanner. Maybe sys? I see some hints here regarding usb https://en.opensuse.org/SDB:Configuring_Scanners#USB_scanner_access_permissi... -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 17/12/15 08:32 PM, John M Andersen wrote:
I see some hints here regarding usb https://en.opensuse.org/SDB:Configuring_Scanners#USB_scanner_access_permissi...
It would seem that I may have slipped up along the way, and gotten the permissions muddled up somewhere (though I have no idea where; getfacl showed the USB port to be "root lp rw-rw-r--" as it should be, and I had already added myself to group lp). Nevertheless, the SDB entry you posted also gave me a hint: at the very least, turn the scanner off/on and retry. That turned out to be all that was necessary. For the life of me, I cannot figure out what I might have done wrong. Thanks for the link, it really helped. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (2)
-
Darryl Gregorash
-
John M Andersen