Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'd like to change a xfce4-power-manager setting (what to do when laptop lid is closed on AC) via the terminal so that I can assign a keyboard shortcut to do it.

enter image description here

Is there a way how to do it? Similar to dconf-editor set for gnome..


ok, I found the file at ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-power-manager.xml. But changing it doesn't do anything. How do I reload xfce4-power-manager? I tried xfce4-power-manager --restart but that doesn't help.

share|improve this question
up vote 1 down vote accepted

Found it, have to use xconf-query.

To get the value:

xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/lid-action-on-ac

To set the value:

xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/lid-action-on-ac -s 1

1 for suspend, 0 for do nothing.

share|improve this answer
If this solves your issue, please consider accepting your own answer. – landroni Mar 1 '14 at 16:21

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.