Feature #214
closed
Simultaneuous Serial/Video Console
Added by Jim Pingle over 15 years ago.
Updated almost 9 years ago.
Category:
Operating System
Description
FreeBSD is capable of using both serial and video consoles at the same time. It seems like a good idea to enable this rather than making users choose.
To do this in FreeBSD, just stick this into /boot/loader.conf :
boot_multicons="YES"
boot_serial="YES"
console="vidconsole,comconsole"
Whichever console is primary should be first in that list, so perhaps when the serial console is "enabled" it could just make serial the primary instead of video.
/boot.config may also need to contain -D in order for this to work.
I just tried this out. I only needed the /boot/loader.conf changes in the original text of the ticket, not the boot.config change. Also needed to set the serial port console to "on" in /etc/ttys.
Kernel boot messages go to both serial and video, PHP/RC script messages go to whichever console is primary (listed first in the console= line). When bootup is complete video and serial consoles both get a menu.
On the full installs I've tested I need to change dailup to cons25
- Tracker changed from Bug to Feature
- Target version changed from 3 to Future
- Affected Version changed from 2.0 to All
- Status changed from New to Feedback
This should be working on 2.x, when the serial console is enabled it also leaves the VGA console active these days. You can login on both, but the system boot/log messages are only sent to the 'primary' console.
- Status changed from Feedback to Closed
In my scenario, I want VGA and serial, but I want VGA to be primary. Otherwise much of the post-init boot messages are lost on the infrequently-used serial console. Is there any way a toggle could be added to select a primary console?
(changing console="vidconsole,comconsole" to console="comconsole,vidconsole" gives me the behavior I'm looking for)
- Target version deleted (
Future)
Also available in: Atom
PDF