Skip to content

Repository files navigation

Inkjet Printer Clog Guard

Automatically prints test pages at scheduled times using Linux systemd timers to prevent inkjet heads from drying out.

Tested on the Epson EcoTank ET-2850; it should also work with the ET-3850, ET-4850, and similar models.

Installation

Run the setup script with root privileges, specifying your printer's IP address:

sudo ./setup_print_test_page.sh --printer-ip 10.0.1.16

Test your installation to verify it works as expected

Print a test page immediately through the service:

sudo systemctl start print_test_page.service

How to change print frequency

The setup_print_test_page.sh script sets up a Linux service that prints an Epson nozzle check test page on Monday and Friday at noon. I've found this schedule to be sufficient. To increase the print frequency, edit the print_test_page.timer file and replace:

OnCalendar=Mon,Fri 12:00
Persistent=true

with this to print every other day at noon:

OnCalendar=*-*-01/2 12:00
Persistent=true

After making your changes, re-run the setup script with the --force flag to overwrite the existing systemd timer.

Note: I run this service in a Linux container on a home server that runs 24/7. If your computer is powered off for extended periods, your inkjet printer may still clog because scheduled prints are skipped during downtime.

See the last and the next scheduled print time:

systemctl list-timers print_test_page.timer

Changing Printer IP Address

If your printer's IP address changes (e.g., from 10.0.1.16 to 10.0.1.17), update it by running:

sudo ./setup_print_test_page.sh --printer-ip 10.0.1.17 --force

Uninstallation

Run the setup script with the --uninstall flag:

sudo ./setup_print_test_page.sh --uninstall

Show Help

Run the setup script with the --help flag:

./setup_print_test_page.sh --help

Author

Ye

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Automatically prints a test page at scheduled intervals using systemd timers, to avoid inkjet heads from drying out.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages