April 2021 Update

Transmission begins: Hi, fluke here!

With donations from so many, selling another laptop I had (and MSI GS65), plus chipping in some of my own cash I managed to get a GA401QM, complete with AniMe.

And yeah, I've been hacking on it since I got it! So this update will cover much of what I've learned and fixed so far, plus some updates on asusctl and AniMe.

Asusctl

Project Rename

Not the whole project, whcih is still the asus-linux umbrella, but the asus-nb-ctrl daemon project is renamed to asusctl with all existing tools keeping their names. Quite frankly I was sick of typing asus-nb-ctrl.

asusd-user

asusd-user is a new user daemon in progress which aims to provide user level setitngs for:

  • AniMe sequences
  • Keyboard lighting
  • Hardware profiles

while the base asusd will keep basic system settings, a bit like setting defaults if asusd-user isn't running. The config for asusd will need to be manually edited once this work is completed as the dbus interface will not save the settings sent (to prevent user settings constantly overwriting).

This is a work in progress and not yet released but you can try it out in main branch.

AniMe

I've pumped in a ton of work on AniMe.

asusd now has the following capabilities:

  • show an action sequence on boot
  • show an action sequence on shutdown (TODO: need to inhibit shutdown to allow sequence to complete)
  • show an action sequence on wake

asusctl can send a basic image.

asusd-user has support only for anime sequences at the moment. Something of a test run (it works well). I will be changing it so that users can store many sets of configs and select between them.

AniMe Crate

I split out the bulk of the AniMe specific stuff to a published crate which provides everything possible a consumer might need for interaction with the AniMe display either through USB direct or through the asusd dbus interfaces.

Supported so far is:

  • Sequences of data,
  • Data can be:
    • Image<scale, rotate, position>
    • ASUS style gif
    • Plain image type gif
    • Pause
  • Create USB HID packets for writing to the device

I'll add extra effects and other goodies over time. One I'd like to add soon is a fade for images and gifs.

Also big thanks to @meumeu for ZephyrusBling which provided a lot of pointers to how to sample images nicely.

NOTE: ASUS style gif means the diagonal gif. You should check out this article for some nice info. In the asusctl data directory, and in rog-anime I've included a .png version of the template from that site whcih can be displayed as is to show exactly the dimensions on anime.

Other features to come are:

  • Diagonal font and text
  • General font and text
  • System info for Linux and Windows
  • Audio EQ visual for Linux and Windows
  • Time+Date display

RGB Keyboards and other

Some helpful users have provided wireshark captures of the new Strix models with touchpad-numpad, and the extra RGB zones.

Touchpad-numpad

So it appears that the device 0x18c6 is the numpad device. I'm unsure of exactly how these combo devices work yet.. There seems to be an on/off switch made of two bytes send to that device, but actually using it I'm yeah, need info.

It's possible that the on/off mentioned is sent along with extra commands on i2c bus. Won't know for sure until a test is jimmied up.

Extra lighting

On models with numpad as normal combined with RGB per-key, the captures have been umm... captured. Yeah. It's just a matter of mapping them out now.

I'm part way through work to pull the lighting stuff in to an rog-aura crate now, which will include functionality similar to the anime work above. So users will be able to assign action sequences to individual key lights.

2021 G14 (GA401Q)

dGPU always on

As discussed last month, there is a setting in Windows Armory Crate which can turn the dGPU on/off/auto. I've dumped the ACPI tables and found the call that makes this happen, and written a test patch.

Re-enabling the dgpu in Linux with this patch is a 3 step process however.

  • echo 0 to the new dev path
  • rescan PCI bus
  • echo 0 to the new dev path again

The last two steps are required because the ACPI appears to not save the setting unless step one and two are performed to wake things up, then the last step performed so the ACPI call can check things woke correctly then save.

You can also remove the device this way too, but you need to first rmmod the drivers, then detach the devices from the device tree or you'll get a hard system hang. And anyway once you've done those steps you've pretty much done in software what ACPI was doing - overall the ACPI method seems like a horrible hack ASUS did to do what asusctl does, but in Windows.

The sole reason for the patch above is to re-enable the device. But I need to find the best way to do so that doesn't require the multiple steps. The first step also requires 5-10 seconds due to a bunch of count-down loops in the ACPI method chain so if this is included in kernel then boot can take extra time (and every time too as the setting won't save unless you do the extra steps).

Touchpad issues!

So the fix here appears to be to build the pinctrl_amd module into the kernel permanently. The reason to do so is so that it loads and initialises everything correctly before the drivers that need the hardware it sets up.

Verified to fix:

  • GA401Q (2021 G14)
  • GA503Q (2021 G15)

I suspect it will also fix the 2020 G15 502IU one user had issues with.

2020/2021 G14/G15 backlight

I touched on this last month. There's some work to be done that I haven't had a chance to get round to yet, so will do soon.

The basis is: the backlight control isn't correctly set up in the kernel and the current patch is causing a side-effect that makes it work.

Suspending

I'm currently maintaining a git repo for fedora kernel to include the pinctrl_amd module builtin, and all the patches for base ROG functions + for correctly suspend (verified on 2021 G14 so far).

These patches are all pulled from this git branch.

Confirmation of G15 is in progress. This post will be updated in the next day or so.

Closing

If you think I've missed anything important please ping me (on discord).

Legal Matters

ASUS and ROG Trademark is either a US registered trademark or trademark of ASUSTeK Computer Inc. in the United States and/or other countries.

Reference to any ASUS products, services, processes, or other information and/or use of ASUS Trademarks does not constitute or imply endorsement, sponsorship, or recommendation thereof by ASUS.

The use of ROG and ASUS trademarks within this website and associated tools and libraries is only to provide a recognisable identifier to users to enable them to associate that these tools will work with ASUS ROG laptops.

Privacy Policy

We use Matomo

Matomo is an open source web analytics platform. A web analytics platform is used by a website owner in order to measure, collect, analyse and report visitor data for purposes of understanding and optimizing their website.

Purpose of the processing

Matomo is used to get an idea how our website is used by our users so we can optimize things further so that the user may find the most relevant information more quickly.

Data Matomo is processing

  • User IP address
  • Optional User ID
  • Date and time of the request
  • Title of the page being viewed
  • URL of the page being viewed
  • Referrer URL
  • Screen resolution being used
  • Time in local user’s timezone
  • Files that were clicked and downloaded
  • Links to an outside domain that were clicked
  • Page generation time
  • User location: country, region, city, approximate latitude and longitude
  • Main Language of the browser being used
  • User Agent of the browser being used

Pick up the one you are using:

  • Cookies
  • IP address
  • User ID
  • Custom Dimensions
  • Custom Variables
  • Location of the user

And also:

  • Date and time
  • Title of the page being viewed
  • URL of the page being viewed
  • URL of the page that was viewed prior to the current page
  • Screen resolution
  • Time in local timezone
  • Files that were clicked and downloaded
  • Link clicks to an outside domain
  • Pages generation time
  • Country, region, city
  • Main Language of the browser
  • User Agent of the browser

This list can be completed with additional features such as:

  • Form interactions
  • Media interactions
  • A/B Tests

The processing of personal data with Matomo is based on legitimate interests

If you wish us to not process any personal data with Matomo, you can opt-out from it at any time. There will be no consequences at all regarding the use of our website.

You can withdraw at any time your consent by clicking here

The right to lodge a complaint with a supervisory authority

If you think that the way we process your personal data with Matomo analytics is infringing the law, you have the right to lodge a complaint with a supervisory authority.

We are not doing any profiling.