qmk / qmk_firmware

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

[Bug] Slave backlight not updating at computer sleep #19032

Open svencov opened 2 years ago

svencov commented 2 years ago

Describe the Bug

When computer sleeps, master board LEDs turn off while slave LEDs remain lit. These are the key switch LEDs for backlighting, not the additional rgb extra lighting

Several ideas not knowing anything beyond keymaps... master isn't notifying slave of sleep master isn't sending backlight off instruction to slave slave isn't turning off backlights in response to sleep notification

Keyboard Used

keebio/viterbi/rev2

Link to product page (if applicable)

No response

Operating System

windows 10

qmk doctor Output

No response

Is AutoHotKey / Karabiner installed

Other keyboard-related software installed

No response

Additional Context

No response

drashna commented 1 year ago

this is for RGB Light (underglow), correct?

Oh, this is the for the backlight feature itself.

It looks like it should sync, and do so automatically. However, are you using the breathing option?

svencov commented 1 year ago

its not in breathing mode

also, same results on mac and windows

svencov commented 1 year ago

Could the answer be in the rev2.c file...

include "viterbi.h"

void eeconfig_init_kb(void) {

ifdef BACKLIGHT_ENABLE

backlight_enable();
backlight_level(5);

endif

ifdef RGBLIGHT_ENABLE

rgblight_enable(); // Enable RGB by default
rgblight_sethsv(0, 255, 255);  // Set default HSV - red hue, full saturation, full brightness

ifdef RGBLIGHT_MODE_RAINBOW_SWIRL

rgblight_mode(RGBLIGHT_MODE_RAINBOW_SWIRL + 2); // set to RGB_RAINBOW_SWIRL by default

endif

endif

eeconfig_update_kb(0);
eeconfig_init_user();

}

I remember in some forum someone mentioned some function was needed to update the second board.

svencov commented 1 year ago

when is eeconfig_init_kb() called?