pop-os / pop

A project for managing all Pop!_OS sources
https://system76.com/pop
2.43k stars 84 forks source link

POP OS 21.10 Simple Scan / SANE -- Permissions Error Cannot Scan #2080

Open ganakee opened 2 years ago

ganakee commented 2 years ago

Distribution (run cat /etc/os-release): NAME="Pop!_OS" VERSION="21.10" ID=pop ID_LIKE="ubuntu debian" PRETTY_NAME="Pop!_OS 21.10" VERSION_ID="21.10" HOME_URL="https://pop.system76.com" SUPPORT_URL="https://support.system76.com" BUG_REPORT_URL="https://github.com/pop-os/pop/issues" PRIVACY_POLICY_URL="https://system76.com/privacy" VERSION_CODENAME=impish UBUNTU_CODENAME=impish LOGO=distributor-logo-pop-os

Related Application and/or Package Version (run apt policy $PACKAGE NAME): sane: Installed: (none) Candidate: 1.0.14-16 Version table: 1.0.14-16 500 500 http://us.archive.ubuntu.com/ubuntu impish/universe amd64 Packages

simple-scan: Installed: 40.5-1 Candidate: 40.5-1 Version table: *** 40.5-1 500 500 http://us.archive.ubuntu.com/ubuntu impish/main amd64 Packages 100 /var/lib/dpkg/status

Issue/Bug Description: After upgrade from POP OS 21.04 to POP OS 21.10, Simple Scan and SANE cannot discover attached USB Scanner (Brother MFC-7840W).

Steps to reproduce (if you know): Run Simple Scan. Running sane-find-scanner from user account results in USB permissions errors--cannot access USB.

Expected behavior: Scanner discovered and ready for use.

Other Notes: Troubleshooting. Reinstall of latest Brother brprinter3 drivers did not help. linux-brprinter-installer-2.2.3-1

Using sudo sane-find-scannershows the scanner attached to USB port. Using sane-find-scanner as user shows permissions errors on USB ports. Simple Scan also cannot discover the USB scanner as a user.

Tried adding user to scanner group--did not help.

scanimage -L fails as user (cannot connect/no scanner).

lsusb shows the scanner but sane apparently does not.

Tried sudo touch /etc/udev/rules.d/59-udev-local.rules sudo nano /etc/udev/rules.d/59-udev-local.rules And added

# Brother brscan devices
ATTRS{idVendor}=="04f9", ATTRS{idProduct}=="01e5", MODE="0666", GROUP="scanner", ENV{libsane_matched}="YES"

Did not seem to help.

Finally, reviewed all the UDEV rules in /etc/udev/rules.d/ and then tried sudo nano ./60-brother-libsane-type1-inst.rules and temporarily uncommented #0664 and ran sudo udevadm control --reload-rules. This seemed to help.

Perhaps there is a permissions issue introduced in 21.10? This was not an issue with 21.04--for me at least.

dradice commented 2 years ago

I had the same problem. I think that the issue is that the default user is not added to the scanner group: sudo adduser $USER scanner, logging out and then logging in again fixed it for me.