
On Fri, Aug 07, 2015 at 11:46:08AM +1000, Trent W. Buck wrote:
Per logind.conf(5),
* is HandleLidSwitch set to "suspend"? (the default)
* is a userland daemon inhibiting systemd? e.g. XFCE4.10 doesn't; allegedly XFCE4.12 does.
in fedora 22 it seems laptop lid handling works fine as long as you leave things to logind/systemd. xfce 4.12 messes it up. everything about systemd has always "just worked" for me for as long as I've had this laptop (f20 -> f22) and laptop lid stuff only broke when I opened up the xfce power settings panel yesterday, out of curiousity about this thread. restoring one of my older (<= fedora 21) xfce power config xml's makes the laptop lid work. ie. logout, switch to a vt, then % cd ~/.config/xfce4/xfconf/xfce-perchannel-xml/ % cp xfce4-power-manager.xml xfce4-power-manager.xml.new_and_broken % cat > xfce4-power-manager.xml << EOF <?xml version="1.0" encoding="UTF-8"?> <channel name="xfce4-power-manager" version="1.0"> <property name="xfce4-power-manager" type="empty"> <property name="power-button-action" type="uint" value="3"/> <property name="lid-action-on-ac" type="uint" value="1"/> <property name="critical-power-action" type="uint" value="2"/> <property name="lid-action-on-battery" type="uint" value="1"/> <property name="brightness-switch-restore-on-exit" type="int" value="0"/> <property name="brightness-switch" type="int" value="0"/> </property> </channel> EOF and that fixes it for me. I suspect the above config is detected as being as in a previous format by xfce4-power-manager and that causes power to be managed in a different (non-overriding systemd?) way. if you fire up the xfce settings -> power panel then there are 4 or 5 more fields added (including one about logind) and laptop lid no longer works. there seems to be a bunch of freedesktop power manager bugs open.
I am using Debian 8's versions of systemd & linux (v215 & 3.16).
If you solve this issue, I would like to know the details about how.
v219 systemd, 4.1.3 kernel, few years old powerbook, fedora 22, xfce 4.12, xfce4-power-manager-1.4.4-1.fc22.x86_64 pretty different from your setup, but HTH anyway. cheers, robin