Skip to contentSkip to conversation

Serial and graphical console at the same time

DISCUSSION Christian Auby 3 participants 4 messages Jan 28, 2010 – Feb 18, 2010

lore
Share & tools
lore
#0 lore raw

How would I go about setting up grub2 with both serial console and graphical console?

There are three related settings in /etc/default/grub:

GRUB_CMDLINE_LINUX
GRUB_TERMINAL
GRUB_SERIAL_COMMAND

I don't any have problem getting the serial to work alone, but I can't find any mention of using both in the manual.

The values I'm currently using (that only gives me serial):
GRUB_CMDLINE_LINUX="console=tty0 console=ttyS1,115200n8" GRUB_TERMINAL=serial
GRUB_SERIAL_COMMAND="serial --speed=115200 --unit=1 --word=8 --parity=no --stop=1"

OS is Debian testing, kernel 2.6.32-trunk 64bit in case this is relevant.

thanks,

Christian

#1 lore raw
Quoted 3 lines · Christian Auby

How would I go about setting up grub2 with both serial console and graphical console?

You can't run simultaneous consoles with a stock grub2 build. The experimental branch does support it though:
http://robertmh.wordpress.com/2009/12/25/multiple-grub-terminals/#comment-520

I know GRUB2 is in freeze now but if I run some test builds of experimental branch w/multicons enabled on various hardware and report success, could multicons be slated for main branch inclusion in the next-release+1? I can't upgrade remote machines of mine from grub-legacy without simultaneous serial + VGA consoles.

Thanks for reading
-joey

#3 lore raw
Quoted 11 lines · Colin Watson
Quoted 7 lines · Joey Korkames
Quoted 2 lines · Christian Auby

How would I go about setting up grub2 with both serial console and graphical console?

You can't run simultaneous consoles with a stock grub2 build. The experimental branch does support it though:
http://robertmh.wordpress.com/2009/12/25/multiple-grub-terminals/#comment-520

The relevant code was merged into trunk on 2010-01-09.

Shows what I know! I'll give it a test then...

Thanks for the clarification
-joey