Bug 16253 - xsane cannot see scanner unless run as root
Summary: xsane cannot see scanner unless run as root
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: José Jorge
QA Contact:
URL:
Whiteboard:
Keywords: NEEDINFO
: 18817 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-06-30 16:55 CEST by Frank Griffin
Modified: 2017-07-13 21:43 CEST (History)
4 users (show)

See Also:
Source RPM: xsane
CVE:
Status comment:


Attachments
Diagnostic output from HP Device Manager (10.27 KB, text/plain)
2016-04-01 14:09 CEST, Maurice Batey
Details
Laptop output from HP Device Manager diagnostics (13.32 KB, text/plain)
2016-04-01 14:21 CEST, Maurice Batey
Details

Description Frank Griffin 2015-06-30 16:55:26 CEST
In current cauldron, xsane run under a normal user reports no devices, even if the user is in the saned and scanner groups.

Run as root, it runs normally (although it grouses about running as root).

Probably some dbus error with the ownership or permissions of the USB device created for the scanner.  This is an HP all-in-one 3030 which has been working under MGA since forever.

Reproducible: 

Steps to Reproduce:
Comment 1 Frank Griffin 2015-07-01 13:15:45 CEST
Possibly a reincarnation of bug#10475.
Comment 2 Samuel Verschelde 2015-09-11 09:49:18 CEST
Assigning to new sane maintainer.

Assignee: bugsquad => lists.jjorge

Comment 3 Maurice Batey 2015-09-19 19:22:42 CEST
> In current cauldron, xsane run under a normal user reports no devices, even if > the user is in the saned and scanner groups.

> Run as root, it runs normally (although it grouses about running as root).

  Exactly same here, with HP5520 All-in-One.

(Also, HPLIP reports 'Comunication Error', no status, supplies info)

[In both cases, with printer switched on.]

CC: (none) => maurice

Comment 4 José Jorge 2015-10-25 12:19:53 CET
saned 1.0.25 has landed in cauldron. Does the bug still exist?

Keywords: (none) => NEEDINFO
Status: NEW => ASSIGNED

Comment 5 Maurice Batey 2015-10-25 15:40:56 CET
Just done Cauldron update, but rpm -qif /usr/bin/xsane shows:

Name        : xsane
Version     : 0.999
Release     : 7.mga6
Architecture: x86_64
Install Date: Tue 15 Sep 2015 16:31:59 BST
Group       : Graphics/Scanning
Size        : 5130515
License     : GPLv2+
Signature   : RSA/SHA1, Mon 14 Sep 2015 20:55:12 BST, Key ID b742fa8b80420f66
Source RPM  : xsane-0.999-7.mga6.src.rpm

- and problem is still there.
Comment 6 Frank Griffin 2016-03-10 00:00:23 CET
Ping ?
Comment 7 José Jorge 2016-03-10 17:02:45 CET
I don't have currently a running Cauldron system. I will watch this if no one else does when an ISO will be ready.
Comment 8 Maurice Batey 2016-03-30 12:04:52 CEST
W.r.t to Comment 3 above, I now have exactly the same situation with Mageia-5 (fully updated)!

(Another recent change: Dropbox icon no longer appears in Systray...)
Comment 9 Maurice Batey 2016-04-01 12:55:20 CEST
Also, here on 64-bit Mageia-6-dev1, system-config-printer fails to add printer:

After:
"Your are about to install a software package on your computer:
  -task-printing-server
  -task-printing-hp"

this msg appeared:

"Some requested packages cannot be installed:

   libgirepository1.0-1.48.0-1mga6.i586 
     (due to unsatisfied:
        gobject-introspection-1.48.0-1.mga6.i586)"

After I ignored 'Abort' option it installed several packages (including CUPS)  and then ended without installing printer.

No sign of HP Device Manager; CUPS will not start.

Attempts to re-install end without progress.
Comment 10 Maurice Batey 2016-04-01 14:09:12 CEST
Created attachment 7613 [details]
Diagnostic output from HP Device Manager
Comment 11 Maurice Batey 2016-04-01 14:16:01 CEST
N.B. Attachment 7613 [details] above applies to the situation with same printer on desktop Mageia-5.

Note also:
  I have now installed the same HP5520 on new laptop's fresh install of Mageia-5, fully updated. Result:

(1) HP device Driver reports 'Communication Error', no status or supplies info
(2) CUPS sees printer, and prints
(3) Xsane finds HP5520 scanner first time, and consistently!
    ==========================
Comment 12 Maurice Batey 2016-04-01 14:21:25 CEST
Created attachment 7614 [details]
Laptop output from HP Device Manager diagnostics

Here is similar HP diagnostics from laptop.
N.B. Xsane does find same scanner!
Comment 13 Maurice Batey 2016-04-05 19:39:10 CEST
Tried installing HP5520 printer/scanner on fresh install of latest 64-bit Mageia-6-dev1 .iso in Plasma login on real h/w (nVidia).

This time it did install (using system-config-printer's 'HPLIPoption'), and prints (so CUPS happy), but xsane fails to find the scanner (as it still fails on Mageia-5).

HP Device Manager still denied the existence of a printer, both before and after the install by system-config-printer!
Comment 14 Maurice Batey 2016-05-22 17:48:27 CEST
With the 2016-5-20 Mageia-6-sta1, Xsane still fails to find the HP5520 scanner - unless run as Root.

(HPLIP (HP Device Manager) does now find the printer, but its Status and Supplies options both show "Communication Error" see: 
      https://bugs.mageia.org/show_bug.cgi?id=18507 )
Comment 15 Maurice Batey 2016-06-28 19:21:35 CEST
Ditto with 64-bit classic Mageia-6-sta1 of 20/6.

(This is on non-EFI non-GPT real h/w (nVidia).)
Comment 16 Frank Griffin 2016-06-29 17:29:42 CEST
*** Bug 18817 has been marked as a duplicate of this bug. ***
Comment 17 Frank Griffin 2016-06-29 17:34:15 CEST
Why is this NEEDINFO ?

The problem is that the device for the scanner is created rw rw r root root.  Either it should be owned by a group to which a regular user can be added, or else it should be rw rw rw.
Comment 18 Maurice Batey 2016-06-29 18:04:12 CEST
Is there a temporary specific workaround that could be used until this is fixed. Frank?

(Not clear how to get at the permissions of "the device for the scanner".)
Comment 19 Frank Griffin 2016-06-29 18:33:49 CEST
It's pretty crude, but if you're not in a multiuser situation, 

          chmod 666 /dev/bus/usb -R

should do the trick, at least until you reboot.
Comment 20 Maurice Batey 2016-06-29 19:11:46 CEST
(In reply to Frank Griffin from comment #19)
> It's pretty crude, but if you're not in a multiuser situation, 
> 
>           chmod 666 /dev/bus/usb -R
> 
> should do the trick, at least until you reboot.

  Thank, but 'fraid not. :-(

Tried logout/login but scanner still not found.
  (No problem as Root...)

(This is on Mageia-5, by the way!)
Comment 21 Maurice Batey 2016-06-29 19:31:47 CEST
Didn't work on Mageia-6-sta1, either, I'm afraid...  :-(
Comment 22 Frank Griffin 2016-06-29 19:59:28 CEST
My bad.  Try 777 instead of 666, and of course it has to be done as root.  666 turns off the permission to examine directories.
Comment 23 Maurice Batey 2016-06-29 20:32:18 CEST
Ah, that's more like it! Yes, that worked. 
Pity is only ephemeral...
Comment 24 Charles Edwards 2016-06-29 22:07:33 CEST
I just did a Mga6 install and had no issue with a Samsung Xpress M2070RW.
Run xsane as user accept the EULA and it's ready to begin scanning.

The device is a network connected multi-function printer.
I am using vendor supplied driver software.

CC: (none) => cae

Comment 25 Frank Griffin 2016-06-30 00:12:19 CEST
The error case involves a locally-attached USB device.
Comment 26 Morgan Leijström 2016-07-10 19:37:32 CEST
Local old USB attached scanner EPSON PERFECTION 1660 PHOTO is still working perfectly on this computer after online *upgrade* from Mageia 5.

(  New on mga6 is a popup saying HPLIP can not access network scanners
   (and i dont care)
  )

Anything you want me to check for reference?

CC: (none) => fri

Comment 27 Frank Griffin 2016-07-10 20:01:58 CEST
So it looks to be HP-related...
Comment 28 Maurice Batey 2016-11-08 18:55:12 CET
Problem still there with latest Cauldron s/w update on 64-bit KDE Mageia-6, with HP5520 printer/scanner.

No problem if start xsane as Root...
Comment 29 Maurice Batey 2016-12-05 17:05:39 CET
Still a problem in Magiea-5 - need to do (as Root):

   chmod 777 /dev/bus/usb -R 

Is no there no proper fix in sight yet?
Comment 30 Maurice Batey 2017-01-12 18:22:00 CET
Problem still there with 11/1/17 64-bit KDE Mageia-6-sta2, with HP5520 printer/scanner.

No problem if start xsane as Root, or do #chmod 777 /dev/bus/usb -R
Comment 31 Maurice Batey 2017-03-12 19:04:58 CET
Problem still there with latest 64-bit KDE Mageia-6-sta2, with HP5520 printer/scanner.

   (Although other problems with that printer/scanner have now disappeared...)

No problem if start xsane as Root, or do #'chmod 777 /dev/bus/usb -R' first.
Comment 32 Johnny A. Solbu 2017-06-04 14:25:20 CEST
For me I fixed it in mga5 by adding myself to the lp group, and loging out and in to KDE.

CC: (none) => cooker

Comment 33 Maurice Batey 2017-07-13 19:32:55 CEST
No problem here now on Mageia-5!
Comment 34 Rémi Verschelde 2017-07-13 21:43:20 CEST
Closing.

Resolution: (none) => FIXED
Status: ASSIGNED => RESOLVED


Note You need to log in before you can comment on or make changes to this bug.