Not sure if it will work but changing to a newer kernel do anything to the buttons functionality?
Never had to fiddle with this, maybe another user can shine some light on this. The first time the key is pressed seems to set a variable to the lowest value, maybe because there was nothing set? Maybe try and set this value at startup with a script?
This thread points to some good reading on brightness in relation to your hardware. this might give some insight how brightness works and what options there are.
I’m out of options,interesting problem, the small ones are the most irritating 