Re: KDE apps not using system printer settings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Mar 27, 2018 at 12:09 PM, Michael Weghorn <m.weghorn@xxxxxxxxx> wrote:
KDE applications use the Qt print dialog and this one is also
responsible for selecting the correct default paper size, which in my
experience works well.

Thank you for your response.
 

Two things that might help to narrow down the problem:

1) Do Non-KDE-Applications (e.g. Firefox or LibreOffice) preselect the
correct paper size?

Yes, Firefox defaults to the correct paper size (letter).


2) Can you post the output of 'lpoptions -p <YOURPRINTERNAME> -l'
(where '<YOURPRINTERNAME>' needs to be replaced by the name of one
printer that is affected?

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
Duplex/Two-Sided: None *DuplexNoTumble DuplexTumble
InputSlot/Paper Feed: Auto Tray1 *Tray2 Tray3 Tray1_Man
MediaType/Media Type: Unspecified *Plain HPEcoSMARTLite HPPremiumPresentationMatte120 HPCoverMatte200 HPBrochureMatte180 HPBrochureGlossy180 HPAdvancedPhotoPapers Light6074 Intermediate8595 MidWeight96110 Heavy111130 ExtraHeavy131175 Cardstock176220 Labels Envelope HeavyEnvelope
HPOption_Tray3/Tray 3: *True False
HPPJLOutputMode/Print Quality: *GeneralOffice Professional Presentation MaximumDPI
HPPJLDryTime/Dry Time: *0 Medium Long
HPPJLSaturation/Saturation: -2 *-1 0 +1 +2
HPPJLInkBleed/Black Ink Spread: Least Less *Default
HPPJLColorAsGray/Print Color as Gray: *False HighQuality BlackInkOnly
HPRGBEmulation/RGB Color: HPRGBEmulationNone *sRGB PhotoSRGB Adobe VividSRGB

 



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


[Index of Archives]     [Trinity (TDE) Desktop Users]     [Fedora KDE]     [Fedora Desktop]     [Linux Kernel]     [Gimp]     [GIMP for Windows]     [Gnome]     [Yosemite Hiking]
  Powered by Linux