<div dir="ltr"><div><div class="gmail_extra"><div class="gmail_quote">On Tue, Mar 27, 2018 at 12:09 PM, Michael Weghorn <span dir="ltr"><<a href="mailto:m.weghorn@posteo.de" target="_blank">m.weghorn@posteo.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">KDE applications use the Qt print dialog and this one is also<br>
responsible for selecting the correct default paper size, which in my<br>
experience works well.<br></blockquote><div><br></div><div>Thank you for your response.<br> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Two things that might help to narrow down the problem:<br>
<br>
1) Do Non-KDE-Applications (e.g. Firefox or LibreOffice) preselect the<br>
correct paper size?<br></blockquote><div><br></div><div>Yes, Firefox defaults to the correct paper size (letter). <br><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
2) Can you post the output of 'lpoptions -p <YOURPRINTERNAME> -l'<br>
(where '<YOURPRINTERNAME>' needs to be replaced by the name of one<br>
printer that is affected?<br></blockquote><div><br>PageSize/Media Size: *Letter Legal Executive Statement FanFoldGermanLegal 3x5 4x6 5x7 5x8 A4 A5 A6 B5 B6 Env3.5x5 4x6.Photo 8.5x13.3889 195x270mm 7.25x10.2361 7.75x10.75 Postcard DoublePostcardRotated Env10 EnvMonarch EnvISOB5 EnvC5 EnvC6 EnvDL EnvChou3 EnvChou4 Custom.WIDTHxHEIGHT<br>Duplex/Two-Sided: None *DuplexNoTumble DuplexTumble<br>InputSlot/Paper Feed: Auto Tray1 *Tray2 Tray3 Tray1_Man<br>MediaType/Media Type: Unspecified *Plain HPEcoSMARTLite HPPremiumPresentationMatte120 HPCoverMatte200 HPBrochureMatte180 HPBrochureGlossy180 HPAdvancedPhotoPapers Light6074 Intermediate8595 MidWeight96110 Heavy111130 ExtraHeavy131175 Cardstock176220 Labels Envelope HeavyEnvelope<br>HPOption_Tray3/Tray 3: *True False<br>HPPJLOutputMode/Print Quality: *GeneralOffice Professional Presentation MaximumDPI<br>HPPJLDryTime/Dry Time: *0 Medium Long<br>HPPJLSaturation/Saturation: -2 *-1 0 +1 +2<br>HPPJLInkBleed/Black Ink Spread: Least Less *Default<br>HPPJLColorAsGray/Print Color as Gray: *False HighQuality BlackInkOnly<br>HPRGBEmulation/RGB Color: HPRGBEmulationNone *sRGB PhotoSRGB Adobe VividSRGB<br><br> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

<div><div class="gmail-h5"><br>
<br>
<br>
On 2018-03-27 17:32, Bug Reporter wrote:<br>
> Thank you Stephan. That's helpful info. Here's what I have found so far:<br>
><br>
> $ cat ~/.cups/lpoptions<br>
> Dest HP_X576dw_1 Duplex=DuplexNoTumble HPPJLOutputMode=GeneralOffice<br>
> HPPJLSaturation=-1 InputSlot=Tray2 MediaType=Plain<br>
> Dest HP_X576dw_2 Duplex=DuplexNoTumble HPPJLOutputMode=GeneralOffice<br>
> HPPJLSaturation=-1 InputSlot=Tray2 MediaType=Plain<br>
> Dest HP_X576dw_3 Duplex=DuplexNoTumble HPPJLOutputMode=GeneralOffice<br>
> HPPJLSaturation=-1 InputSlot=Tray2 MediaType=Plain<br>
><br>
> # find /etc/cups/ -xdev -type f -exec grep -i -e paper -e a4 {} +  2>&1<br>
> | less<br>
> and/or look at each ppd file directly:<br>
> # less /etc/cups/ppd/HP_X576dw_1.ppd<br>
> For each printer, it lists:<br>
> *DefaultPaperDimension: Letter<br>
> *DefaultPageRegion: Letter<br>
> *DefaultImageableArea: Letter<br>
> *PaperDimension Letter/US Letter: "612 792"<br>
> *VariablePaperSize: False<br>
><br>
> $ find ~/.config/ ~/.local/ ~/.kde*/ -xdev -type f -exec grep -i -e<br>
> paper -e a4 {} +  2>&1 | less<br>
> (did not find anything revealing)<br>
><br>
> # cat /etc/papersize<br>
> # Simply write the paper name. See papersize(5) for possible values<br>
> (that is the entire file)<br>
><br>
> # paperconf<br>
> letter<br>
><br>
> # lpoptions | tr ' ' '\n' | grep -i -e letter -e a4 -e paper -e size<br>
> #<br>
> (no output)<br>
><br>
> # cat /etc/cups/lpoptions<br>
> cat: /etc/cups/lpoptions: No such file or directory<br>
><br>
> It does not appear that anything is setting an A4 default, yet every<br>
> printer on every computer is defaulting to A4 now. This started a few<br>
> months ago.<br>
><br>
> On Tue, Mar 27, 2018 at 10:47 AM, Stephen Dowdy <<a href="mailto:sdowdy@ucar.edu">sdowdy@ucar.edu</a><br>
</div></div><div><div class="gmail-h5">> <mailto:<a href="mailto:sdowdy@ucar.edu">sdowdy@ucar.edu</a>>> wrote:<br>
><br>
>     Here's a snippet from my internal wiki page on printing<br>
>     troubleshooting...<br>
>     (FWIW, i've battled this type of issue before, sometimes left with<br>
>     just head-scratching :-( )<br>
><br>
>     libpaper<br>
><br>
>     On Linux systems with the libpaper package installed, the system<br>
>     default papersize is stored in /etc/papersize.<br>
><br>
>     You can get the value that will be used in libpapersize supporting<br>
>     applications with:<br>
>         paperconf<br>
><br>
>     or if the paperconf package is not installed....<br>
>         echo ${PAPERSIZE:-$(cat ${PAPERCONF:-/etc/papersize} 2>/dev/null<br>
>     || echo "NO DEFAULT PAPERSIZE")}<br>
><br>
>     I.e you can specify an environment variable PAPERSIZE with a valid<br>
>     paper size (see man -s 5 papersize for valid papersizes, or type<br>
>     'paperconf -a' to list them), or you can specify an override to the<br>
>     system's default papersize configuration file (/etc/papersize) by<br>
>     using the PAPERCONF environment variable to point to a file of your<br>
>     choosing that contains the name of a valid paper size.<br>
>     Other Possible Desktop Environment (DE) configurations<br>
><br>
>     It could be other things setting this value, so you might do:<br>
>         find ~/.config/ ~/.local/ ~/.kde*/ -xdev -type f -exec grep -i<br>
>     -e paper -e a4 {} +  2>&1 | less<br>
><br>
>     To see if there's any standard desktop configurations that refer to<br>
>     "paper" or "a4" (if you're always getting A4 printouts).<br>
>     NOTE: this is likely to generate a LOT of noise<br>
><br>
>     Also, CUPS may be configured to default a Printer to a specific<br>
>     size, either globally or individually.  Try these:<br>
><br>
>     $ lpoptions | tr ' ' '\n' | grep -i -e letter -e a4 -e paper -e size<br>
>     HPOption_PaperPolicy=Scale<br>
><br>
>     $ lpoptions -l | grep -i -e size<br>
>     PageSize/Page Size: *Letter Legal Executive HalfLetter w612h935 4x6<br>
>     5x7 5x8 A4 A5 A6 RA4 B5 B6 W283H425 w553h765 w522h737 w558h774<br>
>     DoublePostcard Postcard Env10 Env9 EnvMonarch EnvISOB5 EnvC5 EnvC6<br>
>     EnvDL Custom.WIDTHxHEIGHT<br>
>     HPBookletPageSize/Paper For Booklet: *Letter Legal Executive<br>
>     HalfLetter w612h935 4x6 5x7 5x8 A4 A5 RA4 B5 B6 W283H425 w553h765<br>
>     w522h737 w558h774 Postcard DoublePostcard<br>
>     HPwmFontSize/Size: pt24 pt30 pt36 pt42 *pt48 pt54 pt60 pt66 pt72<br>
>     pt78 pt84 pt90<br>
><br>
>     add a '-P {printername}' to lpoptions (prior to '-l') to look at<br>
>     settings for specific printers<br>
><br>
>     The options that are '*'-ed are default settings.<br>
><br>
>     --stephen<br>
><br>
>     On 03/27/2018 08:11 AM, Bug Reporter wrote:<br>
>     > I'm not sure how to list all KDE app versions with one command, however, here are the main ones:<br>
>     ><br>
>     > $ plasmashell --version<br>
>     > plasmashell 5.12.3<br>
>     > $ kate --version<br>
>     > kate 17.12.3<br>
>     > $ dolphin --version<br>
>     > dolphin 17.12.3<br>
>     > $ konsole --version<br>
>     > konsole 17.12.3<br>
>     ><br>
>     > I'm running Arch Linux and all packages are up to date. I'm running stable versions of all packages. My Linux kernel version is:<br>
>     > 4.15.10-1-ARCH #1 SMP PREEMPT Thu Mar 15 12:24:34 UTC 2018 x86_64 GNU/Linux<br>
>     ><br>
>     > My CUPS version is 2.2.6<br>
>     ><br>
>     ><br>
>     > On Tue, Mar 27, 2018 at 5:03 AM, Ianseeks<br>
>     <<a href="mailto:bingmybong@btinternet.com">bingmybong@btinternet.com</a> <mailto:<a href="mailto:bingmybong@btinternet.com">bingmybong@btinternet.<wbr>com</a>><br>
</div></div>>     <mailto:<a href="mailto:bingmybong@btinternet.com">bingmybong@btinternet.<wbr>com</a><br>
<div class="gmail-HOEnZb"><div class="gmail-h5">>     <mailto:<a href="mailto:bingmybong@btinternet.com">bingmybong@btinternet.<wbr>com</a>>>> wrote:<br>
>     ><br>
>     >     On Sunday, 25 March 2018 20:00:44 BST Bug Reporter wrote:<br>
>     >     > Starting several months ago, all KDE apps (e.g., Kate) no<br>
>     longer use the<br>
>     >     > system printer settings. For example, in "Kickoff -><br>
>     Computer -> System<br>
>     >     > Settings -> Printer Configuration" I have US letter paper<br>
>     size set.<br>
>     >     > However, Kate and other KDE apps all default to A4 paper<br>
>     size. I can't find<br>
>     >     > a way to change this default, so I have to manually change<br>
>     paper size every<br>
>     >     > single time I need to print.<br>
>     >     I'm not having that problem.<br>
>     >     I set my Printer Configuration to "Letter" and then ran kate,<br>
>     checked its settings and it showed it was set to "Letter", i then<br>
>     changed it back to A4 in the Printer Configuration, reran kate,<br>
>     checked its setting and it showed as A4.<br>
>     ><br>
>     >     ><br>
>     >     > I'm running Arch Linux on several different computers (NUC,<br>
>     laptop, desktop<br>
>     >     > and more). The problem appears on all systems. All packages,<br>
>     including KDE<br>
>     >     > are fully up to date with Arch's most recent packages. The<br>
>     problem has<br>
>     >     > persisted through several updates now. I estimate it has<br>
>     been going on for<br>
>     >     > at least 3 months.<br>
>     >     ><br>
>     >     > Whenever I make a change (such as paper size) using<br>
>     "Configure your<br>
>     >     > printers" in System Settings, I can see the change reflected<br>
>     in the<br>
>     >     > printer's PPD file in /etc/cups/ppd. However, as I said,<br>
>     Kate and other KDE<br>
>     >     > apps ignore that value.<br>
>     >     ><br>
>     >     > Is this a known bug? Is there a work-around?<br>
>     >     ><br>
>     >     > Thank you.<br>
>     >     ><br>
>     >     You might need to list the version levels of the software you<br>
>     are using in case someone else might notice a mismatch ot has the<br>
>     same as you and can check..<br>
>     ><br>
>     >     --<br>
>     >     opensuse:tumbleweed:20180324<br>
>     >     Qt: 5.10.0 KDE Frameworks: 5.44.0 - KDE Plasma:  5.12.3 - kwin<br>
>     5.12.3<br>
>     >     kmail2 5.7.3 - akonadiserver 5.7.3 - Kernel: <br>
>     4.15.11-1-default  - xf86-video-nouveau:  1.0.15<br>
>     ><br>
>     ><br>
>     ><br>
>     ><br>
><br>
><br>
</div></div></blockquote></div><br></div></div></div>