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

Auto startup? #39

Open
natedawwgg opened this issue Mar 9, 2018 · 10 comments
Open

Auto startup? #39

natedawwgg opened this issue Mar 9, 2018 · 10 comments

Comments

@natedawwgg
Copy link

Issue

Is there auto startup?
Describe your issue, comment or suggestion
I have everything working perfectly fine, but once reset or sleep the keyboard defaults to standard. Is there any work around to this at all?

Thank you again for all of this!

@stephenlacy
Copy link
Owner

It would be easier to get https://github.com/stevelacy/msi-keyboard to run at startup with a preset color scheme.
https://askubuntu.com/questions/228304/how-do-i-run-a-script-at-start-up

I will eventually add persistence to this project which will enable it to remember the last setting upon start, and thus just starting the application on startup will re-enable the keyboard colors. #3

@m0rg5
Copy link

m0rg5 commented Apr 6, 2018

Same question for Windows 10, I've got it in Startup and windows pops up the window, can I get it to apply a preset color scheme at startup without seeing the window? Like with regedit -hidewnd or something?

@HerMajestyDrMona
Copy link

@stevelacy Big thanks for msi-keyboard-gui!
Steelseries Engine doesn't work for me, because I disabled the damaged Nvidia GPU by modded BIOS. Seems like Steelseries Engine identifies laptops in some dirty way, detecting if both GPUs are present...

Anyway, I would love to have msi-keyboard-gui.exe autostarted with last used settings. I know it's not nice to ask for ETA, but is this feature still planned?

@stephenlacy
Copy link
Owner

Eventually, I don't use my MSI much anymore, but for startup I was considering linux first. Not sure what would be needed for full windows startup support.

But config saving is the first item needed, then re-syncing with the config and applying it on startup.

@HerMajestyDrMona
Copy link

HerMajestyDrMona commented Sep 13, 2018

For autostart on Windows - I simply created a task in the Task Scheduler, triggered on "On workstation unlock of any user" event. Also changed "Conditions" to work on battery too. Whenever I log in it starts msi-keyboard-gui.exe. It helps to set lights after sleep mode, not only after the first login.
I think autostart isn't that big problem as auto-applying settings. If it worked, we could simply create a VBScript which could run it hidden (without displaying a window), and perhaps quit after few seconds.

@stephenlacy
Copy link
Owner

if you can make it so checking a box will auto-enable/disable that on windows and linux I will merge it

@HerMajestyDrMona
Copy link

I'm sorry, but I'm worried I'll be unable to do it with Node.js any soon (need to learn it, and soon sending laptop for repairs) :(
Maybe it would be faster if I wrote a tutorial how to do this, on Wiki page?

@NikolaasBender
Copy link

uhh, for the startup thing, could you just have a little script that runs at startup. That script runs the app without any graphics then exits the app. saving the colors you can just use a text file with hex color numbers or predetermined numbers to denote each color. overwrite the file every time you save and read it on every startup. Idk how file IO is on node.js but i asume its not super complicated. the hardest part will probably be startup script but bash is pretty straightforward and powerful.
just sharing ideas, not telling you how to build your code.

@NikolaasBender
Copy link

i'm going to see if this works, but on linux I think something like this will work to make it run at startup
"sudo ./Downloads/msi-keyboard-gui-linux-x64/msi-keyboard-gui && pkill msi-keybaord-gui"

@rijnhard
Copy link

rijnhard commented May 9, 2019

FYI: this alternative has a nice way of handling the autostart https://github.com/Gibtnix/MSIKLM

You may want to copy that udev handling in linux, just give attribution to the original author for that. But thats pretty sweet because it only fires if the device is detected.

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

No branches or pull requests

6 participants