focal simple-scan application after power outage not able to use

Asked by peter b on 2021-02-13

simple-scan application after power outage is not working on:

$ uname -a
Linux peter-ubuntu-20 5.8.0-43-generic #49~20.04.1-Ubuntu SMP Fri Feb 5 09:57:56 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux

commands and outputs used to bring simple-scan app it back to life as follows;

$ lsusb
Bus 003 Device 006: ID 06bd:208f AGFA-Gevaert NV SnapScan e50

AGFASCAN found:

$ 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 open USB device 0x1d6b/0x0001 at 005:001: Access denied (insufficient permissions)
could not open USB device 0x1307/0x0165 at 002:002: Access denied (insufficient permissions)
could not open USB device 0x1d6b/0x0002 at 002:001: Access denied (insufficient permissions)
could not open USB device 0x1d6b/0x0001 at 004:001: Access denied (insufficient permissions)
could not open USB device 0x0603/0x8122 at 001:003: Access denied (insufficient permissions)
could not open USB device 0x1d6b/0x0002 at 001:001: Access denied (insufficient permissions)
could not open USB device 0x045e/0x00a4 at 003:003: Access denied (insufficient permissions)
found USB scanner (vendor=0x06bd [AGFA ], product=0x208f [SNAPSCAN]) at libusb:003:005
could not open USB device 0x1d6b/0x0001 at 003:001: Access denied (insufficient permissions)
could not open USB device 0x1d6b/0x0003 at 009:001: Access denied (insufficient permissions)
could not open USB device 0x058f/0x6366 at 008:002: Access denied (insufficient permissions)
could not open USB device 0x1d6b/0x0002 at 008:001: Access denied (insufficient permissions)
could not open USB device 0x1d6b/0x0003 at 007:001: Access denied (insufficient permissions)
could not open USB device 0x13b1/0x003f at 006:002: Access denied (insufficient permissions)
could not open USB device 0x1d6b/0x0002 at 006:001: Access denied (insufficient permissions)
could not open USB device 0x0bc2/0xa313 at 011:002: Access denied (insufficient permissions)
could not open USB device 0x1d6b/0x0003 at 011:001: Access denied (insufficient permissions)
could not open USB device 0x1d6b/0x0002 at 010:001: Access denied (insufficient permissions)
  # 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.

  # You may want to run this program as root to find all devices. Once you
  # found the scanner devices, be sure to adjust access permissions as
  # necessary.

$ scanimage -L
device `snapscan:libusb:003:005' is a AGFA SNAPSCAN flatbed scanner

$ simple-scan --debug
[+0.00s] DEBUG: simple-scan.vala:1720: Starting simple-scan 3.36.3, PID=6047
[+0.00s] DEBUG: unsetenv() is not thread-safe and should not be used after threads are created
[+0.02s] DEBUG: _g_io_module_get_default: Found default implementation dconf (DConfSettingsBackend) for ‘gsettings-backend’
[+0.09s] DEBUG: app-window.vala:1906: Loading state from /home/peter/.cache/simple-scan/state
[+0.09s] DEBUG: app-window.vala:1885: Restoring window to 660x400 pixels
[+0.19s] DEBUG: scanner.vala:1539: sane_init () -> SANE_STATUS_GOOD
[+0.19s] DEBUG: scanner.vala:1545: SANE version 1.0.29
[+0.19s] DEBUG: scanner.vala:1606: Requesting redetection of scan devices
[+0.19s] DEBUG: scanner.vala:828: Processing request
[+0.62s] DEBUG: app-window.vala:1981: Saving state to /home/peter/.cache/simple-scan/state
[+8.42s] DEBUG: scanner.vala:341: sane_get_devices () -> SANE_STATUS_GOOD
[+8.42s] DEBUG: scanner.vala:353: Device: name="snapscan:libusb:003:005" vendor="AGFA" model="SNAPSCAN" type="flatbed scanner"
[+8.74s] DEBUG: app-window.vala:1981: Saving state to /home/peter/.cache/simple-scan/state
[+64.23s] DEBUG: simple-scan.vala:1536: Requesting scan at 300 dpi from device 'snapscan:libusb:003:005'
[+64.23s] DEBUG: scanner.vala:1674: Scanner.scan ("snapscan:libusb:003:005", dpi=300, scan_mode=ScanMode.COLOR, depth=8, type=single, paper_width=0, paper_height=0, brightness=0, contrast=31, delay=3000ms)
[+64.23s] DEBUG: scanner.vala:828: Processing request
[14:31:24.110051] [snapscan] Cannot open firmware file /usr/share/sane/snapscan/your-firmwarefile.bin.
[14:31:24.110090] [snapscan] Edit the firmware file entry in snapscan.conf.
[+64.24s] DEBUG: scanner.vala:889: sane_open ("snapscan:libusb:003:005") -> SANE_STATUS_INVAL
[+64.24s] WARNING: scanner.vala:893: Unable to open device: Invalid argument
[+64.57s] DEBUG: app-window.vala:1981: Saving state to /home/peter/.cache/simple-scan/state
[+87.84s] DEBUG: app-window.vala:1981: Saving state to /home/peter/.cache/simple-scan/state
[+104.22s] DEBUG: autosave-manager.vala:265: Waiting to autosave...
[+104.32s] DEBUG: autosave-manager.vala:287: Autosaving book information
[+104.52s] DEBUG: app-window.vala:1981: Saving state to /home/peter/.cache/simple-scan/state
[+109.40s] DEBUG: simple-scan.vala:1536: Requesting scan at 300 dpi from device 'snapscan:libusb:003:005'
[+109.40s] DEBUG: scanner.vala:1674: Scanner.scan ("snapscan:libusb:003:005", dpi=300, scan_mode=ScanMode.COLOR, depth=8, type=single, paper_width=0, paper_height=0, brightness=0, contrast=31, delay=3000ms)
[+109.40s] DEBUG: scanner.vala:828: Processing request
[+109.40s] DEBUG: scanner.vala:889: sane_open ("snapscan:libusb:003:005") -> SANE_STATUS_ACCESS_DENIED
[+109.40s] WARNING: scanner.vala:893: Unable to open device: Access to resource has been denied
[+109.75s] DEBUG: app-window.vala:1981: Saving state to /home/peter/.cache/simple-scan/state
[+112.28s] DEBUG: app-window.vala:1981: Saving state to /home/peter/.cache/simple-scan/state
[+114.90s] DEBUG: autosave-manager.vala:201: Deleting autosave records
[+114.90s] DEBUG: scanner.vala:1702: Stopping scan thread
[+114.90s] DEBUG: scanner.vala:828: Processing request
[+114.91s] DEBUG: scanner.vala:1713: sane_exit ()

Please notice above output:
+109.40s] DEBUG: scanner.vala:889: sane_open ("snapscan:libusb:003:005") -> SANE_STATUS_ACCESS_DENIED
[+109.40s] WARNING: scanner.vala:893: Unable to open device: Access to resource has been denied

$ simple-scan --help
Usage:
  simple-scan [OPTION…] [DEVICE…] — Scanning utility

Help Options:
  -h, --help Show help options
  --help-all Show all help options
  --help-gtk Show GTK+ Options

Application Options:
  -v, --version Show release version
  -d, --debug Print debugging messages
  --fix-pdf=FILENAME… Fix PDF files generated with older versions of this app
  --display=DISPLAY X display to use

$ simple-scan --display=DISPLAY
Unable to init server: Broadway display type not supported: DISPLAY
Cannot open display: DISPLAY
Run “simple-scan --help” to see a full list of available command line options.

Any help is appreciated to get simple-scan application working/be able to use as before power outage.
Thank you.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
2021-02-13
Last reply:
15 minutes ago
Bernard Stafford (bernard010) said : #1

You will need superuser privileges. Run as: sudo sane-find-scanner

Can you help with this problem?

Provide an answer of your own, or ask peter b for more information if necessary.

To post a message you must log in.