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
notes:kernel_parameters [2023/06/06 21:14] – old revision restored (2023/04/30 18:25) Sean Rhonenotes:kernel_parameters [2024/04/29 17:12] (current) 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 =====
  
-  sudo grubby --args='acpi_osi=Linux' --update-kernel='ALL'+****
  
-  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' 
 + 
 +===== Reboot ===== 
 + 
 +  * Does hard reboots 
 +  * :!: ''reboot=efi'' causes a Dell Latitude 5591 to not reboot 
 + 
 +  reboot='pci' 
 + 
 +  reboot='efi'
  
 ===== Modern Standby ===== ===== Modern Standby =====
Line 11: Line 41:
   * https://fwupd.github.io/libfwupdplugin/hsi.html#org.fwupd.hsi.SuspendToIdle   * https://fwupd.github.io/libfwupdplugin/hsi.html#org.fwupd.hsi.SuspendToIdle
  
-  sudo grubby --args='mem_sleep_default=s2idle' --update-kernel='ALL' +  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]])
  
-  sudo grubby --update-kernel='ALL' --args='iommu=pt'+  iommu='pt'
  
-  iommu=pt+===== PCI =====
  
-===== IOMMU =====+****
  
-===== PCI =====+  pci='pcie_bus_perf,realloc,pcie_scan_all,big_root_window'
  
-  sudo grubby --args='pci=pcie_bus_perf,realloc,pcie_scan_all,big_root_window' --update-kernel='ALL'+===== Interrupt Remapping =====
  
-  pci=pcie_bus_perf,realloc,pcie_scan_all,big_root_window+**** 
 + 
 +  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 +  * 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 630it's possible this works for all GPUs?+  * :?: ''HDMI-A-1'' is the same for an AMD 6600 XT and Intel UHD 630it'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 ====
  
-  sudo grubby --args='video=HDMI-A-1:1920x1080@74' --update-kernel='ALL'+  * Solves instability on some AMD GPUs at 4K@60Hz on HDMI 
 +  * 2024/04/29From old notes and untested
  
-  video=HDMI-A-1:1920x1080@74+  video='HDMI-A-1:3840x2160MR@60'
  
 ====== AMD ====== ====== AMD ======
Line 51: Line 89:
   * Disable TSME in BIOS if using this   * Disable TSME in BIOS if using this
  
-  sudo grubby --args='mem_encrypt=on' --update-kernel='ALL' +  mem_encrypt='on'
- +
-  mem_encrypt=on+
  
 ====== AMDGPU ====== ====== AMDGPU ======
Line 75: Line 111:
 ====== Intel ====== ====== Intel ======
  
-===== intel_pstate =====+===== i915 =====
  
 **** ****
  
-  intel_pstate=enable+  i915.enable_fbc='0' i915.enable_psr='0' i915.panel_use_ssc='0' i915.nuclear_pageflip='1'
  
 ===== IOMMU ===== ===== IOMMU =====
Line 85: Line 121:
   * TODO: HSI?   * TODO: HSI?
  
-  sudo grubby --update-kernel='ALL' --args='intel_iommu=on' +  intel_iommu='on'
- +
-  intel_iommu=on +
- +
-===== Optimizations ===== +
- +
-  * This enables Framebuffer compression, Panel self-refresh, and i915 Fastboot +
- +
-  sudo grubby --update-kernel='ALL' --args='i915.enable_fbc=1 i915.enable_psr=1 i915.fastboot=1' +
- +
-  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))
- +
-  sudo grubby --update-kernel='ALL' --args='i915.enable_guc=3'+
  
-  i915.enable_guc=3+  i915.enable_guc='3'
  
 ====== NVIDIA ====== ====== NVIDIA ======
Line 111: Line 135:
 ==== Blacklist nouveau ==== ==== Blacklist nouveau ====
  
-  sudo grubby --update-kernel='ALL' --args='modprobe.blacklist=nouveau'+****
  
-  modprobe.blacklist=nouveau+  modprobe.blacklist='nouveau'
  
 ==== Allow Unsupported GPUs ==== ==== Allow Unsupported GPUs ====
Line 119: Line 143:
   * https://github.com/NVIDIA/open-gpu-kernel-modules#compatible-gpus   * https://github.com/NVIDIA/open-gpu-kernel-modules#compatible-gpus
  
-  sudo grubby --update-kernel='ALL' --args='nvidia.NVreg_OpenRmEnableUnsupportedGpus=1' +  nvidia.NVreg_OpenRmEnableUnsupportedGpus='1'
- +
-  nvidia.NVreg_OpenRmEnableUnsupportedGpus=1+
  
 ==== Enable nvidia-modeset ==== ==== Enable nvidia-modeset ====
  
-  sudo grubby --update-kernel='ALL' --args='nvidia-drm.modeset=1'+****
  
-  nvidia-drm.modeset=1+  nvidia-drm.modeset='1'
  
 ===== PAT ===== ===== PAT =====
Line 133: Line 155:
   * TODO: Find information about this   * TODO: Find information about this
  
-  sudo grubby --update-kernel='ALL' --args='nvidia.NVreg_UsePageAttributeTable=1' +  nvidia.NVreg_UsePageAttributeTable='1'
- +
-  nvidia.NVreg_UsePageAttributeTable=1+
  
 ===== GSP ===== ===== GSP =====
Line 142: Line 162:
   * 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
  
-  sudo grubby --update-kernel='ALL' --args='nvidia.NVreg_EnableGpuFirmware=1' +  nvidia.NVreg_EnableGpuFirmware='1'
- +
-  nvidia.NVreg_EnableGpuFirmware=1'+
  
 ==== Verify ==== ==== Verify ====
Line 153: Line 171:
  
   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 161: Line 186:
   * :!: This should be removed after flashing   * :!: This should be removed after flashing
  
-  sudo grubby --update-kernel='ALL' --args='iomem=relaxed' +  iomem='relaxed'
- +
-  iomem=relaxed+
  
/var/www/wiki/data/attic/notes/kernel_parameters.1686100492.txt.gz · Last modified: 2023/06/06 21:14 by Sean Rhone