-
-
Save allenwyma/fc24bdcd6595175f80847f5a5ac2d01f to your computer and use it in GitHub Desktop.
Install or update xone driver for Steam Deck (desktop shortcut and bash script)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Desktop Entry] | |
Comment[en_US]= | |
Comment= | |
Exec=bash $HOME/xone_install_or_update.sh | |
GenericName[en_US]= | |
GenericName= | |
Icon=preferences-desktop-gaming | |
MimeType= | |
Name[en_US]=Install⁄Update Xone | |
Name=Install⁄Update Xone | |
Path= | |
StartupNotify=false | |
Terminal=true | |
TerminalOptions= | |
Type=Application | |
X-DBUS-ServiceName= | |
X-DBUS-StartupType= | |
X-KDE-SubstituteUID=false | |
X-KDE-Username= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# set xone local repo folder location | |
XONE_LOCAL_REPO="/home/deck/repos/xone" | |
# rename/back up fakeroot.conf to avoid error | |
sudo mv /etc/ld.so.conf.d/fakeroot.conf /etc/ld.so.conf.d/fakeroot.conf.bck | |
# install required linux headers/packages | |
sudo steamos-readonly disable && sudo pacman-key --init && sudo pacman-key --populate archlinux && sudo pacman -Syu curl wget git base-devel gcc cabextract linux-neptune-headers dkms libisl libmpc | |
# does the xone local repo folder already exist? | |
if [ ! -d $XONE_LOCAL_REPO ] | |
then | |
# ...if no, clone the repo and cd into it | |
git clone https://github.com/medusalix/xone $XONE_LOCAL_REPO | |
cd $XONE_LOCAL_REPO | |
else | |
# ...if yes, cd into it, run the uninstall script, and pull down any new updates from the remote repo | |
cd $XONE_LOCAL_REPO | |
sudo ./uninstall.sh | |
git pull | |
fi | |
# run the xone install and get-firmware scripts | |
sudo ./install.sh --release | |
sudo xone-get-firmware.sh --skip-disclaimer | |
read -p "Done. You may now safely close the window." -n1 -s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment