Set VT Console

When I run vid control I get this error

vidcontrol: getting active vty: Inappropriate ioctl for device

Code:
loader.conf###########################################
# Boot
boot_mute="YES"
autoboot_delay="5"
#vesa_load="YES"
#splash_pcx_load="YES"
#bitmap_load="YES"
#bitmap_name="/boot/freebsd-boot-alt.pcx"
kern.vty="vt"
hw.vga.textmode="1"
kern.vt.fb.default_mode="1280x800"


## Add colors to vt(4)
kern.vt.color.0.rgb="#000000"
kern.vt.color.1.rgb="#e67e80"
kern.vt.color.2.rgb="#a7c080"
kern.vt.color.3.rgb="#dbbc7f"
kern.vt.color.4.rgb="#7fbbb3"
kern.vt.color.5.rgb="#d699b6"
kern.vt.color.6.rgb="#83c092"
kern.vt.color.7.rgb="#ff0000"
kern.vt.color.8.rgb="#4b565c"
kern.vt.color.9.rgb="#e67e80"
kern.vt.color.10.rgb="#a7c080"
kern.vt.color.11.rgb="#dbbc7f"
kern.vt.color.12.rgb="#7fbbb3"
kern.vt.color.13.rgb="#d699b6"
kern.vt.color.14.rgb="#83c092"
kern.vt.color.15.rgb="#ff0000"
Thanks
 
Hi, I understood the error. I launched it from ssh and I didn't have the Intel drivers installed. But now all the writing is in red? Is it possible to include Intel drivers in the kernel?
 
I changed the colors as follows

## Add colors to vt
# black
kern.vt.color.0.rgb="#3a3a3a"
# dark red
kern.vt.color.1.rgb="#e89393"
# dark green
kern.vt.color.2.rgb="#688060"
# dark yellow
kern.vt.color.3.rgb="#f0dfaf"
# dark blue
kern.vt.color.4.rgb="#93b3a3"
# dark magenta
kern.vt.color.5.rgb="#bca3a3"
# dark cyan
kern.vt.color.6.rgb="#93b3a3"
# light gray
kern.vt.color.7.rgb="#cccccc"
# dark gray
kern.vt.color.8.rgb="#222222"
# light red
kern.vt.color.9.rgb="#dca3a3"
# light green
kern.vt.color.10.rgb="#7f9f7f"
# light yellow
kern.vt.color.11.rgb="#efef8f"
# light blue
kern.vt.color.12.rgb="#8cd0d3"
# light magenta
kern.vt.color.13.rgb="#c0bed1"
# light cyan
kern.vt.color.14.rgb="#8cd0d3"
# white
kern.vt.color.15.rgb="#ffffff"

Now it's back to black and white but I'm not clear what this config is for?

vesa_load="YES"
splash_bmp_load="YES"
bitmap_load="YES"
bitmap_name="/boot/splash"

These options, however, are absolutely not considered, even if I use PCX

Setting

boot_mute="YES"

A default freebsd screen appears
 
vidcontrol mode is empty and vidcontrol -i adapter result Inappropriate ioctl for device
 
Are you sure your installation supports vidcontrol? I am sure it only works with sc(4).
(sc only works with LegacyBIOS not UEFI)
sysctl machdep.bootmethod

For vt(4) installations you use GOP. Everything is set via loader.


Hint: Even if your machine reports BIOS bootmethod you must disable any DRM driver to enable sc console.
Either by loader prompt set kern.vty=sc or setting in /boot/loader.conf
 
## Add colors to vt
# black
kern.vt.color.0.rgb="#3a3a3a"
# dark red
kern.vt.color.1.rgb="#e89393"
# dark green
OK the Header should be self explanatory. These settings worked because you are using vt.


These settings are for sc. The way needed for older computers at times.
Now it's back to black and white but I'm not clear what this config is for?

vesa_load="YES"
splash_bmp_load="YES"
bitmap_load="YES"
bitmap_name="/boot/splash"
Note VESA driver is primarily for xorg and sc.
You see our scfb driver only works with vt.
These are generic framebuffer drivers for non-accelerated Xorg.

So the splash setting are also only applicable to sc as well.

As you have found:
boot_mute="YES"
Enables a vt splash screen. It can be set at the loader with various settings.
 

There is one default VT splash graphic and size might be controllable.
Do not confuse the VT Loader Graphics with the splash graphic. Same source directory.

boot -m I learned something today!
 
But the resolution works fine in vt but vidcontrol keeps giving me inappropriate ioctl for the device here's /boot/loader.conf

###########################################
# Boot
boot_mute="YES"
boot_verbose="NO"
autoboot_delay="10"
beastie_disable="YES"
kern.vty="vt"
hw.vga.textmode = 1
hw.vga.acpi_ignore_no_vga=1
kern.vt.fb.default_mode="1920x1080"
i915kms_load="YES"

## Add colors to vt
# black
kern.vt.color.0.rgb="#3a3a3a"
# dark red
kern.vt.color.1.rgb="#e89393"
# dark green
kern.vt.color.2.rgb="#688060"
# dark yellow
kern.vt.color.3.rgb="#f0dfaf"
# dark blue
kern.vt.color.4.rgb="#93b3a3"
# dark magenta
kern.vt.color.5.rgb="#bca3a3"
# dark cyan
kern.vt.color.6.rgb="#93b3a3"
# light gray
kern.vt.color.7.rgb="#cccccc"
# dark gray
kern.vt.color.8.rgb="#222222"
# light red
kern.vt.color.9.rgb="#dca3a3"
# light green
kern.vt.color.10.rgb="#7f9f7f"
# light yellow
kern.vt.color.11.rgb="#efef8f"
# light blue
kern.vt.color.12.rgb="#8cd0d3"
# light magenta
kern.vt.color.13.rgb="#c0bed1"
# light cyan
kern.vt.color.14.rgb="#8cd0d3"
# white
kern.vt.color.15.rgb="#ffffff"
 
The machine I am configuring is a server, I would still have liked to have the correct configuration in case of use, having an optimal resolution on the console is not bad. So what are these kern.vt.color.x... directives for?
 
Back
Top