Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problem with LIBUSB, sane and my Scanner as user
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
root_tux_linux
l33t
l33t


Joined: 21 Dec 2003
Posts: 966

PostPosted: Tue Jul 20, 2004 1:21 pm    Post subject: Problem with LIBUSB, sane and my Scanner as user Reply with quote

Hi

I have a problem with my scanner.

I can use my scanner only as ROOT and not as USER :(

sane-find-scanner says he can find my scanner but scanimage -L cant find it.

Quote:
user@gentoo:/$ sane-find-scanner

# No SCSI scanners found. If you expected something different, make sure that
# you have loaded a SCSI driver for your SCSI adapter.

found USB scanner (vendor=0x04a9, product=0x220d, chip=LM983x?) at libusb:001:002
# Your USB scanner was (probably) detected. It may or may not be supported by
# SANE. Try scanimage -L and read the backend's manpage.

# Not checking for parallel port scanners.

# Most Scanners connected to the parallel port or other proprietary ports
# can't be detected by this program.

# You may want to run this program as root to find all devices. Once you
# found the scanner devices, be sure to adjust access permissions as
# necessary.
user@gentoo:/$


Quote:
user@gentoo:/$ 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).
user@gentoo:/$


Quote:
root@gentoo:/$ sane-find-scanner

# No SCSI scanners found. If you expected something different, make sure that
# you have loaded a SCSI driver for your SCSI adapter.

found USB scanner (vendor=0x04a9 [Canon], product=0x220d [CanoScan], chip=LM9832/3) at libusb:001:002
# Your USB scanner was (probably) detected. It may or may not be supported by
# SANE. Try scanimage -L and read the backend's manpage.

# Not checking for parallel port scanners.

# Most Scanners connected to the parallel port or other proprietary ports
# can't be detected by this program.
root@gentoo:/$


Quote:
root@gentoo:/$ scanimage -L
device `plustek:libusb:001:002' is a Canon N670U/N676U/LiDE20 USB flatbed scanner
root@gentoo:/$




man sane-usb says me, this is a problem of the permission in libusb?

how can i change it?

how can i make my scanner work as User?

Can u help me?




Ps. Sorry, for my bad englisch but i hope u can understand me.

Infos:
Kernel-2.6.7
Gentoo 2004.1
libusb-0.1.7-r1
kooka-0.41
sane-backends-1.0.14-r2
Canon Canoscan LIDE 20
Back to top
View user's profile Send private message
oumpah-pah
Guru
Guru


Joined: 18 Jul 2004
Posts: 575
Location: Lausanne, Switzerland

PostPosted: Tue Jul 20, 2004 2:15 pm    Post subject: Reply with quote

I think you just have to change the permissions of the device in /dev representing your scanner to something like :
Code:
chmod 0666 /dev/<scanner>

Alternatively, you can give read-write acces to user and group only, and add your user into that group. That's what I did :
Quote:
crw-rw---- 1 root scanner 21, 0 Jul 20 09:42 scanner

note : your scanner device is probably not called 'scanner', but something like 'sg*'.
Back to top
View user's profile Send private message
root_tux_linux
l33t
l33t


Joined: 21 Dec 2003
Posts: 966

PostPosted: Tue Jul 20, 2004 2:48 pm    Post subject: Reply with quote

I have no /dev/scanner and sg btw sg0 is my SCSI-Controller :(
Back to top
View user's profile Send private message
oumpah-pah
Guru
Guru


Joined: 18 Jul 2004
Posts: 575
Location: Lausanne, Switzerland

PostPosted: Tue Jul 20, 2004 4:22 pm    Post subject: Reply with quote

My bad, I'm realy sorry. I have a scsi scanner so it's named sg0, but since yours is usb, you should look in /dev/usb or maybe something with usb in its name (like usblp0 for my usb printer). Alsa check the output of dmesg right after you plug your scanner in, and see what you get.
Back to top
View user's profile Send private message
Kompi
Apprentice
Apprentice


Joined: 05 Oct 2002
Posts: 252
Location: Germany

PostPosted: Tue Nov 09, 2004 11:58 am    Post subject: Reply with quote

have a look at this thread:

https://forums.gentoo.org/viewtopic.php?t=175304
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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