Activity log for bug #1003843

Date Who What changed Old value New value Message
2012-05-24 09:16:31 Job Noorman bug added bug
2012-05-24 09:16:31 Job Noorman attachment added Patch that fixes the problem https://bugs.launchpad.net/bugs/1003843/+attachment/3160695/+files/hplj1000.diff
2012-05-24 09:18:03 Job Noorman description The hplj1000 script fails to upload firmware files when both the usb_printerid program and the CUPS USB backend are found. The problem is that the hplj1000 script first tries to upload the firmware by catting it to /dev/usb/lpN and sending this process to the background. Then, while this process is probably still running, it *also* tries to upload the firmware using the CUPS USB backend. The net result is that both methods fail. I have attached a patch that fixes the problem. The patch makes sure that either the cat method *or* the CUPS method is used (it tries in that order) but never both. Another note: the upload happens to fast on my system (the script sleeps 3s before uploading) and this causes the printer not working (although the firmware *is* uploaded). If I increase the sleep to 10s, it does work. Should I file another bug for this? Some more info: $ lsb_release -rd Description: Ubuntu 12.04 LTS Release: 12.04 $ apt-cache policy printer-driver-foo2zjs printer-driver-foo2zjs: Installed: 20111202dfsg0-1ubuntu1 Candidate: 20111202dfsg0-1ubuntu1 Version table: *** 20111202dfsg0-1ubuntu1 0 500 http://ftp.tudelft.nl/archive.ubuntu.com/ precise/main i386 Packages 100 /var/lib/dpkg/status The hplj1000 script fails to upload firmware files when both the usb_printerid program and the CUPS USB backend are found. The problem is that the hplj1000 script first tries to upload the firmware by catting it to /dev/usb/lpN and sending this process to the background. Then, while this process is probably still running, it *also* tries to upload the firmware using the CUPS USB backend. The net result is that both methods fail. I have attached a patch that fixes the problem. The patch makes sure that either the cat method *or* the CUPS method is used (it tries in that order) but never both. Another note: the upload happens too fast on my system (the script sleeps 3s before uploading) and this causes the printer to not work (although the firmware *is* uploaded). If I increase the sleep to 10s, it does work. Should I file another bug for this? Some more info: $ lsb_release -rd Description: Ubuntu 12.04 LTS Release: 12.04 $ apt-cache policy printer-driver-foo2zjs printer-driver-foo2zjs:   Installed: 20111202dfsg0-1ubuntu1   Candidate: 20111202dfsg0-1ubuntu1   Version table:  *** 20111202dfsg0-1ubuntu1 0         500 http://ftp.tudelft.nl/archive.ubuntu.com/ precise/main i386 Packages         100 /var/lib/dpkg/status
2012-05-24 12:17:54 Ubuntu Foundations Team Bug Bot tags patch
2012-05-24 12:18:02 Ubuntu Foundations Team Bug Bot bug added subscriber Ubuntu Review Team
2012-05-24 20:01:00 Till Kamppeter foo2zjs (Ubuntu): status New Triaged
2012-05-25 17:35:06 Till Kamppeter foo2zjs (Ubuntu): status Triaged In Progress
2012-05-25 18:20:29 Launchpad Janitor foo2zjs (Ubuntu): status In Progress Fix Released
2012-05-25 19:19:18 Launchpad Janitor branch linked lp:ubuntu/foo2zjs
2013-02-22 04:59:41 Launchpad Janitor branch linked lp:debian/experimental/foo2zjs