我在 Thinkpad T480 上运行 Xubuntu 20.04,现在内核是 5.4.0-51-generic。直到最近,我才能在 LAN/WLAN 上毫无问题地在我的 Canon MF8280Cw 上扫描。扫描仪仍可与其他设备(装有 Fedora 的笔记本电脑、Xubuntu live USB 和 Windows 的笔记本电脑)一起使用,但不能在我的笔记本电脑上使用。奇怪的是,sudo sane-find-scanner
可以找到扫描仪,但scanimage -L
和simple-scan
却xsane
找不到。有或没有sudo
。我不知道是什么坏了它,也不知道该往哪个方向进一步调查...救命!
输出sane-find-scanner
(无sudo
)
# 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 0x2109/0x0711 at 004:005: Access denied (insufficient permissions)
could not open USB device 0x0bda/0x8153 at 004:004: Access denied (insufficient permissions)
could not open USB device 0x0bda/0x0411 at 004:003: Access denied (insufficient permissions)
could not open USB device 0x0bda/0x0411 at 004:002: Access denied (insufficient permissions)
could not open USB device 0x1d6b/0x0003 at 004:001: Access denied (insufficient permissions)
could not open USB device 0x046d/0xc52b at 003:006: Access denied (insufficient permissions)
could not open USB device 0x0bda/0x5411 at 003:003: Access denied (insufficient permissions)
could not open USB device 0x0bda/0x5411 at 003:002: Access denied (insufficient permissions)
could not open USB device 0x1d6b/0x0002 at 003:001: Access denied (insufficient permissions)
could not open USB device 0x1d6b/0x0003 at 002:001: Access denied (insufficient permissions)
could not open USB device 0x06cb/0x009a at 001:004: Access denied (insufficient permissions)
could not open USB device 0x04f2/0xb604 at 001:003: Access denied (insufficient permissions)
could not open USB device 0x8087/0x0a2b at 001:002: Access denied (insufficient permissions)
could not open USB device 0x1d6b/0x0002 at 001:001: Access denied (insufficient permissions)
# No USB scanners found. If you expected something different, make sure that
# you have loaded a kernel driver for your USB host controller and have setup
# the USB system correctly. See man sane-usb for details.
# 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.
输出sudo 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.
found USB scanner (vendor=0x0bda [Realtek], product=0x8153 [USB 10/100/1000 LAN]) at libusb:004:004
found USB scanner (vendor=0x06cb, product=0x009a) at libusb:001:004
# 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.
libusb:004:004
扫描仪在 LAN ( ) 和 WLAN ( libusb:001:004
)中被发现两次
scanimage -L
错误:
No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).
simple-scan
并xsane
给出类似的错误:未找到扫描仪
这是saned.socket
saned.socket - saned incoming socket
Loaded: loaded (/lib/systemd/system/saned.socket; disabled; vendor preset: enabled)
Active: active (listening) since Thu 2020-10-15 12:55:32 CEST; 2s ago
Triggers: ● [email protected]
Listen: [::]:6566 (Stream)
Accepted: 0; Connected: 0;
Tasks: 0 (limit: 38167)
Memory: 0B
CGroup: /system.slice/saned.socket
Okt 15 12:55:32 pashopt systemd[1]: Listening on saned incoming socket.
我已经尝试过完全卸载sane
(包括 systemd 服务和套接字)并重新安装。
Sane 软件包在 9 月底(大约 29 号)的某个时候进行了更新,我猜测某个地方就是罪魁祸首,因为我已经有一段时间没有扫描过了。
谢谢!
附言:抱歉,帖子太长了 :)
ps1. 输出lsusb
Bus 004 Device 005: ID 2109:0711 VIA Labs, Inc.
Bus 004 Device 004: ID 0bda:8153 Realtek Semiconductor Corp. RTL8153 Gigabit Ethernet Adapter
Bus 004 Device 003: ID 0bda:0411 Realtek Semiconductor Corp.
Bus 004 Device 002: ID 0bda:0411 Realtek Semiconductor Corp. 4-Port USB 3.0 Hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 006: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 003 Device 005: ID 413c:2010 Dell Computer Corp. Keyboard
Bus 003 Device 004: ID 413c:1003 Dell Computer Corp. Keyboard Hub
Bus 003 Device 003: ID 0bda:5411 Realtek Semiconductor Corp.
Bus 003 Device 002: ID 0bda:5411 Realtek Semiconductor Corp. 4-Port USB 2.0 Hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 06cb:009a Synaptics, Inc.
Bus 001 Device 003: ID 04f2:b604 Chicony Electronics Co., Ltd Integrated Camera (1280x720@30)
Bus 001 Device 002: ID 8087:0a2b Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
答案1
我继续挖掘并找到了解决方案。它似乎仍然不是标准的,但它正在工作。我所做的是编辑/etc/sane.d/pixma.conf
并添加了带有设置的行mfnp
(我仍然需要阅读以了解这到底是什么......)如下:
fmnp://my.scanner.ip.address/timeout=1500
保存并重新启动 saned
sudo systemctl restart saned.socket
我希望这可以为某些人提供帮助,并避免他们用头撞键盘、显示器、扫描仪……
答案2
从sudo scanimage -L
弗拉德处获得:
在 libusb:004:004 找到 USB 扫描仪(供应商=0x0bda [Realtek],产品=0x8153 [USB 10/100/1000 LAN])在 libusb:001:004 找到 USB 扫描仪(供应商=0x06cb,产品=0x009a)
查看lsusb
输出:product=0x8153 是以太网适配器,product=0x009a 是 Synaptics 设备。换句话说,sane-find-scanner
根本找不到任何扫描仪!此外,sane-find-scanner
对于直接连接到网络的扫描仪来说,这不是一个合适的命令。
如果 pixma 驱动程序后端适合您,那就没问题。但是,我建议您看看理智空气扫描。 应该你安装它,我很想知道您得到了什么scanimage -L
和airscan-discover
。