Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm running suse 12.1x86 (Gnome 3) with cups 1.5.x (guessing, I'm not at my pc right now). We have a network-connected Xerox printer and recently we changed its IP.

Connection to the printer was configured through socket like: socket://1.1.1.1:9100/. I was changing IP in my configuration "the lazy way" - editing the configs. I did following:

  1. stopped cups
  2. edited printers.conf and printers.conf.0 and changed socket://1.1.1.1:9100 to socket://2.2.2.2:9100
  3. started cups
  4. checked if change went ok (it did)

With the old configuration everything was working superb. After I changed the IP, my cups keeps telling me I have selected "US Letter" paper format (I was using and want to use A4). Also apps like LibreOffice and gedit default to "US Letter" and even if I change the settings in them directly it doesn't work - they immediatelly back from "A4" to the "US Letter". But when I look into cups web interface on localhost:631 everything is set to the "A4" and correct.

I also tried reinstalling cups by deleting:

/etc/cups/*

/var/spool/cups

/var/log/cups

and reinstalling through zypper in --force cups with no effect. Do you have any ideas where I should look now? (Needles to say i tried to delete and create printer, reconfigure it through web interface and those obvious things.)

share|improve this question

2 Answers 2

up vote 0 down vote accepted

I found a workaround to this.

I edited the ppd file of the printer (/etc/cups/ppd/...) and changed the line

*OrderDependency: 60.0 AnySetup *PageSize

to

*OrderDependency: 60.0 *PageSize AnySetup

(The default page size is set to A4.) It will cause problems if I wanted to print on any other paper than A4 - which I won't so this is kinda sufficient solution for me.

share|improve this answer

Check the contents of the file /etc/papersize editing to add a single line containing the page size as "a4" without the quotes which should then get A4 as the default printer page size for all applications including Libreoffice. Also there are the commands "paperconf", "papersize" and "paperconfig" so have a look at their man pages.

For the printer itself try using a browser to go to localhost:631 which should get you to the cups management interface and then click the printers tab, and then manage the printer concerned. From here it should be possible to change the default printer page size to A4.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.