Skip to content

Instantly share code, notes, and snippets.

@cdleveille
Last active May 2, 2024 23:50
Show Gist options
  • Save cdleveille/e84c235c6e8c17042d35a7c0d92cdc96 to your computer and use it in GitHub Desktop.
Save cdleveille/e84c235c6e8c17042d35a7c0d92cdc96 to your computer and use it in GitHub Desktop.
Install or update xone driver for Steam Deck (desktop shortcut and bash script)
[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=
#! /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-key --populate holo && 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 and plug in your Xbox Wireless Adapter." -n1 -s
@cdleveille
Copy link
Author

@kmassop If you are having issues I would recommend trying SavageCore's fork of the script as this one is a bit out-dated. Based on the comments in there I think there have been issues reportedly recently for it as well, but I believe it has been updated since then and should hopefully work now. Best of luck!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment