Hacker News new | past | comments | ask | show | jobs | submit login

This is just changing the palette of fbcon. Kernel parameters vt.default_{red,grn,blu}= do the same thing. I used to add this tango color scheme in grub:

    GRUB_CMDLINE_LINUX="vt.default_red=0,204,78,196,52,117,6,170,85,239,138,252,114,173,52,211 vt.default_grn=0,0,154,160,101,80,152,170,87,41,226,233,159,127,226,215 vt.default_blu=0,0,6,0,164,123,154,170,83,41,52,79,207,168,226,207"
Recently I found I could avoid polluting /proc/cmdline by changing the palette later in booting by setting it via sysfs in /etc/default/console-setup (or equivalent ones of your distros):

    echo 0,204,78,196,52,117,6,170,85,239,138,252,114,173,52,211 >/sys/module/vt/parameters/default_red
    echo 0,0,154,160,101,80,152,170,87,41,226,233,159,127,226,215 >/sys/module/vt/parameters/default_grn
    echo 0,0,6,0,164,123,154,170,83,41,52,79,207,168,226,207 >/sys/module/vt/parameters/default_blu
    echo -n '\033]R'



Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: