I figured it out. xfce4-power-manager was conflicting with logind.
Ran the following command and now the power button is working:
xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/logind-handle-power-key -n -t bool -s true
I figured it out. xfce4-power-manager was conflicting with logind.
Ran the following command and now the power button is working:
xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/logind-handle-power-key -n -t bool -s true