* [gentoo-user] Re: [was: What can cause printer to crop top of page?] /etc/papersize is ignored
@ 2017-12-27 23:53 99% ` Mick
0 siblings, 0 replies; 1+ results
From: Mick @ 2017-12-27 23:53 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 2652 bytes --]
On Wednesday, 27 December 2017 19:45:04 GMT Mick wrote:
> TLDR: Why is the content of my /etc/papersize being ignored?
Oops! It is not ignored:
$ paperconf
a4
Which leaves my problem unanswered. :-(
> More detail below.
>
> On Friday, 22 December 2017 16:30:06 GMT Mick wrote:
> > On Thursday, 21 December 2017 23:20:24 GMT you wrote:
> > > On Thursday, 21 December 2017 23:01:50 GMT Walter Dnes wrote:
> > > > Is there a default page size setting in your desktop environment
> > > > that
> > > >
> > > > could've changed?
> > >
> > > This problem is happening across different PCs, desktops/DEs and
> > > different
> > > applications. The common factor is they are all using CUPS, the same
> > > brother driver and the default page size of A4.
> > >
> > > I'll have another poke tomorrow into the http GUI of the printer and
> > > then
> > > try to print with MSWindows to see what happens.
> >
> > MSWindows prints fine, just as Linux used to until recently. I printed a
> > portrait layout from Firefox on both MSWindows and Linux.
>
> A number of you hinted at a paper size mismatch - between printer and PC.
> You were correct! I foolishly believed what the cups GUI told me, despite
> some strange behaviour I came across.
>
> In particular, modifying the printer using the cups GUI ends up changing
> *some* of the default paper size fields from "A4" (as shown in the GUI) to
> "Letter" - as shown in this extract of /etc/cups/ppd/HL-3140CW.ppd:
>
> grep Default /etc/cups/ppd/HL-3140CW.ppd
> *DefaultColorSpace: RGB
> *%DefaultOutputOrder: Reverse
> *DefaultPageSize: A4
> *DefaultPageRegion: A4
> *DefaultImageableArea: Letter
> *DefaultPaperDimension: Letter
> [snip ...]
>
> Using the cups GUI to 'Set Default Settings' and (re)selecting "A4" seems to
> work, as far as the ppd file is concerned.
>
> However, when I set the printer's Tray 1 from "Any" size to "A4" using its
> control panel and tried to print a page with:
>
> lpr -o fit-to-page -o media=A4 -P 'HL-3140CW' test_print.txt
>
> the printer started blinking like a Christmas tree with the message:
>
> Size mismatch. Load Letter paper and press Go.
>
> So I looked in /etc/papersize and saw it is "a4":
>
> $ cat /etc/papersize
> a4
>
> Then I checked the $PAPERSIZE and $PAPERCONF variables both of which
> appeared to not being set. Using paperconf to interrogate the default
> setting I got this beauty:
>
> $ paperconf -d
> letter
>
> What the ...?!
>
> So, why is /etc/papersize being ignored?
>
> PS. I noticed my locale has LC_PAPER="en_GB.UTF-8". Not sure if relevant,
> but thought of mentioning it just in case.
--
Regards,
Mick
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [relevance 99%]
Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2017-12-21 14:20 [gentoo-user] What can cause printer to crop top of page? Mick
2017-12-22 16:30 ` Mick
2017-12-27 19:45 ` [gentoo-user] Re: [was: What can cause printer to crop top of page?] /etc/papersize is ignored Mick
2017-12-27 23:53 99% ` Mick
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox