How to set low power warning at 30%

Before I try, can you have a look at this. they have the same Unable to init server: Could not connect: Connection refused

and I understand xhost +SI:localuser:root works only until the next system reboot.