Bug 219914
Description
Alessandro Volpi
2006-12-16 10:59:33 UTC
Created attachment 143844 [details]
the alignmargins script
Created attachment 143845 [details]
the printer setup page used by the alignmargins script
Created attachment 143846 [details]
the console output page produced by alignmargins
I have just seen that the title of the Bug contains a bug ! The preposition "with" should not have been included in the title. I apologize for the error but I have no idea about the way to amend the title of a bug. What does 'lpoptions -p 1' say? Created attachment 143953 [details]
The set_printer_options script creates aseveral instances for printer p1
Created attachment 143955 [details]
This script creates special instances of printer in $1
*** This command results in a null output *** [~]#lpoptions -p 1 [~]#lpoptions -p p1 job-sheets=none,none printer-info=Epson_Stylus_C86 printer-is-accepting-jobs=1 printer-is-shared=1 printer-make-and-model='Epson Stylus C82 Foomatic/gimp-print-ijs (recommended)' printer-state=3 printer-state-change-time=1166480005 printer-state-reasons=none printer-type=167948 cpi=12 scp-fc5=true lpi=7 page-bottom=86page-left=57 page-right=57 page-top=72 scaling=100 wrap=true *** This command line causes lpoptions to print the default option for p1 *** [~]# [~]#set_printer_opt p1 *** This command invokes the (attached) set_printer_options script The script worked perfectly under RHEL4 and many other distributions and also under FC5 as it was originally installed (before the updates) The script seems to work perfectly also now, since it succesfully creates the required printer instances, but has no influence on the cups test page printout. Two example of printer instances created by the script are reported in the following lines *** [~]#lpoptions -p p1 job-sheets=none,none printer-info=Epson_Stylus_C86 printer-is-accepting-jobs=1 printer-is-shared=1 printer-make-and-model='Epson Stylus C82 Foomatic/gimp-print-ijs (recommended)' printer-state=3 printer-state-change-time=1166480005 printer-state-reasons=none printer-type=167948 cpi=12 scp-fc5=true lpi=8 page-bottom=55page-left=75 page-right=40 page-top=67 scaling=100 wrap=true media=A4 [~]#lpoptions -p p1/l job-sheets=none,none printer-info=Epson_Stylus_C86 printer-is-accepting-jobs=1 printer-is-shared=1 printer-make-and-model='Epson Stylus C82 Foomatic/gimp-print-ijs (recommended)' printer-state=3 printer-state-change-time=1166480005 printer-state-reasons=none printer-type=167948 cpi=12 scp-fc5=true lpi=8 page-bottom=34page-left=25 page-right=25 page-top=75 scaling=100 wrap=true media=A4 landscape=true So comparing the 'lpoptions -p p1' output before set_printer_opt and after, it seems as though something is resetting your page-top (etc) back after printing. Since this is FC-5 my first guess is that it's printconf-backend. So please attach the output of 'printconf-tui --Xexport', taking sure to replace any passwords for remote printers it may contain. Created attachment 145745 [details]
Output of the 'dmesg' command
Created attachment 145746 [details]
output of command 'printconf-tui --Xexport'
You are probably right. The system startup procedure results in some diagnostics about the SElinux audit on cupsd startup and printconf-backend plays a role in said audit. A copy of the output of the 'dmesg' command is attached. The output of 'printconf-tui --Xexport is also attached. I would like to point-out that the printer does not behave as it should, even before the special options and printer instances of the set_printer_options script are set on the system. The execution of the script does not change anything in the printer margin setting : it is wrong before the execution of the script and continues to be wrong in the same way after the script has been executed. Thanks. Alessandro Since Fedora 6 we no longer manipulate the page margins in this way and so this should no longer be a problem, at least not in the same way. |