Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Scanner problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Felix82
n00b
n00b


Joined: 31 Aug 2003
Posts: 50
Location: near Munich, Germany

PostPosted: Wed May 12, 2004 3:38 pm    Post subject: Scanner problem Reply with quote

Hi!

I've got a problem with my scanner. I can only use it as root.
Of course i already used the search function and did exactly the same things as the other people with that kind of prob.:

1. emerge libusb hotplug sane-backends sane-frontends
2. started hotplug and added it to default runlevel
3. put my scanner in /etc/hotplug/usb.usermap (with the right ids)
4. made a script: /etc/hotlug/usb/scanner to change permissons when scanner is detected
5. usb 0x04b8 0x0802 in /etc/sane.d/epson.conf

But still i can't access the scanner as normal user. I checked everything a hundred times so surely no typos!
I hope someone could help me.

Nice greetings from bavaria,

Felix
_________________

  • [Athlon XP 2500+, 512MB RAM, GF2MX, 120+160GB, SiS746FX Board]: Gentoo only
  • [Athlon T-Bird 1000, 512MB RAM, GF2MX, 80GB, KT133 Board]: Gentoo, W2K


Last edited by Felix82 on Wed May 12, 2004 3:54 pm; edited 1 time in total
Back to top
View user's profile Send private message
undrwater
Guru
Guru


Joined: 28 Jan 2003
Posts: 314
Location: Caucasia

PostPosted: Wed May 12, 2004 3:42 pm    Post subject: Reply with quote

Maybe add your users to usb in /etc/group?
_________________
Open-mindedness is painful...
Back to top
View user's profile Send private message
Felix82
n00b
n00b


Joined: 31 Aug 2003
Posts: 50
Location: near Munich, Germany

PostPosted: Wed May 12, 2004 3:52 pm    Post subject: Reply with quote

my user is already in the /etc/group file.
but thanks anyway.
maybe some other suggestions?
_________________

  • [Athlon XP 2500+, 512MB RAM, GF2MX, 120+160GB, SiS746FX Board]: Gentoo only
  • [Athlon T-Bird 1000, 512MB RAM, GF2MX, 80GB, KT133 Board]: Gentoo, W2K
Back to top
View user's profile Send private message
neysx
Retired Dev
Retired Dev


Joined: 27 Jan 2003
Posts: 795

PostPosted: Wed May 12, 2004 4:04 pm    Post subject: Reply with quote

Could you post the script you wrote ?

This post might help as well.
Back to top
View user's profile Send private message
Felix82
n00b
n00b


Joined: 31 Aug 2003
Posts: 50
Location: near Munich, Germany

PostPosted: Thu May 13, 2004 5:57 am    Post subject: Reply with quote

/etc/hotplug/usb/scanner looks like this:
Code:

#!/bin/bash

if [ "${ACTION}" = "add" ] && [ -f "${DEVICE}" ]
then
        chown root "${DEVICE}"
        chgrp users "${DEVICE}"
        chmod 660 "${DEVICE}"
fi

_________________

  • [Athlon XP 2500+, 512MB RAM, GF2MX, 120+160GB, SiS746FX Board]: Gentoo only
  • [Athlon T-Bird 1000, 512MB RAM, GF2MX, 80GB, KT133 Board]: Gentoo, W2K
Back to top
View user's profile Send private message
neysx
Retired Dev
Retired Dev


Joined: 27 Jan 2003
Posts: 795

PostPosted: Thu May 13, 2004 8:43 am    Post subject: Reply with quote

As mentioned in the linked post above, this script did not work for me. The chxxx comands are not executed. Try mine or the one that comes with the latest version of sane-backends (/etc/hotplug/usb/libusbscanner). The latter should work on udev systems as well.

Hth
Back to top
View user's profile Send private message
Felix82
n00b
n00b


Joined: 31 Aug 2003
Posts: 50
Location: near Munich, Germany

PostPosted: Thu May 13, 2004 9:03 am    Post subject: Reply with quote

The difference to your script is actually just the "-e". I also tried this but it still didn't work. Looks like my script doesn't start at all.
_________________

  • [Athlon XP 2500+, 512MB RAM, GF2MX, 120+160GB, SiS746FX Board]: Gentoo only
  • [Athlon T-Bird 1000, 512MB RAM, GF2MX, 80GB, KT133 Board]: Gentoo, W2K
Back to top
View user's profile Send private message
neysx
Retired Dev
Retired Dev


Joined: 27 Jan 2003
Posts: 795

PostPosted: Thu May 13, 2004 9:13 am    Post subject: Reply with quote

I suppose your script name matches the name in your usb.usermap. Is it executable? It's clearly that either the script is not run at all or it does not change the permissions. Check the other discussion I am having at the moment at https://forums.gentoo.org/viewtopic.php?t=172556&start=4

Hth
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum