Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
systemd + XFCE4 = unable to manually suspend
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Peach
Advocate
Advocate


Joined: 08 Mar 2003
Posts: 3686
Location: London, UK

PostPosted: Thu Feb 06, 2014 10:57 pm    Post subject: systemd + XFCE4 = unable to manually suspend Reply with quote

Since I switched to systemd I'm unable to suspend the machine using the Log out buttons of XFCE.

Please keep in mind that I've disabled the automatic suspend on lid close, as it's something I'd like to control manually:
Code:
# grep "^[^#]" /etc/systemd/logind.conf
[Login]
HandleLidSwitch=ignore


I'd guess it's something to do with permissions, but I'm at loss with systemd ATM. :roll:
_________________
Gentoo user since 2004.
"It's all fun and games, until someone loses an eye" - mom
Back to top
View user's profile Send private message
Peach
Advocate
Advocate


Joined: 08 Mar 2003
Posts: 3686
Location: London, UK

PostPosted: Fri Feb 07, 2014 12:36 pm    Post subject: Reply with quote

Looks like xfce4-session or xfce4-power-manager needs patching to support systemd:

https://bugzilla.xfce.org/show_bug.cgi?id=9963
https://bugzilla.xfce.org/show_bug.cgi?id=9952

[edit] more likely to be xfce4-power-manager as it seems xfce4-session already has systemd support USE flag. just a guess.
_________________
Gentoo user since 2004.
"It's all fun and games, until someone loses an eye" - mom
Back to top
View user's profile Send private message
pelopor
n00b
n00b


Joined: 20 May 2008
Posts: 6

PostPosted: Mon Mar 10, 2014 7:44 am    Post subject: Reply with quote

I have just written ebuilds of xfce4-power-manager and xfce4-session with hibernate/suspend by systemd/login1, and made bug reports.
add systemd/login1 hibernate/suspend support to xfce-base/xfce4-session
add systemd/login1 hibernate/suspend support to xfce-extra/xfce4-power-manager
Give it a try.

<<note>>
I use TOI for hibernation, which needs a hook for systemd. And I also gave up splash support in TOI as media-gfx/splashutils since it has not support systemd yet.

The hook to systemd reads as follows, but it needs more sophistication.

% cat /usr/lib/systemd/system-sleep/tuxonice-userui.sh
Quote:
#!/bin/bash
# /usr/lib/systemd/system-sleep/tuxonice-userui.sh

tuxonice_sys="/sys/power/tuxonice"
tuxoniceui_cmd="/sbin/tuxoniceui"
tuxoniceui_vt=63
tuxoniceui_original_vt="/run/tuxoniceui_original_vt"
tuxoniceui_target="/suspend_file"

if [ "$1" = "pre" ]; then

echo `fgconsole` > $tuxoniceui_original_vt
chvt $tuxoniceui_vt

if [ -d $tuxonice_sys -a -x $tuxoniceui_cmd ]; then
if [ -c /dev/fb0 -a -d /etc/splash/tuxonice ]; then
tuxoniceui_opt="-f"
fi

## echo $tuxoniceui_cmd $tuxoniceui_opt > $tuxonice_sys/user_interface/program
## for the moment splash on gentoo does not function
echo $tuxoniceui_cmd > $tuxonice_sys/user_interface/program
echo $tuxoniceui_target > $tuxonice_sys/file/target
fi
fi


if [ "$1" = "post" ]; then
chvt `< $tuxoniceui_original_vt`
rm $tuxoniceui_original_vt
fi
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum