<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt"><div style="" class="">I asked about this on the Debian users list but figured I'd post here as well. I am trying to use xfce4-power-manager with dwm (not running a full session). I'm not sure if this is supported, but any info anyone has would be helpful.</div><div style="" class=""><br style="" class=""></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;" class="">The
 laptop can suspend and resume without issue when I run a plain vanilla 
Xfce session (started with "Xfce session" from the lightdm login 
screen). However, I don't want to run an entire Xfce desktop 
environment; I want to use dwm but use xfce4-power-manager to manage 
suspend and resume. I am using Debian 7, stable.</div><div style="" class=""><br style="" class=""></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;">I have an .xsession that looks
 like:</div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><br style="" class=""></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;">---- .xsession ----<br style="" class=""></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;">#!/bin/bash<br><br style="" class="">if [ -x
 /usr/bin/xfce4-power-manager ];<br style="" class="">then<br style="" class="">   xfce4-power-manager &<br style="" class="">fi</div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><br style="" class=""></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;">exec $HOME/share/bin/dwm<br style="" class="">-----</div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><br style="" class=""></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica
 Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color:
 transparent; font-style: normal;">I use lightdm to log in and select 
"default x session." The dwm starts up as expected. xfce4-power-manager 
also starts up (I can see notifications in the top right of the screen 
when I plug or unplug the laptop). If I close the lid, the laptop will 
not suspend (the fan is still running). When I open the lid, the screen 
gets brighter and blinks, but I dont see the desktop. I see the 
xfce4-power-manager notification pop up and then see nothing else. I 
can't get back to the desktop and need to log into a virtual console to 
restart the laptop.</div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><br style="" class=""></div>So, when xfce is running as a regular session, 
suspend and resume works. Something with how I am running it from 
.xsession with dwm is not working. <br style="" class=""><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;" class="">The
 laptop can suspend and resume without issue when I run a plain vanilla 
Xfce session (started with "Xfce session" from the lightdm login 
screen). However, there are instances where I don't want to run an entire Xfce desktop 
environment but instead want to use dwm but use xfce4-power-manager to manage 
suspend and resume. I am using Debian 7, stable.</div><div style="" class=""><br style="" class=""></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;">I have an .xsession that looks
 like:</div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><br style="" class=""></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;">---- .xsession ----<br style="" class=""></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;">#!/bin/bash<br style="" class="">xrdb -merge .Xresources</div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><br style="" class="">if [ -x
 /usr/bin/xfce4-power-manager ];<br style="" class="">then<br style="" class="">   xfce4-power-manager &<br style="" class="">fi</div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><br style="" class=""></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;">$HOME/share/bin/dwm<br style="" class="">-----</div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><br style="" class=""></div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida
 Grande,sans-serif; background-color:
 transparent; font-style: normal;">I use lightdm to log in and select 
"default x session." The dwm starts up as expected. xfce4-power-manager 
also starts up (I can see notifications in the top right of the screen 
when I plug or unplug the laptop). If I close the lid, the laptop will 
not suspend (the fan is still running). When I open the lid, the screen 
gets brighter and blinks, but I dont see the desktop. I see the 
xfce4-power-manager notification pop up and then see nothing else. I 
can't get back to the desktop and need to log into a virtual console to 
restart the laptop.</div><div class="" style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif; background-color: transparent; font-style: normal;"><br style="" class=""></div>So, when xfce is running as a regular session, 
suspend and resume works. Something with how I am running it from 
.xsession with dwm is not working. Anyone have any ideas, particularly on what to look at to debug?<br></div></body></html>