At first (after a few posts in the thread) I didn't think my question was valid because xscreensaver doesn't have any suspend functionality. But it seemed that the other users were telling me that it did. As I got further in my digging I realized that I was misunderstanding something. But I couldn't find anywhere something that worked with xscreensaver to do power management.
Thanks ,
Kopkins
Install the xfce4-power-manager package
edit /etc/xdg/lxsession/LXDE/autostart
after the "@xscreensaver -no-splash" add @xfce4-power-manager
Edit (if you want to have a starter shown in LXMenu):
# vi /usr/share/applications/xfce4-power-manager-settings.desktop
Add LXDE to
OnlyShowIn=LXDE;XFCE;
Best regards
]]>If you haven't installed any power manager (besides the management that systemd includes) you can try installing xfce4's power manager and use it as your system power manager and, ultimately, see if it serves your suspension purpose.
]]>while read action data; do
echo $action
if [ "$action" = "LOCK" ]; then
echo "Standby command should be here"
fi
done < <(xscreensaver-command -watch)
Kopkins wrote:my .xinitrc
#!/bin/sh # # ~/.xinitrc # # Executed by startx (run your window manager from here) if [ -d /etc/X11/xinit/xinitrc.d ]; then for f in /etc/X11/xinit/xinitrc.d/*; do [ -x "$f" ] && . "$f" done unset f fi # exec gnome-session # exec startkde # exec startxfce4 exec startlxde xscreensaver -no-splash &
So far its still not working,
I've also tried /usr/bin/xscreensaver -no-splash &
exec /usr/bin/xscreensaver -no-splash &And also putting it .config/lxsession/LXDE/autostart
FYI for your ~/.xinitrc file, all commands should be listed before the exec [windowmanager/DE] line.
I realized that, thank you. I installed arch on my macbook and this is what I'm running right now.
sh ~/.fehbg & #desktop background
sudo backlight night & #set screen and keyboard brightness
conky -c .conky/conkyMain & #conky
sleep 2 && pypanel & #panel
wicd-client --tray & #wicd panel applet
volwheel &
xscreensaver --nosplash -log ~/xscreensaver.log & #lock screen
openbox #openbox as window manager
I still can't get it to do anything besides turn off the screen and lock it.
Is there something else I have to do to suspend all hardware?
]]>my .xinitrc
#!/bin/sh # # ~/.xinitrc # # Executed by startx (run your window manager from here) if [ -d /etc/X11/xinit/xinitrc.d ]; then for f in /etc/X11/xinit/xinitrc.d/*; do [ -x "$f" ] && . "$f" done unset f fi # exec gnome-session # exec startkde # exec startxfce4 exec startlxde xscreensaver -no-splash &
So far its still not working,
I've also tried /usr/bin/xscreensaver -no-splash &
exec /usr/bin/xscreensaver -no-splash &And also putting it .config/lxsession/LXDE/autostart
FYI for your ~/.xinitrc file, all commands should be listed before the exec [windowmanager/DE] line.
]]>something like:
xscreensaver | tee log.txt
maybe it will give some clues.
]]>just a idea, try putting a & after the lxde entry.
or follow what the wiki says, i would follow the line containing ~/.config/lxsession/LXDE/autostart.
for future reference the wiki entry is located here.
Autostart Programs
.desktop files
First you can link a program's .desktop in /usr/share/applications/ file to ~/.config/autostart/. For example, to execute lxterminal automatically at startup:
$ ln -s /usr/share/applications/lxterminal.desktop ~/.config/autostart/
Once .desktop files have been added you can manipulate them with the GUI configuration tool lxsession-edit.
autostart file
The second method is to use a ~/.config/lxsession/LXDE/autostart file. This file is not a shell script, but each line represents a command to be executed, if a line begins with a @ symbol, the command following the @ will be automatically re-executed if it crashes. For example, to execute lxterminal and leafpad automatically at startup:
~/.config/lxsession/LXDE/autostart
@lxterminal
@leafpadNote: The commands do not end with a & symbol.
There is also a global autostart file at /etc/xdg/lxsession/LXDE/autostart. If both files are present, all entries in both files will be executed.
I don't have a problem starting it. It runs perfect, except it doesn't suspend.
]]>or follow what the wiki says, i would follow the line containing ~/.config/lxsession/LXDE/autostart.
for future reference the wiki entry is located here.
Autostart Programs
.desktop files
First you can link a program's .desktop in /usr/share/applications/ file to ~/.config/autostart/. For example, to execute lxterminal automatically at startup:
$ ln -s /usr/share/applications/lxterminal.desktop ~/.config/autostart/
Once .desktop files have been added you can manipulate them with the GUI configuration tool lxsession-edit.
autostart file
The second method is to use a ~/.config/lxsession/LXDE/autostart file. This file is not a shell script, but each line represents a command to be executed, if a line begins with a @ symbol, the command following the @ will be automatically re-executed if it crashes. For example, to execute lxterminal and leafpad automatically at startup:
~/.config/lxsession/LXDE/autostart
@lxterminal
@leafpadNote: The commands do not end with a & symbol.
There is also a global autostart file at /etc/xdg/lxsession/LXDE/autostart. If both files are present, all entries in both files will be executed.
#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fi
# exec gnome-session
# exec startkde
# exec startxfce4
exec startlxde
xscreensaver -no-splash &
So far its still not working,
I've also tried /usr/bin/xscreensaver -no-splash &
exec /usr/bin/xscreensaver -no-splash &
And also putting it .config/lxsession/LXDE/autostart
]]>xscreensaver -nosplash
in something like gnome-session-properties
or
xscreensaver -no-splash &
in a script that is part of init.
]]>try configuring it with xscreensaver-demo, advanced tab.
That's what I've been doing. I can't get xscreensaver to suspend no matter what combination of settings I use.
Does xscreensaver's user need to be in a certain group?
]]>