In case editing the logind.conf file doesnt work:
#this removes some settings which will be recreated again rm ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-power-manager.xml
This solved the problem for me.
In case editing the logind.conf file doesnt work:
#this removes some settings which will be recreated again xfce4/xfconf/ xfce-perchannel -xml/xfce4- power-manager. xml
rm ~/.config/
This solved the problem for me.