Closed HMarxen closed 2 years ago
Which keyboard is this?
A xd75AM. This keyboard doesn’t have the backlight on a hardware PWM pin. Might the software PWM be the problem?
I'm having similar issues with a AMJ66 PCB that uses D4 as the backlight pin.
BL_TOGG
turns on the backlight, but not off againBL_ON
can not be used to turn it on, but will put it at full brightness if it's below thatBL_OFF
does nothingBL_STEP
steps between different brightnesses, and sometimes enables breathingBL_INC
and BL_DEC
does nothingBL_BRTG
does nothingHave you tried setting #define BACKLIGHT_ON_STATE 1
in the boards config.h? I had to do so on the staryu to get the correct toggle behaviour with software pwm https://github.com/qmk/qmk_firmware/blob/0aece4ddab37e603699cb4ba9e8b72fdaf5a619c/keyboards/staryu/config.h#L68.
Tried #define BACKLIGHT_ON_STATE 1
now, but it only seemed to make things worse.
@HMarxen @FSund Have you tried using the PR referenced right above this comment?
And if so, does that help?
@drashna Yes, it works perfectly as long as I remember #define BACKLIGHT_ON_STATE 1
. I left a comment in the PR about it a while back.
Thanks for reminding me to document BACKLIGHT_ON_STATE
😆 done in #5983
I think this can be closed now? Works fine on my board after https://github.com/qmk/qmk_firmware/pull/5983 and https://github.com/qmk/qmk_firmware/pull/5945 were merged.
This issue has been automatically marked as stale because it has not had activity in the last 90 days. It will be closed in the next 30 days unless it is tagged properly or other activity occurs.
For maintainers: Please label with bug
, in progress
, on hold
, discussion
or to do
to prevent the issue from being re-flagged.
Closing due to inactivity.
Hi, I’ve put BL_TOGG in my keymap and I was expecting that it would toggle between backlight off and the last set backlight brightness. However, all it does is if the backlight is off it will turn to the lowest brightness setting. If the backlight is already on at any brightness setting it does nothing. Am I doing something wrong or is this the intended behaviour?