LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-15-2016, 07:07 PM   #1
Belikewater
Member
 
Registered: Mar 2016
Location: Orlando Fl
Distribution: Slackware/Peppermint
Posts: 164

Rep: Reputation: Disabled
Xscreensaver autostart


I am trying to get xscreensaver to autostart. I am not having much luck. I have tried to make an executable file in .kde, but for some reason it seems to mess up my desktop, I have no idea why, but each time I try to make a launcher file in .kde/Autostart it seems to not allow me to click on other applications and run them on my desktop. I have looked into man xscreensaver but I am not finding anything that can help me launch my screensaver at start up in slackware, unless I am missing something. Please point me in the right direction

Thank you!
 
Old 07-15-2016, 07:25 PM   #2
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,130

Rep: Reputation: 7298Reputation: 7298Reputation: 7298Reputation: 7298Reputation: 7298Reputation: 7298Reputation: 7298Reputation: 7298Reputation: 7298Reputation: 7298Reputation: 7298
In KDE go to Settings, then system settings, then "start up and shutdown" and under "autostart," "desktop file," "add a program."

In the command box simply enter, xscreensaver
Name it xscreensaver, if you like, or whatever name.
Once saved it, make sure you put a check in the little box to "Enable Startup."
Next time you start KDE, the xscreensaver dameon will start automatically.

Last edited by cwizardone; 07-15-2016 at 07:28 PM.
 
1 members found this post helpful.
Old 07-15-2016, 08:02 PM   #3
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,693

Rep: Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378
The above works great, an alternate method is to add the line below to your /home/"user"/.xinitrc. Either way works though, which ever is best for your situation .

xscreensaver -no-splash &

Last edited by Daedra; 07-15-2016 at 08:08 PM.
 
Old 07-15-2016, 08:06 PM   #4
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,130

Rep: Reputation: 7298Reputation: 7298Reputation: 7298Reputation: 7298Reputation: 7298Reputation: 7298Reputation: 7298Reputation: 7298Reputation: 7298Reputation: 7298Reputation: 7298
BTW, if you haven't already done so, go into Settings, Power Management, and uncheck
"Screen Energy Saving."
 
Old 07-15-2016, 10:03 PM   #5
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,130

Rep: Reputation: 7298Reputation: 7298Reputation: 7298Reputation: 7298Reputation: 7298Reputation: 7298Reputation: 7298Reputation: 7298Reputation: 7298Reputation: 7298Reputation: 7298
“A computer lets you make more mistakes faster than any other invention with the possible exceptions of handguns and Tequila.”
― Mitch Ratcliffe

@ Daedra,
Good one!
 
Old 07-16-2016, 11:07 AM   #6
Belikewater
Member
 
Registered: Mar 2016
Location: Orlando Fl
Distribution: Slackware/Peppermint
Posts: 164

Original Poster
Rep: Reputation: Disabled
Hmm not sure if I am doing it incorrectly, I have tried both methods, but still not working.

Based on the second method ill show you some output.

bash-4.3$ cat .xinitrc.sh
xscreensaver -no-splash &

bash-4.3$ ls -l .xinitrc.sh
-rwxr-xr-x 1 root root 27 Jul 16 01:36 .xinitrc.sh

In system settings> configure energy settings> i have deselected Screen_energy saving

Xscreensaver will work if I do xscreensaver & its just when rebooting and logging in it will not automatically start.
 
Old 07-16-2016, 04:33 PM   #7
Daedra
Senior Member
 
Registered: Dec 2005
Location: Springfield, MO
Distribution: Slackware64-15.0
Posts: 2,693

Rep: Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378
Quote:
Originally Posted by Belikewater View Post
Hmm not sure if I am doing it incorrectly, I have tried both methods, but still not working.

Based on the second method ill show you some output.

bash-4.3$ cat .xinitrc.sh
xscreensaver -no-splash &

bash-4.3$ ls -l .xinitrc.sh
-rwxr-xr-x 1 root root 27 Jul 16 01:36 .xinitrc.sh

In system settings> configure energy settings> i have deselected Screen_energy saving

Xscreensaver will work if I do xscreensaver & its just when rebooting and logging in it will not automatically start.
Well first thing its not .xinitrc.sh. Did you make that file manually? Log out of X and at the terminal type "xwmconfig" this will bring up your windows manager/desktop environment choices. After you choose the one you want you should now have the .xinitrc file in your home directory. From there you can add the "xscreensaver -no-splash &" line. For instance I use Mate desktop and here is my .xinitrc file

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap

xscreensaver -no-splash &

# merge in defaults and keymaps

[ -f $sysresources ] && xrdb -merge $sysresources
[ -f $sysmodmap ] && xmodmap $sysmodmap
[ -f $userresources ] && xrdb -merge $userresources
[ -f $usermodmap ] && xmodmap $usermodmap

if [ -z "$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then
export DESKTOP_SESSION="mate"
exec ck-launch-session dbus-launch --exit-with-session mate-session
else
export DESKTOP_SESSION="mate"
exec mate-session
fi
 
2 members found this post helpful.
Old 07-18-2016, 01:23 PM   #8
Belikewater
Member
 
Registered: Mar 2016
Location: Orlando Fl
Distribution: Slackware/Peppermint
Posts: 164

Original Poster
Rep: Reputation: Disabled
I mustve done something wrong the first time I tried to do it the way cwizardone advised. It is now working thanks everyone
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to autostart xscreensaver in debian jessie jobsworth Debian 0 02-02-2016 08:44 PM
tomboy autostart in xfce, though not on autostart list zlya Linux - Desktop 2 11-10-2009 10:49 AM
xscreensaver installed, but no xscreensaver-demo command? dalesan Linux - Software 7 09-01-2004 01:06 PM
Autostart Programs (Xscreensaver) When Starting Blackbox Ian Linux - Software 0 05-09-2004 03:05 PM
xscreensaver autostart rhraz Linux - Software 5 02-25-2004 05:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration