Scanner only works as root: user gets Speicherzugriffsfehler

I upgraded from OpenSuse 12.1 to 13.2. Since then I only can scan as root. When I’m logged in as a user, I get the follwing output from scanimage -L:

lp ppdev parport_pc
Speicherzugriffsfehler

The user is member of the lp-group;
sane-find-scanner finds the scanner

found USB scanner (vendor=0x04a9 [Canon], product=0x190a [CanoScan], chip=GL124) at libusb:002:002
;
udev rules knows my scanner (Canon Lide 210) (mentioned therein also with lp-group);
/dev/bus/usb/002/002 mentions lp with group permission.

The only workaround I found so far, was to start Xsane within KDE as root, but the scanned image then also can only be handled as root.

Pls. let me know, if you need further information to be able to help.

Thank you!
RoXus

When you added the user to the ‘lp’ group, did you then log out and log back in?

Yes, the groups command gives

users lp audio cdrom video vboxusers systemd-journal scanner

(The ‘scanner’-group is a remainder of another trial to find a solution for the problem by creating a separate group.)

RoXus

Let’s ignore the ‘scanimage -L’ error for a moment.

When you plug in the scanner, run the following command

dmesg|tail

and post the output here. Please use

..[/CO..] tags when posting output. (Refer to the '#' button in the editor.)

What is reported by the following commands?

sane-find-scanner



scanimage -T

High deano_ferrari,

here is my output from dmesg:

   32.039126] Bluetooth: BNEP socket layer initialized
   32.347852] SFW2-INext-DROP-DEFLT IN=enp1s0 OUT= MAC= SRC=fe80:0000:0000:0000:8e89:a5ff:fe2f:78a4 DST=ff02:0000:0000:0000:0000:0000:0000:00fb LEN=84 TC=0 HOPLIMIT=255 FLOWLBL=0 PROTO=UDP SPT=5353 DPT=5353 LEN=44 
   36.887291] SFW2-INext-DROP-DEFLT IN=enp1s0 OUT= MAC= SRC=fe80:0000:0000:0000:8e89:a5ff:fe2f:78a4 DST=ff02:0000:0000:0000:0000:0000:0000:00fb LEN=84 TC=0 HOPLIMIT=255 FLOWLBL=0 PROTO=UDP SPT=5353 DPT=5353 LEN=44 
   37.611903] fuse init (API version 7.23)
   44.894172] SFW2-INext-DROP-DEFLT IN=enp1s0 OUT= MAC= SRC=fe80:0000:0000:0000:8e89:a5ff:fe2f:78a4 DST=ff02:0000:0000:0000:0000:0000:0000:00fb LEN=84 TC=0 HOPLIMIT=255 FLOWLBL=0 PROTO=UDP SPT=5353 DPT=5353 LEN=44 
   60.910336] SFW2-INext-DROP-DEFLT IN=enp1s0 OUT= MAC= SRC=fe80:0000:0000:0000:8e89:a5ff:fe2f:78a4 DST=ff02:0000:0000:0000:0000:0000:0000:00fb LEN=84 TC=0 HOPLIMIT=255 FLOWLBL=0 PROTO=UDP SPT=5353 DPT=5353 LEN=44 
   92.944028] SFW2-INext-DROP-DEFLT IN=enp1s0 OUT= MAC= SRC=fe80:0000:0000:0000:8e89:a5ff:fe2f:78a4 DST=ff02:0000:0000:0000:0000:0000:0000:00fb LEN=84 TC=0 HOPLIMIT=255 FLOWLBL=0 PROTO=UDP SPT=5353 DPT=5353 LEN=44 
  157.023339] SFW2-INext-DROP-DEFLT IN=enp1s0 OUT= MAC= SRC=fe80:0000:0000:0000:8e89:a5ff:fe2f:78a4 DST=ff02:0000:0000:0000:0000:0000:0000:00fb LEN=84 TC=0 HOPLIMIT=255 FLOWLBL=0 PROTO=UDP SPT=5353 DPT=5353 LEN=44 
  285.110122] SFW2-INext-DROP-DEFLT IN=enp1s0 OUT= MAC= SRC=fe80:0000:0000:0000:8e89:a5ff:fe2f:78a4 DST=ff02:0000:0000:0000:0000:0000:0000:00fb LEN=84 TC=0 HOPLIMIT=255 FLOWLBL=0 PROTO=UDP SPT=5353 DPT=5353 LEN=44 
  541.216960] SFW2-INext-DROP-DEFLT IN=enp1s0 OUT= MAC= SRC=fe80:0000:0000:0000:8e89:a5ff:fe2f:78a4 DST=ff02:0000:0000:0000:0000:0000:0000:00fb LEN=84 TC=0 HOPLIMIT=255 FLOWLBL=0 PROTO=UDP SPT=5353 DPT=5353 LEN=44

here is sane-find-scanner (stripped from the comment lines):

could not open USB device 0x1d6b/0x0001 at 009:001: Access denied (insufficient permissions)
found USB scanner (vendor=0x04a9 [Canon], product=0x190a [CanoScan], chip=GL124) at libusb:002:002
could not open USB device 0x1d6b/0x0002 at 002:001: Access denied (insufficient permissions)
could not open USB device 0x1d6b/0x0001 at 008:001: Access denied (insufficient permissions)
could not open USB device 0x058f/0x6362 at 001:002: Access denied (insufficient permissions)
could not open USB device 0x1d6b/0x0002 at 001:001: Access denied (insufficient permissions)
could not open USB device 0x046d/0xc52b at 007:002: Access denied (insufficient permissions)
could not open USB device 0x1d6b/0x0001 at 007:001: Access denied (insufficient permissions)
could not open USB device 0x1d6b/0x0003 at 006:001: Access denied (insufficient permissions)
could not open USB device 0x1d6b/0x0002 at 005:001: Access denied (insufficient permissions)
could not open USB device 0x1d6b/0x0003 at 004:001: Access denied (insufficient permissions)
could not open USB device 0x1d6b/0x0002 at 003:001: Access denied (insufficient permissions)

(At the moment I only have connected 1 USB-device, that’s the scanner.)

and here from scanimage -T (which is the same as scanimage -L now):

 ppdev parport_pc
modprobe: ERROR: could not insert 'lp': Operation not permitted
Speicherzugriffsfehler

I appreciate it very much that you are so helpful. Thank you rotfl!

RoXus

Unfortunately, the dmesg output did not capture the kernel messagging related to plugging in the scanner. (Maybe you waited too long before running it.)

Anyway ‘sane-find-scanner’ correctly reports

found USB scanner (vendor=0x04a9 [Canon], product=0x190a [CanoScan], chip=GL124) at libusb:002:002

and here from scanimage -T (which is the same as scanimage -L now):

 ppdev parport_pc
modprobe: ERROR: could not insert 'lp': Operation not permitted
Speicherzugriffsfehler

The modules listed relate to legacy parallel port devices, so not sure whay they’re being reported here.

Do you perhaps have the ‘parallel-printer-support’ package installed? It’s not reuqired for most users, unless the interface exists, and they use parallel port devices.

rpm -qa| grep parallel

Does running the following scanner uttilities work (as user)?

scangui
skanlite

Also, I’d like to see the output from ‘xsane’ (run as regular user from a terminal)

xsane

FWIW, I use ‘simple-scan’ as my preferred scanning application. You might want to install and try that too.

I did find this Fedora bug report that impacted some users and appeared to be related to a kernel-related regression and USB3 ports. Does that apply to you? Anyway, it may (or may not) be relevant here, so shared it just in case.

@deano_ferrari,

first my output of the 4 commands (as user):

hans@linux-5nt1:~> rpm -qa| grep parallel
parallel-printer-support-1.00-12.1.2.noarch

hans@linux-5nt1:~> scangui
 ppdev parport_pc
modprobe: ERROR: could not insert 'lp': Operation not permitted
KCrash: Application 'scangui' crashing...
KCrash: Attempting to start /usr/lib64/kde4/libexec/drkonqi from kdeinit
KCrash: Connect sock_file=/home/hans/.kde4/socket-linux-5nt1/kdeinit4__0
scangui: Fatal IO error: client killed

hans@linux-5nt1:~> skanlite
 ppdev parport_pc
modprobe: ERROR: could not insert 'lp': Operation not permitted
KCrash: Application 'skanlite' crashing...
KCrash: Attempting to start /usr/lib64/kde4/libexec/drkonqi from kdeinit
KCrash: Connect sock_file=/home/hans/.kde4/socket-linux-5nt1/kdeinit4__0
skanlite: Fatal IO error: client killed

hans@linux-5nt1:~> xsane
 ppdev parport_pc
modprobe: ERROR: could not insert 'lp': Operation not permitted
Speicherzugriffsfehler

Here is another trial of dmesg as user:

dmesg | tail
  537.283444] SFW2-INext-DROP-DEFLT IN=enp1s0 OUT= MAC= SRC=fe80:0000:0000:0000:8e89:a5ff:fe2f:78a4 DST=ff02:0000:0000:0000:0000:0000:0000:00fb LEN=84 TC=0 HOPLIMIT=255 FLOWLBL=0 PROTO=UDP SPT=5353 DPT=5353 LEN=44 
 1049.580868] SFW2-INext-DROP-DEFLT IN=enp1s0 OUT= MAC= SRC=fe80:0000:0000:0000:8e89:a5ff:fe2f:78a4 DST=ff02:0000:0000:0000:0000:0000:0000:00fb LEN=84 TC=0 HOPLIMIT=255 FLOWLBL=0 PROTO=UDP SPT=5353 DPT=5353 LEN=44 
 1743.036975] traps: xsane[6886] general protection ip:7f843e8a3ce0 sp:7fff458fd278 error:0 in libmfp.so.1.0.1[7f843e89b000+e000]
 2073.996545] SFW2-INext-DROP-DEFLT IN=enp1s0 OUT= MAC= SRC=fe80:0000:0000:0000:8e89:a5ff:fe2f:78a4 DST=ff02:0000:0000:0000:0000:0000:0000:00fb LEN=84 TC=0 HOPLIMIT=255 FLOWLBL=0 PROTO=UDP SPT=5353 DPT=5353 LEN=44 
 2279.848541] usb 2-5: USB disconnect, device number 2
 2286.352365] usb 2-5: new high-speed USB device number 4 using ehci-pci
 2286.471574] usb 2-5: New USB device found, idVendor=04a9, idProduct=190a
 2286.471586] usb 2-5: New USB device strings: Mfr=1, Product=2, SerialNumber=0
 2286.471592] usb 2-5: Product: CanoScan
 2286.471597] usb 2-5: Manufacturer: Canon

Does this help?

RoXus

On 2014-12-20 13:36, RoXus wrote:
>
> @deano_ferrari,
>
> first my output of the 4 commands (as user):
>
> Code:
> --------------------
> hans@linux-5nt1:~> rpm -qa| grep parallel
> parallel-printer-support-1.00-12.1.2.noarch
>
> hans@linux-5nt1:~> scangui
> ppdev parport_pc
> modprobe: ERROR: could not insert ‘lp’: Operation not permitted
> --------------------

Wild guess:

As you have the parallel port package installed, the utilities that you
run as user first try to load the “lp” kernel module, and fail. At this
point, they abort.

You could load those kernel modules in advance as root (ppdev,
parport_pc), then run “scangui” as user, to find out if that is the reason.

Then simply remove the “parallel-printer-support-1.00-12.1.2.noarch”
package.

It is doubtful you have a machine with parallel printer port — or do you?


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)

On 2014-12-16 23:16, RoXus wrote:
>
> I upgraded from OpenSuse 12.1 to 13.2.

How was that done? boot dvd, choose upgrade? zypper dup?


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)

As I suspected. I’d remove that package. Reboot and try again.

Here is another trial of dmesg as user:

2279.848541] usb 2-5: USB disconnect, device number 2
2286.352365] usb 2-5: new high-speed USB device number 4 using ehci-pci
2286.471574] usb 2-5: New USB device found, idVendor=04a9, idProduct=190a
2286.471586] usb 2-5: New USB device strings: Mfr=1, Product=2, SerialNumber=0
2286.471592] usb 2-5: Product: CanoScan
2286.471597] usb 2-5: Manufacturer: Canon

That all looks as expected (from a USB point of view).

I now have removed the parallel-printer-support package, but this makes no difference for scanimage -L.

I did my upgrade from 12.1 to 13.2 by a new installation of openSuse, but I left /home-, /root-, fat- and windows-partitions untouched.

Not all backends play nice with ‘scanimage -L’. The ‘sane-find-scanner’ command detected your scanner hardware ok.
You could also try removing the user’s ~/.sane directory

rm -Rf ~/.sane

Try launching a scanner application (via a terminal) after that.

On 2014-12-22 21:26, RoXus wrote:

> I did my upgrade from 12.1 to 13.2 by a new installation of openSuse,
> but I left /home-, /root-, fat- and windows-partitions untouched.

I hope that by “/root” you really mean “/root” and not “/”, because that
would be a big problem.


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)

Sorry for answering so late, but I was on holidays lol!.

@deano_ferrari: still no success; by typing xsane after removal of ~/.sane, I again get the following:

ppdev parport_pc
modprobe: ERROR: could not insert ‘lp’: Operation not permitted
Speicherzugriffsfehler

Why is there a mixture of German and English error messages? Where does this come from?

@robin_listas: yes, I meant /root to keep my old admin-data

Regards
Hans

According to http://www.sane-project.org/cgi-bin/driver.pl?manu=canon&model=canoscan, your scanner is supported by the SANE genesys backend. Can you confirm that this (and only this) is uncommented in /etc/saned/dll.conf

#epson2
#fujitsu
#gphoto2
genesys
#gt68xx
#hp
#hp3900

The chipset is explicitly listed in /etc/sane.d/genesys.conf


# Canon LiDE 210
usb 0x04a9 0x190a

It’s not clear to me what is trying to load the parallel port drivers.

FWIW, there does seem to be some issues reported with some Canon LiDE scanners:

https://bugzilla.redhat.com/show_bug.cgi?id=1100151
https://bugs.launchpad.net/ubuntu/+source/xsane/+bug/1247371

Maybe there are others too. I haven’t had time to research further, (and they don’t describe the exact issue you report), but maybe there is a regression with SANE somehow.

BTW, Do you have a physical parallel port present? If so, try disabling via BIOS

What’s the output of

ls -l /dev/{par,lp}*

@deano_ferrari;

Thank you very much !

You found the solution. I really had some other uncommented lines in dll.conf. It’s working now rotfl!.

PS.: I had two other entries uncommented: ‘net’ and ‘smfp’, they must have tried to load the other modules.

That is great news! :slight_smile:

PS.: I had two other entries uncommented: ‘net’ and ‘smfp’, they must have tried to load the other modules.

The ‘net’ backend is only used for connecting to remote scanner on a network. I wouldn’t think this would cause a problem, although it can cause delays while looking for unresponsive hosts or remote hosts that don’t exist when trying to scan to a local printer.

The ‘smfp’ backend is a proprietary backend for Samsung Multifunction Printers. Maybe you installed Samsung software previously? Anyway, it has been reported to cause this ‘Segmentation’ error, and with trying to load parallel port drivers). For example, here’s a thread mentioning the same issue from sevveral years ago