Difference between revisions of "Kernel mode setting"
(→Added a section on disabling KMS)
m (→Disabling modesetting)
|Line 60:||Line 60:|
You may want to disable KMS for various, such as when using the catalyst driver. To do so, add '''nomodeset''' to
You may want to disable KMS for various , such as when using the catalyst driver. To do so, add '''nomodeset''' to kernel arguments in your grub or syslinux config file.
Revision as of 05:06, 16 February 2012
Kernel Mode Setting (KMS) is a method for setting display resolution and depth in the kernel space rather than user space.
KMS enables native resolution in the framebuffer and allows for instant console (tty) switching. KMS also enables newer technologies (such as DRI2) which will help reduce artifacts and increase 3D performance, even kernel space power-saving.
intel, nouveau and radeon drivers already enable KMS automatically for all chipsets. The proprietary NVIDIA and ATI Catalyst drivers do not use the open driver stack, so this page does not apply to them.
Previously, setting up the video card was the job of the X server. Because of this, it was not easily possible to have fancy graphics in virtual consoles. Also, each time a switch from X to a virtual console was made (Template:Keypress), the server had to give control over the video card to the kernel, which was slow and caused flickering. The same "painful" process happened when the control was given back to the X server (Template:Keypress).
With Kernel Mode Setting (KMS), the kernel is now able to set the mode of the video card. This makes fancy graphics during bootup, virtual console and X fast switching possible, among other things.
Note that for any method you use, you should always disable:
- Any "vga=" options in your bootloader as these will conflict with the native resolution enabled by KMS.
- Any "video=" lines that enable a framebuffer that conflicts with the driver.
- Any other framebuffer drivers (such as uvesafb).
My fonts are too tiny
See changing the default font for how change your console font to a large font. Terminus font in [extra] is available in many sizes, including larger sizes.
Issue upon bootloading and dmesg
If you see an error code of 0x00000010 (2) while booting up, (You will get about 10 lines of text, the last part denoting that error code), then add the following line into
options drm_kms_helper poll=0
From the nouveau wiki:
A mode can be forced on the kernel command line. Unfortunately, the command line option video is poorly documented in the DRM case. Bit and pieces on how to use it can be found in
The format is:
- <conn>: Connector, e.g. DVI-I-1, see your kernel log.
- <xres> x <yres>: resolution
- M: compute a CVT mode?
- R: reduced blanking?
- -<bpp>: color depth
- @<refresh>: refresh rate
- i: interlaced (non-CVT mode)
- m: margins?
- e: output forced to on
- d: output forced to off
- D: digital output forced to on (e.g. DVI-I connector)
You can override the modes of several outputs using "video" several times, for instance, to force DVI to 1024x768 at 85 Hz and TV-out off:
You may want to disable KMS for various reasons, such as when using the catalyst driver. To do so, add nomodeset to the kernel arguments in your grub or syslinux config file.
kernel /vmlinuz-linux root=/dev/sda3 ro quiet nomodeset
LINUX ../vmlinuz-linux APPEND root=/dev/sda3 ro quiet nomodeset