Fedora Linux Support Community & Resources Center
  #1  
Old 30th July 2004, 12:15 PM
d2e2 Offline
Registered User
 
Join Date: Jul 2004
Posts: 38
Question Epson 1660 scanner

I've installed FC2 on my wife's machine. Everything seems to be working correctly except the Epson scanner. Even that is working if I initiate it as root. The problem is one of permissions.

There is a script, /etc/hotplug/usb/libusbscanner, that is suppose to change the /dev ownership and /dev permissions of the file /proc/bus/usb/###/###. It doesn't do this, it does seem to change the ownership of /dev/usb/scanner#

Most of this is greek to me. A language I know little or nothing about, so if all this sounds idiotic, please be patient. If anyone understands what is suppose to be happening and can direct me in getting the scanner to work, it would be very nice.

Thanks in advance for any thought on this matter, I am

Greatfully yours

Dennis
Reply With Quote
  #2  
Old 30th July 2004, 12:28 PM
Harryc's Avatar
Harryc Offline
Registered User
 
Join Date: Jun 2004
Posts: 715
There is a bug open on this. Many, many people having the same problem, myself included. .

https://bugzilla.redhat.com/bugzilla....cgi?id=121511
Reply With Quote
  #3  
Old 1st August 2004, 10:58 AM
d2e2 Offline
Registered User
 
Join Date: Jul 2004
Posts: 38
Smile Work around to make scanner(s) work

I do not know whether anyone else is having the same problem. The Epson 1660 scanner works if it is started as root but will not start for a user. The problem is in the /etc/hotplug/usb/libusbscanner script. I'm no script genus so I'll not try to correct it here.

I have found a simple work-around. I've added to my /etc/rc.d/rc.local file the following:

chmod 0666 /proc/bus/usb/001/002

This resets the permissions of the scanner driver which is named in the above "002" from 0600 (root only) to 0666 (everyone). Now when a user boots the machine up "xsane" both finds the scanner and starts up.

If this is dumb, please do not hesitate to warn me!

Thanks

Dennis Armstrong
Reply With Quote
  #4  
Old 1st August 2004, 11:15 AM
d2e2 Offline
Registered User
 
Join Date: Jul 2004
Posts: 38
A SUSE usr had this idea

THIS SCRIPT IS DESIGNED FOR THE SUSE OS. IT MUST BE MODIFIED FOR FEDORA! I'M POSTING IT TO COMPLETE THE ABOVE ASSERTION THAT THE PROBLEM IS IN THE /ETC/HOTPLUG/USB/LIBUSBSCANNER SCRIPT.




I've had a strange problem with scanning software and 9.1. I think the problem is due to the way USB permissions are set in the HOTPLUG system in the new 2.6 kernel. (Packages XSANE and KOOKA)

The system worked perfectly when I was ROOT but as a normal USER I kept getting message Scanner Not Found.

Since I don't want users logging in as ROOT and we do need to do scanning I've finally found an easy solution.

This problem is not restricted to SUSE but comes from the way the HOTPLUG USB stuff has been implemented in the 2.6 Kernel.

Finally found the answer so I can use XSANE / KOOKA as a user RATHER than ROOT.

The problem is in the permissions gained via HOTPLUG.


So look at your /etc/hotplug/usb directory and pick up file sane-hardcoded.usermap

You'll see some cryptic entries like this
desktopdev 0x0003 0x03f0 0x0101 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x0
desktopdev 0x0003 0x03f0 0x0102 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x0
desktopdev 0x0003 0x03f0 0x0105 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x0

etc.

The first entry in each line is the name of the script to execute.
The next part identifies your scanner device.

Your scanner will have a number and depending on this number it will exeute the named script.

In this case they are all called desktopdev. As I only have 1 scanner I'm not going to find out which it is since all of the entries call the same script.

The old script is as follows (default with the system)

#!/bin/bash
# This adds a USB device to the "desktop usb" group.
# You just need to create an entry "desktopdev ..." in a usermap file
# and it will be picked up automatically.

if [ -x /sbin/resmgr -a ! -z "$DEVICE" ]; then
if [ "${ACTION}" = "add" ]; then
/sbin/resmgr ${ACTION} ${DEVICE} desktop usb && exit 0
else
/sbin/resmgr ${ACTION} ${DEVICE} desktop && exit 0
fi
fi


I've changed this to

#!/bin/bash
# This adds a USB device to the "desktop usb" group.
# You just need to create an entry "desktopdev ..." in a usermap file
# and it will be picked up automatically.
if [ "${ACTION}" = "add" ] && [ -f "${DEVICE}" ]
then
chown root "${DEVICE}"
chgrp scanner "${DEVICE}" <======= your new group scanner
chmod 660 "${DEVICE}"
fi

Now I create a group called scanner and add the user to it. The name must be the same as in the chgrp line

file is in /etc/group

add the scanner group
........various entries etc etc
at:!:25:
public:x:32:
video:x:33:kyle
games:x:40:
xok:x:41:
trusted:x:42:
modem:x:43:
ftp:x:49:
postfix:!:51:
maildrop:!:59:
man:x:62:
sshd:!:65:
ntadmin:!:71:
scanner:x:93:kyle <================add this line (with your userid of course)
mobody:x:65533:nobody
nogroup:x:65534:nobody
users:x:100:

Add your userid to the scanner group.

Re-boot the machine -- not sure if it's necessary to re-boot but coming from Windows you always have to re-boot when changing system configurations --or so it seemed to me anyway.

Hey presto it works.
Reply With Quote
Reply

Tags
1660, epson, scanner

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
epson scanner not working blkwell Hardware & Laptops 3 14th November 2008 02:17 AM
Epson USB scanner & sane nt4cats Hardware & Laptops 4 18th October 2008 05:16 PM
Epson 1660 Scanner - SANE (or insane?) Harryc Hardware & Laptops 3 12th December 2004 01:58 PM


Current GMT-time: 23:33 (Tuesday, 21-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat