我刚刚购买了佳能 Pixma TR4550。它通过 USB 连接到我运行 Ubuntu 20.04 的桌面。
- 对于打印,我安装了佳能提供的“cnijfilter2-5.70-1-deb”。打印工作正常。
- 对于扫描,我安装了佳能提供的“scangearmp2-3.70-1-deb”,但我不能让它工作,虽然安装很好,没有任何错误。
扫描仪似乎正确检测到:
$ scanimage -L
device `pixma:04A91854' is a CANON Canon PIXMA TR4500 Series multi-function peripheral
device `escl:http://127.0.0.1:60000' is a ESCL TR4500 series flatbed scanner
当我启动简单扫描时,它也被检测到:
但是当我按下扫描按钮时,它返回一个错误(无法连接......”),这是“simple-scan -d”命令的输出:
pascal$ simple-scan -d
[+0,00s] DEBUG: simple-scan.vala:1720: Starting simple-scan 3.36.3, PID=13292
[+0,00s] DEBUG: unsetenv() is not thread-safe and should not be used after threads are created
[+0,01s] DEBUG: _g_io_module_get_default: Found default implementation dconf (DConfSettingsBackend) for ‘gsettings-backend’
[+0,06s] DEBUG: app-window.vala:1906: Loading state from /home/pascal/.cache/simple-scan/state
[+0,06s] DEBUG: app-window.vala:1885: Restoring window to 676x421 pixels
[+0,12s] DEBUG: scanner.vala:1539: sane_init () -> SANE_STATUS_GOOD
[+0,12s] DEBUG: scanner.vala:1545: SANE version 1.0.31
[+0,12s] DEBUG: scanner.vala:1606: Requesting redetection of scan devices
[+0,12s] DEBUG: scanner.vala:828: Processing request
[+0,51s] DEBUG: app-window.vala:1981: Saving state to /home/pascal/.cache/simple-scan/state
[+8,29s] DEBUG: scanner.vala:341: sane_get_devices () -> SANE_STATUS_GOOD
[+8,29s] DEBUG: scanner.vala:353: Device: name="pixma:04A91854" vendor="CANON" model="Canon PIXMA TR4500 Series" type="multi-function peripheral"
[+8,29s] DEBUG: scanner.vala:353: Device: name="escl:http://127.0.0.1:60000" vendor="ESCL" model="TR4500 series" type="flatbed scanner"
[+8,61s] DEBUG: app-window.vala:1981: Saving state to /home/pascal/.cache/simple-scan/state
[+11,47s] DEBUG: app-window.vala:1981: Saving state to /home/pascal/.cache/simple-scan/state
[+14,08s] DEBUG: app-window.vala:1981: Saving state to /home/pascal/.cache/simple-scan/state
[+15,77s] DEBUG: app-window.vala:1981: Saving state to /home/pascal/.cache/simple-scan/state
[+15,99s] DEBUG: app-window.vala:1981: Saving state to /home/pascal/.cache/simple-scan/state
[+16,04s] DEBUG: simple-scan.vala:1536: Requesting scan at 300 dpi from device 'pixma:04A91854'
[+16,04s] DEBUG: scanner.vala:1674: Scanner.scan ("pixma:04A91854", dpi=300, scan_mode=ScanMode.COLOR, depth=8, type=single, paper_width=0, paper_height=0, brightness=0, contrast=0, delay=3000ms)
[+16,04s] DEBUG: scanner.vala:828: Processing request
[+16,37s] DEBUG: app-window.vala:1981: Saving state to /home/pascal/.cache/simple-scan/state
[+16,56s] DEBUG: scanner.vala:889: sane_open ("pixma:04A91854") -> SANE_STATUS_DEVICE_BUSY
[+16,56s] WARNING: scanner.vala:893: Unable to open device: Device busy
[+16,89s] DEBUG: app-window.vala:1981: Saving state to /home/pascal/.cache/simple-scan/state
知道这里出了什么问题吗?为什么这个 SANE_STATUS_DEVICE_BUSY ?
注意:我尝试启动“scangearmp2”命令,但它显示“未检测到扫描仪”,研究永无止境。
在我开始工作时回复自己:我刚刚使用 Wifi 连接了打印机!(顺便说一下佳能推荐的)
我卸载了scangearmp2驱动,因为它似乎没用(没有检测到扫描仪,见上文),然后我断开USB线,并使用WPS方法将打印机连接到我的wifi网络(昨天,我尝试用打印机键盘输入wifi密码,它一团糟,因此我使用了我的 USB 电缆......)。
无事可做,现在一切正常:
解决了这个问题真是太好了!
编辑:在调查期间,我从sane-project网站更新了 libsane-common 。不确定这是必需的,但最好提一下:
编辑2:我在托管模式下从VM(QEMU)检测扫描仪时遇到问题。这已解决编辑
/etc/sane.d/escl.conf
文件,并添加一个新的设备行,如下所示:(如
scanimage -L
上面主机的输出所示)。