From 8805db094e6213e3b80b3cfc81a6869a4d15322a Mon Sep 17 00:00:00 2001 From: mechmerlin Date: Sat, 30 Oct 2021 19:49:49 -0700 Subject: [PATCH 1/2] disable rgb per key lights when computer sleeps --- users/mechmerlin/config.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/users/mechmerlin/config.h b/users/mechmerlin/config.h index 698e237b01f3..459c181673f7 100644 --- a/users/mechmerlin/config.h +++ b/users/mechmerlin/config.h @@ -5,6 +5,10 @@ #define RGBLIGHT_ANIMATIONS #endif // RGBLIGHT_ENABLE +#ifdef RGB_MATRIX_ENABLE + #define RGB_DISABLE_WHEN_USB_SUSPENDED +#endif + #ifdef AUDIO_CLICKY #define AUDIO_CLICKY_ON #define AUDIO_CLICKY_FREQ_DEFAULT 261.63f From 45f6f34bb91a58421d55600ca854b480daf9294e Mon Sep 17 00:00:00 2001 From: mechmerlin Date: Sat, 30 Oct 2021 19:49:58 -0700 Subject: [PATCH 2/2] update documentation --- users/mechmerlin/changelog.md | 4 ++++ users/mechmerlin/readme.md | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/users/mechmerlin/changelog.md b/users/mechmerlin/changelog.md index dc98e2af0107..733c65a97938 100644 --- a/users/mechmerlin/changelog.md +++ b/users/mechmerlin/changelog.md @@ -1,6 +1,10 @@ # Changelog All notable changes to my userspace will be documented in this file. +## [0.4.1] - 2021-10-30 + +### Added +- `RGB_DISABLE_WHEN_USB_SUSPENDED` added in `config.h`. Couple of my boards now have per key RGB and have been staying on when my computer sleeps. ## [0.4.0] - 2021-10-05 ### Added diff --git a/users/mechmerlin/readme.md b/users/mechmerlin/readme.md index c0b1c54c559d..1070953111fa 100644 --- a/users/mechmerlin/readme.md +++ b/users/mechmerlin/readme.md @@ -39,9 +39,9 @@ Output the version of QMK Firmware on device. ## QMK Features ---- -### RGBLIGHT_SLEEP +### RGBLIGHT_SLEEP and RGB_DISABLE_WHEN_USB_SUSPENDED -Ensures that when my computer is in sleep mode, the keyboard underglow lights will also be off. +Ensures that when my computer is in sleep mode, the keyboard underglow and inswitch RGB lights will also be off. ### Audio Clicky