Comments (7)
Dont know where to say thanks so Im doing it here. After using only the controller wired (I knew today xpadneo was to make it work wireless) I uninstalled 0.6, installed 0.7.2 and it worked wirelessly at the first try, and it did the rumble thing! thanks!
from xpadneo.
Hi there, at the moment the best practice is the following:
- uninstall the outdated driver by running its
./uninstall.sh
script - update the git clone by running
git pull
- install the newly version by running
./install.sh
It is in fact important to uninstall the old version using the outdated uninstall.sh
script before you update, otherwise the old versions will accumulate as /usr/src/hid-xpadneo-$VERSION/
.
It is most probably not the best and cleanest solution as it is at the moment.
Which behavior would you expect as a user?
Most probably the uninstall script should install every old instance too,...
Maybe we should
- add an
update.sh
script - let the uninstall script remove all old versions
from xpadneo.
Hi,
Thanks for the reply. I would agree, the ideal solution would be to create an update.sh script which handles any cleanup and reconfiguration, and the uninstall script should remove all versions/traces.
As a user, I can see people potentially redownloading the new version and running the install.sh again assuming they will get a clean update, or what they will likely do is run the uninstall.sh on the new download, which wouldn't remove the old version.
Maybe you can do something similar to how the scraping tool skyscraper does it:
https://github.com/muldjord/skyscraper/blob/master/update_skyscraper.sh
It looks for contents of the VERSION file in the top level directory, and I guess does a compare of sorts, if it differs it'll either download the new release and update, or it will suggest you have the new version already and close.
Also, just an additional idea, on the install.sh you could run a similar check to see if the driver is already installed and guide the user accordingly to either update or uninstall.
Cheers!
from xpadneo.
would you please give it a try?
the branch is called "update_script".
https://github.com/atar-axis/xpadneo/tree/update_script
from xpadneo.
Btw, in the case that the repo directory is outdated it wont be updated automatically because the update script is executed via sudo
and I don't like the idea that git pull
is executed as superuser. You will see a hint on how to update it by hand - once it is up-to-date, the rest is done automatically.
from xpadneo.
Wow, thanks! I will give this a go a little later on when I am at home and let you know what happens. How would you like me to test this?
Do you want me to remove my driver completely using the existing uninstall.sh, download the update branch and try to update (I should get a message saying it's the current version).
Or - do you want me to run a "git pull origin update_script" command (non sudo) on my existing directory (which I assume will bring down the branch update_script and merge? I am not experienced with git commands so please correct me if this is wrong). And once complete run update.sh as superuser?
Thanks
from xpadneo.
Anyway, I will merge it to the master branch, it is not a critical update so if it doesn't work 100% as expected it won't be a big problem. In that case we will hear from others very soon I guess ;)
I think it works just fine as it is, I already tested it a bit.
from xpadneo.
Related Issues (20)
- Series controller not found at all HOT 7
- How To Update Controller Firmware through Xbox Accessories and VirtualBox HOT 1
- Steam and Wine not seeing any sort of input on the controls HOT 2
- Triggers getting stuck after releasing them HOT 9
- Xbox Controller still shown as connected after disconnecting HOT 11
- Controllers do not register as joysticks after reboot HOT 2
- Xbox elite Series 2 - MAC address not showing
- Steam deck support (haptics) HOT 3
- xbox cloud gaming with xbox series x controller x and y swapped and trigger not working HOT 1
- gentoo + 045e:02ea Microsoft Corp. Xbox One Controller (wired usb) HOT 7
- Can't get it to compile on an aarch64(snapdragon 845) phone HOT 11
- Programm not working / driver problems HOT 1
- Can't play with two controllers HOT 4
- Vibration not work on Gamesir T4 Nova Lite
- readme.md could REALLY use some additional troubleshooting steps. HOT 1
- spams connect/disconnect when connecting via bluetooth. HOT 1
- Rumble lasts too long with some games HOT 4
- Can't connect more then one xbox controller(?) HOT 6
- Gulikit KK3 Max rumble issues HOT 2
- Xpadneo not surviving kernel updates on Ubuntu 22.04 / Kernel 6.5.0? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xpadneo.