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 F0D3D138AE9 for ; Wed, 27 Dec 2017 23:53:23 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 93278E0FC2; Wed, 27 Dec 2017 23:53:18 +0000 (UTC) Received: from mail-wr0-x22a.google.com (mail-wr0-x22a.google.com [IPv6:2a00:1450:400c:c0c::22a]) (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 14863E0F9C for ; Wed, 27 Dec 2017 23:53:17 +0000 (UTC) Received: by mail-wr0-x22a.google.com with SMTP id w107so12125638wrb.9 for ; Wed, 27 Dec 2017 15:53:17 -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=JrT4jhNQIFPK7vXQYD4J3h/nbDGO6ZxSGyuLjLWbXqE=; b=I+SPjW96GFO5Daz1vG0FAwCilJrvg8YhytoYj4yltPnEIYka/6TsU9z8yNJNo1mfFW RmezszsQiaaJBoy5vzujGJcW8q8kegRx+V78kWZ2aX14VT0wQB5EfA9+mju+xuclFWvm 4Nw3OqHPyLtL8SwiCMRGNPsMd1IcvOZGmvf3TWG1XO0IkpkvTTttxAl2qfdbC4ShqBjy Qlq0xOsF8+/6W1Jf7mVH1fvnas9sFC5Mo1mMEnL5YNXPas26iwnJo1UtJiPnFWSxbMri 9zgHyNzq2IWNlCPzkfSfFYyQxmO6iVg/SxrcsEIOFkGj7HYFz1GlWUci1b0ImkPskLvm uGWw== 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=JrT4jhNQIFPK7vXQYD4J3h/nbDGO6ZxSGyuLjLWbXqE=; b=eoNgtzEyt7CM1XpYWMb6Z5eR0gdFdTr3B/QWpk3dZZhWdgX+AuYvt7t/j8BMxeGMlu TqNrlPMXLKoQEWiok4ZzkTenuRZu4De+rS2aQpmaMEpyOU5FvulS/L41cXBesaJk3XaU dNesY450q1Ge7ekJ9SL+R/dy9E9SYurxC9/J7fkwWHBf/qPdcuNC53kz2j2yswXmWRax ezp5HOb/JWPD1wedXCWs4p7UGmSbUaiionUlf2x95o5qcBQoevnE5FQO+0lD4S/xOjuX xk/hjZ4gApw9Djk2muGvmlIkPFwzr8rPwsWS1nQDPqTnoTSIRgh27rQTuim79I+h3e4q Z1bw== X-Gm-Message-State: AKGB3mLTxOu6ibw6T4HQ1h7Hd35taN3hRna0l7TQqWSV7sMOyubsDgeT slMNyam5X+L7VzGEI9AT0CmbyA== X-Google-Smtp-Source: ACJfBosgSCfIAlHOlgnYYOt2xZTkQ93YyvErVFkuyBSehIHIB50GlJktDCWh78x0qlkOXaj3B21Stw== X-Received: by 10.223.153.151 with SMTP id y23mr30844469wrb.130.1514418796579; Wed, 27 Dec 2017 15:53:16 -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 j77sm73724553wmf.36.2017.12.27.15.53.15 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Dec 2017 15:53:15 -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 23:53:19 +0000 Message-ID: <2021526.gIRLVxtGWa@dell_xps> In-Reply-To: <2699658.69ZC6tcFIL@dell_xps> References: <9349542.N0JEzlDTSJ@dell_xps> <7013740.aAuJmxSvKy@dell_xps> <2699658.69ZC6tcFIL@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="nextPart2435838.HO3ulhR5jy"; micalg="pgp-sha256"; protocol="application/pgp-signature" X-Archives-Salt: c1b1aa94-8356-4fc5-bbe3-98de2e028e61 X-Archives-Hash: a14c4e1dbb926128f0ed1be4eb8c393d --nextPart2435838.HO3ulhR5jy Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8" 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 --nextPart2435838.HO3ulhR5jy Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEt7MNaGaS6HvTUrEz6WnU8jC95dcFAlpEMm8ACgkQ6WnU8jC9 5deKXRAAk0qYqKLIJ9JAuDdr0tCNwgbi2D3vlyLAd8ZomYGm041g7RSbuLU5IH+k qQ/SngiDuqrYfE/rgoym580laa11wsffeSRdaLCi2k7pS+3NL+5idw6bRm7PC8lD Xp9stDwLNBvDd0IOjug6gmM55xnjsbv/4QNAVLZRZW9oAY7c1i3rcHN8zERvFLOw 2qgSBCOaVcJnV2J3AgXj2Ps59uKlg8yysAO9p3Wdh5c48dKQS3So7yvbJQi38Mud 4FoJbEnwBu/QnGllAwf0pWIekPVqADjCJCb28/v5E5wcEVmWqHRGZGo5x1A/Trq0 4V4gfyEJy2ENQ6TDT083bgdBr8fwz03Fe5Fp974dDfN+Glv9em/6Z90BOLpygQGc vu5RHsgZA4SIdSdF1tDPf3p1ge7X4nmBZMLDOrlW/oius22CrFoiH66dphp4sQia adVA6rzXnaWo8fslqfCQWyOL4yfvAZYgvuVfeE2rrH93i6y3s6Yjjwkyb00Ml8wc /Z8sqYcV4QR5jgMmODsqvLCHmsYmtuSG75o4zomQUu+acjlHM46/hPASWrYhpN5v uw6o6OMcRulqmxO8pP6LoKTCipOTwQtQMiJXbVpVcAUmhL06j8aPLYpO33a4aG1K nWsDq5Uuto9voWGZfCEugn9b0176rrwHM6ZGMIMBeHrdXCABPOg= =A5ve -----END PGP SIGNATURE----- --nextPart2435838.HO3ulhR5jy--