public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Mick <michaelkintzios@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] Re: [was: What can cause printer to crop top of page?] /etc/papersize is ignored
Date: Wed, 27 Dec 2017 19:45:04 +0000	[thread overview]
Message-ID: <2699658.69ZC6tcFIL@dell_xps> (raw)
In-Reply-To: <7013740.aAuJmxSvKy@dell_xps>

[-- Attachment #1: Type: text/plain, Size: 2357 bytes --]

TLDR: Why is the content of my /etc/papersize being ignored?

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 --]

  reply	other threads:[~2017-12-27 19:45 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-21 14:20 [gentoo-user] What can cause printer to crop top of page? Mick
2017-12-21 15:16 ` tuxic
2017-12-21 18:00   ` Mick
2017-12-21 17:01 ` Jack
2017-12-21 18:28   ` Mick
2017-12-21 21:18     ` Mick
2017-12-21 21:24       ` Jack
2017-12-21 22:35         ` Mick
2017-12-21 22:46           ` Jack
2017-12-21 23:01           ` Walter Dnes
2017-12-21 23:20             ` Mick
2017-12-22 16:30               ` Mick
2017-12-27 19:45                 ` Mick [this message]
2017-12-27 23:53                   ` [gentoo-user] Re: [was: What can cause printer to crop top of page?] /etc/papersize is ignored Mick
2017-12-28  6:14                   ` Taiidan
2017-12-29 13:51                     ` Mick
2017-12-29 13:57                       ` Alan Mackenzie
2017-12-29 14:30                         ` Peter Humphrey
2017-12-29 15:01                           ` Mick
2017-12-29 16:13                           ` Alan McKinnon
2017-12-29 16:45                             ` Wols Lists
2017-12-30  0:44                               ` Peter Humphrey
2017-12-30 12:55                                 ` Alan McKinnon
2017-12-30 14:32                                   ` Wols Lists
2017-12-30 15:33                                     ` Neil Bothwick
2017-12-31  2:26                                     ` Peter Humphrey
2017-12-31 10:34                                       ` Neil Bothwick
2017-12-31 11:11                                         ` Wols Lists

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2699658.69ZC6tcFIL@dell_xps \
    --to=michaelkintzios@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox