求助,这种打印驱动怎么安装
-
- 帖子: 9
- 注册时间: 2019-10-12 12:17
求助,这种打印驱动怎么安装
求助,这种打印驱动怎么安装
ununtu 19.04 环境,是hiti p520L打印机,这是官方的驱动,提示简单了
ununtu 19.04 环境,是hiti p520L打印机,这是官方的驱动,提示简单了
上次由 FurySnailx 在 2019-10-17 18:03,总共编辑 1 次。
- astolia
- 论坛版主
- 帖子: 6478
- 注册时间: 2008-09-18 13:11
Re: 求助,这种打印驱动怎么安装
这种是哪种
- primes
- 帖子: 139
- 注册时间: 2007-05-10 11:43
- 系统: Ubuntu18.04、Win 10
Re: 求助,这种打印驱动怎么安装
最起码说个型号吧,唉~
-
- 帖子: 9
- 注册时间: 2019-10-12 12:17
Re: 求助,这种打印驱动怎么安装
是hiti p520L 打印驱动,我是先make 然后make install .添加打印机正常,点了打印没反应,也不知道是不是我那步错了
- astolia
- 论坛版主
- 帖子: 6478
- 注册时间: 2008-09-18 13:11
Re: 求助,这种打印驱动怎么安装
make和make install时的输出有没有显示错误?make install时有没有加sudo?普通用户的权限是不够的
-
- 帖子: 9
- 注册时间: 2019-10-12 12:17
Re: 求助,这种打印驱动怎么安装
有加sudo ,有警告,没错误。
下面是log
W [16/Oct/2019:02:50:20 +0800] CreateProfile failed: org.freedesktop.ColorManager.AlreadyExists:profile id \'P520L-Gray..\' already exists
W [16/Oct/2019:03:45:50 +0800] CreateProfile failed: org.freedesktop.ColorManager.AlreadyExists:profile id \'P520L-Gray..\' already exists
E [16/Oct/2019:03:47:37 +0800] [Job 4] Printer has no response.
E [16/Oct/2019:03:47:55 +0800] [Job 4] 无法向打印机发送数据。
E [16/Oct/2019:03:48:24 +0800] [Client 90] Returning IPP client-error-not-possible for Cancel-Job (ipp://localhost/jobs/4) from localhost.
E [16/Oct/2019:03:48:26 +0800] [Client 90] Returning IPP client-error-not-possible for Cancel-Job (ipp://localhost/jobs/4) from localhost.
E [16/Oct/2019:03:52:34 +0800] Scheduler shutting down due to program error.
I [16/Oct/2019:03:54:21 +0800] Listening to [v1.::1]:631 (IPv6)
I [16/Oct/2019:03:54:21 +0800] Listening to 127.0.0.1:631 (IPv4)
I [16/Oct/2019:03:54:21 +0800] Listening to /run/cups/cups.sock (Domain)
I [16/Oct/2019:03:54:21 +0800] Remote access is disabled.
D [16/Oct/2019:03:54:21 +0800] Added auto ServerAlias pc
I [16/Oct/2019:03:54:21 +0800] Loaded configuration file "/etc/cups/cupsd.conf"
D [16/Oct/2019:03:54:21 +0800] Using keychain "/etc/cups/ssl" for server name "pc".
I [16/Oct/2019:03:54:21 +0800] Using default TempDir of /var/spool/cups/tmp...
I [16/Oct/2019:03:54:21 +0800] Configured for up to 100 clients.
I [16/Oct/2019:03:54:21 +0800] Allowing up to 100 client connections per host.
I [16/Oct/2019:03:54:21 +0800] Using policy "default" as the default.
I [16/Oct/2019:03:54:21 +0800] Full reload is required.
-
- 帖子: 9
- 注册时间: 2019-10-12 12:17
-
- 帖子: 9
- 注册时间: 2019-10-12 12:17
Re: 求助,这种打印驱动怎么安装
有加sudo,第一次编译提示少个cups/cups.h 错误。
我安装了libcups2-dev.deb,再次编译,有警告没错误,添加打印机正常,打测试页面,打印机亮但不打印。
不知道是不是libcups2-dev.deb安装有问题。
var/log/cups/error_log
E [16/Oct/2019:03:47:37 +0800] [Job 4] Printer has no response.
E [16/Oct/2019:03:47:55 +0800] [Job 4] 无法向打印机发送数据。
E [16/Oct/2019:03:48:24 +0800] [Client 90] Returning IPP client-error-not-possible for Cancel-Job (ipp://localhost/jobs/4) from localhost.
E [16/Oct/2019:03:48:26 +0800] [Client 90] Returning IPP client-error-not-possible for Cancel-Job (ipp://localhost/jobs/4) from localhost.
E [16/Oct/2019:03:52:34 +0800] Scheduler shutting down due to program error.
I [16/Oct/2019:03:54:21 +0800] Listening to [v1.::1]:631 (IPv6)
I [16/Oct/2019:03:54:21 +0800] Listening to 127.0.0.1:631 (IPv4)
I [16/Oct/2019:03:54:21 +0800] Listening to /run/cups/cups.sock (Domain)
I [16/Oct/2019:03:54:21 +0800] Remote access is disabled.
D [16/Oct/2019:03:54:21 +0800] Added auto ServerAlias pc
I [16/Oct/2019:03:54:21 +0800] Loaded configuration file "/etc/cups/cupsd.conf"
D [16/Oct/2019:03:54:21 +0800] Using keychain "/etc/cups/ssl" for server name "pc".
I [16/Oct/2019:03:54:21 +0800] Using default TempDir of /var/spool/cups/tmp...
I [16/Oct/2019:03:54:21 +0800] Configured for up to 100 clients.
I [16/Oct/2019:03:54:21 +0800] Allowing up to 100 client connections per host.
I [16/Oct/2019:03:54:21 +0800] Using policy "default" as the default.
I [16/Oct/2019:03:54:21 +0800] Full reload is required.
I [16/Oct/2019:03:54:21 +0800] Loaded MIME database from "/usr/share/cups/mime" and "/etc/cups": 78 types, 118 filters...
我安装了libcups2-dev.deb,再次编译,有警告没错误,添加打印机正常,打测试页面,打印机亮但不打印。
不知道是不是libcups2-dev.deb安装有问题。
var/log/cups/error_log
E [16/Oct/2019:03:47:37 +0800] [Job 4] Printer has no response.
E [16/Oct/2019:03:47:55 +0800] [Job 4] 无法向打印机发送数据。
E [16/Oct/2019:03:48:24 +0800] [Client 90] Returning IPP client-error-not-possible for Cancel-Job (ipp://localhost/jobs/4) from localhost.
E [16/Oct/2019:03:48:26 +0800] [Client 90] Returning IPP client-error-not-possible for Cancel-Job (ipp://localhost/jobs/4) from localhost.
E [16/Oct/2019:03:52:34 +0800] Scheduler shutting down due to program error.
I [16/Oct/2019:03:54:21 +0800] Listening to [v1.::1]:631 (IPv6)
I [16/Oct/2019:03:54:21 +0800] Listening to 127.0.0.1:631 (IPv4)
I [16/Oct/2019:03:54:21 +0800] Listening to /run/cups/cups.sock (Domain)
I [16/Oct/2019:03:54:21 +0800] Remote access is disabled.
D [16/Oct/2019:03:54:21 +0800] Added auto ServerAlias pc
I [16/Oct/2019:03:54:21 +0800] Loaded configuration file "/etc/cups/cupsd.conf"
D [16/Oct/2019:03:54:21 +0800] Using keychain "/etc/cups/ssl" for server name "pc".
I [16/Oct/2019:03:54:21 +0800] Using default TempDir of /var/spool/cups/tmp...
I [16/Oct/2019:03:54:21 +0800] Configured for up to 100 clients.
I [16/Oct/2019:03:54:21 +0800] Allowing up to 100 client connections per host.
I [16/Oct/2019:03:54:21 +0800] Using policy "default" as the default.
I [16/Oct/2019:03:54:21 +0800] Full reload is required.
I [16/Oct/2019:03:54:21 +0800] Loaded MIME database from "/usr/share/cups/mime" and "/etc/cups": 78 types, 118 filters...
- astolia
- 论坛版主
- 帖子: 6478
- 注册时间: 2008-09-18 13:11
Re: 求助,这种打印驱动怎么安装
lpstat -H -l 有什么输出?
-
- 帖子: 9
- 注册时间: 2019-10-12 12:17
- astolia
- 论坛版主
- 帖子: 6478
- 注册时间: 2008-09-18 13:11
Re: 求助,这种打印驱动怎么安装
呃,少写了个参数,该是 lpstat -H -l -t
-
- 帖子: 9
- 注册时间: 2019-10-12 12:17
Re: 求助,这种打印驱动怎么安装
snailx@pc:~$ lpstat -H -l -t
/run/cups/cups.sock
调度器正在运行
用于 HiTi_P520L 的设备:usb://HiTi/P520L?serial=2WC621028269408
HiTi_P520L 自从 2019年10月19日 星期六 01时47分00秒 开始接受请求
打印机 HiTi_P520L 正在打印 HiTi_P520L-20。从 2019年10月19日 星期六 01时47分00秒 开始启用
Printer has no response.
已挂载表单:
内容类型:任意
打印机类型:未知
描述:HiTi P520L
警告:none
位置:PC
连接:直接
界面:/etc/cups/ppd/HiTi_P520L.ppd
发生错误时:无警告
发生错误时:继续
允许的用户:
(全部)
已允许表单:
(无)
需要横幅
字符集:
(无)
默认字间距:
默认页面尺寸:
默认端口设置:
HiTi_P520L-20 snailx 1024 2019年10月18日 星期五 11时46分48秒
状态:Printer has no response.
警告:job-printing
已为 HiTi_P520L 列队
snailx@pc:~$
-
- 帖子: 9
- 注册时间: 2019-10-12 12:17
Re: 求助,这种打印驱动怎么安装
帮我看下编译过程有什么不对的地方
g++ -c -o rastertohtrt.o src/rastertohtrt.cpp
src/rastertohtrt.cpp: In function ‘bool GetUISettings(char*, HITI_JOB_PROPERTY_RT*)’:
src/rastertohtrt.cpp:248:36: warning: ‘ppd_file_t* ppdOpenFile(const char*)’ is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
ppd = PPDOPENFILE(getenv("PPD"));
^
In file included from src/rastertohtrt.cpp:11:
/usr/include/cups/ppd.h:397:20: note: declared here
extern ppd_file_t *ppdOpenFile(const char *filename) _PPD_DEPRECATED;
^~~~~~~~~~~
src/rastertohtrt.cpp:248:36: warning: ‘ppd_file_t* ppdOpenFile(const char*)’ is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
ppd = PPDOPENFILE(getenv("PPD"));
^
In file included from src/rastertohtrt.cpp:11:
/usr/include/cups/ppd.h:397:20: note: declared here
extern ppd_file_t *ppdOpenFile(const char *filename) _PPD_DEPRECATED;
^~~~~~~~~~~
src/rastertohtrt.cpp:250:24: warning: ‘void ppdMarkDefaults(ppd_file_t*)’ is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
PPDMARKDEFAULTS(ppd);
^
In file included from src/rastertohtrt.cpp:11:
/usr/include/cups/ppd.h:392:14: note: declared here
extern void ppdMarkDefaults(ppd_file_t *ppd) _PPD_DEPRECATED;
^~~~~~~~~~~~~~~
src/rastertohtrt.cpp:250:24: warning: ‘void ppdMarkDefaults(ppd_file_t*)’ is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
PPDMARKDEFAULTS(ppd);
^
In file included from src/rastertohtrt.cpp:11:
/usr/include/cups/ppd.h:392:14: note: declared here
extern void ppdMarkDefaults(ppd_file_t *ppd) _PPD_DEPRECATED;
^~~~~~~~~~~~~~~
src/rastertohtrt.cpp:256:45: warning: ‘int cupsMarkOptions(ppd_file_t*, int, cups_option_t*)’ is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
CUPSMARKOPTIONS(ppd, nOptions, pCupsOptions);
^
In file included from src/rastertohtrt.cpp:11:
/usr/include/cups/ppd.h:370:13: note: declared here
extern int cupsMarkOptions(ppd_file_t *ppd, int num_options, cups_option_t *options) _PPD_DEPRECATED;
^~~~~~~~~~~~~~~
src/rastertohtrt.cpp:256:45: warning: ‘int cupsMarkOptions(ppd_file_t*, int, cups_option_t*)’ is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
CUPSMARKOPTIONS(ppd, nOptions, pCupsOptions);
^
In file included from src/rastertohtrt.cpp:11:
/usr/include/cups/ppd.h:370:13: note: declared here
extern int cupsMarkOptions(ppd_file_t *ppd, int num_options, cups_option_t *options) _PPD_DEPRECATED;
^~~~~~~~~~~~~~~
src/rastertohtrt.cpp:368:15: warning: ‘void ppdClose(ppd_file_t*)’ is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
PPDCLOSE(ppd);
^
In file included from src/rastertohtrt.cpp:11:
/usr/include/cups/ppd.h:372:14: note: declared here
extern void ppdClose(ppd_file_t *ppd) _PPD_DEPRECATED;
^~~~~~~~
src/rastertohtrt.cpp:368:15: warning: ‘void ppdClose(ppd_file_t*)’ is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
PPDCLOSE(ppd);
^
In file included from src/rastertohtrt.cpp:11:
/usr/include/cups/ppd.h:372:14: note: declared here
extern void ppdClose(ppd_file_t *ppd) _PPD_DEPRECATED;
^~~~~~~~
src/rastertohtrt.cpp:407:14: warning: ‘void ppdClose(ppd_file_t*)’ is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
PPDCLOSE(ppd);
^
In file included from src/rastertohtrt.cpp:11:
/usr/include/cups/ppd.h:372:14: note: declared here
extern void ppdClose(ppd_file_t *ppd) _PPD_DEPRECATED;
^~~~~~~~
src/rastertohtrt.cpp:407:14: warning: ‘void ppdClose(ppd_file_t*)’ is deprecated: Use cupsCopyDestInfo and friends instead. [-Wdeprecated-declarations]
PPDCLOSE(ppd);
^
In file included from src/rastertohtrt.cpp:11:
/usr/include/cups/ppd.h:372:14: note: declared here
extern void ppdClose(ppd_file_t *ppd) _PPD_DEPRECATED;
^~~~~~~~
g++ -c -o Util0.o src/Util0.cpp
g++ -c -o HppCmd.o src/HppCmd.cpp
g++ -c -o OneJob.o src/OneJob.cpp
g++ -c -o ClrCvt.o src/ClrCvt.cpp
g++ -c -o HTSharpen.o src/HTSharpen.cpp
g++ -c -o MapTable.o src/MapTable.cpp
g++ -c -o TableMaping.o src/TableMaping.cpp
g++ -c -o CSaturation.o src/CSaturation.cpp
g++ -o rastertohtrt rastertohtrt.o Util0.o HppCmd.o OneJob.o ClrCvt.o HTSharpen.o MapTable.o TableMaping.o CSaturation.o -lcups -lcupsimage
- astolia
- 论坛版主
- 帖子: 6478
- 注册时间: 2008-09-18 13:11
Re: 求助,这种打印驱动怎么安装
编译没出问题,但是那些个deprecated的警告是在7年前的cups中加入的,说明它的代码是比较古老的了,可能在现代的系统上无法正确运行。另外hiti这家对linux驱动的态度不太好,如这篇 https://ubuntuforums.org/showthread.php ... ost7506369 ,它宣称的支持linux感觉更像个噱头。
你可以试一下非官方驱动,https://sourceforge.net/projects/gimp-p ... snapshots/,最新的版本能支持HiTi P520L。记得先把官方驱动卸载
你可以试一下非官方驱动,https://sourceforge.net/projects/gimp-p ... snapshots/,最新的版本能支持HiTi P520L。记得先把官方驱动卸载
-
- 帖子: 9
- 注册时间: 2019-10-12 12:17
Re: 求助,这种打印驱动怎么安装
非常感谢你的帮助,但那个驱动也打印不了,点打印没反应。astolia 写了: ↑2019-10-21 10:24 编译没出问题,但是那些个deprecated的警告是在7年前的cups中加入的,说明它的代码是比较古老的了,可能在现代的系统上无法正确运行。另外hiti这家对linux驱动的态度不太好,如这篇 https://ubuntuforums.org/showthread.php ... ost7506369 ,它宣称的支持linux感觉更像个噱头。
你可以试一下非官方驱动,https://sourceforge.net/projects/gimp-p ... snapshots/,最新的版本能支持HiTi P520L。记得先把官方驱动卸载