Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] How to set up auto suspend in LXDE
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
certem
Tux's lil' helper
Tux's lil' helper


Joined: 14 Feb 2013
Posts: 145

PostPosted: Sat Oct 19, 2013 8:55 pm    Post subject: [Solved] How to set up auto suspend in LXDE Reply with quote

This command works fine at the lxterminal
Code:
xautolock -time 1 -locker "sudo pm-suspend" &

But I couldn't manage to get it automatically running when the user logs in.

I tried many things. The last thing I tried was:


Code:
GNU nano 2.3.2        File: /home/ahmet/.config/autostart/.desktop                       

[Desktop Entry]
Encoding=UTF-8
Name= AutoSuspend
Comment=Starts timer for auto suspending
Exec=lxterminal --command xautolock -time 1 -locker "sudo pm-suspend" &
Terminal=true


My emerge --info is:
http://bpaste.net/show/142010/


Last edited by certem on Sun Oct 20, 2013 8:05 am; edited 1 time in total
Back to top
View user's profile Send private message
certem
Tux's lil' helper
Tux's lil' helper


Joined: 14 Feb 2013
Posts: 145

PostPosted: Sun Oct 20, 2013 8:03 am    Post subject: Reply with quote

I found this wiki https://wiki.archlinux.org/index.php/LXDM and this line in that wiki:
Quote:
By default, LXDM doesn't read ~/.xinitrc but ~/.xprofile.
solved my problem.
I put the
Code:
xautolock -time 1 -locker "sudo pm-suspend" &
command in the
Code:
~/.xprofile
file. Now things work.
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