From Patrick.Begou@hmg.inpg.fr Wed Feb 8 14:26:22 2012 From: Patrick Begou To: autoinstall@lists.opensuse.org Subject: [opensuse-autoinstall] Printer config with autoyast Date: Wed, 08 Feb 2012 15:26:15 +0100 Message-ID: <4F328607.4040900@hmg.inpg.fr> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7015473995729112021==" --===============7015473995729112021== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On all my OpenSuse 11.4 client installed with Autoyast I have some trouble wi= th=20 printers. Applications like evince or firefox cannot understand printers options. Ex: I'm unable to set two-sided printing from these applications, the two-sid= ed=20 menu is greyed, the paper format is not set to A4 but to letter.. etc. Printers are set with these lines in my autoyast file: Runing "lpoptions -p laser5M -l" on these Autoyast configured PC and mine installed from OpenSuse DVD do not s= how=20 any difference, they all have PageSize/Page Size: Letter LetterSmall Executive Legal LegalSmall *A4 A4Small= A5=20 B5 w612h935 ..... HPOption_Duplexer/Duplex Unit: *True False HPOption_PaperPolicy/Fit to Page: PromptUser *NearestSizeAdjust NearestSizeNo= Adjust Duplex/2-Sided Printing: None *DuplexNoTumble DuplexTumble Any idea about this strange behavior with autoyast configured boxes ? Thanks Partrick --=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D | Equipe M.O.S.T. | http://most.hmg.inpg.fr | | Patrick BEGOU | ------------ | | LEGI | mailto:Patrick.Begou(a)hmg.inpg.fr | | BP 53 X | Tel 04 76 82 51 35 | | 38041 GRENOBLE CEDEX | Fax 04 76 82 52 71 | =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --=20 To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe(a)opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner(a)opensuse.org --===============7015473995729112021==-- From ug@suse.de Thu Feb 9 09:34:24 2012 From: Uwe Gansert To: autoinstall@lists.opensuse.org Subject: Re: [opensuse-autoinstall] Printer config with autoyast Date: Thu, 09 Feb 2012 10:34:19 +0100 Message-ID: <4F33931B.10409@suse.de> In-Reply-To: <4F328607.4040900@hmg.inpg.fr> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3679094115336656277==" --===============3679094115336656277== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit On 08.02.2012 15:26, Patrick Begou wrote: > On all my OpenSuse 11.4 client installed with Autoyast I have some > trouble with printers. you don't see that with a manual installation? Maybe this helps: http://en.opensuse.org/SDB:Print_Settings_with_CUPS but I don't know. I have no clue about printers but I don't expect it to be an autoyast problem. -- ciao, Uwe Gansert SUSE LINUX Products GmbH, HRB 16746 (AG Nürnberg) GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer Home: http://www.suse.de/~ug - Blog: http://suse.gansert.net listening to: "Remember" by mind.in.a.box -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe(a)opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner(a)opensuse.org --===============3679094115336656277==-- From jsmeix@suse.de Thu Feb 9 14:08:38 2012 From: Johannes Meixner To: autoinstall@lists.opensuse.org Subject: Re: [opensuse-autoinstall] Printer config with autoyast Date: Thu, 09 Feb 2012 15:08:36 +0100 Message-ID: In-Reply-To: <4F33931B.10409@suse.de> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1701655233394921504==" --===============1701655233394921504== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Hello, On Feb 9 10:34 Uwe Gansert wrote: > On 08.02.2012 15:26, Patrick Begou wrote: > >> On all my OpenSuse 11.4 client installed with Autoyast I have some >> trouble with printers. > > you don't see that with a manual installation? > Maybe this helps: > http://en.opensuse.org/SDB:Print_Settings_with_CUPS > but I don't know. I have no clue about printers > but I don't expect it to be an autoyast problem. I like to provide some background information why I think it is not an issue in AutoYaST and probably also not an issue in CUPS but an issue in the particular applications. On 08.02.2012 15:26, Patrick Begou wrote: > Applications like evince or firefox cannot understand > printers options. > Ex: I'm unable to set two-sided printing from these > applications, the two-sided menu is greyed, the paper format > is not set to A4 but to letter.. etc. ... > Runing "lpoptions -p laser5M -l" ... > PageSize/Page Size: Letter ... *A4 A4Small > HPOption_Duplexer/Duplex Unit: *True False ... > Duplex/2-Sided Printing: None *DuplexNoTumble DuplexTumble >From what you wrote I assume it works with other applications. Does the printing menue work in other applications? In particular applications which do not use Gnome/Gtk printing. Perhaps only the Gnome/Gtk printing dialog has the issue? E.g. you may try the Adobe Reader (acroread). In particular when printing with the defaults works from the commandline e.g. print the 2-pages yast2-printer testpage with $ lp -d laser5M /usr/share/YaST2/data/testprint.2pages.ps I assume the printout is on A4 paper in "DuplexNoTumble" mode. If this is true, the print-queues are set up correctly for CUPS and then the issue is "something inside" the applications, see http://en.opensuse.org/SDB:Print_Settings_with_CUPS ------------------------------------------------------------ There is no such thing as "THE" default settings for a print queue. ------------------------------------------------------------ Alternatively - only a guess - it might be related to https://bugzilla.novell.com/show_bug.cgi?id=732442 I.e. check if the printing output of evince and firefox is PostScript or PDF. To do this, disable printing for the print queue # cupsdisable laser5M and print from those applications. Then check the print spool data files /var/spool/cups/d- if it is PostScript or PDF. Afterwards you can re-enable printing for the print queue # cupsenable laser5M Kind Regards Johannes Meixner -- SUSE LINUX Products GmbH -- Maxfeldstrasse 5 -- 90409 Nuernberg -- Germany HRB 16746 (AG Nuernberg) GF: Jeff Hawn, Jennifer Guild, Felix Imendoerffer -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe(a)opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner(a)opensuse.org --===============1701655233394921504==-- From Patrick.Begou@hmg.inpg.fr Fri Feb 10 15:36:01 2012 From: Patrick Begou To: autoinstall@lists.opensuse.org Subject: Re: [opensuse-autoinstall] Printer config with autoyast [Solved] Date: Fri, 10 Feb 2012 16:35:48 +0100 Message-ID: <4F353954.3050901@hmg.inpg.fr> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0249847508127953951==" --===============0249847508127953951== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Thanks Johannes and Uwe for these very usefull informations. Indeed, the problem is not directly an autoyast problem, it is autoyast relat= ed=20 as with autoyast I have to create printers from command line instead of yast = GUI. The problem was that I haven't fully understood cups behavior. Applications like firefox, evince.... seam to rely on the=20 /etc/cups/ppd/.ppd file for selecting printing options. The lpadm= in=20 command is used to set correct values for the queue and the result is stored = in=20 this file. I was using lpadmin to create the queue but I was also using=20 lpoptions command to specify some behavior (paper size, duplex....). This las= t=20 command modify /etc/cups/lpotions file where these informations are also stor= ed=20 but nor firefox nor evince seams to rely on this file. With autoyast the solution is to create printers and set options only with th= e=20 lpadmin command. For a HP laserjet 4050, the printer is created with: ........... ......... 1) starts cups if it is not running 2) lpadmin create the queue 3) lpadmin sets the options for this queue (duplex, A4, hard disk, memory....) 4) lpadmin sets this queue as default and lpoptions is not used at all. Thanks for your usefull advices. Patrick --=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D | Equipe M.O.S.T. | http://most.hmg.inpg.fr | | Patrick BEGOU | ------------ | | LEGI | mailto:Patrick.Begou(a)hmg.inpg.fr | | BP 53 X | Tel 04 76 82 51 35 | | 38041 GRENOBLE CEDEX | Fax 04 76 82 52 71 | =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --=20 To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe(a)opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner(a)opensuse.org --===============0249847508127953951==-- From jsmeix@suse.de Fri Feb 10 16:14:00 2012 From: Johannes Meixner To: autoinstall@lists.opensuse.org Subject: Re: [opensuse-autoinstall] Printer config with autoyast [Solved] Date: Fri, 10 Feb 2012 17:13:59 +0100 Message-ID: In-Reply-To: <4F353954.3050901@hmg.inpg.fr> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6693520790989530622==" --===============6693520790989530622== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hello, On Feb 10 16:35 Patrick Begou wrote (excerpt): > Applications like firefox, evince.... seam to rely on the=20 > /etc/cups/ppd/.ppd file for selecting printing options. The=20 > lpadmin command is used to set correct values for the queue and the result = is=20 > stored in this file. I was using lpadmin to create the queue but I was also= =20 > using lpoptions command to specify some behavior (paper size, duplex....). = > This last command modify /etc/cups/lpotions file where these informations a= re=20 > also stored but nor firefox nor evince seams to rely on this file. FYI, regarding other kind of unexpected behaviour when /etc/cups/lpoptions exists you may have a look at http://en.opensuse.org/SDB:Print_Settings_with_CUPS in particular: --------------------------------------------------------------------- Suggestion for Keeping an Overview Do not define general presettings separately on each machine. Set the default values in the PPD file: * If possible, do not use any /etc/cups/lpoptions files. * If possible, do not execute the command "lpoptions" as "root" on each machine. Instead, execute the command "lpadmin" on the CUPS server.=20 --------------------------------------------------------------------- Kind Regards Johannes Meixner --=20 SUSE LINUX Products GmbH -- Maxfeldstrasse 5 -- 90409 Nuernberg -- Germany HRB 16746 (AG Nuernberg) GF: Jeff Hawn, Jennifer Guild, Felix Imendoerffer --=20 To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe(a)opensuse.org To contact the owner, e-mail: opensuse-autoinstall+owner(a)opensuse.org --===============6693520790989530622==--