Portál AbcLinuxu, 23. dubna 2024 08:56
bash-2.05b# lsusb Bus 002 Device 002: ID 045e:0059 Microsoft Corp. Wireless IntelliMouse Explorer Bus 002 Device 001: ID 0000:0000 Bus 001 Device 002: ID 03f0:0305 Hewlett-Packard ScanJet 4300c Bus 001 Device 001: ID 0000:0000 kdyz zasunu scanner do usb, tak jadro vypise: usb 1-1: new full speed USB device using address 3pouzivam jadro 2.6.4, distro Gentoo. nainstaloval jsem i SANE. Ale XSANE ho nenajde. zkusil jsem:
bash-2.05b# 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=0x03f0 [Hewlett-Packard], product=0x0305 [Hewlett-Packard ScanJet 4300C]) at libusb:001:003 # Your USB scanner was (probably) detected. It may or may not be supported by # SANE. Try scanimage -L and read the backend's manpage. # Scanners connected to the parallel port or other proprietary ports can't be # detected by this program. bash-2.05b# 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).diky za pomoc
bash-2.05b# scanimage -L device `niash:libusb:001:002' is a Hewlett-Packard ScanJet 4300C flatbed scanner bash-2.05b# scanimage scanimage: open of device niash:libusb:001:002 failed: Device busyprotoze nevim jakou cestu mam nastavit v adresari /dev namam ani zarizeni sda0,1.2.3 pouzivam devfs - ale myslim ze je nejak spatne nakonfigurovany. co s tim?
scanimage -d niash:/dev/usb/scanner0
dela co?
Postup pro Gentoo (se zapnutým hotplug):
Do /etc/hotplug/usb.usermap přidat řádek:
scanner 0x0003 0x03f0 0x0305 0x0000 0x0000 0x00 0x00 0x00 0x00 0x00 0x00 0x00000000Do /etc/hotplug/usb/ přidat soubor s názvem scanner (práva 755) a následujícím obsahem (pokud tam ještě není):
#!/bin/bash if [ "${ACTION}" = "add" ] && [ -f "${DEVICE}" ] then # New code, using lock files instead of copying /dev/console permissions # This also works with non-gdm logins (e.g. on a virtual terminal) # Idea and code from Nalin Dahyabhai <nalin@redhat.com> if [ -f /var/run/console.lock ] then CONSOLEOWNER=`cat /var/run/console.lock` elif [ -f /var/lock/console.lock ] then CONSOLEOWNER=`cat /var/lock/console.lock` else CONSOLEOWNER= fi if [ -n "$CONSOLEOWNER" ] then chmod 0000 "${DEVICE}" chown "$CONSOLEOWNER" "${DEVICE}" chmod 0600 "${DEVICE}" fi fiPatchnout jádro (konkrétně soubor drivers/usb/core/message.c) podle návodu na http://sourceforge.net/forum/message.php?msg_id=2342807.
Patchnout Sane, aby obsahoval Niash backend (http://sourceforge.net/projects/hp3300backend/).
Pozor na to, že oproti kernelu 2.4 trvá mnohem déle, než scanner začne skenovat (déle se zahřívá lampa, což ale konkrétně u tohoto scanneru vůbec není na škodu).
Tiskni Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.