Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gnome 3.8 suspend - systemd and openrc
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
polslinux
Apprentice
Apprentice


Joined: 12 Apr 2010
Posts: 249
Location: Veneto

PostPosted: Thu Jun 27, 2013 10:26 am    Post subject: gnome 3.8 suspend - systemd and openrc Reply with quote

I upgraded my system from G 3.6 to G 3.8 and now the "suspend when lid is close" function is not working anymore.
I read that this could be solved by changing from openRC to systemd (A.GnomeF.K.M.??) because the gnome devs have placed the suspend code inside systemd :evil:
So my question is:

there is a possibility to have this function integrated into openRC (in a near or a distant future) or am i forced to change from openRC to systemd?

ThanKs
_________________
PC-Desktop: Ubuntu 12.04 x86
Notebook Sony Vaio VPCEH: Gentoo ~amd64
Back to top
View user's profile Send private message
druggo
Apprentice
Apprentice


Joined: 24 Sep 2003
Posts: 269
Location: Hangzhou, China

PostPosted: Thu Jun 27, 2013 1:09 pm    Post subject: Reply with quote

My workaround is using acpid instead:
uncomment lid line in /etc/acpi/default.sh with suspend command:
Code:
echo mem > /sys/power/state

restart acpid, done :)
_________________
HighWayToHell(blog)
http://blog.druggo.org/
Back to top
View user's profile Send private message
polslinux
Apprentice
Apprentice


Joined: 12 Apr 2010
Posts: 249
Location: Veneto

PostPosted: Thu Jun 27, 2013 2:19 pm    Post subject: Reply with quote

gooood :D it works :D

The only problem is that it doesn't ask for the password at the resume :?

EDIT: this command can be used to lock screen

Code:
dbus-send --type=method_call --dest=org.gnome.ScreenSaver /org/gnome/ScreenSaver org.gnome.ScreenSaver.Lock

i tried to add it to default.sh but it doesn't work :(
_________________
PC-Desktop: Ubuntu 12.04 x86
Notebook Sony Vaio VPCEH: Gentoo ~amd64
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