leds: Fixes and enhancements

See the commit messages for details.