Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Scott Jacobs <scott092707@aol.com> To: Debian Bug Tracking System <submit@bugs.debian.org> Subject: xsane fails to start with two errors; scanimage does the same with or without sudo Bcc: Scott Jacobs <scott092707@aol.com> Message-ID: <157456975091.3610.17500353917015447827.reportbug@ASUS-PRIME-B350M-A-CSM> X-Mailer: reportbug 7.5.3 Date: Sat, 23 Nov 2019 23:29:10 -0500 X-Debbugs-Cc: scott092707@aol.com Dear Maintainer, Debian Testing LXQt. Xsane from the menu puts up the "scanning for devices" window for awhile; it then disappears. From the terminal, it is much the same, except that it eventually puts up a window stating: "Failed to open device 'hpaio:/usb/Deskjet_F300_series?serial=CN647B623804KH': Invalid argument." scanimage -L fails with the first invocation, but then succeeds with the second: =============================================================== $ scanimage -L scanimage: hp-option.c:3714: hp_optset_fix_geometry_options: Assertion `tl_x && tl_y && br_x && br_y' failed. Aborted $ scanimage -L device `hpaio:/usb/Deskjet_F300_series?serial=CN647B623804KH' is a Hewlett- Packard Deskjet_F300_series all-in-one =============================================================== Attempting an actual scan twice yields two different errors: =============================================================== $ scanimage -p -B -vvv --format=jpeg >Desktop/scanimage.jpg scanimage: hp-option.c:3714: hp_optset_fix_geometry_options: Assertion `tl_x && tl_y && br_x && br_y' failed. Aborted $ scanimage -p -B -vvv --format=jpeg >Desktop/scanimage.jpg scanimage: open of device hpaio:/usb/Deskjet_F300_series?serial=CN647B623804KH failed: Invalid argument Calling sane_exit scanimage: finished =============================================================== using sudo yields the same two errors =============================================================== sudo -HE scanimage -p -B -vvv --format=jpeg >Desktop/scanimage.jpg [sudo] password for scott: scanimage: hp-option.c:3714: hp_optset_fix_geometry_options: Assertion `tl_x && tl_y && br_x && br_y' failed. Aborted $ sudo -HE scanimage -p -B -vvv --format=jpeg >Desktop/scanimage.jpg scanimage: open of device hpaio:/usb/Deskjet_F300_series?serial=CN647B623804KH failed: Invalid argument Calling sane_exit scanimage: finished $ sudo scanimage -p -B -vvv --format=jpeg >Desktop/scanimage.jpg scanimage: open of device hpaio:/usb/Deskjet_F300_series?serial=CN647B623804KH failed: Invalid argument Calling sane_exit scanimage: finished =============================================================== Various terminal commands: =============================================================== $ lsusb ... Bus 001 Device 006: ID 03f0:5511 HP, Inc DeskJet F300 series ... $ ls -l /dev/bus/usb/001 ... crw-rw-r--+ 1 root lp 189, 5 Nov 22 21:02 006 ... $ getfacl /dev/bus/usb/001/006 getfacl: Removing leading '/' from absolute path names # file: dev/bus/usb/001/006 # owner: root # group: lp user::rw- user:scott:rw- group::rw- mask::rw- other::r-- =============================================================== Using the same computer and printer/scanner, I have no problem scanning with xsane or scanimage from my Lubuntu Next 17.10 LXQt install: =============================================================== $ scanimage -L device `hpaio:/usb/Deskjet_F300_series?serial=CN647B623804KH' is a Hewlett- Packard Deskjet_F300_series all-in-one $ scanimage -p -B -vvv --format=jpeg >Desktop/scanimage_2.jpg scanimage: scanning image of size 638x877 pixels at 24 bits/pixel scanimage: acquiring RGB frame scanimage: min/max graylevel value = 0/255 scanimage: read 1678578 bytes in total Closing device Calling sane_exit scanimage: finished $ lsusb ... Bus 001 Device 006: ID 03f0:5511 Hewlett-Packard DeskJet F300 series ... $ ls -l /dev/bus/usb/001 ... crw-rw-r--+ 1 root lp 189, 5 Nov 22 22:29 006 ... $ getfacl /dev/bus/usb/001/006 getfacl: Removing leading '/' from absolute path names # file: dev/bus/usb/001/006 # owner: root # group: lp user::rw- user:scott:rw- group::rw- mask::rw- other::r-- ===============================================================