Kernel Modesetting: Difference between revisions

From Alpine Linux
m (Add links to amdgpu and nouveau wiki pages (will be done later))
m (fixed wikilinks)
 
(10 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{Expand|Needs nVidia driver information}}
{{TOC right}}
[https://en.wikipedia.org/wiki/Mode%20setting Kernel Mode Setting] '''(KMS)''' allows setting the display resolution in kernel space instead of userspace. This allows setting native screen resolutions early in the system boot process and can reduce flickering, both when booting and when switching ttys.


; Intel
Enabling KMS requires adding {{ic|kms}} to the {{ic|mkinitfs}} config file {{Path|/etc/mkinitfs/mkinitfs.conf}} configuration by adding it to the <var>features</var> variable, e.g:{{cat|/etc/mkinitfs/mkinitfs.conf|features{{=}}"keymap cryptsetup kms ata base ide scsi usb virtio ext4"}}
: See [[Intel_Video#Kernel_Modesetting_(KMS)]]
; Amdgpu
: See [[Amdgpu_Video#Kernel_Modesetting_(KMS)]]
; Radeon
: See [[Radeon_Video#Kernel_Modesetting_(KMS)]]
; Nouveau
: See [[Nouveau_Video#Kernel_Modesetting_(KMS)]]
; nVidia
: {{Todo|Find out how KMS works with nVidia drivers}}


= =
The relevant DRM module for the graphics card needs to be added to the kernel cmdline. For e.g.: if your graphics card uses {{ic|amdgpu}}, add {{ic|modules{{=}}other-modules,amdgpu}} to the cmdline. Omitting this step will result in additional flickering i.e early output will render at low resolution and the resolution will change when the module is later loaded.
* [https://wiki.archlinux.org/index.php/Kernel_mode_setting  Kernel mode setting] archlinux.org
 
The exact driver and firmware required will vary depending on the GPU being used. See the links below for further details:
 
* [[Intel Video]]
* [[Radeon_Video#Kernel_Modesetting_(KMS)|AMD/Radeon Video]]
* [[NVIDIA]]
 
== See also ==
 
* [https://wiki.archlinux.org/index.php/Kernel_mode_setting  Kernel mode setting in Arch wiki]  


[[Category:Kernel]]
[[Category:Kernel]]
[[Category:Graphics]]

Latest revision as of 05:11, 9 May 2025

Kernel Mode Setting (KMS) allows setting the display resolution in kernel space instead of userspace. This allows setting native screen resolutions early in the system boot process and can reduce flickering, both when booting and when switching ttys.

Enabling KMS requires adding kms to the mkinitfs config file /etc/mkinitfs/mkinitfs.conf configuration by adding it to the features variable, e.g:

Contents of /etc/mkinitfs/mkinitfs.conf

features="keymap cryptsetup kms ata base ide scsi usb virtio ext4"

The relevant DRM module for the graphics card needs to be added to the kernel cmdline. For e.g.: if your graphics card uses amdgpu, add modules=other-modules,amdgpu to the cmdline. Omitting this step will result in additional flickering i.e early output will render at low resolution and the resolution will change when the module is later loaded.

The exact driver and firmware required will vary depending on the GPU being used. See the links below for further details:

See also