runlevel 3 设置显示参数

Linux: How to change the text size or character size in runlevel 3 (text mode)

by LinuxTitli on September 6, 2006 · 0 comments

If you have large size (21") or small size (14") monitor, it is better to use large/small character size. But how do you setup character size in runlevel 3 under Linux?

The answer is simple, use the kernel framebuffer. It allows you to set the Linux text scree (console) to higher or lower resolution. The Linux framebuffer (fbdev) is a graphic hardware-independent abstraction layer to show graphics on a console without relying on system-specific libraries such as SVGALib or the heavy overhead of the X Window System.

Open GRUB configuration file grub.conf
# vi grub.conf

Append line vga=0x318 (a 24-bit color depth @ 1024x768 display) to kernel line. At the end your modification should look like as follows:
title Debian Linux, AMD-VSNL (VMWARE)
root (hd1,0)
kernel /boot/vmlinuz-2.6.17.11-ROCKY-DEV-AMD root=/dev/hdb1 ro vga=0x318
initrd /boot/initrd.img-2.6.17.11-ROCKY-DEV-AMD
savedefault
boot

Save and close the file. Reboot the system:
# reboot

0x318 (hex) is a mode. Here are common modes:

转载于:https://www.cnblogs.com/liujiahi/archive/2010/12/20/2196412.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值