我有一个连接到运行最新 Raspbian 的 Raspberry Pi 的 Epson 多功能设备。正如您在下面的输出中看到的那样,如果我使用 sudo,scanimage 只会找到我的扫描仪,但 sane-find 扫描仪在没有 sudo 的情况下也能找到它。我已经检查过设备权限设置是否正确...... saned 是 lp 组的成员,它是 USB 设备的组。是什么赋予了?
richard@raspberrypi ~ $ scanimage > image.pnm
scanimage: no SANE devices found
richard@raspberrypi ~ $ sane-find-scanner
...
found USB scanner (vendor=0x04b8, product=0x0839) at libusb:001:004
found USB scanner (vendor=0x0424, product=0xec00) at libusb:001:003
...
richard@raspberrypi ~ $ sudo scanimage > image.pnm
richard@raspberrypi ~ $ sudo su -s /bin/bash - saned
X11 connection rejected because of wrong authentication.
No directory, logging in with HOME=/ …
Run Code Online (Sandbox Code Playgroud)