I want to execute cmatrix in my TTY for when I connect my Raspberry Pi to a monitor by default. I found a .service file here, and I'm wondering if it could work in my case.

Again, I just want cmatrix to run automatically on boot before the TTY login, but when I press q, the TTY login shows up, and that's about it.

Can the answer linked above work for me before I screw up my system?

  • Please post the full script you are using here, if it is not identical to the one in your link as well as the file name and current directory your script is located in.
    – iyrin
    Jul 31, 2022 at 9:50

1 Answer 1


Yes, I had same needs with my Raspberry 3B and 3.5" monitor that doesn't go on screen blank.

Create the file


and give execute permissions

chmod ug+x /root/loginMatrix.sh

create the file

/etc/systemd/system/[email protected]/override.conf

with the following content


then activate it

systemctl daemon-reload; systemctl restart [email protected]

or reboot.

You'll have cmatrix as screen saver, and just press a key to have login prompt. Doing CTRL+D to exit from session and you'll see cmatrix again.

enter image description here

  • I've been searching so long to no avail. Thank you!
    – Misery
    Mar 7, 2023 at 16:41

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .