unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
blob b98ed1cc78d8b0e8f2c97c99d3619c0d5dd64e6d 739 bytes (raw)
name: packages/patches/hplip-usb-timeout.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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:

debug log:

solving b98ed1cc78d8b0e8f2c97c99d3619c0d5dd64e6d ...
found b98ed1cc78d8b0e8f2c97c99d3619c0d5dd64e6d in https://git.savannah.gnu.org/cgit/guix.git

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).