From owner-svn-doc-all@freebsd.org Thu May 7 14:23:11 2020 Return-Path: Delivered-To: svn-doc-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id CE20E2DA725; Thu, 7 May 2020 14:23:11 +0000 (UTC) (envelope-from blackend@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49Hwfl57yhz4F7Q; Thu, 7 May 2020 14:23:11 +0000 (UTC) (envelope-from blackend@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id AB8191A6B9; Thu, 7 May 2020 14:23:11 +0000 (UTC) (envelope-from blackend@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 047ENB6S039600; Thu, 7 May 2020 14:23:11 GMT (envelope-from blackend@FreeBSD.org) Received: (from blackend@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 047ENBLY039598; Thu, 7 May 2020 14:23:11 GMT (envelope-from blackend@FreeBSD.org) Message-Id: <202005071423.047ENBLY039598@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: blackend set sender to blackend@FreeBSD.org using -f From: Marc Fonvieille Date: Thu, 7 May 2020 14:23:11 +0000 (UTC) To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org Subject: svn commit: r54106 - head/en_US.ISO8859-1/books/handbook/multimedia X-SVN-Group: doc-head X-SVN-Commit-Author: blackend X-SVN-Commit-Paths: head/en_US.ISO8859-1/books/handbook/multimedia X-SVN-Commit-Revision: 54106 X-SVN-Commit-Repository: doc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-doc-all@freebsd.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: "SVN commit messages for the entire doc trees \(except for " user" , " projects" , and " translations" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 May 2020 14:23:11 -0000 Author: blackend Date: Thu May 7 14:23:11 2020 New Revision: 54106 URL: https://svnweb.freebsd.org/changeset/doc/54106 Log: Update Image Scanners section: - remove mention to deprecated frontend; - update kernel config settings; - update devfs(8) part for device nodes permissions. Example with devd(8) will be added soon. PR: 244156 Submitted by: Tobias Kortkamp Modified: head/en_US.ISO8859-1/books/handbook/multimedia/chapter.xml Modified: head/en_US.ISO8859-1/books/handbook/multimedia/chapter.xml ============================================================================== --- head/en_US.ISO8859-1/books/handbook/multimedia/chapter.xml Wed May 6 20:36:21 2020 (r54105) +++ head/en_US.ISO8859-1/books/handbook/multimedia/chapter.xml Thu May 7 14:23:11 2020 (r54106) @@ -1461,7 +1461,8 @@ bktr0: Pinnacle/Miro TV, Philips SECAM tuner.device usb device uhci device ohci -device ehci +device ehci +device xhci To determine if the USB scanner is detected, plug it in and use dmesg to @@ -1524,29 +1525,26 @@ Re-scan of bus 3 was successful <application>SANE</application> Configuration - The SANE system is split in two - parts: the backends - (graphics/sane-backends) and the frontends - (graphics/sane-frontends or - graphics/xsane). The backends provide - access to the scanner. Refer to The SANE system provides the + access to the scanner via backends (graphics/sane-backends). + Refer to http://www.sane-project.org/sane-supported-devices.html - to determine which backend supports the scanner. The - frontends provide the graphical scanning interface. - graphics/sane-frontends installs - xscanimage while - graphics/xsane installs - xsane. + to determine which backend supports the scanner. A + graphical scanning interface is provided by third party + applications like Kooka + (graphics/kooka) or + XSane + (graphics/xsane). + SANE's backends are enough to test + the scanner. - To install the two parts from binary packages: + To install the backends from binary package: - &prompt.root; pkg install xsane sane-frontends + &prompt.root; pkg install sane-backends Alternatively, to install from the Ports Collection - &prompt.root; cd /usr/ports/graphics/sane-frontends -&prompt.root; make install clean -&prompt.root; cd /usr/ports/graphics/xsane + &prompt.root; cd /usr/ports/graphics/sane-backends &prompt.root; make install clean After installing the @@ -1579,12 +1577,13 @@ found SCSI scanner "AGFA SNAPSCAN 600 1.10" at /dev/pa &prompt.root; scanimage -L device `snapscan:/dev/pass3' is a AGFA SNAPSCAN 600 flatbed scanner &prompt.root; scanimage -L -device 'epson2:libusb:/dev/usb:/dev/ugen0.2' is a Epson GT-8200 flatbed scanner +device 'epson2:libusb:000:002' is a Epson GT-8200 flatbed scanner In this second example, - 'epson2:libusb:/dev/usb:/dev/ugen0.2' is - the backend name (epson2) and - /dev/ugen0.2 is the device node used by the + epson2 is + the backend name and + libusb:000:002 means + /dev/ugen0.2 is the device node used by the scanner. If scanimage is unable to identify the @@ -1612,7 +1611,7 @@ which came with this software (README, FAQ, manpages). with the right backend name and the device node: &prompt.root; scanimage -L -device 'epson2:libusb:/dev/usb:/dev/ugen0.2' is a Epson GT-8200 flatbed scanner +device 'epson2:libusb:000:002' is a Epson GT-8200 flatbed scanner Once scanimage -L sees the scanner, the configuration is complete and the scanner is now ready to @@ -1621,16 +1620,12 @@ device 'epson2:libusb:/dev/usb:/dev/ugen0.2' is a Epso While scanimage can be used to perform an image acquisition from the command line, it is often preferable to use a graphical interface to perform image - scanning. The graphics/sane-frontends - package or port installs a simple but efficient graphical - interface, xscanimage. - - Alternately, xsane, which is - installed with the graphics/xsane package - or port, is another popular graphical scanning frontend. It - offers advanced features such as various scanning modes, color - correction, and batch scans. Both of these applications are - usable as a GIMP plugin. + scanning. Applications like Kooka + or XSane are popular scanning + frontends. They + offer advanced features such as various scanning modes, color + correction, and batch scans. XSane + is also usable as a GIMP plugin. @@ -1667,6 +1662,27 @@ device 'epson2:libusb:/dev/usb:/dev/ugen0.2' is a Epso [system=5] add path ugen0.2 mode 0660 group usb add path usb/0.2.0 mode 0666 group usb + + + It happens the device node changes with the addition or + removal of devices, so one may want to give access to all + USB devices using this ruleset instead: + + [system=5] +add path 'ugen*' mode 0660 group usb +add path 'usb/*' mode 0666 group usb + + + Refer to &man.devfs.rules.5; for more information about + this file. + + Next, enable the ruleset in /etc/rc.conf: + + devfs_system_ruleset="system" + + And, restart the &man.devfs.8; system: + + &prompt.root; service devfs restart Finally, add the users to usb