VESA FrameBuffer Kernel documentation

Vesafb.txt : “kernel source Documentation”

What is vesafb?
===============

This is a generic driver for a graphic framebuffer on intel boxes.

The idea is simple: Turn on graphics mode at boot time with the help
of the BIOS, and use this as framebuffer device /dev/fb0, like the m68k
(and other) ports do.

This means we decide at boot time whenever we want to run in text or
graphics mode. Switching mode later on (in protected mode) is
impossible; BIOS calls work in real mode only. VESA BIOS Extensions
Version 2.0 are required, because we need a linear frame buffer.

Read the rest of this entry »

Xandros Grub menu.lst video mode

#
# Configured by Xandros Configuration system.
#
hiddenmenu
# default boot entry
default=0

Read the rest of this entry »

VGA Value Resolution

Thats wonderful
I would like to add these

Vga value for various res

  • 640×480 – 785
  • 800×600 – 788
  • 1024×768 – 791
  • 1152×864 – 355
  • 1280×1024 – 794
  • 1600×1200 – 798
  • Eeepc 800×600 – 312

Powered by ScribeFire.

HOWTO: Spice up your boot text [font resolution and color]

Difficulty: Quick, easy and painless. 2 edits, no installs.

UPDATE: Screenshot example added below. Click here
(http://ubuntuforums.org/showthread.php?p=347303#post347303) for a
detailed post and sample files to produce output.

STEP 1: Increase resolution (optional)
- Edit /boot/grub/menu.lst
- Add vga=792 to your default boot option.

Example:

title Ubuntu, kernel 2.6.10-5-k7 Default
root (hd0,0)
kernel /vmlinuz root=/dev/hde6 ro quiet splash vga=792
initrd /initrd.img
savedefault
boot

STEP 2: Colorize “[ ok ]” … these instructions will make it green

- Edit /lib/lsb/init-functions

- Find the log_end_msg () function, all the way at the bottom of the file

- Add GREEN=`$TPUT setaf 2` below RED=`$TPUT setaf 1`

- Change echo “$UP$END[ ok ]” to echo “$UP$END[ ${GREEN}ok${NORMAL} ]”

Here’s the full function, changes bolded.


log_end_msg () {
# If no arguments were passed, return
[ -z "$1" ] && return 1
# Only do the fancy stuff if we have an appropriate terminal
# and if /usr is already mounted
TPUT=/usr/bin/tput
EXPR=/usr/bin/expr
if [ -x $TPUT ] && [ -x $EXPR ] && $TPUT hpa 60 >/dev/null 2>&1; then
COLS=`$TPUT cols`
if [ -n "$COLS" ]; then
COL=`$EXPR $COLS – 7`
else
COL=73
fi
UP=`$TPUT cuu1`
END=`$TPUT hpa $COL`
START=`$TPUT hpa 0`
RED=`$TPUT setaf 1`
GREEN=`$TPUT setaf 2`
NORMAL=`$TPUT op`
if [ $1 -eq 0 ]; then
echo “$UP$END[ ${GREEN}ok${NORMAL} ]”
else
echo -e “$UP$START $RED*$NORMAL$END[${RED}fail${NORMAL}]”
fi
else
if [ $1 -eq 0 ]; then
echo ” …done.”
else
echo ” …fail!”
fi
fi
return $1
}


STEP 3: You’re done! Reboot!

- Reboot, and your resolution should be increased. Your [ ok ] messages should now be green.

Personally, I like this much better. Its simple to add colors and
change colors.. just use the above as a base and take it from there!
Enjoy :)

You can add MUCH more color than this. For example… To see my latest
init-functions file, which produces the output in the crappy screenshot
attached, click here
(http://ubuntuforums.org/showthread.php?p=347303#post347303). Download
the attachment, and replace your init-functions file with mine. Backup
first, as always!! Get creative, and post your init-functions file to
share with the rest of us.

Thanks to this thread
(http://www.ubuntuforums.org/showthread.php?t=41709&page=1&pp=10&highlight=boot+resolution)
for getting me started.

- DavidG

(P.S. This is my first HOWTO \\:D/)

Powered by ScribeFire.

 

Switch to our mobile site