Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Using xfce4-power-manager with dwm

110 views
Skip to first unread message

Daniel LaFlamme

unread,
Jul 9, 2014, 10:10:01 PM7/9/14
to
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.

I have an .xsession that looks like:

---- .xsession ----
#!/bin/bash
xrdb -merge .Xresources

if [ -x /usr/bin/xfce4-power-manager ];
then
   xfce4-power-manager &
fi

$HOME/share/bin/dwm
-----

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.

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?

Brian

unread,
Jul 10, 2014, 7:50:03 AM7/10/14
to
If that were my .xsession I wouldn't have 'xrdb -merge .Xresources'
because it is taken care of in /etc/X11/Xsession.d. I'd also be inclined
to have 'exec $HOME/share/bin/dwm'. But those are two minor points and
your .xsession looks ok to me.

What you could do is have only 'exec $HOME/share/bin/dwm' in it and run
xfce4-power-manager (there is also xfce4-power-manager-settings) to see
if there is any difference.

TBH, I cannot think what bearing the WM would have on the problem but
you could install fvwm, do without any .xsession and start the power
manager again from an xterm.


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/1007201412351...@desktop.copernicus.demon.co.uk

Daniel LaFlamme

unread,
Jul 10, 2014, 7:10:01 PM7/10/14
to
Made the tweaks that you suggested to .xsession--thanks.

I tried removing xfce4-power-manager from .xsession and running it from an xterm one the desktop was running but I get the same thing. So, I think there must be something that the running the full xfce4 session sets up in order to make this work correctly that I am missing from my simpler setup.

Brian

unread,
Jul 12, 2014, 3:50:01 PM7/12/14
to
On Thu 10 Jul 2014 at 16:00:30 -0700, Daniel LaFlamme wrote:

> Made the tweaks that you suggested to .xsession--thanks.
>
> I tried removing xfce4-power-manager from .xsession and running it from
> an xterm one the desktop was running but I get the same thing. So, I
> think there must be something that the running the full xfce4 session
> sets up in order to make this work correctly that I am missing from my
> simpler setup.

Your outcome is not unexpected. The difficulty I have with your
proposition is that one would expect xfce4-power-manager to provide all
the Depends/Recommends it requires.

What happens with 'pm-suspend' (as root)?


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/1207201419541...@desktop.copernicus.demon.co.uk
0 new messages