mirror of
https://github.com/theupriser/steamify-cachyos-live-iso.git
synced 2026-10-14 11:07:13 +02:00
Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
146f1f0c7c | ||
|
|
ac24795cfb | ||
|
|
2f90d892f1 | ||
|
|
3215497d2e |
No files matched your search
@@ -1,6 +0,0 @@
|
|||||||
# Forwards all NVIDIA module load requests to a "smart" loader that selects
|
|
||||||
# correct version of the module depending on used hardware.
|
|
||||||
install nvidia /usr/local/bin/nvidia-module-loader
|
|
||||||
install nvidia_drm /usr/local/bin/nvidia-module-loader
|
|
||||||
install nvidia_uvm /usr/local/bin/nvidia-module-loader
|
|
||||||
install nvidia_modeset /usr/local/bin/nvidia-module-loader
|
|
||||||
@@ -1,22 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
# Quick pass if one of the modules is already loaded.
|
|
||||||
if [[ -e /sys/module/nvidia || -e /sys/module/nouveau ]]; then
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Load compatible version of NVIDIA modules for current hardware
|
|
||||||
if chwd --list | awk '{ if($2 == "nouveau" || $2 == "nvidia-dkms-470xx" || $2 == "nvidia-dkms-580xx") f=1 } END {exit (f == 1) ? 0 : 1 }'; then
|
|
||||||
modprobe nouveau
|
|
||||||
elif chwd --list | awk '{ if($2 == "nvidia-open-dkms") f=1 } END {exit (f == 1) ? 0 : 1 }'; then
|
|
||||||
# Load some basic dependencies of nvidia modules
|
|
||||||
modprobe video
|
|
||||||
modprobe drm_ttm_helper
|
|
||||||
modprobe drm_kms_helper
|
|
||||||
# load nvidia modules
|
|
||||||
modprobe --ignore-install -a nvidia nvidia-modeset nvidia-drm nvidia-uvm
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Otherwise, do a fallback to nouveau anyway
|
|
||||||
if [[ ! -e /sys/module/nouveau && ! -e /sys/module/nvidia ]]; then
|
|
||||||
modprobe nouveau
|
|
||||||
fi
|
|
||||||
@@ -9,9 +9,15 @@
|
|||||||
# takes the last matching rule, and a later %wheel rule would ask again. Never fails the install: a
|
# takes the last matching rule, and a later %wheel rule would ask again. Never fails the install: a
|
||||||
# problem leaves the log and Steamify can be run again from the desktop.
|
# problem leaves the log and Steamify can be run again from the desktop.
|
||||||
root="$1" user="$2" choice="${3:-}"
|
root="$1" user="$2" choice="${3:-}"
|
||||||
# Not filled in by Calamares (empty, or the literal ${gs[...]}): the page's
|
# Not filled in by Calamares (empty, or the literal ${gs[...]}): the page's default. HDMI-CEC and the
|
||||||
# default, everything on.
|
# Steam Machine items are ticked there only on a Steam Machine (Steamify's detect_valve_fremont).
|
||||||
[[ -z "$choice" || "$choice" == *'${'* ]] && choice=gaming,theme,glyphs,single,launcher,notify,vram,cec,machine,poweroff
|
if [[ -z "$choice" || "$choice" == *'${'* ]]; then
|
||||||
|
choice=gaming,theme,glyphs,single,launcher,notify,vram
|
||||||
|
vendor="$(cat /sys/class/dmi/id/sys_vendor 2>/dev/null)" product="$(cat /sys/class/dmi/id/product_name 2>/dev/null)"
|
||||||
|
if [[ "$vendor" == Valve && "$product" == Fremont ]] || [[ "$vendor" == OEM && "$product" == F7F ]]; then
|
||||||
|
choice+=,cec,machine,poweroff
|
||||||
|
fi
|
||||||
|
fi
|
||||||
boot=gamescope options=""
|
boot=gamescope options=""
|
||||||
for id in ${choice//,/ }; do
|
for id in ${choice//,/ }; do
|
||||||
case "$id" in
|
case "$id" in
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ btrfs-progs
|
|||||||
cachy-chroot
|
cachy-chroot
|
||||||
cachyos-calamares-next
|
cachyos-calamares-next
|
||||||
cachyos-cli-installer-new
|
cachyos-cli-installer-new
|
||||||
|
cachyos-drm-awaiter
|
||||||
cachyos-fish-config
|
cachyos-fish-config
|
||||||
cachyos-hello
|
cachyos-hello
|
||||||
cachyos-hooks
|
cachyos-hooks
|
||||||
|
|||||||
Reference in new issue
Block a user