LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-23-2009, 09:29 AM   #1
arizonagroovejet
Senior Member
 
Registered: Jun 2005
Location: England
Distribution: openSUSE, Fedora, CentOS
Posts: 1,094

Rep: Reputation: 198Reputation: 198
Default paper size for new printers


Using SLED 11 (basically openSUSE 11.1 with different branding), if I set up a new printer the paper size is set to Letter. This is irritating because I live somewhere we don't use Letter, we use A4. I am unable to figure out how to make new printers default to A4.

The only place I can find where a default paper size is defined is

Code:
me@foo:~> cat /etc/papersize 
a4
and that as you can see already says A4. I've found references to CUPS setting the default paper size based upon the locale, but my locale is, far as I can tell, set to en_GB.

Code:
me@foo:~> env | grep LANG
LANG=en_GB.UTF-8
GDM_LANG=en_GB.UTF-8
me@foo:~> grep LANG /etc/sysconfig/language  | grep -v ^#
RC_LANG="en_GB.UTF-8"
ROOT_USES_LANG="ctype"
INSTALLED_LANGUAGES="en_GB"
Which to my mind means that if CUPS does look at the locale, it should be getting A4. I also tried looking at some of the drivers to see if they specify a default page size. Earlier on today I set up a HP LaserJet 1200 and it defaulted to Letter paper. If I look at the driver I find:

Code:
me@foo:~> zgrep DefaultPageSize /usr/share/cups/model/manufacturer-PPDs/hp/HP_LaserJet_1200.ppd.gz 
*DefaultPageSize: A4
me@foo:~> zgrep DefaultPageSize /usr/share/cups/model/manufacturer-PPDs/hplip/HP_LaserJet_1200-ps.ppd.gz
*DefaultPageSize: A4
Despite all this, CUPS still sets up new printers to use Letter paper by default. Anyway know how to get CUPS to set up a new printer to use A4 by default?
 
Old 10-23-2009, 10:36 PM   #2
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Bookworm (Fluxbox WM)
Posts: 1,391
Blog Entries: 54

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360
Quote:
This is irritating because I live somewhere we don't use Letter, we use A4.
Yep, annoying.

Not sure I can be much help, but for what it is worth:

An application to look at is paperconf from the libpaper-utils. However, it just works with the environment variables PAPERCONF and PAPERSIZE, and /etc/papersize.

You can show the current locale paper size by:
Code:
locale LC_PAPER
You can override the locale paper size (though you shouldn't need to for your locale), by setting LC_PAPER="POSIX" (eg in /etc/environment).

Apparently the new CUPS version (1.4) will have a way of setting a default paper size to override these.

Last edited by neonsignal; 10-23-2009 at 10:39 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
print A4-size pdfs to letter-size paper linuxqueric Linux - Newbie 2 09-30-2008 04:30 PM
Setting default paper size for printing? Dox Systems - Brian Solaris / OpenSolaris 3 02-27-2008 03:16 PM
A Printing Question on default paper size steve_f60 Linux - General 1 08-18-2005 04:36 PM
new paper size abs Slackware 1 02-07-2004 08:42 PM
9.2 refuses to change default paper size! thas Mandriva 0 01-12-2004 09:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration