Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add toner density adjustment option #12

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jaseg
Copy link

@jaseg jaseg commented Feb 21, 2024

I just got a brand new HL-1110, and when printing text set in a serif font, the print quality looked like ass. I found a toner density adjustment in the Windows driver, and after some USB capture and comparison with some PPDs from brother's drivers for other brother printers I added an adjustment to this driver.

Here's one of brother's PPDs for another printer with the same setting:
https://github.com/pathakh/brotherCups/blob/552710c340ebb4c9b54fd0753134e34973a26d24/brother/ppd/BRP7000E_GPL.PPD#L447

...and here's the PJL header of a print job that has the density set to +3 (darker) as sent by brother's latest (five year old) Windows driver:

·%-12345X@PJL 
@PJL SET REPRINT=OFF
@PJL SET HOLD=OFF
@PJL SET USERNAME="jaseg" 
@PJL SET JOBNAME="Developing non-interactive MPC with trusted hardware for enhanced security" 
@PJL JOB NAME="Developing non-interactive MPC with trusted hardware for enhanced security" 
@PJL PRINTLOG ITEM = 1,PRINTER
@PJL PRINTLOG ITEM = 2,Wed,21 Feb 2024 18:15:09
@PJL PRINTLOG ITEM = 3,jaseg
@PJL PRINTLOG ITEM = 4,BIGDATA
@PJL SET JOBTIME = "20240221181509" 
@PJL SET STRINGCODESET=HPROMAN8
@PJL SET ECONOMODE=OFF
@PJL SET MEDIATYPE=REGULAR
@PJL SET DENSITY=3
@PJL SET DEVBIASADJUST=3
@PJL SET LESSPAPERCURL=OFF
@PJL SET FIXINTENSITYUP=OFF
@PJL SET TRANSFERLEVELUP=ON
@PJL SET TRANSFERLEVEL=0
@PJL SET RESOLUTION=600
@PJL SET HQMMODE=OFF
@PJL ENTER LANGUAGE=PCL

erooke and others added 3 commits August 27, 2023 19:49
**Printer Entry**:
````
Device: uri = usb://Brother/HL-5370DW%20series?serial=C2J486800
        class = direct
        info = Brother HL-5370DW series
        make-and-model = Brother HL-5370DW series
        device-id = MFG:Brother;CMD:PJL,PCL,PCLXL;MDL:HL-5370DW series;CLS:PRINTER;
        location =
````

**Verified**:
- [x] test page printed
- [x] tested 300dpi
- [x] tested 600dpi
- [x] tested 1200dpi
- [x] texted simplex <!-- single-sided printing -->
- [x] tested duplex  <!-- if applicable -->

**Additional notes**:
Contrary to the other printers the duplex directive had to be set to
normal to get correct duplex printing to work.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants