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

Sleep->Hibernate breaks keyboard light until GH is restarted #3449

Closed
2 tasks done
KelseyHigham opened this issue Dec 6, 2024 · 18 comments
Closed
2 tasks done

Sleep->Hibernate breaks keyboard light until GH is restarted #3449

KelseyHigham opened this issue Dec 6, 2024 · 18 comments
Labels
question Further information is requested

Comments

@KelseyHigham
Copy link

KelseyHigham commented Dec 6, 2024

Rules

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

What's wrong?

When I sleep, then hibernate the laptop - e.g. by closing the lid and waiting, or Start>Sleep and waiting - the keyboard backlight modes Rainbow, Heatmap, and Ambient don't work until G-Helper is restarted. It falls back to another keyboard light mode.

How to reproduce the bug?

  1. In G-Helper, enable Static backlight.
  2. In G-Helper, enable Rainbow backlight.
  3. Put the laptop to sleep, either by closing the lid, or with the Start menu. (maybe pressing the physical power button works too?)
  4. Wait until the laptop hibernates.
  5. Turn the laptop on.
  6. In G-Helper, the Rainbow mode is selected. But the backlight is a static color.
  7. Restart G-Helper.
  8. Now the backlight is rainbowing, as expected.

Logs

log.txt

Device and Model

Asus Zephyrus G14 GA402XZ

Additional information.

Sleeping by itself doesn't cause the issue. Hibernating by itself doesn't cause the issue.

I've been experiencing this problem for several months, maybe a year or longer, so it's not a recent regression.

Armoury Crate

Uninstalled

Asus Services

0

Version

0.197.0

OS

Windows 11 Home 23H2

@seerge
Copy link
Owner

seerge commented Dec 7, 2024

@KelseyHigham hello,

Do you have any specific time when it happened (so i can check in the log), cause G-Helper sets last used backlight mode on wake up (including hibernate).

Keep in mind that Ambient and Heatmap are not firmware controlled modes, they are dynamic and need app to be running and changing backlight color in real-time. But this does not apply to Rainbow (it's hardware mode), so it should be running by itself even w/o app.

@seerge seerge added the question Further information is requested label Dec 7, 2024
@KelseyHigham
Copy link
Author

I don't remember what time I slept my laptop, so I'll record a new instance and post a new log later.

There's two similar modes, Color Cycle and Rainbow. One of them is affected by this bug, and the other isn't.

@KelseyHigham
Copy link
Author

KelseyHigham commented Dec 7, 2024

log.txt
here's a log of what might be the same bug.

  1. i put my computer to sleep about 45 minutes ago. it didn't go into hibernate.
  2. i woke the computer. the keyboard backlight wasn't shining, even after i turned up its brightness to max.
  3. i restarted G-Helper. the backlight resumed Heatmap mode.

@KelseyHigham
Copy link
Author

KelseyHigham commented Dec 8, 2024

log.txt
here's the bug:

  1. my G-Helper was set to Heatmap. the most recent firmware mode was the rainbow one.
  2. i put my computer to sleep a few hours ago, i don't know exactly when.
  3. it hibernated.
  4. i turned on the computer a few minutes ago. (the windows hello camera didn't start, i'm not sure if this is related??) the keyboard was doing the firmware rainbow animation.
  5. i restarted G-Helper. the Heatmap mode resumed.

@seerge
Copy link
Owner

seerge commented Dec 9, 2024

@KelseyHigham

From the log i see that on wake-up form hibernation (i.e. when monitor was turned on), app has run all required RGB init commands and has set backlight color according to heatmap as it should

12/7/2024 4:41:36 PM: Power Mode Changed:Suspend <---- HIBERNATION
12/7/2024 4:41:36 PM: Timeout 19B6: 5D-BA-C5-C4-00
...
12/7/2024 6:59:52 PM: Lid Open
12/7/2024 6:59:52 PM: Lid 19B6: 5D-BA-C5-C4-03
12/7/2024 6:59:53 PM: Monitor Power On <---- WAKE UP 
12/7/2024 6:59:53 PM: AutoSetting for Online

...
12/7/2024 6:59:54 PM: Init 19B6: 5D-B9 <--- AURA INIT COMMANDS
12/7/2024 6:59:54 PM: Init 19B6: 5D-41-53-55-53-20-54-65-63-68-2E-49-6E-63-2E
12/7/2024 6:59:54 PM: Init 19B6: 5D-05-20-31-00-1A
12/7/2024 6:59:54 PM: USB 19B6: 5D-BD-01-FF-1F-FF-FF-FF 
....
12/7/2024 6:59:54 PM: AuraMode: HEATMAP <--- SETTING HEATMAP
12/7/2024 6:59:54 PM: Init 19B6: 5D-B9 <--- AND RUNNING INIT COMMANDS AGAIN
12/7/2024 6:59:54 PM: Init 19B6: 5D-41-53-55-53-20-54-65-63-68-2E-49-6E-63-2E
12/7/2024 6:59:54 PM: Init 19B6: 5D-05-20-31-00-1A

When you restart app, it literally does same thing as it already did on wake up

12/7/2024 7:00:21 PM: App launched: ROG Zephyrus G14 GA402XZ_GA402XZ :0.197.0.0en-US
....
12/7/2024 7:00:23 PM: Init 19B6: 5D-B9
12/7/2024 7:00:23 PM: Init 19B6: 5D-41-53-55-53-20-54-65-63-68-2E-49-6E-63-2E
12/7/2024 7:00:23 PM: Init 19B6: 5D-05-20-31-00-1A
12/7/2024 7:00:23 PM: USB 19B6: 5D-BD-01-FF-1F-FF-FF-FF
....
12/7/2024 7:00:23 PM: AuraMode: HEATMAP
12/7/2024 7:00:24 PM: Auto 19B6: 5D-BA-C5-C4-03
12/7/2024 7:00:25 PM: Init 19B6: 5D-B9
12/7/2024 7:00:25 PM: Init 19B6: 5D-41-53-55-53-20-54-65-63-68-2E-49-6E-63-2E
12/7/2024 7:00:25 PM: Init 19B6: 5D-05-20-31-00-1A

So I don't know what's happening on your side. Just in case I have literally same device and can't reproduce it.

Can you try this build, where I have added a bit more verbose logging and post a log from it if it happens as well ?

GHelper.zip

@KelseyHigham
Copy link
Author

i installed it and put my laptop to sleep, so i'll report back in a while.

during all these tests, i've had my laptop in Ultimate mode; that may affect things.

@KelseyHigham
Copy link
Author

log.txt
i woke my computer without checking whether it started to hibernate, oops. i think it only fell asleep?
i woke it and the keyboard was off, even when i increased it to full brightness. i restarted G-Helper, and the keyboard resumed Heatmap.

@KelseyHigham
Copy link
Author

log.txt
i changed my computer to sleep after a minute and hibernate after a minute, so here's a very short log.
my computer hibernated. i turned it on, and the keyboard was rainbowing. i restarted G-Helper, and it resumed Heatmap.

@seerge
Copy link
Owner

seerge commented Dec 10, 2024

@KelseyHigham ok,

i woke it and the keyboard was off, even when i increased it to full brightness. i restarted G-Helper, and the keyboard resumed Heatmap.

I think it's not really G-Helper's fault here, but rather firmware issue, that it doesn't completely "wake up" after sleep or hibernation (i.e. power off). So it simply ignores any init commands that G-Helper would send :) But after you restart app, it sends same init but since it happens after some time - it is accepted.

It also comes from the log

12/9/2024 12:37:34 PM: Monitor Power On
...
12/9/2024 12:37:34 PM: Init 19B6: 5D-B9
12/9/2024 12:37:34 PM: Init 19B6: 5D-41-53-55-53-20-54-65-63-68-2E-49-6E-63-2E
12/9/2024 12:37:34 PM: Init 19B6: 5D-05-20-31-00-1A
12/9/2024 12:37:34 PM: USB 19B6: 5D-BD-01-FF-1F-FF-FF-FF
12/9/2024 12:37:34 PM: AuraMode: HEATMAP
12/9/2024 12:37:34 PM: Init 19B6: 5D-B9
12/9/2024 12:37:34 PM: Init 19B6: 5D-41-53-55-53-20-54-65-63-68-2E-49-6E-63-2E
12/9/2024 12:37:34 PM: Init 19B6: 5D-05-20-31-00-1A
12/9/2024 12:37:34 PM: Error writing data to HID device: Operation failed early: The device is not connected. 5D-BC-01
12/9/2024 12:37:34 PM: Error writing data to HID device: Closed. 5D-BC-01-01-00-00-00-00-00-00-73-1A
12/9/2024 12:37:34 PM: Session:SessionUnlock
...
12/9/2024 12:37:36 PM: Error writing data to HID device: Closed. 5D-BC-01-01-00-00-00-00-00-47-A4-00
12/9/2024 12:37:38 PM: Error writing data to HID device: Closed. 5D-BC-01-01-00-00-00-00-00-33-99-00
12/9/2024 12:37:40 PM: Error writing data to HID device: Closed. 5D-BC-01-01-00-00-00-00-00-29-94-00
12/9/2024 12:37:42 PM: Error writing data to HID device: Closed. 5D-BC-01-01-00-00-00-00-00-14-8A-00
12/9/2024 12:37:44 PM: Error writing data to HID device: Closed. 5D-BC-01-01-00-00-00-00-00-0A-85-00

@seerge
Copy link
Owner

seerge commented Dec 10, 2024

@KelseyHigham try this build, I have added one more "retry" write to USB device if it's not responding after such "wake-up"

GHelper.zip

@KelseyHigham
Copy link
Author

log.txt
I turned off my GPU because I'm traveling soon; I can test again with Ultimate mode in a few days.
After sleeping and waking up, the keyboard light was off, even at full brightness.
After restarting G-Helper, the keyboard light turned on again, on Heatmap.

@KelseyHigham
Copy link
Author

log.txt
this one worked!! after sleep->hibernate->boot->login, the keyboard changed from rainbow to heatmap.

@seerge
Copy link
Owner

seerge commented Dec 11, 2024

@KelseyHigham ok, good news. So the new build works w/o restarting ?

@KelseyHigham
Copy link
Author

when i have time, i'll try it again on Ultimate, just to make sure that's not a factor. but yes, i think so.

should i file a separate Issue for the keyboard light being off when i wake from sleep?

@seerge
Copy link
Owner

seerge commented Dec 11, 2024

@KelseyHigham did your firmware turn off backlight also with new build ? cause from the log i don't see any errors attempting to change backlight level.

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

yes, i believe the backlight is still off when resuming from sleep, even with the new build. i can double-check later.

@KelseyHigham
Copy link
Author

actually no, i haven't seen the backlight-turning-off behavior since, so that problem seems fixed (or i haven't been able to replicate it).

@seerge
Copy link
Owner

seerge commented Dec 26, 2024

@KelseyHigham great

@seerge seerge closed this as completed Dec 26, 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