+ -
当前位置:首页 → 问答吧 → [已经解决]打印机安装没有搞定(利用USB转串并口设备)

[已经解决]打印机安装没有搞定(利用USB转串并口设备)

时间:2009-09-17

来源:互联网

现在在gentoo下用的不错。突然发现一个问题:
需要打印一些参考文献不能打了。
实验室有台HP 5100e打印机。

现在问题来了:
(1)如何驱动USB转串口/并口的设备?(我手头上有Lenovo的USB Serial Parallel Adapter设备)
(2)如何装打印机驱动设备?

敬请指点!

作者: forrestxz   发布时间: 2009-09-17

1. make menuconfig
代码:
Device Drivers ---->
 USB support ---->
 USB Serial Converter support ---->[*]相应驱动
2. http://www.gentoo.org/doc/en/printing-howto.xml

作者: 牙刷   发布时间: 2009-09-18

引用:
作者: 牙刷
1. make menuconfig
代码:
Device Drivers ---->
 USB support ---->
 USB Serial Converter support ---->[*]相应驱动
2. http://www.gentoo.org/doc/en/printing-howto.xml
谢谢你的回复。可是,实在是不好意思。

我在配置中,不知道应该将哪个选上,或者你是否可以告诉我,如何判断我的Lenovo的USB Serial Parallel Adapter设备是什么芯片?

谢谢!

作者: forrestxz   发布时间: 2009-09-18

lsusb 看看型号

作者: helove   发布时间: 2009-09-19

目标连HPle5100打印机。还是没有成功。

我把USB转串并口设备接上,再打开打印机。

#lsusb
Bus 008 Device 005: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
Bus 008 Device 004: ID 067b:2305 Prolific Technology, Inc. PL2305 Parallel Port

#dmesg | grep print
usb 2-1: Product: Fingerprint Sensor
usblp0: USB Bidirectional printer dev 4 if 0 alt 1 proto 2 vid 0x067B pid 0x2305

# ls /dev/usb
lp0
应该还有个文件链接:/dev/usblp0

应该是打印机从硬件线路上说是通了。
可启动CUPS后,在"administration"中找不到打印机,在添加打印机的选项中也不没有串口的选项。

按照说明安装the ppds USE flag enabled.
#emerge hplip(重新启动过)
#hp-setup
Using connection type: usb
--------------------
| DEVICE DISCOVERY |
--------------------
error: No devices found.
error: Error occured during interactive mode. Exiting.


请教,如何解决?

作者: forrestxz   发布时间: 2009-09-25

还是没有解决!

自己顶一下!

作者: forrestxz   发布时间: 2009-09-26

根据shinkanshen网友的主题,认真看了

Getoo Wiki CUPS
http://en.gentoo-wiki.com/wiki/CUPS

Gentoo Wiki Hplip
http://www.gentoo-wiki.info/HPLIP

问题得以解决,解决的过程很简单

第1,根据wiki上说:
f you are using a USB->Parallel adapter, you'll want to do the following:

* Add your printer by selecting a different connection type (since usb and parallel will not be listed)
* Edit the file /etc/cups/printers.conf
* Change the DeviceID line to read: DeviceID = parallel:/dev/usb/lp0

所以,在添加打印机的时候,Device URI: parallel:/dev/usb/lp0

另外:我安装了hplip,在安装过程中提示ppdev好像没有加载,所以在内核配置中又调整了一下。估计内核又胖了不少:(

最后发现打印线还是坏的。我晕!也许前面的一些配置都不需要改吧!

作者: forrestxz   发布时间: 2009-09-26