DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Installation and Upgrading

OpenBSD Installation and Upgrading Installing and upgrading OpenBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 28th August 2010
shep shep is offline
ISO Quartermaster
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 545
Thanked 9 Times in 9 Posts
Default uscanner0 permissions

I have been very happy with a recently installed am64 current desktop but am hav
ing difficulties scanner as a user. I have xsane installed and see my HP 5200C
scanner attach to uscanner0 in the dmesg. I am a member of the wheel group.

When I start xsane it says no scanner found
What I think is the pertinent part of my dmesg
Quote:
ohci0 at pci0 dev 19 function 0 "ATI SB600 USB" rev 0x00: apic 4 int 16 (irq 3), version 1.0, legacy support
ohci1 at pci0 dev 19 function 1 "ATI SB600 USB" rev 0x00: apic 4 int 17 (irq 11), version 1.0, legacy support
ohci2 at pci0 dev 19 function 2 "ATI SB600 USB" rev 0x00: apic 4 int 18 (irq 5), version 1.0, legacy support
ohci3 at pci0 dev 19 function 3 "ATI SB600 USB" rev 0x00: apic 4 int 17 (irq 11), version 1.0, legacy support
ohci4 at pci0 dev 19 function 4 "ATI SB600 USB" rev 0x00: apic 4 int 18 (irq 5), version 1.0, legacy support
ehci0 at pci0 dev 19 function 5 "ATI SB600 USB2" rev 0x00: apic 4 int 19 (irq 10)
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "ATI EHCI root hub" rev 2.00/1.00 addr 1
....
usb1 at ohci0: USB revision 1.0
uhub1 at usb1 "ATI OHCI root hub" rev 1.00/1.00 addr 1
usb2 at ohci1: USB revision 1.0
uhub2 at usb2 "ATI OHCI root hub" rev 1.00/1.00 addr 1
usb3 at ohci2: USB revision 1.0
uhub3 at usb3 "ATI OHCI root hub" rev 1.00/1.00 addr 1
usb4 at ohci3: USB revision 1.0
uhub4 at usb4 "ATI OHCI root hub" rev 1.00/1.00 addr 1
usb5 at ohci4: USB revision 1.0
uhub5 at usb5 "ATI OHCI root hub" rev 1.00/1.00 addr 1
....
uscanner0 at uhub1 port 1 configuration 1 interface 0 "Hewlett-Packard HP ScanJet 5200C" rev 1.00/1.00 addr 2
My /etc/group
Quote:
wheel:*:0:root,jsh
...
_saned:*:553:
My /dev/uscanner0
Quote:
crw-rw---- 1 root wheel 77, 0 Aug 23 13:50 /dev/uscanner0
The OpenBSD.README for sane says I just need rw permissions.
I am going to try adding myself to the saned group which I just found but say nothing that this is needed for user access.

Output of sane-find-scanner
Quote:
$ sane-find-scanner

# sane-find-scanner will now attempt to detect your scanner. If the
# result is different from what you expected, first make sure your
# scanner is powered up and properly connected to your computer.

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

found USB scanner (UNKNOWN vendor and product) at device /dev/uscanner0
# Your USB scanner was detected. It may or may not be supported by
# SANE. Try scanimage -L and read the backend's manpage.
# `UNKNOWN vendor and product' means that there seems to be a scanner at this
# device file but the vendor and product ids couldn't be identified.
# Currently identification only works with Linux versions >= 2.4.8. You may
# need to configure your backend manually, see 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.
Any suggestions appreciated

Last edited by shep; 28th August 2010 at 08:41 PM. Reason: added sane-find-scanner output
Reply With Quote
  #2   (View Single Post)  
Old 28th August 2010
shep shep is offline
ISO Quartermaster
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 545
Thanked 9 Times in 9 Posts
Default

Managed to work through it.
Even though man uscanner lists the HP 5200C as a supported device the vendor ID is not found.

If is disable uscanner the device is attached to ugen0 which works.
Reply With Quote
  #3   (View Single Post)  
Old 28th August 2010
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Helpful companion
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Thanked 193 Times in 184 Posts
Default

Yes, SANE includes its own userland drivers.. it access the devices using libusb which only works for devices attached as ugen(4).

It's probably better to do it this way, I don't believe the uscanner(4) interface is well maintained.

Just speaking out of my.. uhh.. face.. but it may even get removed one of these days, maybe not.
Reply With Quote
  #4   (View Single Post)  
Old 29th August 2010
jggimi's Avatar
jggimi jggimi is online now
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 3,429
Thanked 214 Times in 189 Posts
Default

For those of us with inexpensive combination USB printer/scanners, rebooting to switch between operating modes is often unwieldly, especially when the device is plugged into a server for sharing among users.

I find it easier to disable the printer, unplug the USB cable, and connect it to a laptop/netbook for scanning, then reinsert it into the server and enable spooling.
Reply With Quote
  #5   (View Single Post)  
Old 31st August 2010
Oko's Avatar
Oko Oko is offline
Fsck Surgeon
 
Join Date: May 2008
Location: Kosovo, Serbia
Posts: 733
Thanked 36 Times in 32 Posts
Default

HP C5200 can scan directly to flash memory card which can be mounted as umass storage device on OpenBSD. Look for my posts on misc under the name "scanning without SANE".

uscanner as pointed earlier should be probably removed from the code. In any case you should disable uscanner driver in kernel as ugen driver has to be attached to your all-in-one in order to scan. Google for my posts about HPLIP on OpenBSD.
Reply With Quote
Reply

Thread Tools
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
Permissions error J05HYYY NetBSD Package System (pkgsrc) 1 7th October 2009 11:05 PM
Permissions for zzz / acpiconf Mantazz FreeBSD General 0 15th September 2009 10:43 PM
permissions and FTP/HTTP Yuka FreeBSD General 0 20th October 2008 10:32 PM
Pureftp and changing permissions disappearedng FreeBSD General 4 8th July 2008 12:47 AM


All times are GMT. The time now is 04:02 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick