LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Ricoh Aficio MP 7502 User Code Driver Fix (https://www.linuxquestions.org/questions/linux-hardware-18/ricoh-aficio-mp-7502-user-code-driver-fix-4175482190/)

Aqua_Regia 10-25-2013 03:12 PM

Ricoh Aficio MP 7502 User Code Driver Fix
 
This is for anyone else that had the same problem. Yesterday I tried to print to a Ricoh Aficio MP7502 that had user codes enabled. I used the system-printer-config utility in ubuntu however the driver installed would not allow custom user codes and only have arbirtary values in the drop down menu. I went to openprinting.org and downloaded the PPD file for the printer. Around line 700 I edited to the correct user code for the printer and was sucessfully able to submit print jobs. In the file;

Code:

*OpenUI *UserCode/User Code (up to 8 digits): PickOne
*FoomaticRIPOption UserCode: string JCL A
*FoomaticRIPOptionMaxLength UserCode:8
*FoomaticRIPOptionAllowedChars UserCode: "0-9"
*OrderDependency: 255 AnySetup *UserCode
*FoomaticRIPOptionPrototype UserCode: "SET USERCODE="%s""
*DefaultUserCode: None
*UserCode None/None: ""
*UserCode 1234/1234: "%% FoomaticRIPOptionSetting: UserCode=1234"
*FoomaticRIPOptionSetting UserCode=1234: "SET USERCODE="1234""
*UserCode 1234/1234: "%% FoomaticRIPOptionSetting: UserCode=1234"
*FoomaticRIPOptionSetting UserCode=1234: "SET USERCODE="1234""
*UserCode 1234/1234: "%% FoomaticRIPOptionSetting: UserCode=1234"
*FoomaticRIPOptionSetting UserCode=1234: "SET USERCODE="1234""
*CloseUI: *UserCode
*CustomUserCode True/Custom UserCode: "@PJL SET USERCODE=&quot;\1&quot;<0A>"
*ParamCustomUserCode UserCode: 1 password 1 8

I edited the values where "1234" appers in the code snipit to the correct user code and loaded the driver in the system-configure-printer utility. Now the correct user codes showed up in the drop down menu and the print job worked!


All times are GMT -5. The time now is 04:03 PM.