View previous topic :: View next topic |
Author |
Message |
certem Tux's lil' helper
Joined: 14 Feb 2013 Posts: 145
|
Posted: Sat Oct 19, 2013 8:55 pm Post subject: [Solved] How to set up auto suspend in LXDE |
|
|
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 |
|
|
certem Tux's lil' helper
Joined: 14 Feb 2013 Posts: 145
|
Posted: Sun Oct 20, 2013 8:03 am Post subject: |
|
|
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 file. Now things work. |
|
Back to top |
|
|
|