SCM

[#315455] HP 5300C stopped working after update to Ubuntu 16.04

View Trackers | Bugs | Export CSV

Date:
2016-08-22 12:35
Priority:
3
State:
Open
Submitted by:
Nick Stylianou (nicks-guest)
Assigned to:
René Rebe (rene-guest)
Category:
backends (drivers)
Group:
None
Resolution:
None
Summary:
HP 5300C stopped working after update to Ubuntu 16.04

Detailed description
HP Scanjet 5300C was working on Ubuntu14.04 but stopped working on upgrade to Ubuntu16.04.

Basic diagnostics are attached in two files: scanlog1604.txt and scanlog1404.txt

In summary, on a 16.04 installation the command:
scanimage -v --resolution 300 > ~/testscan.pnm
fails with the message:
scanimage: sane_start: Error during device I/O
On a 14.04 test environment the same command succeeds without errors.

On both 14.04 and 16.04, as root user, the scanner is detected by lsusb, and by scanimage -L as avision:libusb:00X:00Y .

On 16.04 the scanner is also detected by sane-find-scanner but after the above scanimage error the scanner must be power-cycled to be detected again.

On 14.04 the scanner is not detected by sane-find-scanner, but the actual scan completes successfully.

Additional notes:

The 14.04 test environment was booted from a Xubuntu14.04.4 32bit USB stick, with sane installed from the standard repositories. (The scanner was previously working on an up-to-date Xubuntu 14.04 64bit installation).

The 16.04 installation has all updates including from the http://ppa.launchpad.net/rolfbensch/sane-git/ubuntu xenial repository.
Also, after seeing the 14.04 configuration working, on 16.04 I added a udev rule to assign the scanner to the 'lp' group and also installed the libsane-hpaio package, but none of this had any effect on the error.

I'm happy to run any other diagnostics/tests if it will help to identify and fix the problem.

Followups: Sort comments antichronologically

Message
Date: 2016-08-24 19:44
Sender: Nelly vdH

I have the same problem

The HP 5300C used to work on Ubuntu 12.04. It stopped on Ubuntu 16.04

lsub gives
....
Bus 001 Device 004: ID 03f0:0701 Hewlett-Packard ScanJet 5300c/5370c
....

sane-scan-finder gives
....
Bus 001 Device 004: ID 03f0:0701 Hewlett-Packard ScanJet 5300c/5370c
....
# No USB scanners found. If you expected something different, make sure that
# you have loaded a kernel driver for your USB host controller and have setup
# the USB system correctly. See man sane-usb for details.
....

and
sudo sane-scan-finder gives
....
found USB scanner (vendor=0x03f0 [Hewlett Packard], product=0x0701 [Hewlett Packard ScanJet 5300C/5370C ]) at libusb:001:004
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.
....

and
sudo 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).

In file /lib/udev/rules.d/40-libsane.rules I had changed the line after
# Hewlett-Packard ScanJet 5300C | Hewlett-Packard ScanJet 5370C
from
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="0701", ENV{libsane_matched}="yes"
into
ATTRS{idVendor}=="03f0", ATTRS{idProduct}=="0701", MODE="0664", GROUP="scann
er", ENV{libsane_matched}="yes"
to give the user permission. I have also added the groups scanner and saned to the user.
because on some sites (https://help.ubuntu.com/community/SettingScannerPermissions) the non-functioning of SANE scanning was attributed to a lack of permission. But that didn't work.
Date: 2016-09-25 14:08
Sender: m. allan noah

Sounds like a regression in the sane avision backend perhaps. Please make sure you are running at least sane-backends 1.0.25, or even a recent git snapshot. Perhaps Rene will have some idea.

Attached Files:

Attachments:
Size Name Date By Download
2 KiBscanlog1404.txt2016-08-22 12:35nicks-guestscanlog1404.txt
2 KiBscanlog1604.txt2016-08-22 12:35nicks-guestscanlog1604.txt

Changes:

Field Old Value Date By
assigned_tonone2016-09-25 14:08kitno-guest
File Added7161: scanlog1604.txt2016-08-22 12:35nicks-guest
File Added7162: scanlog1404.txt2016-08-22 12:35nicks-guest
Powered By FusionForge