-
Notifications
You must be signed in to change notification settings - Fork 110
Not working on Asus GL504GM #8
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
Comments
Hi @nico87 Thanks for the ticket! As you have rightly deduced, you need to have superuser privileges to modify the keyboard RGB state. Support for the 0x1866 keyboard in your machine was added by PR #2 and works on the GM501, so I'm a little puzzled why it doesn't work on the GL504. One thing we could try is looking at the verbose output of
Cheers, Will |
Thanks. This is the output. Seems there are no errors, but unfortunately the keyboard backlight is still in rainbow mode.
|
Yeah, that all looks normal. Maybe the keyboard is somehow different even though it has a product ID we know about, Can you try:
Another thought: Asus Aura is the name used for a bunch of different control systems. On Asus motherboards and graphics cards, for instance, it controls RGB lighting in the case (and external LED strips); that hardware isn't connected on USB, so Aura control is via SMBus. I know Asus laptops also have an internal SMBus, but I've not heard of it being used to control the keyboard lighting. However, maybe that's what's going on with your machine. Do you have any RGB lighting that's not on the keyboard? Multicolour LEDs on the case or the lid perhaps? |
Yes. It has a front led and a led logo on the monitor cover.
|
So here's my keyboard:
There are some differences to your output: I've only got one interface, whereas you have three. This could be a good start. The endpoint under my interface with bInterfaceNumber 0 looks very much like yours, but we already know If you think the front LED and lid LED can change colours, that might also support for the idea that your machine uses a different bus to manage RGB. Here is an issue I filed against OpenAuraSDK while I was thinking that my laptop might support the full Asus Aura spec (like allowing the keyboard flash in time to music and so on). Sniffing in this direction, you'd want to find the SMBus and modprobe the driver (probably Intel hardware, so it'd be At this point, I would bet that the most promising avenue would be to try the USB approach again, but attaching to the second interface instead of the first. I'll try to push a few changes to the Python prototype of rogauracore tonight that you could try out. |
Yes! Definitely, it's like that. The lid and front LEDs are just like the keyboard. The following is the
Maybe I'm just talking BS, but if the i2c device 0 is not the keyboard, shouldn't rogauracore change its color the same? I mean, instead of changing the keyboard color, it should change one of the other LED. Thanks for your help! |
OK, so the
Maybe the i2c device looks more familiar. In the mean time, let's try the USB again, but talking to interface 1 instead of interface 0. There's a script you can download at https://raw.githubusercontent.com/wroberts/rogauracore/nico87/prototype/rogauracore.py . You'll need Python3 and python3-usb ( |
The i2cdetect output is:
Running the python script returns an exception:
|
i2c output looks just like mine, so I guess SMBus isn't the answer here. Sorry about the USB error, I don't quite understand that; I'll need to go and figure out why we can't connect to interface 1. Let's try interface 0 again, but using the python code. Updated script at https://github.com/wroberts/rogauracore/blob/nico87/prototype/rogauracore.py |
Thanks for your help. PS: I'm on ubuntu 19.04. Maybe this is the culprit? It didn't work on Ubuntu 18.04 as well, tho. Thanks! |
OK, so the Python version of To sum up our story so far: On the GL504GM, and, as of this morning, on the GU501G (#9), At this point, I don't have a solid hunch for why things are working on one laptop model but not on the two others. Asus's website says the GL504GM supports Aura Sync, which my GL503 does not support, so there might be a different control system or a different protocol being used. The GL504GM also has a programmable RGB light bar along the front of the laptop chassis, presumably not controlled by the keyboard. I can't find any current information on the GU501. I've muddied the waters a little bit by talking about i2c and SMBus; this thinking was in relation to the OpenAuraSDK project, which aims to support Asus's Aura and Aura Sync products under Linux, but which at the moment mostly seems to be focussed on RGB control of RAM modules on Asus motherboards. The hardware targeted by OpenAuraSDK is a dedicated Aura control chip on the motherboard, which is addressable over SMBus. As far as I can see, this SMBus seems to live at address 0x0b00 or 0x0b20 on AMD hardware, and possibly at 0xf000 on Intel. If you query the bus, you'll see a list of devices on the bus that are present on the machine. The Aura chip might live at 0x4e. You can see RAM sticks under 0x5 (0x50 is the first RAM stick, 0x51 the second, etc.). Where there is colour control of the RAM, there will be corresponding Aura controllers on 0x70, 0x71, etc. There is also the OpenPyAura project that is working on similar themes, might be interesting to check out. These projects are quite young, but are more sophisticated in terms of reverse engineering the Aura protocol, documenting different registers and settings, and supporting a much wider range of hardware than To be clear, All of this is just background to our central question, which we still don't have an answer to: how is it that the 0b05:1866 USB keyboard can be controlled on the GM501 but not on the GU501 or GL504? Do these two machines use USB for RGB control? If so, do they use a different interface or a different protocol than the GM501? If not, do they use an Aura control chip like Asus desktop motherboards do, and is this controlled over the SMBus? I suggest we engage in some sanity testing here. Questions:
|
Thanks for the clarification. I'll give OpenPyAura a shot later.
None of them work
Unfortunately, I don't have a dual boot. I don't have the possibility to mount another nvme ssd either and try it :-( |
OK, thanks for giving that a try. OpenPyAura might be a good direction to look for the moment. It seems to be working on both SMBus and USB interfaces, though I can't tell what kind of hardware is supported and how far along the project is. I see that Vinay Dargar has pcap dumps of USB packets over there, and they are really different to the stuff that I captured on my machine, with 65 byte payloads starting with 0xec 0x3b. That suggests that there might be different protocols at play. In case USB does turn out to be the answer, I'll outline how I made |
Since I'm having a similar issue (#9), I'm going to take a look at manipulating it from within VirtualBox to see if I can get any info. |
I wanted to follow-up. I'm not having any luck getting it to work via virtualbox. I'm not sure how to get it to actually see the USB keyboard -- I'm assuming user error for that. I'm not sure how to proceed, but I"ll keep an eye on this thread. |
To be able to connect USB devices, make sure you installed the vbox
additions and that your user is in the vboxusers group. Then, logout and
login again to make sure changes are effective.
Il sab 11 mag 2019, 15:22 Stuart Templeton <notifications@github.com> ha
scritto:
… I wanted to follow-up. I'm not having any luck getting it to work via
virtualbox. I'm not sure how to get it to actually see the USB keyboard --
I'm assuming user error for that. I'm not sure how to proceed, but I"ll
keep an eye on this thread.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#8 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAKMVZRL5EWN43UR5Y6K4BTPU4MIBANCNFSM4HK6QNAQ>
.
|
Something strange happened to me, and I thought maybe sharing it would help. This is on the Strix GL703GM. I had the same problem as every other currently open issue on this topic. Then I loaded Vbox and edited my lights from within there. Sidenote for Arch (maybe other?) users: I had to install virtuabox-ext-oracle (and reboot after) and also on the Windows image in Virtualbox go to Preferences -> USB -> checkbox on USB 2.0, before it worked. Once I changed the lights a bit from the box, I downloaded Wireshark to start snooping the USB traffic, but just randomly also ran the rogauracore command again on my host machine. Suddenly, the lights changed colour... I have no idea why, but it works now... so yay? The output from the command is the exact same as it was before, when it didn't work.
I hope this helps with the detective work. EDIT: After a reboot it doesn't work again. So, I can turn on Vbox, edit colours, close Vbox, it works from the host machine, but after a reboot it doesn't work again. Almost as if there's some activation that needs to happen first? |
I had a similar experience to @VesterDe except I couldn't get the AuraSync software installed in my VM - simply having booted the Windows VM with the device passed through seemed to enable something and allow rogauracore to work. |
I'm noticing a similar behavior. Linux starts up, my keyboard backlight shuts off. It's as though it has to be switched into "accept lighting commands" mode. When rebooting, the rainbow comes on and stays on, with animation, right until GRUB loads up. Then it's dead. There must be some message that turns the system on. How did you uncover the formats you've already documented, Will? |
Never mind. It was just the brightness. I added brightness controls to the application and was able to use it exactly as you had it. |
Hi can i used it for Arch ( Manjaro KDE ) ? |
@wroberts why was this issue closed?
EDIT: I spent some more time on this and turns out this comment worked for me. Seems like that init message makes rogauracore work on GL504GM. |
Hi, |
Can confirm. Works on my Zephyrus M GM501GM as well. |
Hi,
I just tried with compiling rogauracore and running it on a GL504GM.
If I run
rogauracore single_static ffffff
it returnsCould not open ROG Aura Core keyboard: LIBUSB_ERROR_ACCESS
.So I run
sudo rogauracore single_static ffffff
. In this case no error is returned but the backlight color does not change.This is my lsusb output:
May I provide more information on my system that could be helpful for you?
Thank you!
The text was updated successfully, but these errors were encountered: