Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I installed a minimalist distribution for my mom to use, it uses rungetty to autologin and an init script that just does 'startx'. Everything works great but when she goes to shutdown, it drops back to the console for a while before turning off (Old PC).

Is there a way to pipe or silence all output to tty1/console. When X closes, the screen should be blank and then turn off.


share|improve this question

migrated from Aug 25 '09 at 20:41

This question came from our site for professional and enthusiast programmers.

I think this question works better over at Doesn't it? – Magnus Hoff Aug 25 '09 at 20:27
Did not know of that sister site, thanks – James Aug 25 '09 at 20:40

Haven't tried it, but you should be able to add "console=/dev/null" to the kernel parameters in grub or lilo. If not, try console=ttyS0 to redirect to the serial port (assuming you don't have anything connected to the serial port, maybe a non-existant serial port would be safer such as console=ttyS7).

share|improve this answer

According to Documentation/kernel-parameters.txt, the loglevel=0 kernel cmdline argument should silence all kernel messages. It'd be better to use at least 3 or 4, though, to still allow critical errors to be displayed.

loglevel=       All Kernel Messages with a loglevel smaller than the
                console loglevel will be printed to the console. It can
                also be changed with klogd or other programs. The
                loglevels are defined as follows:

                0 (KERN_EMERG)          system is unusable
                1 (KERN_ALERT)          action must be taken immediately
                2 (KERN_CRIT)           critical conditions
                3 (KERN_ERR)            error conditions
                4 (KERN_WARNING)        warning conditions
                5 (KERN_NOTICE)         normal but significant condition
                6 (KERN_INFO)           informational
                7 (KERN_DEBUG)          debug-level messages

As for startx, normal redirection should work:

startx >/dev/null 2>&1
share|improve this answer

You must log in to answer this question.