-
Star
(108)
You must be signed in to star a gist -
Fork
(4)
You must be signed in to fork a gist
-
-
Save SavageCore/263a3413532bc181c9bb215c8fe6c30d to your computer and use it in GitHub Desktop.
#!/bin/bash | |
# Download the latest version of the script from the repository and run it | |
echo -e "\e[1mDownloading the latest version of the script...\e[0m" | |
echo "" | |
curl -sSfL "https://github.com/SavageCore/xone-steam-deck-installer/releases/latest/download/xone_install_or_update.sh" >~/xone_install_or_update.sh || { | |
echo "Failed to download xone_install_or_update.sh. Aborting..." | |
read -n 1 -s -r -p "Press any key to exit" | |
exit 1 | |
} | |
curl -sSfL "https://github.com/SavageCore/xone-steam-deck-installer/releases/latest/download/xone.desktop" >~/Desktop/xone.desktop || { | |
echo "Failed to download xone.desktop. Aborting..." | |
read -n 1 -s -r -p "Press any key to exit" | |
exit 1 | |
} | |
curl -sSfL "https://github.com/SavageCore/xone-steam-deck-installer/releases/latest/download/xone_debug.desktop" >~/Desktop/xone_debug.desktop || { | |
echo "Failed to download xone_debug.desktop. Aborting..." | |
read -n 1 -s -r -p "Press any key to exit" | |
exit 1 | |
} | |
curl -sSfL "https://github.com/SavageCore/xone-steam-deck-installer/releases/latest/download/enable-pairing.desktop" >~/Desktop/enable-pairing.desktop || { | |
echo "Failed to download enable-pairing.desktop. Aborting..." | |
read -n 1 -s -r -p "Press any key to exit" | |
exit 1 | |
} | |
curl -sSfL "https://github.com/SavageCore/xone-steam-deck-installer/releases/latest/download/disable-pairing.desktop" >~/Desktop/disable-pairing.desktop || { | |
echo "Failed to download disable-pairing.desktop. Aborting..." | |
read -n 1 -s -r -p "Press any key to exit" | |
exit 1 | |
} | |
# Run the script | |
echo -e "\e[1mRunning the script...\e[0m" | |
echo "" | |
clear | |
chmod +x ~/xone_install_or_update.sh | |
exec bash ~/xone_install_or_update.sh |
#!/bin/bash | |
# xone install or update script for SteamOS | |
# by cdleveille | |
# updated by SavageCore | |
# | |
# https://gist.github.com/SavageCore/263a3413532bc181c9bb215c8fe6c30d | |
# Script version 0.10.1 | |
echo -e "\e[1mYou have the old script from Gist. Updating...\e[0m" | |
echo "" | |
curl -sSfL "https://github.com/SavageCore/xone-steam-deck-installer/releases/latest/download/xone_install_or_update.sh" >/tmp/xone_install_or_update.sh || { | |
echo "Failed to download the latest version of the script. Aborting..." | |
read -n 1 -s -r -p "Press any key to exit" | |
exit 1 | |
} | |
# Preserve the current working directory and arguments | |
PWD=$(pwd) | |
ARGS="$@" | |
# Replace the current script with the new version | |
mv /tmp/xone_install_or_update.sh "$0" | |
read -n 1 -s -r -p "Press any key to relaunch the script..." | |
clear | |
# Re-run the script with the same environment variables and arguments | |
cd "$PWD" || { | |
echo "Failed to change directory. Aborting..." | |
read -n 1 -s -r -p "Press any key to exit" | |
exit 1 | |
} | |
exec bash "$0" "$ARGS" |
For anyone wondering, just open the $HOME/.xone_install_or_update.sh script, replace all occurence of 3.6 with 3.7 and neptune-61 with neptune-611
not the cleanest way but works for now :)
For anyone wondering, just open the $HOME/.xone_install_or_update.sh script, replace all occurence of 3.6 with 3.7 and neptune-61 with neptune-611
not the cleanest way but works for now :)
Hmmm... this still isn't working for me. Four occurrences of the former, one occurrence of that latter. Perhaps there is ... something else?
Seems like you need a search and replace on neptune-65 and replace it with neptune-611 too
I shall get an update out in the next couple of days but @govatent workaround will work fine.
@tower12346 good catch, I'll make sure the script checks for the correct repo
0.10.0
Released 🚀
Changelog
- Support SteamOS 3.7
- Ensure the correct repo is used for the xone driver
Let me know if there's any issues but worked fine on my Deck after updating to 3.7
@SavageCore would it be an idea to upgrade this gist into an actual repository? We would get proper tagging out of the box, issues that can be tagged, also pull requests, discussions, etc.
@SavageCore would it be an idea to upgrade this gist into an actual repository? We would get proper tagging out of the box, issues that can be tagged, also pull requests, discussions, etc.
It would! I've been meaning to for a while now, will get to it soon
0.10.0
Released 🚀Changelog
* Support SteamOS 3.7 * Ensure the correct repo is used for the xone driver
Let me know if there's any issues but worked fine on my Deck after updating to 3.7
Thanks for updating this! After scratching my head for a while about why this wasn't working for me (I was getting "Failed to load xone_dongle module"), I tried running it with the debug flag (--debug in the commandline or the debug desktop shortcut) and that worked perfectly - not sure why there was a difference... thanks anyway 👍
Thanks for updating this! After scratching my head for a while about why this wasn't working for me (I was getting "Failed to load xone_dongle module"), I tried running it with the debug flag (--debug in the commandline or the debug desktop shortcut) and that worked perfectly - not sure why there was a difference... thanks anyway 👍
No problem! Debug will force a reinstall, not sure what happened there but at least that fixed it.
@mongrelion, moved to a repo. PR's welcome. Will close comments here in the next couple of days probably.
@SavageCore awesome. Good job!
updating the script for neptune 6.11 works, but another thing I had to note is that I had been using these scripts for so long that the cloned xone repo on my system was still the medusalix version, which doesn't have the 6.11 kernel fix. I guess I just never noticed because it worked anyway (until now) and the script never noticed since it only checks if a xone folder exists or not.
I needed to go to /home/deck/repos and manually delete the xone folder so the script would know to clone from the dlundqvist branch instead.