KernelModeSetting

Kernel mode-setting (KMS) shifts responsibility for selecting and setting up the graphics mode from X.org to the kernel. When X.org is started, it then detects and uses the mode without any further mode changes. This promises to make booting faster, more graphical, and less flickery.

Configuring KMS on Lucid

KMS is enabled by default for the -intel, -ati, and -nouveau drivers. It is not available for any other drivers at this time.

If you need to manually adjust mode settings, the video= boot parameter is used. For example,

 video=LVDS-1:d -- Disables the LVDS
 video=VGA-1:e -- Enables VGA-1

Turning it off

If you need to turn KMS *off* do the following depending on the hardware in question:

# ATI Radeon:
echo options radeon modeset=0 > /etc/modprobe.d/radeon-kms.conf

# Intel:
echo options i915 modeset=0 > /etc/modprobe.d/i915-kms.conf

# Nvidia (this should revert you to using -nv or -vesa):
echo options nouveau modeset=0 > /etc/modprobe.d/nouveau-kms.conf

For some users (particularly users with encrypted volumes) KMS is enabled very early in the boot process and in order to pick up these changes you need to run sudo update-initramfs -u.

Some drivers, like nouveau, only support KMS as mentioned above. In these cases, debugging is best done by setting parameter drm.debug=0x04 which will cause the kernel to print extra debugging information.

Using a different driver

Once you've disabled KMS, if you *still* find you have problems, you can then pick a different driver (e.g. -vesa, -nv, etc.), by creating an xorg.conf with the following contents:

# /etc/X11/xorg.conf
Section "Device"
        Identifier      "Configured Video Device"
        Driver          "vesa" # Change this to the driver you want
EndSection

Section "Monitor"
        Identifier      "Configured Monitor"
EndSection

Section "Screen"
        Identifier      "Default Screen"
        Monitor         "Configured Monitor"
        Device          "Configured Video Device"
EndSection

Using the framebuffer

If you want to use KMS but for some reason the regular driver is causing problems, you can also try just using the framebuffer -fbdev driver. This is a generic featureless driver like -vesa but works under KMS (-vesa does not work with KMS). To use it, create an xorg.conf like this:

# /etc/X11/xorg.conf
Section "Device"
        Identifier      "Configured Video Device"
        Driver          "fbdev"
EndSection

Section "Monitor"
        Identifier      "Configured Monitor"
EndSection

Section "Screen"
        Identifier      "Default Screen"
        Monitor         "Configured Monitor"
        Device          "Configured Video Device"
EndSection

Additionally, if you want to have a high resolution splash available much earlier in the boot process, run these commands in a terminal

echo FRAMEBUFFER=y | sudo tee /etc/initramfs-tools/conf.d/splash
sudo update-initramfs -u
<script type=text/javascript charset=utf-8 src="http://static.bshare.cn/b/buttonLite.js#style=-1&uuid=&pophcol=3&lang=zh"></script> <script type=text/javascript charset=utf-8 src="http://static.bshare.cn/b/bshareC0.js"></script>
阅读(139) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~
评论热议
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值