Console Framebuffer in Ubuntu[Edited]

本文介绍如何通过配置内核模块和GRUB启动选项来提高Ubuntu 7.10 Gutsy系统的Linux控制台分辨率,包括添加必要的模块支持、调整USplash配置等步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

The Linux console framebuffer allows you to achieve higher screen resolutions within your Linux console. However, as of this writing, Ubuntu 7.10 Gutsy by default does not load the required kernel modules. By passing the “vga=XXX” kernel option without these modules loaded, you are left with a blinking cursor in the upper-left hand corner of your screen. Here’s how to get the console framebuffer in working order.

1. Ensure the initrd image includes framebuffer support by adding “fbcon” , “vesafb” and “vga16b” to /etc/initramfs-tools/modules.

$ echo "vesafb" | sudo tee -a /etc/initramfs-tools/modules
$ echo "fbcon" | sudo tee -a /etc/initramfs-tools/modules
$ echo "vga16fb
"| sudo tee -a /etc/initramfs-tools/modules

2. Remove (or comment out) “vesafb” and "vga16fb "from blacklisted modules in /etc/modprobe.d/blacklist-framebuffer.

#blacklist vesafb
#blacklist vga16fb

3. Add the desired framebuffer variable to the default kernel options section in /boot/grub/menu.lst. For 1024×768, the string should look like the following.

#defoptions=quiet splash vga=791
#comment:vga=0×314 as 800*600 16it

#        |640x480 800x600 1024x768 1280x1024

#256 | 0x301        0x303      0x305          0x307

#32k | 0x310        0x313       0x316          0x319

#64k | 0x311        0x314       0x317          0x31A

#16M | 0x312       0x315       0x318          0x31B

4. Update GRUB.

$ sudo update-grub

5. If Usplash is configured for a higher resolution than your framebuffer, it will appear off-centered. So adjust /etc/usplash.conf to use the same resolution.

xres=1024
yres=768

6. Update initramfs to rebuild the initrd image.

$ sudo update-initramfs -u

After rebooting, your usplash will appear as normal and you can Ctrl+Alt+F1 to a console after your X environment has finished loading. The text in your console should now appear much smaller and will be much easier to use for large amounts of console work.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值