Stop screen from dimming while on charger
I achieved this using Tasker. I created a Profile that, when plugged in, activates a task that sets the display timeout to a huge value. I accompanied it with an exit task that sets a normal-length display timeout.