mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-01-30 12:32:37 +00:00
feat: Switch to modified xone that retains full support for xpad, resolves issues with third party game controllers in previous releases.
chore: Remove unneeded amdgpu.conf thanks to fsync kernel.
This commit is contained in:
parent
e43ff9ee98
commit
6f50817806
@ -83,7 +83,6 @@ RUN sed -i 's@enabled=0@enabled=1@g' /etc/yum.repos.d/_copr_ublue-os-akmods.repo
|
|||||||
wget https://negativo17.org/repos/fedora-multimedia.repo -O /etc/yum.repos.d/negativo17-fedora-multimedia.repo && \
|
wget https://negativo17.org/repos/fedora-multimedia.repo -O /etc/yum.repos.d/negativo17-fedora-multimedia.repo && \
|
||||||
rpm-ostree install \
|
rpm-ostree install \
|
||||||
/tmp/akmods-rpms/kmods/*xpadneo*.rpm \
|
/tmp/akmods-rpms/kmods/*xpadneo*.rpm \
|
||||||
/tmp/akmods-rpms/kmods/*xpad-noone*.rpm \
|
|
||||||
/tmp/akmods-rpms/kmods/*xone*.rpm \
|
/tmp/akmods-rpms/kmods/*xone*.rpm \
|
||||||
/tmp/akmods-rpms/kmods/*openrazer*.rpm \
|
/tmp/akmods-rpms/kmods/*openrazer*.rpm \
|
||||||
/tmp/akmods-rpms/kmods/*v4l2loopback*.rpm \
|
/tmp/akmods-rpms/kmods/*v4l2loopback*.rpm \
|
||||||
|
@ -7,7 +7,7 @@ IMAGE_FLAVOR=$(jq -r '."image-flavor"' < $IMAGE_INFO)
|
|||||||
FEDORA_VERSION=$(jq -r '."fedora-version"' < $IMAGE_INFO)
|
FEDORA_VERSION=$(jq -r '."fedora-version"' < $IMAGE_INFO)
|
||||||
|
|
||||||
# SCRIPT VERSION
|
# SCRIPT VERSION
|
||||||
HWS_VER=22
|
HWS_VER=23
|
||||||
HWS_VER_FILE="/etc/bazzite/hws_version"
|
HWS_VER_FILE="/etc/bazzite/hws_version"
|
||||||
HWS_VER_RAN=$(cat $HWS_VER_FILE)
|
HWS_VER_RAN=$(cat $HWS_VER_FILE)
|
||||||
|
|
||||||
@ -215,6 +215,29 @@ if grep -qv "graphical.target" <<< "$(systemctl get-default)"; then
|
|||||||
systemctl set-default graphical.target
|
systemctl set-default graphical.target
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# CLEAN UP
|
||||||
|
# AMDGPU settings change that the fsync kernel now handles.
|
||||||
|
if [[ -f "/etc/modprobe.d/amdgpu.conf" ]]; then
|
||||||
|
rm -f "/etc/modprobe.d/amdgpu.conf"
|
||||||
|
fi
|
||||||
|
# Controller chnages are no longer needed thanks to patched xone driver.
|
||||||
|
if [[ -f "/etc/modprobe.d/xone.conf" ]]; then
|
||||||
|
rm -f "/etc/modprobe.d/xone.conf"
|
||||||
|
fi
|
||||||
|
if [[ -f "/etc/modprobe.d/xpad-noone-blacklist.conf" ]]; then
|
||||||
|
rm -f "/etc/modprobe.d/xpad-noone-blacklist.conf"
|
||||||
|
fi
|
||||||
|
if [[ -f "/etc/modules-load.d/xpad-noone.conf" ]]; then
|
||||||
|
rm -f "/etc/modules-load.d/xpad-noone.conf"
|
||||||
|
fi
|
||||||
|
if [[ -f "/etc/modprobe.d/xpadneo.conf" ]]; then
|
||||||
|
rm -f "/etc/modprobe.d/xpadneo.conf"
|
||||||
|
fi
|
||||||
|
# Previous optional solution for zenpower3 that has been replaced with zenergy.
|
||||||
|
if [[ -f "/etc/modprobe.d/amdcpu.conf" ]]; then
|
||||||
|
rm -f "/etc/modprobe.d/amdcpu.conf"
|
||||||
|
fi
|
||||||
|
|
||||||
mkdir -p /etc/bazzite
|
mkdir -p /etc/bazzite
|
||||||
echo $HWS_VER > $HWS_VER_FILE
|
echo $HWS_VER > $HWS_VER_FILE
|
||||||
echo $IMAGE_NAME > $KNOWN_IMAGE_NAME_FILE
|
echo $IMAGE_NAME > $KNOWN_IMAGE_NAME_FILE
|
||||||
|
@ -49,11 +49,9 @@ THEME_DIR="/usr/share/ublue-os/bazzite/themes"
|
|||||||
GRADIENCE_DIR="$HOME/.var/app/com.github.GradienceTeam.Gradience/config/presets/user"
|
GRADIENCE_DIR="$HOME/.var/app/com.github.GradienceTeam.Gradience/config/presets/user"
|
||||||
mkdir -p "$GRADIENCE_DIR"
|
mkdir -p "$GRADIENCE_DIR"
|
||||||
if [[ ! -f "$GRADIENCE_DIR/vapor.json" ]]; then
|
if [[ ! -f "$GRADIENCE_DIR/vapor.json" ]]; then
|
||||||
rm -f "$GRADIENCE_DIR/vapor.json"
|
|
||||||
cp "$THEME_DIR/vapor.json" "$GRADIENCE_DIR/vapor.json"
|
cp "$THEME_DIR/vapor.json" "$GRADIENCE_DIR/vapor.json"
|
||||||
fi
|
fi
|
||||||
if [[ ! -f "$GRADIENCE_DIR/vgui2.json" ]]; then
|
if [[ ! -f "$GRADIENCE_DIR/vgui2.json" ]]; then
|
||||||
rm -f "$GRADIENCE_DIR/vgui2.json"
|
|
||||||
cp "$THEME_DIR/vgui2.json" "$GRADIENCE_DIR/vgui2.json"
|
cp "$THEME_DIR/vgui2.json" "$GRADIENCE_DIR/vgui2.json"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
# Use Vulkan driver for AMD GCN 1.0 & GCN 2.0 GPUs (HD 7000-8000 series)
|
|
||||||
options amdgpu si_support=1
|
|
||||||
options amdgpu cik_support=1
|
|
||||||
options radeon si_support=0
|
|
||||||
options radeon cik_support=0
|
|
@ -1 +0,0 @@
|
|||||||
# This file intentionally empty
|
|
@ -1 +0,0 @@
|
|||||||
# This file intentionally empty
|
|
@ -1 +0,0 @@
|
|||||||
# This file intentionally empty
|
|
@ -1 +0,0 @@
|
|||||||
# This file intentionally empty
|
|
Loading…
x
Reference in New Issue
Block a user