From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 228EC138AE9 for ; Wed, 27 Dec 2017 19:45:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 21B00E0E7A; Wed, 27 Dec 2017 19:45:05 +0000 (UTC) Received: from mail-wm0-x234.google.com (mail-wm0-x234.google.com [IPv6:2a00:1450:400c:c09::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A0E57E0C3F for ; Wed, 27 Dec 2017 19:45:04 +0000 (UTC) Received: by mail-wm0-x234.google.com with SMTP id i11so40722450wmf.4 for ; Wed, 27 Dec 2017 11:45:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:reply-to:subject:date:message-id:in-reply-to:references :mime-version; bh=NJMza2PnDh9r6Ic9x2PmD8+1KG95L1bgqZBjHGECuDk=; b=CHOPLVKfur+2zNeNQ/eY3CIzfZm4mUntqVUaJXsKlT+uZ4qxv3j8iS2V8T245d/qay 3/JNzkoi2nNLs33BMvDBSBBR4R9rtpmbkZ5nCXnYpo4H7zOMnvGXptg9ZKEEK+BdwZ93 voHILvf0z/SMp1ZLXRjWG5AJReFHRDaGyW1WIAPLMDMh9JTPUwtno5PTVIG9H4a6oDLU uC8xX7YrhIJUlXC12FRm75qheS5QIu5iiBLZt+ephK55IQsT6UISjT3e/q6jfwuHPYxK UyDQZEMrPdWzxesdEuXDI6tr+J2qHgnsYWdmt0wa6U1oq/HkOIRPNI4PrvLn15Br4a9Q mnwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:reply-to:subject:date:message-id :in-reply-to:references:mime-version; bh=NJMza2PnDh9r6Ic9x2PmD8+1KG95L1bgqZBjHGECuDk=; b=KrDHg3xgv3ka0YIYLAutEtyWSASbTyP+gCr/DoCXuh4sYBPtPRqeXOGbzTrXp88wUQ /xx9QTpxkmceyJDmv3PZkvgwdl3mB7oupshPQ33pPx+/v7g8SDMe4jHpEcu16iP8jV9p 077jRmIrS2OgjKf6xKsPxjgw+4sTRS3q8W/lP39UacgXtQHKubMToJgnoqVIYM93IdYr V/ctd14yHMPiyO85x0t33b1thbojlpQZFLIVK5OvvODD24nWx1derfFJv5tonr1R0Jli qbs/8z+haj9u7v40n2+AWI/qacWcEYW7yB4gxK+FJhvH37Ct/kyKtrRkoB2nzVG6x+2d sRMw== X-Gm-Message-State: AKGB3mK7yd7lG+nBmy0MTZA3RoCYMJUBCtfbf5amgrBMz2JZMVI9BhR5 OAXeAxWZEwS1xA+pXCxtmvdVLA== X-Google-Smtp-Source: ACJfBoug+lnI+fjomg3xOKvBIhit4luvxVG/1lcksTvB0o9CY5PWL58kvmtuddG2ynUNZ4cnWc0hhQ== X-Received: by 10.28.37.3 with SMTP id l3mr23873350wml.66.1514403902978; Wed, 27 Dec 2017 11:45:02 -0800 (PST) Received: from dell_xps.localnet (230.3.169.217.in-addr.arpa. [217.169.3.230]) by smtp.gmail.com with ESMTPSA id e20sm30771603wre.6.2017.12.27.11.45.01 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Dec 2017 11:45:02 -0800 (PST) From: Mick 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 Message-ID: <2699658.69ZC6tcFIL@dell_xps> In-Reply-To: <7013740.aAuJmxSvKy@dell_xps> References: <9349542.N0JEzlDTSJ@dell_xps> <2214662.uQP7GbodpD@dell_xps> <7013740.aAuJmxSvKy@dell_xps> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart3619319.HWKEqNxdlJ"; micalg="pgp-sha256"; protocol="application/pgp-signature" X-Archives-Salt: 5d588a92-ab6e-4d54-8f7c-3cf19cd00e52 X-Archives-Hash: c381832c11fde256197caa119f970d83 --nextPart3619319.HWKEqNxdlJ Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8" 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 --nextPart3619319.HWKEqNxdlJ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEt7MNaGaS6HvTUrEz6WnU8jC95dcFAlpD+EAACgkQ6WnU8jC9 5dc5bg/8Dygwq1+e8ZQTkwUEW4CHjaNI2aXEW+4puvwpl71KufP4PTSoF2+5DHsL mZlGVMT6QlBRt016V7/d83Xmmy+KC2+SOZnKhjNhfwhv4CLBiM5uqrPvlQ+pCMP+ sGMD3VoY8nohQp9p26UeqLEIFBBCCdreee7K3ydeu31PrsbgqUU2bNuiPYhyyfdd nvcuBsJ/FaarbOp2x8yomQpGAX9lKORZs5aLlXPmDJ4X0z+XfjA9QYDhXP/srl73 kA4yPO+TeWvFnp/ajMEkmVFJJccvZXFXxzUVDgJ2zJkl/RR6e+VMsfePCR5iH+Xb ZWaMoTFhNrGmiB8T9mk41sKvDGu+oTJxLIj3T6LbDlWZL1lrBnfr7iGQ9t9UlW8B ZnWY+Cfj1UX933hf0n4gGWMTACcAqr3KkVvEfasiPI0cOjlXK7tEonl96mg9ZXho HXbqj1Bu6tJ564f+qQOO22P5bW3bEBk3URyaOmTiTEZH4plAEDUKatm9nSSa+9n0 Q4XS5As+pkA5f4jXdjo+kR55peXWC29gTEFAP4FJ4j/Jt9y9Rb0/VVz7JP2rLWFF KA17SaX4SViS+FxPzKi/30DD8sTbtAVo/NWvZssMeHhSAqQy1Xt2nrrkp42NDSZA bcMTWN3WPmzJzHeOAMkO7cs9urgk0tXlgC/vzLUi/7vIeEgXM7k= =RZxT -----END PGP SIGNATURE----- --nextPart3619319.HWKEqNxdlJ--