VectorLinux
April 23, 2014, 12:05:36 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: [1] 2
  Print  
Author Topic: how do i find out where my Canon CanoScan is listed in /dev  (Read 5011 times)
raleeha
Member
*
Posts: 67



« on: July 04, 2011, 10:38:47 pm »

Hello,

Code:
device `plustek:libusb:004:002' is a Canon CanoScan N670U/N676U/LiDE20 flatbed scanner

Code:
found USB scanner (vendor=0x04a9 [Canon], product=0x220d [CanoScan], chip=LM9832/3) at libusb:004:002

Code:
Bus 004 Device 002: ID 04a9:220d Canon, Inc. CanoScan N670U/N676U/LiDE 20

as root its possible to run xsane but not as normal user so my question is how do i get information about the devices where my scanner is configured? ... well i think there is an permission problem thats why xsane didnt find any scanner if i launch it ..

Does there any command exists where i find out all the devices configured in my computer(in /dev)?

any suggestions would be appreciated

greetings raleeha
Logged
raleeha
Member
*
Posts: 67



« Reply #1 on: July 05, 2011, 02:21:51 am »

Code:
T:  Bus=04 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=12   MxCh= 0
D:  Ver= 1.10 Cls=ff(vend.) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=04a9 ProdID=220d Rev= 1.00
S:  Manufacturer=Canon
S:  Product=CanoScan
C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=ff Driver=(none)
E:  Ad=81(I) Atr=03(Int.) MxPS=   1 Ivl=16ms
E:  Ad=82(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=03(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
Logged
raleeha
Member
*
Posts: 67



« Reply #2 on: July 05, 2011, 08:25:25 am »

Code:
man sane usb
If sane-find-scanner finds your scanner only as root but not as normal user, the permissions for the device files are not
adjusted correctly.

http://www.linuxquestions.org/questions/linux-hardware-18/epson-n1240u-xsane-and-permissions-85191/

"It's also possible to mount the usbfs with the option "devmode=0666", e.g. by using the following line in /etc/fstab:
none /proc/bus/usb usbfs defaults,devmode=0666 00

:my /etc/fstab
Code:
usbfs /proc/bus/usb usbfs rw,devmode=0666 0 0

:as normal user
Code:
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)

:as root
Code:
xsane

:/usr/share/doc/sane/README.linux
"So if scanimage -L lists your scanner as root but not as normal user
read on this text. Usually you must just add the users that are allowed to access
the scanner to group "scanner". The device files used by libusb are located in /proc/bus/usb/
(e.g. /proc/bus/usb/001/003) or in /dev/bus/usb/ (e.g. /dev/bus/usb/001/003), if
you use udev.  The exact file name can be found out by running sane-find-scanner
which would print "libusb:001:003" in this case.  While setting permissions with
e.g. "chmod a+rw /proc/bus/usb/001/003" works, this change is not permanent.
The permissions will be reset when the scanner is replugged or Linux is
rebooted."
"One solution to set permissions on-the-fly is Linux udev which comes with current distributions. SANE comes with a udev rules file in the tools/udev directory which may be used by distributions or can be copied to /etc/udev/rules.d manually."

Code:
ls -la /etc/udev/rules.d
total 16
drwxr-xr-x 2 root root 4096 Jul  1 17:16 ./
drwxr-xr-x 3 root root 4096 Jan  5 08:53 ../
-rw-r--r-- 1 root root  789 Jul  1 14:18 70-persistent-cd.rules
-rw-r--r-- 1 root root  442 Jul  1 14:21 70-persistent-net.rules

Has anyone experience in the change of files like in the udev tools directory?


Logged
bigpaws
Vectorian
****
Posts: 1833


« Reply #3 on: July 05, 2011, 12:56:50 pm »

All I need to do for my network scanner is add users to the scanner group.
Give it a try first.

Bigpaws
Logged
raleeha
Member
*
Posts: 67



« Reply #4 on: July 05, 2011, 11:10:50 pm »

hi,

do you know is ther eany gui tol to manage/admin users? becoz i did anything wrong when im changed groups from normal user..what i did: tried to add group scanner to normal user but after that it was all other groups deleted..well i think i need really know how to handle users and groups in vector linux.

Code:
usermod -G scanner test

Code:
id           
uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel)

Code:
id
uid=1000(test) gid=3(sys) groups=3(sys),93(scanner)
Logged
raleeha
Member
*
Posts: 67



« Reply #5 on: July 05, 2011, 11:15:34 pm »

oh find this http://forum.vectorlinux.com/index.php?topic=4517

Code:
usermod -G roland,sys,adm,disk,lp,floppy,audio,video,cdrom,games,scanner,users,tty roland
?
Logged
raleeha
Member
*
Posts: 67



« Reply #6 on: July 06, 2011, 04:06:41 pm »

Code:
groups
sys adm tty disk lp floppy audio video cdrom games plugdev scanner users test

but it wont work Sad
Logged
GrannyGeek
Packager
Vectorian
****
Posts: 2567


« Reply #7 on: July 06, 2011, 07:24:29 pm »

I have a CanoScan (part of my MP160 multifunction printer). I can run it as user. I don't know if this will help, but in my Tuxcards file with Linux information I found this:
=====================
>lsusb reports the scanner as here: Bus 1 Device 4: ID 04a9:1714 Canon, Inc.

#chmod 777 /dev/bus/usb/001/004


I had to modify the command a bit because the directories on my system weren't quite what the command expected. By going to /dev/bus/usb/1 I discovered that the scanner was located at /dev/usbdev1.4. I located /dev/usbdev1.4 and changed the permissions so everyone could do everything.

After that, I was able to scan as user.
=======================

On my VL7 RC2 system I can start xsane as user and the Canon scanner comes up in xsane.

I couldn't get a consistent operation with xsane or the Canon scanner software, so I tried out VueScan and it did such a good job that I paid for it. No problems now with scanning.
--GrannyGeek
Logged

Registered Linux User #397786

Happily running VL 7 Gold on  a Sempron LE-1300 desktop (2.3 GHz), 4 G RAM,  GeForce 6150 SE onboard graphics and on an HP Pavilion dv7 i7, 6 gigs, Intel 2nd Generation Integrated Graphics Controller
raleeha
Member
*
Posts: 67



« Reply #8 on: July 07, 2011, 12:51:56 am »

hi thx for reading this ... maybe i do anything wrong by changing right permissions

Code:
Bus 004 Device 003: ID 04a9:220d Canon, Inc. CanoScan N670U/N676U/LiDE 20
Code:
crw-rw-r--+  1 root scanner 189, 386 Jul  7 10:55 usbdev4.3

Logged
raleeha
Member
*
Posts: 67



« Reply #9 on: July 07, 2011, 08:52:03 pm »

i wonder if i do this the scanner will be still not recognize by normal user after new login and if i reboot its still the same ..

im not very familiar with udev devices maybe i should about learn something

Code:
drwxr-xr-x 2 root root 4096 Jul  1 17:16 ./
drwxr-xr-x 3 root root 4096 Jan  5  2011 ../
-rw-r--r-- 1 root root  789 Jul  1 14:18 70-persistent-cd.rules
-rw-r--r-- 1 root root  442 Jul  1 14:21 70-persistent-net.rules
vector://etc/udev/rules.d

Code:
drwxr-xr-x  3 root root  4096 Jul  5 20:37 ./
drwxr-xr-x 84 root root 12288 Jul  8 05:41 ../
-rw-r--r--  1 root root    25 Apr 17 05:09 abaton.conf
-rw-r--r--  1 root root    14 Apr 17 05:09 agfafocus.conf
-rw-r--r--  1 root root    24 Apr 17 05:09 apple.conf
-rw-r--r--  1 root root    26 Apr 17 05:09 artec.conf
-rw-r--r--  1 root root  4140 Apr 17 05:09 artec_eplus48u.conf
-rw-r--r--  1 root root   548 Apr 17 05:09 avision.conf
-rw-r--r--  1 root root    29 Apr 17 05:09 bh.conf
-rw-r--r--  1 root root    26 Apr 17 05:09 canon.conf
-rw-r--r--  1 root root   193 Apr 17 05:09 canon630u.conf
-rw-r--r--  1 root root  2922 Apr 17 05:09 canon_dr.conf
-rw-r--r--  1 root root  1160 Apr 17 05:09 canon_pp.conf
-rw-r--r--  1 root root   509 Apr 17 05:09 cardscan.conf
-rw-r--r--  1 root root    34 Apr 17 05:09 coolscan.conf
-rw-r--r--  1 root root   754 Apr 17 05:09 coolscan2.conf
-rw-r--r--  1 root root   754 Apr 17 05:09 coolscan3.conf
-rw-r--r--  1 root root   984 Apr 17 05:09 dc210.conf
-rw-r--r--  1 root root   984 Apr 17 05:09 dc240.conf
-rw-r--r--  1 root root   704 Apr 17 05:09 dc25.conf
-rw-r--r--  1 root root   492 Apr 17 05:09 dell1600n_net.conf
-rw-r--r--  1 root root   707 Apr 17 05:09 dll.conf
drwxr-xr-x  2 root root  4096 Apr 17 05:09 dll.d/
-rw-r--r--  1 root root    12 Apr 17 05:09 dmc.conf
-rw-r--r--  1 root root  1378 Apr 17 05:09 epjitsu.conf
-rw-r--r--  1 root root   793 Apr 17 05:09 epson.conf
-rw-r--r--  1 root root   376 Apr 17 05:09 epson2.conf
-rw-r--r--  1 root root  1995 Apr 17 05:09 fujitsu.conf
-rw-r--r--  1 root root  1614 Apr 17 05:09 genesys.conf
-rw-r--r--  1 root root  1149 Apr 17 05:09 gphoto2.conf
-rw-r--r--  1 root root  7792 Apr 17 05:09 gt68xx.conf
-rw-r--r--  1 root root   497 Apr 17 05:09 hp.conf
-rw-r--r--  1 root root   396 Apr 17 05:09 hp3900.conf
-rw-r--r--  1 root root    76 Apr 17 05:09 hp4200.conf
-rw-r--r--  1 root root   238 Apr 17 05:09 hp5400.conf
-rw-r--r--  1 root root    22 Apr 17 05:09 hpsj5s.conf
-rw-r--r--  1 root root    24 Apr 17 05:09 hs2p.conf
-rw-r--r--  1 root root    38 Apr 17 05:09 ibm.conf
-rw-r--r--  1 root root   367 Apr 17 05:09 kodak.conf
-rw-r--r--  1 root root   113 Apr 17 05:09 leo.conf
-rw-r--r--  1 root root   119 Apr 17 05:09 lexmark.conf
-rw-r--r--  1 root root   187 Apr 17 05:09 ma1509.conf
-rw-r--r--  1 root root  1254 Apr 17 05:09 magicolor.conf
-rw-r--r--  1 root root   666 Apr 17 05:09 matsushita.conf
-rw-r--r--  1 root root   268 Apr 17 05:09 microtek.conf
-rw-r--r--  1 root root   279 Apr 17 05:09 microtek2.conf
-rw-r--r--  1 root root  2125 Apr 17 05:09 mustek.conf
-rw-r--r--  1 root root  3824 Apr 17 05:09 mustek_pp.conf
-rw-r--r--  1 root root   809 Apr 17 05:09 mustek_usb.conf
-rw-r--r--  1 root root    13 Apr 17 05:09 nec.conf
-rw-r--r--  1 root root   573 Apr 17 05:09 net.conf
-rw-r--r--  1 root root   365 Apr 17 05:09 p5.conf
-rw-r--r--  1 root root    75 Apr 17 05:09 pie.conf
-rw-r--r--  1 root root   492 Apr 17 05:09 pixma.conf
-rw-r--r--  1 root root  4142 Apr 17 05:09 plustek.conf
-rw-r--r--  1 root root   943 Apr 17 05:09 plustek_pp.conf
-rw-r--r--  1 root root   391 Apr 17 05:09 qcam.conf
-rw-r--r--  1 root root    29 Apr 17 05:09 ricoh.conf
-rw-r--r--  1 root root   183 Apr 17 05:09 rts8891.conf
-rw-r--r--  1 root root    13 Apr 17 05:09 s9036.conf
-rw-r--r--  1 root root  1052 Apr 17 05:09 saned.conf
-rw-r--r--  1 root root    48 Apr 17 05:09 sceptre.conf
-rw-r--r--  1 root root  1464 Apr 17 05:09 sharp.conf
-rw-r--r--  1 root root   115 Apr 17 05:09 sm3840.conf
-rw-r--r--  1 root root  2239 Apr 17 05:09 snapscan.conf
-rw-r--r--  1 root root    10 Apr 17 05:09 sp15c.conf
-rw-r--r--  1 root root  2224 Apr 17 05:09 st400.conf
-rw-r--r--  1 root root   178 Apr 17 05:09 stv680.conf
-rw-r--r--  1 root root    28 Apr 17 05:09 tamarack.conf
-rw-r--r--  1 root root   355 Apr 17 05:09 teco1.conf
-rw-r--r--  1 root root   636 Apr 17 05:09 teco2.conf
-rw-r--r--  1 root root   217 Apr 17 05:09 teco3.conf
-rw-r--r--  1 root root  1807 Apr 17 05:09 test.conf
-rw-r--r--  1 root root  1495 Apr 17 05:09 u12.conf
-rw-r--r--  1 root root  3094 Apr 17 05:09 umax.conf
-rw-r--r--  1 root root   386 Apr 17 05:09 umax1220u.conf
-rw-r--r--  1 root root  1684 Apr 17 05:09 umax_pp.conf
-rw-r--r--  1 root root   204 Apr 17 05:09 v4l.conf
-rw-r--r--  1 root root   830 Apr 17 05:09 xerox_mfp.conf

or do i need some changes in the sane.d dir? but i didnt find my scanner there
Logged
nightflier
Administrator
Vectorian
*****
Posts: 3941



« Reply #10 on: July 08, 2011, 05:22:42 am »

I am having trouble getting the full picture.. You are running VL6? The scanner works fine when run as root?
Logged
raleeha
Member
*
Posts: 67



« Reply #11 on: July 08, 2011, 06:51:47 am »

vl7.0 rc
Code:
Linux vector.Linux.net 2.6.38.4 #1 SMP Fri Apr 22 19:40:23 MDT 2011 i686 Intel(R) Core(TM)2 CPU          6300  @ 1.86GHz GenuineIntel GNU/Linux

Code:
root:# xsane
lcms: Error #12288; File '' not found
lcms: Error #12288; File '' not found
lcms: Error #12288; File '' not found

Code:
test:$ 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).

Code:
root:# scanimage -L
device `plustek:libusb:002:005' is a Canon CanoScan N670U/N676U/LiDE20 flatbed scanner

Logged
nightflier
Administrator
Vectorian
*****
Posts: 3941



« Reply #12 on: July 08, 2011, 07:17:09 am »

Looks like you are running VL7 RC1, which has been superseded by RC2.
I suggest trying the newer version, and if problem persists, post a bug report for it.
Logged
raleeha
Member
*
Posts: 67



« Reply #13 on: July 08, 2011, 07:59:17 pm »

have download the vl7.0 rc2 live but y strange there already the problem as normal user i cannot login only root have access to scanner
Logged
GrannyGeek
Packager
Vectorian
****
Posts: 2567


« Reply #14 on: July 09, 2011, 01:02:14 pm »

I've reached the limits of what I can help you with. I don't know much about getting scanners to work for the user. Here I just flail about until it works and could never tell anyone what finally worked because I don't know myself. <g>

I'm having my own delightful scanner problem right now, as I'm trying to get my Epson Perfection V500 working under VL7 Standard RC2. I did have it working in VL6 SOHO on this same computer, but the notes I made have not worked in VL7 so far. I didn't try to install the scanner in the betas and RC1. I know it can be done but it's very confusing.

One bad thing about using VectorLinux or any distro that isn't RPM or DEB based is that it's very difficult to find instructions on the Web for doing anything. Everything is geared to Fedora/SuSE or Ubuntu. Supposedly "Linux is Linux," but in practice that isn't true because distros do their own thing in their own way.

Good luck with the scanner, and I hope someone who knows more than I do will jump in.
--GrannyGeek
Logged

Registered Linux User #397786

Happily running VL 7 Gold on  a Sempron LE-1300 desktop (2.3 GHz), 4 G RAM,  GeForce 6150 SE onboard graphics and on an HP Pavilion dv7 i7, 6 gigs, Intel 2nd Generation Integrated Graphics Controller
Pages: [1] 2
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!