Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Multimedia
  • Search

scanner usabel only as root

Help with creation, editing, or playback of sounds, images, or video. Amarok, audacious, mplayer, grip, cdparanoia and anything else that makes a sound or plays a video.
Post Reply
Advanced search
8 posts • Page 1 of 1
Author
Message
xerxesmc
n00b
n00b
User avatar
Posts: 54
Joined: Sun Nov 19, 2006 6:25 pm
Location: Fulda/Hessen

scanner usabel only as root

  • Quote

Post by xerxesmc » Tue Jul 24, 2007 5:43 pm

hi,
i lately needed to scan some stuff and realized, that theres a problem with my usb scanner and my gentooBox:

i plug the scanner in and lsusb can see it.

i wanna use the sane backend (actually dunno if there are others) so i emerged it and ran "sane-find-scanner" and "scanimage -L" as root, both worked, but as normal user only "sane-find-scanner" recognized my scanner...
sounds like some permission problem...so i added my user to the usb and the scanner group, still the same problem
i did some research and found lots of open threads about it besides that some solutions like chmoding the node and stuff, nothing worked here yet.
anyway i scanned as root and put the scanner away, im just curious if theres a solution for that matter or did i miss something?

thx
Top
Rob1n
l33t
l33t
Posts: 714
Joined: Sat Nov 29, 2003 5:16 pm
Location: Cambridge, UK

  • Quote

Post by Rob1n » Tue Jul 24, 2007 5:53 pm

Mine shows up fine when the user's in the scanner group. You may need to add your scanner to the /etc/udev/rules.d/99-libsane.rules file - you'll need the IDs from the lsusb command.
Top
PaulBredbury
Watchman
Watchman
User avatar
Posts: 7310
Joined: Thu Jul 14, 2005 3:47 pm

  • Quote

Post by PaulBredbury » Tue Jul 24, 2007 5:55 pm

Write a udev rule for it, e.g.:

/etc/udev/rules.d/91-local.rules

Code: Select all

BUS=="usb", SYSFS{product}=="CanoScan", GROUP="scanner", MODE="0660"
Top
xerxesmc
n00b
n00b
User avatar
Posts: 54
Joined: Sun Nov 19, 2006 6:25 pm
Location: Fulda/Hessen

  • Quote

Post by xerxesmc » Tue Jul 24, 2007 7:54 pm

how do u got ur SYSFS information? i only got this rule using udevinfo

Code: Select all

BUS=="usb", ATTR{product}=="CanoScan", MODE="660", GROUP="scanner"
PS: by plugging in the scanner i get a new node in /dev/bus/usb/... and it has the owner "root" and the group "scanner" even without the udevrule i just provided.

still cant use the scanner as regular user though
Top
PaulBredbury
Watchman
Watchman
User avatar
Posts: 7310
Joined: Thu Jul 14, 2005 3:47 pm

  • Quote

Post by PaulBredbury » Tue Jul 24, 2007 8:02 pm

ATTR is just the new name for SYSFS.

/etc/udev/rules.d/99-libsane.rules already sets up a reasonable default for most scanners.

Code: Select all

grep scanner /etc/udev/rules.d/*
GROUP="scanner" is a huge hint that you should be in the scanner group.

Code: Select all

gpasswd -a yourname scanner
Then re-login for it to take effect.
Top
bl00dseeker
n00b
n00b
Posts: 70
Joined: Tue Feb 27, 2007 6:54 pm

  • Quote

Post by bl00dseeker » Wed Aug 01, 2007 11:22 am

i still have the problem that xsane doesn't use my usb scanner. But i know that it did some time ago as user.
So i have user in the group scanner and did a relogin. I can start "sane-find-scanner" as user and it detects my scanner:
"found USB scanner (vendor=0x03f0, product=0x4d11) at libusb:002:015"

but when i start xsane it says no scanner found, that only works as root. So i don't understand what has change since some updates that now my scanner doesn't work with a user account although "sane-find-scanner" founds him. And yes the user is in the usb group too...

I really don't know what to do

when i run "hp-check" just 2 warnings with perl dependencies come and this:
"Checking output of 'scanimage -L'... scanimage: hp-option.c:3713: hp_optset_fix_geometry_options: Assertion `tl_x && tl_y && br_x && br_y' failed."

This error comes when i do it as root or user. Since i put the user in the group "lp" now "scanimage -L" works.

It is a HP PSC1410, printing with cups works fine
Top
paladin-zero
Guru
Guru
User avatar
Posts: 322
Joined: Wed May 19, 2004 4:13 pm

  • Quote

Post by paladin-zero » Sun Aug 19, 2007 5:37 pm

I added my user to the lp group, ran hp-check again, which indicated that the user is in the lp group, but scanimage -L still fails to find the scanner unless I am root.

This is the third time I have had to reconfigure my scanner because it stopped working after an update. I'm in the lp, usb, and scanner group. What more does Gentoo want before it will grant my user access to the scanner again?
Top
paladin-zero
Guru
Guru
User avatar
Posts: 322
Joined: Wed May 19, 2004 4:13 pm

  • Quote

Post by paladin-zero » Sun Aug 19, 2007 6:05 pm

Ok, apparently opening a new konsole after adding my user to the lp group, and running hp-check was not enough. I rebooted, and now scanimage -L finds my scanner, and kooka is working again. And it only took the best part of a sunny sunday morning to get it working again.
Top
Post Reply

8 posts • Page 1 of 1

Return to “Multimedia”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic