{ "kernel_patches": { "gaming": { "description": "Gaming performance and compatibility patches", "enabled": true, "patches": { "steam-deck": { "description": "Steam Deck specific optimizations for Ubuntu", "url": "https://github.com/ValveSoftware/linux-kernel/raw/steamdeck-6.1.y/patches/0001-steam-deck-optimizations.patch", "enabled": false, "hardware_requirements": ["steam_deck"], "kernel_args": ["steam_deck.fan_control=1", "steam_deck.performance_mode=1"], "ubuntu_compatible": true, "kernel_versions": ["5.15", "6.1", "6.2"], "note": "Valve's official Steam Deck kernel patches" }, "handheld": { "description": "Handheld device optimizations for Ubuntu", "url": "https://github.com/linux-surface/linux-surface/raw/master/patches/5.15/0001-handheld-optimizations.patch", "enabled": false, "hardware_requirements": ["handheld_device"], "kernel_args": ["handheld.fan_control=1", "handheld.performance_mode=1"], "ubuntu_compatible": true, "kernel_versions": ["5.15", "6.1"], "note": "Linux Surface project patches for handheld devices" }, "gaming-performance": { "description": "General gaming performance optimizations for Ubuntu", "url": "https://github.com/graysky2/kernel_gcc_patch/raw/master/enable_additional_cpu_optimizations_for_gcc_v12.1%2B_kernel_v5.15%2B.patch", "enabled": true, "kernel_args": ["gaming.performance_mode=1", "gaming.low_latency=1"], "ubuntu_compatible": true, "kernel_versions": ["5.15", "6.1", "6.2"], "note": "Graysky2's CPU optimization patches for gaming" }, "wine-compatibility": { "description": "Wine and Proton compatibility improvements for Ubuntu", "url": "https://github.com/Frogging-Family/linux-tkg/raw/master/patches/0001-wine-compatibility.patch", "enabled": true, "kernel_args": ["wine.compatibility_mode=1"], "ubuntu_compatible": true, "kernel_versions": ["5.15", "6.1", "6.2"], "note": "Frogging-Family's Wine compatibility patches" } } }, "hardware": { "description": "Hardware-specific support patches for Ubuntu", "enabled": true, "patches": { "amd-optimizations": { "description": "AMD CPU and GPU optimizations for Ubuntu", "url": "https://github.com/graysky2/kernel_gcc_patch/raw/master/enable_additional_cpu_optimizations_for_gcc_v12.1%2B_kernel_v5.15%2B.patch", "enabled": false, "hardware_requirements": ["amd_cpu", "amd_gpu"], "kernel_args": ["amd.performance_mode=1"], "ubuntu_compatible": true, "kernel_versions": ["5.15", "6.1", "6.2"], "note": "Graysky2's AMD optimization patches" }, "intel-optimizations": { "description": "Intel CPU and GPU optimizations for Ubuntu", "url": "https://github.com/graysky2/kernel_gcc_patch/raw/master/enable_additional_cpu_optimizations_for_gcc_v12.1%2B_kernel_v5.15%2B.patch", "enabled": false, "hardware_requirements": ["intel_cpu", "intel_gpu"], "kernel_args": ["intel.performance_mode=1"], "ubuntu_compatible": true, "kernel_versions": ["5.15", "6.1", "6.2"], "note": "Graysky2's Intel optimization patches" }, "nvidia-optimizations": { "description": "NVIDIA GPU optimizations for Ubuntu", "url": "https://github.com/Frogging-Family/linux-tkg/raw/master/patches/0001-nvidia-optimizations.patch", "enabled": false, "hardware_requirements": ["nvidia_gpu"], "kernel_args": ["nvidia.performance_mode=1", "nvidia.drm.modeset=1"], "ubuntu_compatible": true, "kernel_versions": ["5.15", "6.1", "6.2"], "note": "Frogging-Family's NVIDIA optimization patches" }, "system76": { "description": "System76 hardware support for Ubuntu", "url": "https://github.com/system76/linux/raw/master/patches/0001-system76-ubuntu.patch", "enabled": false, "hardware_requirements": ["system76_hardware"], "kernel_args": ["system76.fan_control=1"], "ubuntu_compatible": true, "kernel_versions": ["5.15", "6.1", "6.2"], "note": "System76's official Ubuntu kernel patches" } } }, "performance": { "description": "General performance optimizations for Ubuntu", "enabled": true, "patches": { "cpu-scheduler": { "description": "CPU scheduler optimizations for Ubuntu", "url": "https://github.com/Frogging-Family/linux-tkg/raw/master/patches/0001-cpu-scheduler-optimizations.patch", "enabled": true, "kernel_args": ["sched.performance_mode=1"], "ubuntu_compatible": true, "kernel_versions": ["5.15", "6.1", "6.2"], "note": "Frogging-Family's CPU scheduler patches" }, "memory-management": { "description": "Memory management optimizations for Ubuntu", "url": "https://github.com/Frogging-Family/linux-tkg/raw/master/patches/0001-memory-management-optimizations.patch", "enabled": true, "kernel_args": ["vm.performance_mode=1"], "ubuntu_compatible": true, "kernel_versions": ["5.15", "6.1", "6.2"], "note": "Frogging-Family's memory management patches" }, "io-scheduler": { "description": "I/O scheduler optimizations for Ubuntu", "url": "https://github.com/Frogging-Family/linux-tkg/raw/master/patches/0001-io-scheduler-optimizations.patch", "enabled": true, "kernel_args": ["elevator=bfq"], "ubuntu_compatible": true, "kernel_versions": ["5.15", "6.1", "6.2"], "note": "Frogging-Family's I/O scheduler patches" }, "network-optimizations": { "description": "Network performance optimizations for Ubuntu", "url": "https://github.com/Frogging-Family/linux-tkg/raw/master/patches/0001-network-optimizations.patch", "enabled": true, "kernel_args": ["net.core.rmem_max=16777216", "net.core.wmem_max=16777216"], "ubuntu_compatible": true, "kernel_versions": ["5.15", "6.1", "6.2"], "note": "Frogging-Family's network optimization patches" } } }, "security": { "description": "Security and hardening patches for Ubuntu", "enabled": true, "patches": { "security-hardening": { "description": "General security hardening for Ubuntu", "url": "https://github.com/Ubuntu/linux/raw/master/security/0001-security-hardening.patch", "enabled": true, "kernel_args": ["security.hardening=1"], "ubuntu_compatible": true, "kernel_versions": ["5.15", "6.1", "6.2"], "note": "Ubuntu's official security hardening patches" }, "spectre-meltdown": { "description": "Spectre and Meltdown mitigations for Ubuntu", "url": "https://github.com/Ubuntu/linux/raw/master/security/0001-spectre-meltdown-mitigations.patch", "enabled": true, "kernel_args": ["spectre_v2=on", "meltdown=on"], "ubuntu_compatible": true, "kernel_versions": ["5.15", "6.1", "6.2"], "note": "Ubuntu's official Spectre/Meltdown mitigation patches" } } }, "compatibility": { "description": "Software compatibility patches for Ubuntu", "enabled": true, "patches": { "wine": { "description": "Wine compatibility improvements for Ubuntu", "url": "https://github.com/Frogging-Family/linux-tkg/raw/master/patches/0001-wine-compatibility.patch", "enabled": true, "kernel_args": ["wine.compatibility=1"], "ubuntu_compatible": true, "kernel_versions": ["5.15", "6.1", "6.2"], "note": "Frogging-Family's Wine compatibility patches" }, "proton": { "description": "Proton compatibility improvements for Ubuntu", "url": "https://github.com/Frogging-Family/linux-tkg/raw/master/patches/0001-proton-compatibility.patch", "enabled": true, "kernel_args": ["proton.compatibility=1"], "ubuntu_compatible": true, "kernel_versions": ["5.15", "6.1", "6.2"], "note": "Frogging-Family's Proton compatibility patches" }, "virtualization": { "description": "Virtualization compatibility for Ubuntu", "url": "https://github.com/Ubuntu/linux/raw/master/virtualization/0001-virtualization-compatibility.patch", "enabled": true, "kernel_args": ["virtualization.compatibility=1"], "ubuntu_compatible": true, "kernel_versions": ["5.15", "6.1", "6.2"], "note": "Ubuntu's official virtualization compatibility patches" } } }, "ubuntu_specific": { "description": "Ubuntu-specific patches and optimizations", "enabled": true, "patches": { "ubuntu-gaming": { "description": "Ubuntu gaming optimizations", "url": "https://github.com/Ubuntu/linux/raw/master/gaming/0001-ubuntu-gaming-optimizations.patch", "enabled": true, "kernel_args": ["ubuntu.gaming_mode=1"], "ubuntu_compatible": true, "kernel_versions": ["5.15", "6.1", "6.2"], "note": "Ubuntu's official gaming optimization patches" }, "ubuntu-performance": { "description": "Ubuntu performance optimizations", "url": "https://github.com/Ubuntu/linux/raw/master/performance/0001-ubuntu-performance-optimizations.patch", "enabled": true, "kernel_args": ["ubuntu.performance_mode=1"], "ubuntu_compatible": true, "kernel_versions": ["5.15", "6.1", "6.2"], "note": "Ubuntu's official performance optimization patches" }, "ubuntu-desktop": { "description": "Ubuntu desktop optimizations", "url": "https://github.com/Ubuntu/linux/raw/master/desktop/0001-ubuntu-desktop-optimizations.patch", "enabled": true, "kernel_args": ["ubuntu.desktop_mode=1"], "ubuntu_compatible": true, "kernel_versions": ["5.15", "6.1", "6.2"], "note": "Ubuntu's official desktop optimization patches" } } } }, "patch_application": { "auto_apply": true, "backup_patches": true, "patch_directory": "/var/lib/particle-os/kernel-patches", "backup_directory": "/var/lib/particle-os/kernel-patches/backup", "log_directory": "/var/log/particle-os/kernel-patches", "ubuntu_specific": { "use_dkms": true, "use_dkpg": true, "patch_format": "diff", "apply_method": "patch -p1" } }, "kernel_variants": { "ubuntu-generic": { "description": "Ubuntu generic kernel with patches", "base_package": "linux-generic", "headers_package": "linux-headers-generic", "patches_enabled": ["gaming", "performance", "security", "compatibility", "ubuntu_specific"], "enabled": true, "ubuntu_version": "24.04" }, "ubuntu-generic-hwe": { "description": "Ubuntu generic HWE kernel with patches", "base_package": "linux-generic-hwe-24.04", "headers_package": "linux-headers-generic-hwe-24.04", "patches_enabled": ["gaming", "performance", "security", "compatibility", "ubuntu_specific"], "enabled": true, "ubuntu_version": "24.04" }, "ubuntu-lowlatency": { "description": "Ubuntu low latency kernel with patches", "base_package": "linux-lowlatency", "headers_package": "linux-headers-lowlatency", "patches_enabled": ["gaming", "performance", "security", "compatibility", "ubuntu_specific"], "enabled": false, "ubuntu_version": "24.04" }, "ubuntu-lowlatency-hwe": { "description": "Ubuntu low latency HWE kernel with patches", "base_package": "linux-lowlatency-hwe-24.04", "headers_package": "linux-headers-lowlatency-hwe-24.04", "patches_enabled": ["gaming", "performance", "security", "compatibility", "ubuntu_specific"], "enabled": false, "ubuntu_version": "24.04" } }, "hardware_detection": { "auto_detect_patches": true, "detection_scripts": { "steam_deck": "/usr/local/bin/detect-steam-deck.sh", "handheld_device": "/usr/local/bin/detect-handheld.sh", "amd_cpu": "/usr/local/bin/detect-amd-cpu.sh", "amd_gpu": "/usr/local/bin/detect-amd-gpu.sh", "intel_cpu": "/usr/local/bin/detect-intel-cpu.sh", "intel_gpu": "/usr/local/bin/detect-intel-gpu.sh", "nvidia_gpu": "/usr/local/bin/detect-nvidia-gpu.sh", "system76_hardware": "/usr/local/bin/detect-system76.sh" } }, "ubuntu_integration": { "use_ubuntu_repositories": true, "ubuntu_kernel_sources": "https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/", "ubuntu_patch_workflow": "https://wiki.ubuntu.com/Kernel/Dev/KernelMaintenance", "ubuntu_kernel_team": "https://launchpad.net/~ubuntu-kernel", "ubuntu_kernel_ppa": "ppa:ubuntu-kernel-team/ppa" }, "patch_notes": { "important": "These patch URLs are examples and may not all exist. In a real implementation, you would need to verify each patch URL and ensure it's compatible with your specific Ubuntu kernel version.", "recommendations": [ "Use Ubuntu's official kernel patches when available", "Verify patch compatibility before applying", "Test patches in a safe environment first", "Keep backups of kernel configuration", "Use DKMS for kernel module patches when possible" ], "real_sources": [ "https://github.com/graysky2/kernel_gcc_patch - Real CPU optimization patches", "https://github.com/Frogging-Family/linux-tkg - Real gaming kernel patches", "https://github.com/ValveSoftware/linux-kernel - Real Steam Deck patches", "https://github.com/linux-surface/linux-surface - Real Surface/handheld patches", "https://github.com/system76/linux - Real System76 patches" ] } }