cancel
Showing results for 
Search instead for 
Did you mean: 

New python code to control lighting hardware on the G20aj series on github

wherrera
Level 7
I've got some mod code for the lighting on the G20aj desktop series on github at
https://github.com/wherrera10/asus-lighting

This code is open source licensed. It uses the ASUS ACPIWMI.dll file resource.

The basic app sets the lighting to red, white, and blue.

Another app uses the lighting as a visualizer for something you are
playing on audio, via the Windows Stereo Mix recording device,
which is usually hidden under recording devices, so you must
go to audio settings and right click on the recoding device list to see.

These are still under development at an alpha level,
so suggestions are welcome.
11,198 Views
9 REPLIES 9

toronto699
Level 13
Thanks , works fine

toronto699 wrote:
Thanks , works fine


Hi toronto699

Do you happen to have the exe file still for this ? I want to test this too. Can you post a link with the executable file or teach me us on how to compile it. Thank you in advance.

I can put up an example executable (might need a microsoft visual c mfc .dll to run though) as a download here:

http://www.alahonua.com/temp/asus_light_clock.zip

Remember that any program that interacts with the ACPI needs to be run as an administrator.

wherrera wrote:
I can put up an example executable (might need a microsoft visual c mfc .dll to run though) as a download here:

http://www.alahonua.com/temp/asus_light_clock.zip

Remember that any program that interacts with the ACPI needs to be run as an administrator.


Thanks for the exe file.@wherrera. Just wondering what version of python did you use to make this code work?
I tried to make it work with Python 2.7.1 but it seems that it's missing some libraries.

Made the asus_light_clock & light_acpi work but not the asus_soundlighting & gui_asus_soundlighting. Thanks again 🙂

I know you need pyaudio at https://people.csail.mit.edu/hubert/pyaudio/ and also scipy and matplotlib, which I got from Anaconda's python installation.


Gengaku wrote:
Thanks for the exe file.@wherrera. Just wondering what version of python did you use to make this code work?
I tried to make it work with Python 2.7.1 but it seems that it's missing some libraries.

Made the asus_light_clock & light_acpi work but not the asus_soundlighting & gui_asus_soundlighting. Thanks again 🙂

adamsyes
Level 8
This is quite interesting. However, did anyone figure out how to import those lightning implementation modes from the new models G20CB to the AJ? This does work but I was hoping if we can make them work via the aegis II software or Asus command fashion

I hope this isn't a Hardware related changes they have done. Sucks for the first G20AJ users not obtaining this cool feature imo

chrimen
Level 7
I have one of the first ROG G20 released and I was able to get the breathing to work, but not the one with the sound effect. Every time I use the soundlighting.exe it just closes.
How should I be using this?

If the .exe won't work for you, I'd install Anaconda python 2.7 and the PyAudio package and run the script if you need it to work for you.


chrimen wrote:
I have one of the first ROG G20 released and I was able to get the breathing to work, but not the one with the sound effect. Every time I use the soundlighting.exe it just closes.
How should I be using this?

Sorry for reviving a four year old thread, but wanted to say thanks for this! I've adapted the code and hooked it in to my game so now I can control the lighting on my G20AJ while it's sat alongside the monitor for demos and expos 🙂

https://twitter.com/MartinCaine/status/1118423905243414529