Keychron / qmk_firmware

Open-source keyboard firmware for Atmel AVR and Arm USB families
https://qmk.fm
GNU General Public License v2.0
653 stars 826 forks source link

[Feature Request] K6 PRO New auto sleep treshold #254

Open mathgonzlez opened 2 months ago

mathgonzlez commented 2 months ago

Feature Request Type

Description

Hi,

I suggest adding more predefined auto sleep thresholds, like 2 and 5 minutes. I often use the keyboard in an audio studio environment, where I might use certain shortcuts and then leave the keyboard unused for extended periods, sometimes up to 20 minutes. Having the keyboard enter standby mode after 2 minutes instead of 10 could significantly improve battery life. Do you think it's possible to implement this change?

Thanks

PeterMortensen commented 2 months ago

Workaround: Change the default 10 minutes to some other value. Change the line with CONNECTED_BACKLIGHT_DISABLE_TIMEOUT. The unit is seconds and the default value is 600 (10 minutes).

For example, to 2 minutes:

#define CONNECTED_BACKLIGHT_DISABLE_TIMEOUT 120

Note the illogical naming. There may or may not be an internal renaming some time in the future (or perhaps (effectively a renaming) by a fix of the implementation using CONNECTED_BACKLIGHT_DISABLE_TIMEOUT). The value of the more logical DISCONNECTED_BACKLIGHT_DISABLE_TIMEOUT only applies right after powerup... (that is, only for the very first sleep, not subsequent sleeps...) This is my empirical knowledge from a K10 Pro from earlier this year (it may have been fixed in the meantime, but I doubt it).