simple-scan not able reconnect scanner after awakening scanner from sleep or disconnecting scanner due to connection failure
Using EndeavourOS with XFCE in current PC, all updates done so far. simple-scan is 42.1-1 Scanner:
scanimage -L
device `hp5590:libusb:002:010' is a HP 5590 Workgroup scanner
lsusb
Bus 002 Device 010: ID 03f0:1705 HP, Inc ScanJet 5590
Also using own project saving format in simple-scan would be appreciated in order to deal with such situations, where simple-scan does not detect scanner that was awakened from sleep. That could be workaround to store at least so far scanned pages and reopen simple-scan and continue work. Currently impossible to continue work if scanner went to sleep and simple-scan does not recognize scanner without reopening it. Tried also handle USB power management and autosuspend but no luck so far. Created /etc/udev/rules.d/50-usb_power_save.rules with content:
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="03f0", ATTR{idProduct}=="1705", ATTR{power/autosuspend}="-1"
... as 03f0 corresponds to HP as vendor and 1705 is product ID from lsusb output.
... and reloaded udev rules:
sudo udevadm control --reload-rules && sudo udevadm trigger
... didn't help.
Also sudo modprobe usbcore autosuspend=-1
did not help. Investigated also a bit kernel documentation about USB power management.