Re: [sane-devel] Canon Pixma G2000
Hi Iam, Iam Droidzone writes: > So, with the latest PPA updates, Ubuntu Xenial recognizes my G2000 as a > scanner. But I'm having the issue where usblp is claiming the device, > causing this to appear in dmesg, and the scanning jobs just stutter out: > "usb 1-1.4: usbfs: interface 1 claimed by usblp while 'scangui' sets config > #1" This brings back memories. Mind you, they're not particularly good ones. > I tried many workarounds including writing C code to release the device > from usblp as documented here: > https://bugzilla.redhat.com/show_bug.cgi?id=723696#c2 > > But usblp releases it and then claims it. > scanimage does not work from command line, or via xsane or scangearmp2. The libusb_reset_device() function[1] basically does a disconnect and reconnect of the device, so usblp claiming it again is not a surprise. [1]: http://libusb.sourceforge.net/api-1.0/group__dev.html#ga7321bd8dc28e9a20b411bf18e6d0e9aa > Is there a known resolution? Not that I'm aware of, but you might try modifying your C code to use the OS specific kernel related libusb APIs[2] to check for an active kernel driver and detach or attach it as needs be. [2]: http://libusb.sourceforge.net/api-1.0/group__dev.html#gab14d11ed6eac7519bb94795659d2c971 That's basically what I ended up doing in the sanei_usb.c code for the third party epkowa backend way back when. You can find its code at http://support.epson.net/linux/src/scanner/iscan/iscan_2.30.3-1.tar.gz in case you're interested. I notice that there is now also libusb API that lets you automate this. Cool, might be something for the sane-backends sanei_usb.c code. Patches welcome ;-) Hope this helps, -- Olaf Meeuwissen, LPIC-2FSF Associate Member since 2004-01-27 GnuPG key: F84A2DD9/B3C0 2F47 EA19 64F4 9F13 F43E B8A4 A88A F84A 2DD9 Support Free Softwarehttps://my.fsf.org/donate Join the Free Software Foundation https://my.fsf.org/join -- sane-devel mailing list: sane-devel@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel Unsubscribe: Send mail with subject "unsubscribe your_password" to sane-devel-requ...@lists.alioth.debian.org
[sane-devel] Canon Pixma G2000
So, with the latest PPA updates, Ubuntu Xenial recognizes my G2000 as a scanner. But I'm having the issue where usblp is claiming the device, causing this to appear in dmesg, and the scanning jobs just stutter out: "usb 1-1.4: usbfs: interface 1 claimed by usblp while 'scangui' sets config #1" I tried many workarounds including writing C code to release the device from usblp as documented here: https://bugzilla.redhat.com/show_bug.cgi?id=723696#c2 But usblp releases it and then claims it. scanimage does not work from command line, or via xsane or scangearmp2. Is there a known resolution? -- sane-devel mailing list: sane-devel@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel Unsubscribe: Send mail with subject "unsubscribe your_password" to sane-devel-requ...@lists.alioth.debian.org
Re: [sane-devel] Canon Pixma G2000 support
Hi, I just added your scanner to SANEs code. You need to use my ppa: https://launchpad.net/~rolfbensch/+archive/ubuntu/sane-git . But please be patient, the ppa will support your scanner with the next version tomorrow (1.0.27+git20170902). Hope this helps. Cheers, Rolf Am 07.08.2017 um 19:55 schrieb Thierry HUCHARD: > Le 2017-08-07 18:28, Iam Droidzone a écrit : >> I've been trying to get the Canon Pixma G2000 to work with Ubuntu >> 16.04. >> >> I tried: >> >> 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. >> >> could not fetch string descriptor: Pipe error >> could not fetch string descriptor: Pipe error >> found USB scanner (vendor=0x04a9 [Canon], product=0x1795 [G2000 >> series]) at libusb:001:010 >> could not fetch string descriptor: Pipe error >> could not fetch string descriptor: Pipe error >> # Your USB scanner was (probably) detected. It may or may not be >> supported by >> # SANE. Try scanimage -L and read 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. >> >> On trying 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). >> root@hp:/etc/sane.d# gedit /usr/local/etc/sane.d/dll.conf >> >> systemctl status saned.socket: >> ● saned.socket - saned incoming socket >>Loaded: loaded (/lib/systemd/system/saned.socket; enabled; vendor >> preset: enabled) >>Active: active (listening) since Mon 2017-08-07 21:16:38 IST; 28min >> ago >>Listen: [::]:6566 (Stream) >> Accepted: 0; Connected: 0 >> Aug 07 21:16:38 hp systemd[1]: Listening on saned incoming socket. >> >> Aug 07 21:34:26 hp systemd[1]: Listening on saned incoming socket. >> >> The printing function is working with gutenprint. If only scanning too >> worked, I could finally get Windows off the partition! >> >> Could anyone tell me if it's possible to tweak up support for this >> printer? I can provide logs for anything needed. It's a simple flatbed >> usb scanner on a multifunction printer. >> >> -Droidzone > > > You may want to try the following line in /etc/sane.d/pixma.conf: usb > 0x04a9 0x1795 > > -- sane-devel mailing list: sane-devel@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel Unsubscribe: Send mail with subject "unsubscribe your_password" to sane-devel-requ...@lists.alioth.debian.org
Re: [sane-devel] Canon Pixma G2000 support
Le 2017-08-07 18:28, Iam Droidzone a écrit : I've been trying to get the Canon Pixma G2000 to work with Ubuntu 16.04. I tried: 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. could not fetch string descriptor: Pipe error could not fetch string descriptor: Pipe error found USB scanner (vendor=0x04a9 [Canon], product=0x1795 [G2000 series]) at libusb:001:010 could not fetch string descriptor: Pipe error could not fetch string descriptor: Pipe error # Your USB scanner was (probably) detected. It may or may not be supported by # SANE. Try scanimage -L and read 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. On trying 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). root@hp:/etc/sane.d# gedit /usr/local/etc/sane.d/dll.conf systemctl status saned.socket: ● saned.socket - saned incoming socket Loaded: loaded (/lib/systemd/system/saned.socket; enabled; vendor preset: enabled) Active: active (listening) since Mon 2017-08-07 21:16:38 IST; 28min ago Listen: [::]:6566 (Stream) Accepted: 0; Connected: 0 Aug 07 21:16:38 hp systemd[1]: Listening on saned incoming socket. Aug 07 21:34:26 hp systemd[1]: Listening on saned incoming socket. The printing function is working with gutenprint. If only scanning too worked, I could finally get Windows off the partition! Could anyone tell me if it's possible to tweak up support for this printer? I can provide logs for anything needed. It's a simple flatbed usb scanner on a multifunction printer. -Droidzone You may want to try the following line in /etc/sane.d/pixma.conf: usb 0x04a9 0x1795 -- sane-devel mailing list: sane-devel@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel Unsubscribe: Send mail with subject "unsubscribe your_password" to sane-devel-requ...@lists.alioth.debian.org
Re: [sane-devel] Canon Pixma G2000 support
Le 2017-08-07 20:25, Iam Droidzone a écrit : Sorry I meant canon_dr.conf, not canon_pp.conf. The former is where I have tried inserting the line, after doing it in pixma.conf didnt work On Mon, Aug 7, 2017 at 11:25 PM, Thierry HUCHARDwrote: Le 2017-08-07 18:28, Iam Droidzone a écrit : I've been trying to get the Canon Pixma G2000 to work with Ubuntu 16.04. I tried: 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. could not fetch string descriptor: Pipe error could not fetch string descriptor: Pipe error found USB scanner (vendor=0x04a9 [Canon], product=0x1795 [G2000 series]) at libusb:001:010 could not fetch string descriptor: Pipe error could not fetch string descriptor: Pipe error # Your USB scanner was (probably) detected. It may or may not be supported by # SANE. Try scanimage -L and read 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. On trying 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). root@hp:/etc/sane.d# gedit /usr/local/etc/sane.d/dll.conf systemctl status saned.socket: ● saned.socket - saned incoming socket Loaded: loaded (/lib/systemd/system/saned.socket; enabled; vendor preset: enabled) Active: active (listening) since Mon 2017-08-07 21:16:38 IST; 28min ago Listen: [::]:6566 (Stream) Accepted: 0; Connected: 0 Aug 07 21:16:38 hp systemd[1]: Listening on saned incoming socket. Aug 07 21:34:26 hp systemd[1]: Listening on saned incoming socket. The printing function is working with gutenprint. If only scanning too worked, I could finally get Windows off the partition! Could anyone tell me if it's possible to tweak up support for this printer? I can provide logs for anything needed. It's a simple flatbed usb scanner on a multifunction printer. -Droidzone You may want to try the following line in /etc/sane.d/pixma.conf: usb 0x04a9 0x1795 usb 0x04a9 0x1795 Normalement c'est le backend pixma que vous devez utiliser. Par conséquent la ligne doit seulement être ajouter dans pixma.conf Regarder dans /etc/sane.d/dll.conf #pixma remplacer par pixma -- sane-devel mailing list: sane-devel@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel Unsubscribe: Send mail with subject "unsubscribe your_password" to sane-devel-requ...@lists.alioth.debian.org
[sane-devel] Canon Pixma G2000 support
I've been trying to get the Canon Pixma G2000 to work with Ubuntu 16.04. I tried: 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. could not fetch string descriptor: Pipe error could not fetch string descriptor: Pipe error found USB scanner (vendor=0x04a9 [Canon], product=0x1795 [G2000 series]) at libusb:001:010 could not fetch string descriptor: Pipe error could not fetch string descriptor: Pipe error # Your USB scanner was (probably) detected. It may or may not be supported by # SANE. Try scanimage -L and read 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. On trying 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). root@hp:/etc/sane.d# gedit /usr/local/etc/sane.d/dll.conf systemctl status saned.socket: ● saned.socket - saned incoming socket Loaded: loaded (/lib/systemd/system/saned.socket; enabled; vendor preset: enabled) Active: active (listening) since Mon 2017-08-07 21:16:38 IST; 28min ago Listen: [::]:6566 (Stream) Accepted: 0; Connected: 0 Aug 07 21:16:38 hp systemd[1]: Listening on saned incoming socket. Aug 07 21:34:26 hp systemd[1]: Listening on saned incoming socket. The printing function is working with gutenprint. If only scanning too worked, I could finally get Windows off the partition! Could anyone tell me if it's possible to tweak up support for this printer? I can provide logs for anything needed. It's a simple flatbed usb scanner on a multifunction printer. -Droidzone -- sane-devel mailing list: sane-devel@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel Unsubscribe: Send mail with subject "unsubscribe your_password" to sane-devel-requ...@lists.alioth.debian.org