[Bug 1568996] Re: Duplex printing does not work properly for HP printers

2016-09-28 Thread Till Kamppeter
Fixed in hplip 3.16.7+repack0-1ubuntu1 in Yakkety. ** Changed in: hplip (Ubuntu) Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1568996 Title: Duplex

[Bug 1568996] Re: Duplex printing does not work properly for HP printers

2016-09-22 Thread Till Kamppeter
** Changed in: hplip (Ubuntu) Status: New => Fix Committed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1568996 Title: Duplex printing does not work properly for HP printers To manage

[Bug 1568996] Re: Duplex printing does not work properly for HP printers

2016-08-26 Thread Roger James
I am changing the name of this bug and reopening it because the problem with the invalid ppd file still exists. The make-duplex-page-sizes-default.sh generates causes bad ppd files to be generated for the following printers. hp-officejet_6800.ppd: FAIL hp-officejet_pro_6830.ppd: FAIL

[Bug 1568996] Re: Duplex printing does not work properly for HP printers

2016-06-21 Thread Launchpad Bug Tracker
[Expired for hplip (Ubuntu) because there has been no activity for 60 days.] ** Changed in: hplip (Ubuntu) Status: Incomplete => Expired -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1568996

[Bug 1568996] Re: Duplex printing does not work properly for HP printers

2016-04-22 Thread Roger James
I have upgraded to Xenial and I can no longer reproduce the original bug. I can only assume it was something in gtk+ this has been fixed in Xenial. The fact that when it happened the jobs stuck in the queue unless deleted with the only evidence that anything was amiss being the lack of print

[Bug 1568996] Re: Duplex printing does not work properly for HP printers

2016-04-21 Thread Till Kamppeter
If any program (driver, PPD, ...) generates " Custom.A4" this is totally wrong. It must be either a paper size listed in the PPD, like "A4" or "A4.Duplex" or "Custom" with an explicit size in numbers, like "Custom.10x20cm", or "Custom.8x11in". Also simply "Custom" is wrong. So one needs to find

[Bug 1568996] Re: Duplex printing does not work properly for HP printers

2016-04-21 Thread Roger James
I thought I had posted a reply but i obviously had not. I had already tried the the test you suggested. I built a 3.15.7 version the hplip package with the make-duplex-page- sizes-default.sh script disabled and reinstalled with that. The hpcups.drv work fine for duplex printing with A4.duplex

Re: [Bug 1568996] Re: Duplex printing does not work properly for HP printers

2016-04-19 Thread Roger James
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1568996 Title: Duplex printing does not work properly for HP printers To manage notifications about this bug go to:

[Bug 1568996] Re: Duplex printing does not work properly for HP printers

2016-04-19 Thread Till Kamppeter
Can you try out whether duplex printing works correctly with no script at all applied, using the original upstream hpcups.drv? Note that you have to choose the A4.Duplex page size for double-sided printing then. -- You received this bug notification because you are a member of Ubuntu Bugs, which

[Bug 1568996] Re: Duplex printing does not work properly for HP printers

2016-04-19 Thread Roger James
I spelt constraints correctly in the next version and it still does seem to be doing anything. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1568996 Title: Duplex printing does not work properly

Re: [Bug 1568996] Re: Duplex printing does not work properly for HP printers

2016-04-18 Thread Roger James
On 18/04/16 04:41, Till Kamppeter wrote: > Perhaps we need to remove the script to return to upstream reality with > the original awkwardness (perhaps this could be the SRU for Xenial) and > for a more sophisticated solution pre-build all PPDs, edit them with a > script to rename the paper sizes,

[Bug 1568996] Re: Duplex printing does not work properly for HP printers

2016-04-17 Thread Till Kamppeter
HP' s original intention was having these variants for each paper size (you get this with the pure upstream code without applying the script): 1. Standard size, like "A4" giving smallest possible non-fullbleed margins. These sizes are the default sizes 2. Duplex sizes, like "A4.Duplex" having

[Bug 1568996] Re: Duplex printing does not work properly for HP printers

2016-04-17 Thread Roger James
Ok. I understand the need for the {0,4} now! Unfortunately in the 6510 ppd definition in the drv file the .Duplex defintion is 102 lines further down the file. I will test with a value to compensate for that. But I still think that this is just sticking a bandage on a bandage. I found a note

[Bug 1568996] Re: Duplex printing does not work properly for HP printers

2016-04-16 Thread Till Kamppeter
Thank you for the script. Looks nice, but what about printers which do not support duplex printing? If the printer had an A4 page size it would be transferred into A4.SM and then there is no A4 entry left at all in the PPD. -- You received this bug notification because you are a member of

[Bug 1568996] Re: Duplex printing does not work properly for HP printers

2016-04-16 Thread Roger James
The attached script is a work in progress. The CustomMedia stuff is working but the UIConstraints is not. I have tried to make it as simple and clear as posible but I have more work to do. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to

[Bug 1568996] Re: Duplex printing does not work properly for HP printers

2016-04-16 Thread Roger James
** Attachment added: "Script to replace the original" https://bugs.launchpad.net/ubuntu/+source/hplip/+bug/1568996/+attachment/4638301/+files/mds-rfj.sh -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu.

[Bug 1568996] Re: Duplex printing does not work properly for HP printers

2016-04-15 Thread Till Kamppeter
I have tested now and your duplexsizes=... line is the better one, as it catches two extra page sizes (CardA4 and CardLetter) and it does not contain a blank line as the original does. All in all, it does not fix the original problem, the "Missing choice" and "Multiple occurrences" failures are

[Bug 1568996] Re: Duplex printing does not work properly for HP printers

2016-04-15 Thread Till Kamppeter
I think, the 3 spaces are really not needed, so your line duplexsizes=`grep -v '^//' $f | grep CustomMedia | grep '\.Duplex' | cut -d '"' -f 2 | cut -d '/' -f 1 | perl -p -e "s/\.Duplex//" | sort | uniq` is the correcter one. -- You received this bug notification because you are a member of

[Bug 1568996] Re: Duplex printing does not work properly for HP printers

2016-04-15 Thread Roger James
Well I found one problem in the script. But unfortunately it does not fix the problem. the line duplexsizes=`grep -v '^//' $f | grep CustomMedia | grep '\.Duplex' | cut -d " " -f 4 | cut -d "/" -f 1 | cut -d '"' -f 2 | perl -p -e "s/\.Duplex//" | sort | uniq` does not match all of the

[Bug 1568996] Re: Duplex printing does not work properly for HP printers

2016-04-14 Thread Roger James
"{0,100}?". No change same failures. "*?" Lots more failures. Not done any tests with bigger than 100, the request is too open ended! Is it time to reassess this approach? I suggest we ensure that the DRV file is correct at package build time and push the required changes upstream. Running a

[Bug 1568996] Re: Duplex printing does not work properly for HP printers

2016-04-13 Thread Till Kamppeter
In the Perl script there is the following code portion: -- finished=0 while [ $finished = 0 ]; do perl -e 'my $content = join("", <>); $content =~ s:(CustomMedia\s*\")([^\s\.\/]+)(\/([^\"]+?\s+|))(\S+\"([^\n]*\n){0,4}\s*CustomMedia\s*\")(\2)(.Duplex)(\/[^\"]*?\s*)(AutoDuplex

[Bug 1568996] Re: Duplex printing does not work properly for HP printers

2016-04-13 Thread Roger James
** Attachment removed: "The cut own version of the original hpcups.drv file" https://bugs.launchpad.net/ubuntu/+source/hplip/+bug/1568996/+attachment/4635423/+files/6510.drv.orig -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu.

[Bug 1568996] Re: Duplex printing does not work properly for HP printers

2016-04-13 Thread Roger James
** Attachment added: "The script form Xenial source (looks unchanged since 2010)" https://bugs.launchpad.net/ubuntu/+source/hplip/+bug/1568996/+attachment/4635428/+files/make-duplex-page-sizes-default.sh -- You received this bug notification because you are a member of Ubuntu Bugs, which is

[Bug 1568996] Re: Duplex printing does not work properly for HP printers

2016-04-13 Thread Roger James
** Attachment added: "The cut own version of the original hpcups.drv file" https://bugs.launchpad.net/ubuntu/+source/hplip/+bug/1568996/+attachment/4635427/+files/6510.drv.orig -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu.

[Bug 1568996] Re: Duplex printing does not work properly for HP printers

2016-04-13 Thread Roger James
** Attachment added: "The cut down version after running script" https://bugs.launchpad.net/ubuntu/+source/hplip/+bug/1568996/+attachment/4635424/+files/6510.drv.munged -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu.

[Bug 1568996] Re: Duplex printing does not work properly for HP printers

2016-04-13 Thread Roger James
The version on Xenial is hplip-3.16.3+repack0 I have cut out the bits of the Xenial hpcup.drv file that generate the ppds for the 6510 and other Copperhead printers, and used them to run some tests. These show that the make-duplex-page-sizes-default.sh (from Xenial) fails to rename the original

Re: [Bug 1568996] Re: Duplex printing does not work properly for HP printers

2016-04-12 Thread Roger James
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1568996 Title: Duplex printing does not work properly for HP printers To manage notifications about this bug go to:

[Bug 1568996] Re: Duplex printing does not work properly for HP printers

2016-04-12 Thread Till Kamppeter
Can you tell me which version of printer-driver-hpcups is installed on the live system of Xenial? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1568996 Title: Duplex printing does not work properly

[Bug 1568996] Re: Duplex printing does not work properly for HP printers

2016-04-12 Thread Roger James
Just realised that I still have not got the wording right in the description regarding the workaround. I think a simpler workaround given the current layout of the hpcups.drv file is just to remove the first occurence of each the duplicated pagesize and PageSize and PageRegion lines in the ppd and

Re: [Bug 1568996] Re: Duplex printing does not work properly for HP printers

2016-04-12 Thread Roger James
Hi Till, Just tested with a Xenial live dvdrom. Yes the problem is still there. Looks like the same list of printers. Roger On 12/04/16 17:48, Till Kamppeter wrote: > Can you please test (with a live CD or USB stick) whether the problem > persists in Xenial (Ubuntu 16.04 LTS)? Thanks. > > > **

[Bug 1568996] Re: Duplex printing does not work properly for HP printers

2016-04-12 Thread Till Kamppeter
Can you please test (with a live CD or USB stick) whether the problem persists in Xenial (Ubuntu 16.04 LTS)? Thanks. ** Changed in: hplip (Ubuntu) Status: New => Incomplete -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu.

[Bug 1568996] Re: Duplex printing does not work properly for HP printers

2016-04-12 Thread Roger James
So... after looking at that debian/local/make-duplex-page-sizes- default.sh again and remembering why I hate perl. I decided that this bug should probably be changed to: The make-duplex-page-sizes-default.sh generates causes bad ppd files to be generated for the following printers.

[Bug 1568996] Re: Duplex printing does not work properly for HP printers

2016-04-12 Thread Roger James
I have changed the original bug text slightly. After spending some time grepping the cups and gtk source to find what was adding the .Duplex suffix I realised it was probably coming from my own changes and I had copied the wrong bit of log into the bug. The problem is still that it is the second

[Bug 1568996] Re: Duplex printing does not work properly for HP printers

2016-04-12 Thread Roger James
** Description changed: I am reporting this as a new bug because I want to avoid adding further to the mish mash of half fixed bugs that is duplex printing on hp printers via cups. I will warn readers that this will sound like a bit of a rant. But these issues have been outstanding