CLI args for bios. Cleanup and improve
- dbus method for 'supported functions'
- add dedicated gfx safety
- bring ctrl-gfx back in to main control for better integration
- safely upgrade config files
The release contains an additional controller for bios interation. Two things are available so far:
- dedicated gfx mode
- bios POST sound
Dedicated-gfx-mode is not usable on your laptop unless it explicitly supports it (so not on G14 or G15 so far. Is on GX5xx and GX7xx with G-SYNC). Additionally there is a config key
gfx_nv_mode_is_dedicated
to makeasusctl graphics -m nvidia
turn on dedicated mode when switching tonvidia
mode.
POST sound is available on all laptops I know of so far. More functions may be added in future.
The above is the reason for an extra dbus method and path to fetch a json string of everything supported by the laptop and looks like this:
{
"anime_ctrl": false,
"charge_ctrl": {
"charge_level_set": true
},
"fan_cpu_ctrl": {
"stock_fan_modes": true,
"min_max_freq": true,
"fan_curve_set": false
},
"keyboard_led": {
"brightness_set": true,
"stock_led_modes": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
10,
11,
12
],
"per_key_led_mode": true
},
"rog_bios_ctrl": {
"post_sound_toggle": true,
"dedicated_gfx_toggle": true
}
}
Another benefit of adding this is that third-parties can now call the dbus method to get that, and check if and what is supported.
I've added config parsing safety so that from now on if config in asusd code is changed, your config will be non-destructively updated.