Skip to content
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

XG Mobile shortcut #3437

Closed
2 tasks done
jkocon opened this issue Dec 4, 2024 · 5 comments
Closed
2 tasks done

XG Mobile shortcut #3437

jkocon opened this issue Dec 4, 2024 · 5 comments
Labels
question Further information is requested

Comments

@jkocon
Copy link

jkocon commented Dec 4, 2024

Rules

  • I made myself familiar with the Readme, FAQ and Troubleshooting.
  • I understand that, if insufficient information will be provided, my issue will be closed without an answer.

Is your feature request related to a problem? Please describe

I have mounted my XGM station to back of my sim rig and it's very incovinient access my laptop when it's connected to activate XGM

Describe the solution you'd like

Create shortcut for enabling/disabling XG Mobile

Describe alternatives you've considered

activate XGM via powershell/cmd script which can be triggered remotely via SSH

Device and Model

Asus ROG Flow X13 & X16, XGM RTX3070

Additional information.

No response

@jkocon
Copy link
Author

jkocon commented Dec 4, 2024

I've found place in InputDispatcher.cs to add shortcut, I've commited change request, I've tested it on my machine x13 and X16 and looks like it's activating fine - the problem is when XGM is not connected it's trying to launch function ToggleXGM() but listener is stopped after a while

F21 Alt, Control, Shift
GPU XGM = 1 : 0
XGM SUB device not found
4
Exception thrown: 'NvAPIWrapper.Native.Exceptions.NVIDIAApiException' in NvAPIWrapper.dll
Listener stopped
2
Exception thrown: 'NvAPIWrapper.Native.Exceptions.NVIDIAApiException' in NvAPIWrapper.dll
NVIDIA GeForce RTX 3050 Ti Laptop GPU
Eco flag : 0
Mux flag : -65536

Activating XGM Ctrl + Shift + Alt + F21 and deactivating Ctrl + Shift + Alt + F22

seerge added a commit that referenced this issue Dec 11, 2024
@seerge
Copy link
Owner

seerge commented Dec 11, 2024

@jkocon hello,

Sorry for a slow response - I was away.

I have added an option to toggle XGM via Ctrl+Shift+Alt+F21 (by default). Or optionally you can add following line to %appdata%\GHelper\config.json to change F21 to something else

"keybind_xgm":  <keycode>,

Where <keycode> is a code from https://www.oreilly.com/library/view/javascript-dhtml/9780596514082/apb.html

Try this build
GHelper.zip

Thanks

@seerge seerge added the question Further information is requested label Dec 11, 2024
@seerge
Copy link
Owner

seerge commented Dec 18, 2024

@jkocon did it work for you ?

@jkocon
Copy link
Author

jkocon commented Dec 19, 2024

sorry, I'll let you know when I'll be back from business travel as I don't have XGM with me currently

@jkocon
Copy link
Author

jkocon commented Dec 25, 2024

Hi, it works great with hotkey. thanks for adding it to release.

@seerge seerge closed this as completed Dec 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants