Turning screen and LEDs off via SSH?

Is it possible to turn off the screen and LEDs via SSH?
I’ve been setting up my new Pocket Reform via SSH and I wonder if I could save some power by turning off the screen - it doesn’t seem to sleep if I’m logged in via SSH but the machine itself is still at the login screen.

Also, is it possible to get the same battery statistics that are shown on the OLED via software running under Linux?

I can answer this part, but not the first part - to get charge info you can use

upower -i /org/freedesktop/UPower/devices/battery_BAT0

2 Likes

For the screen: brightnessctl s 0. But I think it’s a good idea to set this to a non-0-value before reboot in case the system saves this value.

For the LEDs: The newest keyboard firmware (from Git) has auto backlight dimming. But you can use the xLRGB command to set a black (000000) backlight color: Help running kbdgfx - #13 by pff

2 Likes