Joao: I ran in to that too. I found that /etc/systemd/logind.conf was overriding xfce power manager. Add the following to /etc/systemd/logind.conf and then reboot:
HandlePowerKey=ignore HandleSuspendKey=ignore HandleHibernateKey=ignore HandleLidSwitch=ignore
And then it should do what you want.
To work around the black screen, map some key combination to:
xrandr --auto
and you'll get your screen back.
Joao: I ran in to that too. I found that /etc/systemd/ logind. conf was overriding xfce power manager. Add the following to /etc/systemd/ logind. conf and then reboot:
HandlePowerKey= ignore y=ignore Key=ignore =ignore
HandleSuspendKe
HandleHibernate
HandleLidSwitch
And then it should do what you want.
To work around the black screen, map some key combination to:
xrandr --auto
and you'll get your screen back.