[NTLUG:Discuss] Scanners on SuSE 11.0 -- do they work?
Stephen Davidson
gorky at freenet.carleton.ca
Mon Feb 2 23:04:32 CST 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
terry wrote:
> On Sun, Feb 1, 2009 at 12:54 PM, Stephen Davidson <gorky at freenet.carleton.ca
>> wrote:
>
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Greetings.
>>
>> Any ideas how to get one to work? My first issue;
>>
>> steve at blue:~> scanimage -L
>>
>> No scanners were identified. If you were expecting something different,
>> check that the scanner is plugged in, turned on and detected by the
>> sane-find-scanner tool (if appropriate). Please read the documentation
>> which came with this software (README, FAQ, manpages).
>> steve at blue:~>
>>
>> blue:~ # scanimage -L
>> device `genesys:libusb:002:010' is a Canon LiDE 35/40/50 flatbed scanner
>> blue:~ #
>>
>> Note that I can't get Gimp or Kooka to react to the scanner as well when
>> logged in as a normal user. If you click Configure on kooka, or Select
>> Scanner on Gimp, nothing happens. No error messages, nothing. On a
>> hunch, I restarted Gimp from the command line, and had the scanimage
>> message from "steve at blue" displayed in the console. So I think if I can
>> fix the issue with Scanimage, I might be able to get Gimp to use the
>> scanner. I have not tried either software when logged in as root.
>>
>> So, does this mean I can only do scanning if I am root? That does not
>> seem right....
>>
>> Suggestions?
>>
>
> Yes, it is possible that only root is privvilidged enough to use the
> scanner, (but I would not use it as root). TO find out if that is the
> problem:
>
> In the terminal issue the command:
> grep scanner /etc/group
>
> If you do not see your user name listed there, then edit that line in the
> file /etc/group and add your user name to the end of the line.
>
> For instance, if your user name is steve and the line says:
> scanner:x:93:
> change it so that it says
> scanner:x:93:steve
>
> If it already has a user name on the line, place a comma and space after it
> first, like so:
>
> scanner:x:93:fred,steve
>
> Once the you have your name added to group "scanner" log out and log back
> in again and you should have permission to use the scanner.
>
>
I found this link when googling, but I have not yet succeeded in the goal;
http://www.linux.com/articles/57798
There was initially no scanner group for anyone to be a member of. I
had to manually create one. But I have not changed any file permissions
or ownerships. Should I? If so, which ones? Is whatever process that
is responsible for mounting the USB devices (HAL?) not setting the
device permissions correctly?
Following the readme from the above link, I found several SANE files in
/etc/udev/rules.d. After looking through them, I have found the
following lines in;
/etc/udev/rules.d/55-libsane.rules
ACTION!="add", GOTO="libsane_rules_end"
ENV{DEVTYPE}=="usb_device", GOTO="libsane_create_usb_dev"
SUBSYSTEM=="usb", GOTO="libsane_rules_begin"
SUBSYSTEM=="usb_device", GOTO="libsane_rules_begin"
SUBSYSTEM!="usb_device", GOTO="libsane_rules_end"
# Kernel >= 2.6.22 jumps here
LABEL="libsane_create_usb_dev"
# For Linux >= 2.6.22 without CONFIG_USB_DEVICE_CLASS=y
# If the following rule does not exist on your system yet, uncomment it
# ENV{DEVTYPE}=="usb_device", NAME="bus/usb/$env{BUSNUM}/$env{DEVNUM}",
MODE="0664", OWNER="root", GROUP="root"
...
# Canon CanoScan LiDE 35 | Canon CanoScan LiDE 40 | Canon CanoScan LiDE 50
SYSFS{idVendor}=="04a9", SYSFS{idProduct}=="2213", MODE="0664",
GROUP="lp", ENV{libsane_matched}="yes"
I suspect that something here is causing the issue, but not sure how or
what. The line setting the usb_device owner to root/root seems to be
commented out, and there does not seem to be anything setting its owner
to the currently logged in user.
Ideas?
Regards,
Steve
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4-svn0 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
iD8DBQFJh9BgSphIUSiVzgYRAtErAJsGLwKMVp2b61I43sI3ptWhCKJYDgCg6KXH
7nDazi6swBFGCwu2JUnXR8A=
=Xdu8
-----END PGP SIGNATURE-----
More information about the Discuss
mailing list