Page 1 of 1

[SOLVED] Console font resets to default after reboot

Posted: Mon May 18, 2020 2:01 pm
by suavedandy
I wanted to change the font to terminus. I edited /etc/default/console-setup, rebooted and everything worked fine. Next day I boot up my lvptop and see that my font went back to default. Tried doing everything from the beginning to no avail. Please, help.

Re: Console font resets to default after reboot

Posted: Mon May 18, 2020 2:11 pm
by Head_on_a_Stick
suavedandy wrote: Mon May 18, 2020 2:01 pmI edited /etc/default/console-setup
It would be nice to know the exact nature of your editing.

Does this method work any better:

Code: Select all

sudo dpkg-reconfigure console-setup

Re: Console font resets to default after reboot

Posted: Tue May 19, 2020 3:04 pm
by suavedandy
Head_on_a_Stick wrote: Mon May 18, 2020 2:11 pm
suavedandy wrote: Mon May 18, 2020 2:01 pmI edited /etc/default/console-setup
It would be nice to know the exact nature of your editing.

Does this method work any better:

Code: Select all

sudo dpkg-reconfigure console-setup
This time the changes didn't need a reboot but were lost after a reboot regardless. It appears that setupcon changes the font only after you make changes to /etc/default/console-setup and reboot or call setupcon directly or inderectly (such as through dpkg-reconfigure).

Re: Console font resets to default after reboot

Posted: Tue May 19, 2020 3:28 pm
by suavedandy
I also checked whether that's the issue with me using BtrFS with compression and encryption at the same time. Reinstalled with no encryption or compression. Same results.

Re: Console font resets to default after reboot

Posted: Tue May 19, 2020 5:13 pm
by Head_on_a_Stick
This seems to be due to a bug in the console-setup-linux package. It supplies /etc/init.d/console-setup.sh and the post install script tries to enable it but that doesn't work for files with a .sh suffix. Fortunately your box should still have /etc/init.d/console-setup from the live system so you can get things working by running

Code: Select all

sudo update-rc.d console-setup defaults
We should probably report this as a bug but I doubt the Debian maintainer would accept a report from an MX Linux system and I don't want to use sysvinit in my buster box.

EDIT: using systemd instead of sysvinit should also get things working without having to use update-rc.d(8).

Re: Console font resets to default after reboot

Posted: Tue Jun 02, 2020 7:10 am
by suavedandy
Head_on_a_Stick wrote: Tue May 19, 2020 5:13 pm Fortunately your box should still have /etc/init.d/console-setup from the live system so you can get things working by running

Code: Select all

sudo update-rc.d console-setup defaults
Thank you, thank you, thank you! It worked perfectly!