mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: hplip: Fix USB timeouts.
* gnu/packages/patches/hplip-usb-timeout.patch: New file. * gnu/local.mk: Register it. * gnu/packages/cups.scm (hplip): Use it. Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
This commit is contained in:
parent
a0060934a5
commit
1e5ec9d853
3 changed files with 26 additions and 0 deletions
24
gnu/packages/patches/hplip-usb-timeout.patch
Normal file
24
gnu/packages/patches/hplip-usb-timeout.patch
Normal file
|
@ -0,0 +1,24 @@
|
|||
# Source: <https://bugs.launchpad.net/hplip/+bug/1922404>
|
||||
|
||||
--- a/config_usb_printer.py
|
||||
+++ b/config_usb_printer.py
|
||||
@@ -28,6 +28,7 @@
|
||||
# Std Lib
|
||||
import sys
|
||||
import os
|
||||
+import time
|
||||
|
||||
# Local
|
||||
from base.g import *
|
||||
@@ -181,9 +182,10 @@
|
||||
# ******************************* RUNNING FIRMWARE DOWNLOAD TO DEVICE FOR SUPPORTED PRINTER'S
|
||||
fw_download_req = mq.get('fw-download', False)
|
||||
if fw_download_req:
|
||||
- fw_cmd = "hp-firmware -y3 -s %s"%param
|
||||
+ fw_cmd = "hp-firmware -n -y3 -s %s"%param
|
||||
log.info(fw_cmd)
|
||||
fw_sts, fw_out = utils.run(fw_cmd)
|
||||
+ time.sleep(5)
|
||||
if fw_sts == 0:
|
||||
log.debug("Firmware downloaded to %s "%device_uri)
|
||||
else:
|
Loading…
Add table
Add a link
Reference in a new issue