User Tools

Site Tools


notes:kernel_parameters

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
notes:kernel_parameters [2023/05/28 15:34] Sean Rhonenotes:kernel_parameters [2024/04/29 16:55] – [Custom Resolution] Sean Rhone
Line 1: Line 1:
 +====== Information ======
 +
 +  * Various kernel options
 +  * https://www.kernel.org/doc/html/latest/admin-guide/kernel-parameters.html
 +
 ====== General ====== ====== General ======
  
-===== Linux OSI =====+===== Low-Latency =====
  
 **** ****
  
-  acpi_osi=Linux+  preempt='full' threadirqs nohz='off' 
 + 
 +===== OSI ===== 
 + 
 +  * https://forum.manjaro.org/t/how-to-choose-the-proper-acpi-kernel-argument/1405 
 +  * https://learn.microsoft.com/en-us/windows-hardware/drivers/acpi/winacpi-osi 
 + 
 +  acpi_osi='Linux
 + 
 +  acpi_osi='Windows 2017' 
 + 
 +==== Spinesnap ==== 
 + 
 +  * :!: Dell Latitude 5591 needs ''!'' also to force Windows OSI 
 +  * :!: 2024/04/29: Forcing Windows OSI causes brightness buttons on the built-in keyboard to not function ((with ''dmesg'' Intel HID 5 button array seemingly isn't presented with Windows OSI)) 
 + 
 +  acpi_osi='!' acpi_osi='Windows 2017'
  
 ===== Modern Standby ===== ===== Modern Standby =====
Line 11: Line 32:
   * https://fwupd.github.io/libfwupdplugin/hsi.html#org.fwupd.hsi.SuspendToIdle   * https://fwupd.github.io/libfwupdplugin/hsi.html#org.fwupd.hsi.SuspendToIdle
  
-  mem_sleep_default=s2idle+  mem_sleep_default='s2idle'
  
 ===== IOMMU ===== ===== IOMMU =====
  
-  * If IOMMU is disabled in BIOS, this isn't needed 
   * :!: ''iommu=off'' should not be used ([[http://www.xillybus.com/tutorials/iommu-swiotlb-linux|source]])   * :!: ''iommu=off'' should not be used ([[http://www.xillybus.com/tutorials/iommu-swiotlb-linux|source]])
  
-  iommu=pt +  iommu='pt'
- +
-===== IOMMU =====+
  
 ===== PCI ===== ===== PCI =====
Line 26: Line 44:
 **** ****
  
-  pci=pcie_bus_perf,realloc,pcie_scan_all,big_root_window+  pci='pcie_bus_perf,realloc,pcie_scan_all,big_root_window
 + 
 +===== Interrupt Remapping ===== 
 + 
 +**** 
 + 
 +  intremap='off'
  
 ===== Custom Resolution ===== ===== Custom Resolution =====
  
-  * For an Acer S271H7 even though it can do 75Hz, this option sets one of the display timings too-high and 75Hz can't be reduced-blanked here; 74Hz is close enough +  * https://docs.kernel.org/fb/modedb.html
-  * This is necessary for Wayland, but also carries over to Xorg +
-  * :!: Refresh rate mismatch between Moonlight clients and Gamestream hosts computers introduces stuttering +
-  * ''HDMI-A-1'' is the same for an AMD 6600 XT and Intel UHD 630, it's possible this works for all GPUs?+
  
-  video=HDMI-A-1:1920x1080@74+  * Necessary for Wayland, and also works on Xorg as an alternative to ''xorg.conf'' 
 +  * :?: ''HDMI-A-1'' is the same for an AMD 6600 XT and Intel UHD 630; it's possible this works for all GPUs or there's some standard? 
 + 
 +==== Acer S721HL ==== 
 + 
 +  * Increase refresh rate for 1080p from default 60Hz to 75Hz 
 + 
 +  video='HDMI-A-1:1920x1080MR@75' 
 + 
 +==== TCL 55S405 ==== 
 + 
 +  * Solves instability on some AMD GPUs at 4K@60Hz on HDMI 
 +  * 2024/04/29: From old notes and untested 
 + 
 +  video='HDMI-A-1:3840x2160MR@60'
  
 ====== AMD ====== ====== AMD ======
Line 45: Line 80:
   * Disable TSME in BIOS if using this   * Disable TSME in BIOS if using this
  
-  mem_encrypt=on+  mem_encrypt='on'
  
 ====== AMDGPU ====== ====== AMDGPU ======
Line 54: Line 89:
   * See [[https://github.com/torvalds/linux/blob/master/drivers/gpu/drm/amd/include/amd_shared.h#L203|amd_shared.h]] for more ''PP_FEATURE_MASK'' values   * See [[https://github.com/torvalds/linux/blob/master/drivers/gpu/drm/amd/include/amd_shared.h#L203|amd_shared.h]] for more ''PP_FEATURE_MASK'' values
   * :!: ''0xffffffff'' can be used to enable everything, but may cause issues with unstable features   * :!: ''0xffffffff'' can be used to enable everything, but may cause issues with unstable features
 +
 +  sudo grubby --args='amdgpu.ppfeaturemask=0xfff7ffff' --update-kernel='ALL'
  
   amdgpu.ppfeaturemask=0xfff7ffff   amdgpu.ppfeaturemask=0xfff7ffff
Line 65: Line 102:
 ====== Intel ====== ====== Intel ======
  
-===== intel_pstate =====+===== i915 =====
  
-  This was discovered for use with Liquorix, but [[https://github.com/damentz/liquorix-package/issues/13|they don't recommend it's use]]+****
  
-  intel_pstate=enable+  i915.enable_fbc='0' i915.enable_psr='0' i915.panel_use_ssc='0' i915.nuclear_pageflip='1'
  
 ===== IOMMU ===== ===== IOMMU =====
Line 75: Line 112:
   * TODO: HSI?   * TODO: HSI?
  
-  intel_iommu=on +  intel_iommu='on'
- +
-===== Optimizations ===== +
- +
-  * This enables Framebuffer compression, Panel self-refresh, and i915 Fastboot +
- +
-  i915.enable_fbc=1 i915.enable_psr=1 i915.fastboot=1+
  
 ===== Firmware ===== ===== Firmware =====
  
-  * This enables GuC and HuC firmware loading if supported by the hardware+  * This enables GuC and HuC firmware loading ((do this even if unsure because seemingly not even Intel is aware of how certain hardware pre-12th-gen/AL loads the firmware; worst-case it just won't load))
  
-  i915.enable_guc=3+  i915.enable_guc='3'
  
 ====== NVIDIA ====== ====== NVIDIA ======
Line 97: Line 128:
 **** ****
  
-  modprobe.blacklist=nouveau+  modprobe.blacklist='nouveau'
  
 ==== Allow Unsupported GPUs ==== ==== Allow Unsupported GPUs ====
Line 103: Line 134:
   * https://github.com/NVIDIA/open-gpu-kernel-modules#compatible-gpus   * https://github.com/NVIDIA/open-gpu-kernel-modules#compatible-gpus
  
-  nvidia.NVreg_OpenRmEnableUnsupportedGpus=1+  nvidia.NVreg_OpenRmEnableUnsupportedGpus='1'
  
 ==== Enable nvidia-modeset ==== ==== Enable nvidia-modeset ====
Line 109: Line 140:
 **** ****
  
-  nvidia-drm.modeset=1+  nvidia-drm.modeset='1'
  
 ===== PAT ===== ===== PAT =====
Line 115: Line 146:
   * TODO: Find information about this   * TODO: Find information about this
  
-  nvidia.NVreg_UsePageAttributeTable=1+  nvidia.NVreg_UsePageAttributeTable='1'
  
 ===== GSP ===== ===== GSP =====
Line 122: Line 153:
   * Allows loading of GSP firmware   * Allows loading of GSP firmware
   * This doesn't appear necessary for the open kernel module   * This doesn't appear necessary for the open kernel module
-  * :!: 2022/07/20 515.57: this causes AoE2:DE to crash GNOME on-startup+  * :!: 2022/07/20 515.57: this caused AoE2:DE to crash GNOME on-startup
  
-  nvidia.NVreg_EnableGpuFirmware=1'+  nvidia.NVreg_EnableGpuFirmware='1'
  
 ==== Verify ==== ==== Verify ====
Line 131: Line 162:
  
   nvidia-smi -q | grep 'GSP'   nvidia-smi -q | grep 'GSP'
 +
 +====== CORSAIR ======
 +
 +  * https://github.com/ckb-next/ckb-next/wiki/Troubleshooting#usbhid-quirks
 +  * :!: Seemingly only needed with the mouse plugged directly to the motherboard, and not through USB-C docks
 +
 +  usbcore.quirks='1b1c:1b75:bgmn'
  
 ====== Coreboot ====== ====== Coreboot ======
Line 139: Line 177:
   * :!: This should be removed after flashing   * :!: This should be removed after flashing
  
-  iomem=relaxed+  iomem='relaxed'
  
/var/www/wiki/data/pages/notes/kernel_parameters.txt · Last modified: 2024/04/29 17:12 by Sean Rhone