New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exit (Air)Link when SteamVR exits! #51
base: main
Are you sure you want to change the base?
Conversation
Just an update about my inability to find the Array.Find, I found out how to do it with the latest commit. Although it goes untested as I am not currently home, I will edit this message when I build and test the latest commit. |
Woops, I hit the wrong button :( |
I will look at this after work today |
@HyrumGG Thanks! Unfortunately, the latest commit is broken, as I have programmed it in VSCode... I am commiting a better and fixed version later today though. Sorry for the inconvenience. |
Cool! Fixed everything @HyrumGG! Please check to see if there is any optimizations/fixes I could make, thanks in advance! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Made the appropriate changes
Any idea when this would be merged? it's a very important change imo since it would solve the fact that the oculus button doesn't work |
@GlazedBelmont Unfortunately, this PR would not solve the issue of the Oculus button being unusable. This solves the issue where the "Exit VR" button would simply restart SteamVR instead of closing Oculus Link. |
I mean, there's no other use to the oculus button other than quitting link in that context |
So yes it does "fix" it by giving us a way to leave link that's not "kill steamVR and open the oculus menu while steamVR is still dead" |
Any update on this? |
Anything? |
@ItsKaitlyn03 @HyrumGG could you review and possibly merge this PR? it's been inactive for a while |
Hi @ItsKaitlyn03 @HyrumGG ! Also pushing this :) |
Can this be reviewed and merged>> this PR has been inactive for a while and seems nothing is doing anything more with it. |
Any progress in this matter? |
You can download the version with these changes using the following link: To make sure of the safety, I also builded my own version based on this branch. |
Hey @Eliminater74 and @MaxMls, I happened to also start working on this problem today (before I knew about your work), and I noticed you're waiting up to 10 seconds for vrserver to start because apparently you often ran into the case where vrserver couldn't be found. Well, it might be because sometimes, vrstartup.exe doesn't exit. Usually it does, but sometimes it doesn't. I've noticed that usually, the steps happen in this order: OVRServer_x64.exe starts our killer OculusDash.exe But sometimes, vrstartup.exe doesn't exit until vrserver and vrmonitor exit. In this case, you'r stuck on line 24 ( |
I actually have a kind of serious issue that I'm currently troubleshooting. On my machine, if the headset disconnects (e.g. because OculusClient is closed, or OVRService is stopped) while SteamVR is still running, my CPU and GPU will go to 100% and hang the machine for a few minutes. I don't know if it's because I'm also running Desktop+ or what, but it's a total pain. So I'm trying to add some code that will check for when vrservice is running but OVRService is not, and kill vrservice. |
FYI I've created another PR (#84) that automatically closes SteamVR if the user exited by closing the Oculus app (or stopped the service). It doesn't do nearly as much error checking as yours, but I just wanted to put it up there just in case it was useful to you guys. |
It's the long awaited thing! SteamVR no longer automagically restarts when you want to exit (Air)Link!
I have no idea how this affects Rift users as mine is currently in storage, please test if you do though.
This PR simply kills the OVRServer_x64.exe when vrserver.exe exits, thus, killing (Air)Link. But there's more room for error.
@HyrumGG If you could please review this and correct my stupidity, I did not find a way to run .Find on the array, so I resorted to using loops. Please submit a PR if you do find a way to do that, thanks!