Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Aug 2011 18:58:00 -0500
From:      Antonio Olivares <olivares14031@gmail.com>
To:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   help setup an HP 3300C scanner
Message-ID:  <CAJ5UdcM6OZe48v34o68YHBZsjW41zsKaS_fdOF14jZwneCeXjw@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Dear folks,

I am sorry to bother you guys, but I need your help.  I have a scanner
HP 3300C scanner that is connected to one of my freebsd 8.2 amd
machines.

I have done my homework:
read section scanners on FreeBSD Handbook:

http://www.freebsd.org/doc/handbook/scanners.html

looked at other threads:

http://www.daemonforums.org/showthread.php?t=2057&page=1

http://www.dslreports.com/forum/remark,12037990

As root user, I can find the device name:

quadcore# sane-find-scanner -q
found USB scanner (vendor=0x03f0 [Hewlett-Packard], product=0x0205 [HP
ScanJet 3300C]) at libusb:/dev/usb:/dev/ugen4.2
found USB scanner (vendor=0x0bda, product=0x8187 [RTL8187_Wireless])
at libusb:/dev/usb:/dev/ugen3.3

but as myself(regular user) not :(

[olivares@quadcore /usr/home/olivares]$ sane-find-scanner -q
[olivares@quadcore /usr/home/olivares]$

I try to run simplescan -L but can't get it to work.  I run xsane and
it tells me that it can't find devices.  I looked in /etc/sane.d/ and
found hp.conf and edited it to handbook scanners section, see hp.conf
below:

quadcore# pwd
/usr/local/etc/sane.d
quadcore# ls -l
total 166
-r--r--r--  1 root  wheel    25 Aug  3 17:46 abaton.conf
-r--r--r--  1 root  wheel    14 Aug  3 17:46 agfafocus.conf
-r--r--r--  1 root  wheel    24 Aug  3 17:46 apple.conf
-r--r--r--  1 root  wheel    26 Aug  3 17:46 artec.conf
-r--r--r--  1 root  wheel  4188 Aug  3 17:46 artec_eplus48u.conf
-r--r--r--  1 root  wheel   543 Aug  3 17:46 avision.conf
-r--r--r--  1 root  wheel    29 Aug  3 17:46 bh.conf
-r--r--r--  1 root  wheel    35 Aug  3 17:46 canon.conf
-r--r--r--  1 root  wheel   193 Aug  3 17:46 canon630u.conf
-r--r--r--  1 root  wheel  2834 Aug  3 17:46 canon_dr.conf
-r--r--r--  1 root  wheel   509 Aug  3 17:46 cardscan.conf
-r--r--r--  1 root  wheel    34 Aug  3 17:46 coolscan.conf
-r--r--r--  1 root  wheel   754 Aug  3 17:46 coolscan2.conf
-r--r--r--  1 root  wheel   754 Aug  3 17:46 coolscan3.conf
-r--r--r--  1 root  wheel   984 Aug  3 17:46 dc210.conf
-r--r--r--  1 root  wheel   984 Aug  3 17:46 dc240.conf
-r--r--r--  1 root  wheel   704 Aug  3 17:46 dc25.conf
-r--r--r--  1 root  wheel   492 Aug  3 17:46 dell1600n_net.conf
drwxr-xr-x  2 root  wheel  1536 Aug  3 17:46 dist
-r--r--r--  1 root  wheel   682 Aug  3 17:46 dll.conf
drwxr-xr-x  2 root  wheel   512 Aug  3 17:46 dll.d
-r--r--r--  1 root  wheel    12 Aug  3 17:46 dmc.conf
-r--r--r--  1 root  wheel  1402 Aug  3 17:46 epjitsu.conf
-r--r--r--  1 root  wheel   793 Aug  3 17:46 epson.conf
-r--r--r--  1 root  wheel   376 Aug  3 17:46 epson2.conf
-r--r--r--  1 root  wheel  1679 Aug  3 17:46 fujitsu.conf
-r--r--r--  1 root  wheel  1157 Aug  3 17:46 genesys.conf
-r--r--r--  1 root  wheel  7798 Aug  3 17:46 gt68xx.conf
-r--r--r--  1 root  wheel   589 Aug  3 18:44 hp.conf
-r--r--r--  1 root  wheel   396 Aug  3 17:46 hp3900.conf
-r--r--r--  1 root  wheel    76 Aug  3 17:46 hp4200.conf
-r--r--r--  1 root  wheel   238 Aug  3 17:46 hp5400.conf
-r--r--r--  1 root  wheel    24 Aug  3 17:46 hs2p.conf
-r--r--r--  1 root  wheel    38 Aug  3 17:46 ibm.conf
-r--r--r--  1 root  wheel   367 Aug  3 17:46 kodak.conf
-r--r--r--  1 root  wheel   113 Aug  3 17:46 leo.conf
-r--r--r--  1 root  wheel    96 Aug  3 17:46 lexmark.conf
-r--r--r--  1 root  wheel   187 Aug  3 17:46 ma1509.conf
-r--r--r--  1 root  wheel   666 Aug  3 17:46 matsushita.conf
-r--r--r--  1 root  wheel   268 Aug  3 17:46 microtek.conf
-r--r--r--  1 root  wheel   279 Aug  3 17:46 microtek2.conf
-r--r--r--  1 root  wheel  2125 Aug  3 17:46 mustek.conf
-r--r--r--  1 root  wheel   809 Aug  3 17:46 mustek_usb.conf
-r--r--r--  1 root  wheel    13 Aug  3 17:46 nec.conf
-r--r--r--  1 root  wheel   573 Aug  3 17:46 net.conf
-r--r--r--  1 root  wheel   365 Aug  3 17:46 p5.conf
-r--r--r--  1 root  wheel    75 Aug  3 17:46 pie.conf
-r--r--r--  1 root  wheel   492 Aug  3 17:46 pixma.conf
-r--r--r--  1 root  wheel  4142 Aug  3 17:46 plustek.conf
-r--r--r--  1 root  wheel   943 Aug  3 17:46 plustek_pp.conf
-r--r--r--  1 root  wheel    29 Aug  3 17:46 ricoh.conf
-r--r--r--  1 root  wheel   183 Aug  3 17:46 rts8891.conf
-r--r--r--  1 root  wheel    13 Aug  3 17:46 s9036.conf
-r--r--r--  1 root  wheel  1052 Aug  3 17:46 saned.conf
-r--r--r--  1 root  wheel    48 Aug  3 17:46 sceptre.conf
-r--r--r--  1 root  wheel  1464 Aug  3 17:46 sharp.conf
-r--r--r--  1 root  wheel   115 Aug  3 17:46 sm3840.conf
-r--r--r--  1 root  wheel  2245 Aug  3 17:46 snapscan.conf
-r--r--r--  1 root  wheel    10 Aug  3 17:46 sp15c.conf
-r--r--r--  1 root  wheel  2224 Aug  3 17:46 st400.conf
-r--r--r--  1 root  wheel   178 Aug  3 17:46 stv680.conf
-r--r--r--  1 root  wheel    28 Aug  3 17:46 tamarack.conf
-r--r--r--  1 root  wheel   355 Aug  3 17:46 teco1.conf
-r--r--r--  1 root  wheel   636 Aug  3 17:46 teco2.conf
-r--r--r--  1 root  wheel   217 Aug  3 17:46 teco3.conf
-r--r--r--  1 root  wheel  1807 Aug  3 17:46 test.conf
-r--r--r--  1 root  wheel  1495 Aug  3 17:46 u12.conf
-r--r--r--  1 root  wheel  3094 Aug  3 17:46 umax.conf
-r--r--r--  1 root  wheel   386 Aug  3 17:46 umax1220u.conf
-r--r--r--  1 root  wheel  1684 Aug  3 17:46 umax_pp.conf
-r--r--r--  1 root  wheel   399 Aug  3 17:46 xerox_mfp.conf
quadcore# cat hp.conf
#scsi HP
# Uncomment the following if you have "Error during device I/O" on SCSI
#   option dumb-read
#
# The usual place for a SCSI-scanner on Linux
#/dev/scanner
#
# USB-scanners supported by the hp-backend
# HP ScanJet 4100C
#usb 0x03f0 0x0101
# HP ScanJet 5200C
#usb 0x03f0 0x0401
# HP ScanJet 62X0C
#usb 0x03f0 0x0201
# HP ScanJet 63X0C
#usb 0x03f0 0x0601
# HP ScanJet 3300C 0x03f0 0x0205  at libusb:/dev/usb:/dev/ugen4.2
usb /dev/uscanner0
#
# Uncomment the following if your scanner is connected by USB,
# but you are not using libusb
# /dev/usb/scanner0
#   option connect-device

[olivares@quadcore /usr/home/olivares]$ 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).

I have a file that should help with permissions, but I don't know if
that could be the cause?

[olivares@quadcore /usr/home/olivares]$ cat /etc/rc.conf

# -- sysinstall generated deltas -- # Tue Jul 26 23:20:43 2011
# Created: Tue Jul 26 23:20:43 2011
# Enable network daemons for user convenience.
# Please make all changes to this file, not to /etc/defaults/rc.conf.
# This file now contains just the overrides from /etc/defaults/rc.conf.
hostname="quadcore.home"
ifconfig_msk0="DHCP"
ntpdate_enable="YES"
ntpdate_hosts="north-america.pool.ntp.org"
tcp_extensions="NO"
dbus_enable="YES"
hald_enable="YES"
devfs_system_ruleset="Removable_Media"
lpd_enable="YES"
ipfilter_enable="YES"
ipfileter_rules="/etc/ipf.rules"
ipmon_enable="YES"
ipmon_flags="-Ds"


[olivares@quadcore /usr/home/olivares]$ cat /etc/dev
devd/        devd.conf    devfs.conf   devfs.rules
[olivares@quadcore /usr/home/olivares]$ cat /etc/devfs.rules
[Removable Media]
add path 'ad*' mode 0666 group operator
add path 'acd*' mode 0666 group operator
add path 'cd*' mode 0666 group operator
add path 'pass*' mode 0666 group operator
add path 'xpt*' mode 0666 group operator
add path 'ugen*' mode 0666 group operator
add path 'usb*' mode 0666 group operator
add path 'lpt*' mode 0666 group operator
add path 'ulpt*' mode 0666 group operator
add path 'unlpt*' mode 0666 group operator
add path 'fd*' mode 0666 group operator

Do I need to add uscanner* to it?  or another suggestion.  I would
like for the scanner to work as user.
Advice/suggestions/comments are welcome and appreciated :)

Regards,

Antonio



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ5UdcM6OZe48v34o68YHBZsjW41zsKaS_fdOF14jZwneCeXjw>