![]() I have 4 buttons that are scan, copy, email and file. If not, check USB permissions : ls -al /dev/bus/usb/*** Trigger actions from the scanner buttonsĪctions are located in /usr/local/etc/scanbd/nf. Scanimage -L works when you are logged as saned by doing sudo -u saned -s. Most issues at this stage concern the permissions. Scanimage -L should now display the scanner. Then, restart xinetd and start scanbd : service xinetd restart !\ Double-check the path of scanbm with which scanbm Server_args = scanbm -c /usr/local/etc/scanbd/nf You should check again your configuration,Įspecially the identification part of this documentation and clear any eventual SANE_CONFIG_DIR env var wrongly set by typing :Ĭonfigure xinetd to make scanbm listening on the networkĬreate /etc/xinetd.d/sane-port which contains : service sane-port Scanbd: found device: genesys:libusb:001:005 Canon LiDE 110 flatbed scanner Scanbd: SANE_CONFIG_DIR=/usr/local/etc/scanbd/sane.d Scanbd: dbus match type='signal',interface='' Scanbd: reading config file /usr/local/etc/scanbd/nf Output should be similar to : scanbd: foreground It can break things, the default value is already configured in /usr/local/etc/scanbd/nf and in the init script. Pi:# /etc/sane.d/nf:usb 0x04a9 0x1909Ĭopy the file inside your scanbd configuration folder: cp /etc/sane.d/nf /usr/local/etc/scanbd/Ĭp /etc/sane.d/dll.conf /usr/local/etc/scanbd/Įdit /usr/local/etc/scanbd/dll.conf and replace net with the correct scanner backend: # /etc/sane.d/dll.conf - Configuration file for the SANE dynamic backend loaderĬonfirm that the local scanner is found by scanbdĪvoid as much as you can to manipulate the env var SANE_CONFIG_DIR. With that productId, grep the correct configuration file (it depends of your scanner model, for me it is nf) : pi:# grep 1909 /etc/sane.d/*conf Configure scanbd to poll the local scanner Identify the local scannerīy using lsusb, identify the productId (1909 here) : pi:# lsusb ![]() We need to set up scanbm along with scanbd to test the set up. # may be necessary to access devices that need special privileges.Īt this point, scanbm is not yet configured, no scanner can be reached from the network. # If you list "localhost" then your backends can be accessed either # from blocking for several minutes trying to connect to an unresponsive # Timeout for the initial connection to saned. etc/sane.d/net.conf : # This is the net backend config file. # to use a remote SANE scanner over the network - see sane-net(5) and saned(8) # The next line enables the network backend comment it out if you don't need # a config file similar to dll.conf in this directory, named after the package. # /etc/sane.d/dll.d directory - packages providing backends should drop # Backends can also be enabled by configuration snippets under etc/sane.d/dll.conf # /etc/sane.d/dll.conf - Configuration file for the SANE dynamic backend loader The local configuration of sane is inside /etc/saned.d Scanbd is now installed but not yet configured. # Add the init script to manage the daemon :Ĭp integration/bian /etc/init.d/scanbd # Add a dbus policy to authorize "saned" user to manage scanbd :Ĭp integration/scanbd_nf /etc/dbus-1/system.d/ # Configure with the installation path in /etc/ The latest version of scanbd can be find here : # Download the latest version of **scanbd**. Configure scanbd to have access and poll the local scannerĪpt-get install libconfuse-dev libsane-dev libudev-dev libusb-dev xinetd.Set up the local sane configuration to only scan from the network (through scanbm).This is the job of scanbm, which monitors the network and give priority over scanbd to any local access to the scanner. As we also need to scan from local tools (like scanimage), we need to set a proxy that's going to interrupt scandb from polling when needed. What make things a little bit trickier is that by polling the scanner, scanbd locks the device. Scanbd permits to trigger actions from the scanner buttons, it uses sane. A common use is to upload a PDF scanned file directly to Google Drive or Dropbox just by pressing scanner-buttons. The purpose of this documentation is to use a scanner without any user interface.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |