Bug#983380: sane: HP ENVY 5536 doesn't scan anymore with simple-scan and xsane (hp-scan : error I/O=9)
Control: tag -1 + moreinfo sid
What did you change before the scanner stopped working? I see that
you are running hplip 3.21.2 which is not yet in testing. Does a
downgrade to 3.20.11+dfsg0-2 fix the issue? This would be very
important to know.
Some HP devices may need a proprietary firmware plugin that Debian
cannot ship. What have you installed for firmware?
It would also help if you could provide the following:
* output of "scanimage -d hpaio:/usb/ENVY_5530_series?serial=CN595530XD06BX -vvvv --dont-scan > /tmp/si.ds"
(scanimage is from package sane-utils)
* output of "scanimage -d hpaio:/usb/ENVY_5530_series?serial=CN595530XD06BX -vvvv --test > /tmp/si.test"
* the relevant dmesg output
* a tshark (package tshark) trace of the USB traffic when trying to
scan (tracing USB traffic is a bit of an advanced topic; searching
for "wireshark" "usbmon" on the web will give you some tutorials,
but  and  should already be good starting points).
If you can make the scanner work with a downgrade, try to do the same
with the working configuration and see what is different in the
failing one. Use diff for that if possible.
What concerns me is that lsusb throws errors which indicates that this
might be a problem with the device itself.