seerge / g-helper

Lightweight Armoury Crate alternative for Asus laptops and ROG Ally. Control tool for ROG Zephyrus G14, G15, G16, M16, Flow X13, Flow X16, TUF, Strix, Scar and other models
https://g-helper.com
GNU General Public License v3.0
7.74k stars 269 forks source link

Delay power mode change on power state change #3371

Closed TheKigen closed 4 days ago

TheKigen commented 5 days ago

Rules

Is your feature request related to a problem? Please describe

So recently my ASUS laptop has had a issues with the barrel plug where when I move it it registers a power state change. From plugged in to on battery to plugged in in rapid succession.

Describe the solution you'd like

So what I would like is some way to delay changing power modes and particularly screen modes when this occurs. A delay of as little as a second would suffice but it being configurable would be preferred.

Describe alternatives you've considered

No response

Device and Model

ASUS Strix SCAR 18 (2023) G834JY

Additional information.

11/13/2024 4:30:30 PM: App launched: ROG Strix G834JY_G834JY :0.197.0.0en-US
11/13/2024 4:30:30 PM: Start Count: 33
11/13/2024 4:30:34 PM: Matrix control device was not found on your machine.
11/13/2024 4:30:36 PM: C:\ProgramData\ASUS\GameVisual\ASUS_DCIP3.icm DCIP3
11/13/2024 4:30:36 PM: C:\ProgramData\ASUS\GameVisual\ASUS_DisplayP3.icm DisplayP3
11/13/2024 4:30:36 PM: C:\ProgramData\ASUS\GameVisual\ASUS_sRGB.icm sRGB
11/13/2024 4:30:36 PM: NVIDIA GeForce RTX 4090 Laptop GPU
11/13/2024 4:30:38 PM: CPU: -1 - 13th Gen Intel(R) Core(TM) i9-13980HX - Intel64 Family 6 Model 183 Stepping 1
11/13/2024 4:30:39 PM: AutoSetting for Online
11/13/2024 4:30:39 PM: BatteryLimit = 90 : OK
11/13/2024 4:30:39 PM: Optimization service is running
11/13/2024 4:30:39 PM: ChargerStatus: 1
11/13/2024 4:30:39 PM: Eco flag : 0
11/13/2024 4:30:39 PM: Mux flag : 1
11/13/2024 4:30:39 PM: \\?\DISPLAY#BOE0B35#4&9fbf4ff&2&UID8388688#{e6f07b5f-ee97-4a90-b076-33f57bf4eaa7} DISPLAYCONFIG_OUTPUT_TECHNOLOGY_INTERNAL
11/13/2024 4:30:39 PM: \\?\DISPLAY#BOE0B35#4&9fbf4ff&2&UID8388688#{e6f07b5f-ee97-4a90-b076-33f57bf4eaa7} \\.\DISPLAY1\Monitor0
11/13/2024 4:30:39 PM: NE180QDM-NZ2 HDR: False 8 5 True
11/13/2024 4:30:39 PM: Mode = 1 : OK
11/13/2024 4:30:39 PM: Init 19B6: 5D-B9
11/13/2024 4:30:39 PM: Init 19B6: 5D-41-53-55-53-20-54-65-63-68-2E-49-6E-63-2E
11/13/2024 4:30:39 PM: Init 19B6: 5D-05-20-31-00-1A
11/13/2024 4:30:39 PM: USB 19B6: 5D-BD-01-AA-00-00-00-FF
11/13/2024 4:30:39 PM: AuraMode: AuraStatic
11/13/2024 4:30:39 PM: USB 19B6: 5D-B3-00-00-00-80-80-EB-00-00-FF-FF-FF-00-00-00-00
11/13/2024 4:30:39 PM: USB 19B6: 5D-B5-00-00-00
11/13/2024 4:30:39 PM: USB 19B6: 5D-B4
11/13/2024 4:30:40 PM: Auto 19B6: 5D-BA-C5-C4-01
11/13/2024 4:30:42 PM: Can't create a charge limit task: Access is denied. (0x80070005 (E_ACCESSDENIED))
11/13/2024 4:30:42 PM: Monitor Power On
11/13/2024 4:30:42 PM: AutoSetting for Online
11/13/2024 4:30:42 PM: BatteryLimit = 90 : OK
11/13/2024 4:30:42 PM: Optimization service is running
11/13/2024 4:30:42 PM: ChargerStatus: 1
11/13/2024 4:30:42 PM: Eco flag : 0
11/13/2024 4:30:42 PM: Mux flag : 1
11/13/2024 4:30:42 PM: \\?\DISPLAY#BOE0B35#4&9fbf4ff&2&UID8388688#{e6f07b5f-ee97-4a90-b076-33f57bf4eaa7} DISPLAYCONFIG_OUTPUT_TECHNOLOGY_INTERNAL
11/13/2024 4:30:42 PM: \\?\DISPLAY#BOE0B35#4&9fbf4ff&2&UID8388688#{e6f07b5f-ee97-4a90-b076-33f57bf4eaa7} \\.\DISPLAY1\Monitor0
11/13/2024 4:30:42 PM: NE180QDM-NZ2 HDR: False 8 5 True
11/13/2024 4:30:44 PM: Mode = 1 : OK
11/13/2024 4:30:44 PM: Init 19B6: 5D-B9
11/13/2024 4:30:44 PM: Init 19B6: 5D-41-53-55-53-20-54-65-63-68-2E-49-6E-63-2E
11/13/2024 4:30:44 PM: Init 19B6: 5D-05-20-31-00-1A
11/13/2024 4:30:44 PM: USB 19B6: 5D-BD-01-AA-00-00-00-FF
11/13/2024 4:30:44 PM: AuraMode: AuraStatic
11/13/2024 4:30:44 PM: USB 19B6: 5D-B3-00-00-00-80-80-EB-00-00-FF-FF-FF-00-00-00-00
11/13/2024 4:30:44 PM: USB 19B6: 5D-B5-00-00-00
11/13/2024 4:30:44 PM: USB 19B6: 5D-B4
11/13/2024 4:30:44 PM: Lid Open
11/13/2024 4:30:44 PM: Lid 19B6: 5D-BA-C5-C4-01
11/13/2024 4:30:45 PM: Auto 19B6: 5D-BA-C5-C4-01
11/13/2024 4:57:52 PM: WMI event 207
11/13/2024 4:57:53 PM: WMI event 87
11/13/2024 4:57:53 PM: WMI event 123
11/13/2024 4:57:53 PM: WMI event 207
11/13/2024 4:57:53 PM: AutoSetting for Offline
11/13/2024 4:57:53 PM: BatteryLimit = 90 : OK
11/13/2024 4:57:53 PM: Optimization service is running
11/13/2024 4:57:53 PM: Mode = 1 : OK
11/13/2024 4:57:53 PM: WMI event 88
11/13/2024 4:57:53 PM: WMI event 123
11/13/2024 4:57:53 PM: Running eco command 1
11/13/2024 4:57:53 PM: Init 19B6: 5D-B9
11/13/2024 4:57:53 PM: Init 19B6: 5D-41-53-55-53-20-54-65-63-68-2E-49-6E-63-2E
11/13/2024 4:57:53 PM: Init 19B6: 5D-05-20-31-00-1A
11/13/2024 4:57:53 PM: USB 19B6: 5D-BD-01-AA-00-00-00-FF
11/13/2024 4:57:53 PM: AuraMode: AuraStatic
11/13/2024 4:57:53 PM: USB 19B6: 5D-B3-00-00-00-80-80-EB-00-00-FF-FF-FF-00-00-00-00
11/13/2024 4:57:53 PM: USB 19B6: 5D-B5-00-00-00
11/13/2024 4:57:53 PM: USB 19B6: 5D-B4
11/13/2024 4:57:54 PM: Auto 19B6: 5D-BA-C5-C4-01
11/13/2024 4:58:06 PM: GPUEco = 1 : OK
11/13/2024 4:58:06 PM: AutoSetting for Online
11/13/2024 4:58:06 PM: BatteryLimit = 90 : OK
11/13/2024 4:58:06 PM: Optimization service is running
11/13/2024 4:58:06 PM: Mode = 1 : OK
11/13/2024 4:58:06 PM: ChargerStatus: 1
11/13/2024 4:58:06 PM: Running eco command 0
11/13/2024 4:58:06 PM: Init 19B6: 5D-B9
11/13/2024 4:58:06 PM: Init 19B6: 5D-41-53-55-53-20-54-65-63-68-2E-49-6E-63-2E
11/13/2024 4:58:06 PM: Init 19B6: 5D-05-20-31-00-1A
11/13/2024 4:58:06 PM: USB 19B6: 5D-BD-01-AA-00-00-00-FF
11/13/2024 4:58:06 PM: AuraMode: AuraStatic
11/13/2024 4:58:06 PM: USB 19B6: 5D-B3-00-00-00-80-80-EB-00-00-FF-FF-FF-00-00-00-00
11/13/2024 4:58:06 PM: USB 19B6: 5D-B5-00-00-00
11/13/2024 4:58:06 PM: USB 19B6: 5D-B4
11/13/2024 4:58:06 PM: GPUEco = 0 : OK
11/13/2024 4:58:06 PM: Eco flag : 0
11/13/2024 4:58:06 PM: Mux flag : 1
11/13/2024 4:58:06 PM: \\?\DISPLAY#BOE0B35#4&9fbf4ff&2&UID8388688#{e6f07b5f-ee97-4a90-b076-33f57bf4eaa7} DISPLAYCONFIG_OUTPUT_TECHNOLOGY_INTERNAL
11/13/2024 4:58:06 PM: \\?\DISPLAY#BOE0B35#4&9fbf4ff&2&UID8388688#{e6f07b5f-ee97-4a90-b076-33f57bf4eaa7} \\.\DISPLAY1\Monitor0
11/13/2024 4:58:06 PM: NE180QDM-NZ2 HDR: False 8 5 True
11/13/2024 4:58:06 PM: Display configuration changed.
11/13/2024 4:58:06 PM: Display configuration changed.
11/13/2024 4:58:07 PM: Eco flag : 0
11/13/2024 4:58:07 PM: Mux flag : 1
11/13/2024 4:58:07 PM: \\?\DISPLAY#BOE0B35#4&9fbf4ff&2&UID8388688#{e6f07b5f-ee97-4a90-b076-33f57bf4eaa7} DISPLAYCONFIG_OUTPUT_TECHNOLOGY_INTERNAL
11/13/2024 4:58:07 PM: \\?\DISPLAY#BOE0B35#4&9fbf4ff&2&UID8388688#{e6f07b5f-ee97-4a90-b076-33f57bf4eaa7} \\.\DISPLAY1\Monitor0
11/13/2024 4:58:07 PM: Auto 19B6: 5D-BA-C5-C4-01
11/13/2024 4:58:07 PM: NE180QDM-NZ2 HDR: False 8 5 True
11/13/2024 4:58:10 PM: Display configuration changed.
11/13/2024 4:58:10 PM: NVIDIA GeForce RTX 4090 Laptop GPU
11/13/2024 4:58:18 PM: NE180QDM-NZ2 HDR: False 8 5 True
11/13/2024 4:58:20 PM: Latest version 0.197.0.0
seerge commented 4 days ago

@TheKigen hello,

This is already possible. Please check power user settings on how to do that

https://github.com/seerge/g-helper/wiki/Power-user-settings#plugged-in--on-battery-actions-delay

Thanks :)

TheKigen commented 4 days ago

Ah, thanks. I was looking through the UI for the option. So I guess I wish it was part of the UI. But thank you. :)

seerge commented 4 days ago

@TheKigen this is quite exotic settings, so it’s better to keep it config only, same as many others :)