LinuxQuestions.org
Visit Jeremy's Blog.
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 11-13-2015, 03:39 PM   #1
Z038
Member
 
Registered: Jan 2006
Location: Dallas
Distribution: Slackware
Posts: 912

Rep: Reputation: 174Reputation: 174
fluxbox screen lock won't stay locked


I have two normal login accounts on my desktop computer. I run KDE on one and fluxbox on the other. If I lock the KDE desktop, it stays locked. But the fluxbox desktop often unlocks itself after a few hours.

I don't think that anyone could have the password, but just in case, I've changed it a couple of times over the last week or so. I still find it unlocked sometimes hours after locking it. That said, I'm not ruling out some kind of security issue.

I'm running Slackware 14.1. Has anyone else run into a problem like this? Is there any way I can determine how it is coming unlocked?
 
Old 11-13-2015, 08:35 PM   #2
slacker1337
Member
 
Registered: Jun 2012
Location: Connecticut, USA
Distribution: Slackware
Posts: 148

Rep: Reputation: 40
I would check to see if your screen locking program is dying and output its stderr to a log file. For instance, if your using xscreensaver:
Code:
/usr/bin/xscreensaver -nosplash 2> logfile
That should point you to where the failure is.
 
1 members found this post helpful.
Old 11-14-2015, 01:45 AM   #3
number22
Member
 
Registered: Sep 2006
Location: Earth
Distribution: Slackware 14.1 Slackware64-current multilib
Posts: 278
Blog Entries: 7

Rep: Reputation: Disabled
if you using xlock, check its permission, it has g+s, and then your username is in the same group, I choose different password for its .xlockrc file.
 
1 members found this post helpful.
Old 11-14-2015, 08:03 AM   #4
orbea
Senior Member
 
Registered: Feb 2015
Distribution: Slackware64-current
Posts: 1,950

Rep: Reputation: Disabled
As I understand it, xlock is designed so that if any single screensaver crashes, the whole program goes down. Xscreensaver doesn't do this.

https://www.jwz.org/xscreensaver/versus-xlock.html

Could so also try other locking programs like slock.
 
1 members found this post helpful.
Old 11-14-2015, 11:50 AM   #5
jmccue
Member
 
Registered: Nov 2008
Location: US
Distribution: slackware
Posts: 691
Blog Entries: 1

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
I am fairly sure KDE has it's own screen saver.

For fluxbox I suspect you are using either xscreensaver or xlock. Could it be one of them are crashing (see slacker1337)? If using xscreensaver try adjusting settings using xscreensaver-demo. Some of xscreensaver's modes can be graphically intensive.

John
 
1 members found this post helpful.
Old 11-14-2015, 06:56 PM   #6
Z038
Member
 
Registered: Jan 2006
Location: Dallas
Distribution: Slackware
Posts: 912

Original Poster
Rep: Reputation: 174Reputation: 174
Quote:
Originally Posted by slacker1337 View Post
I would check to see if your screen locking program is dying and output its stderr to a log file. For instance, if your using xscreensaver:
Code:
/usr/bin/xscreensaver -nosplash 2> logfile
That should point you to where the failure is.
Thank you. But that just hangs. It doesn't lock the screen or display a screensaver or write anything to the log file. I can terminate it with CTRL+C.
 
Old 11-14-2015, 07:01 PM   #7
Z038
Member
 
Registered: Jan 2006
Location: Dallas
Distribution: Slackware
Posts: 912

Original Poster
Rep: Reputation: 174Reputation: 174
Quote:
Originally Posted by jmccue View Post
For fluxbox I suspect you are using either xscreensaver or xlock. Could it be one of them are crashing (see slacker1337)? If using xscreensaver try adjusting settings using xscreensaver-demo. Some of xscreensaver's modes can be graphically intensive.
Thanks, John. I don't think fluxbox is using xscreensaver. I ran the xcreensaver-demo, and it looks quite different from what I normally see when I lock the screen. I'm using whatever fluxbox is set up to use by default in Slackware 14.1.

I also get this when I run the xscreensaver-demo, but I'm not too concerned about it since I'm pretty sure that fluxbox is actually using xlock.

Code:
(xscreensaver-demo:32639): libglade-WARNING **: Could not load support for `gnome': libgnome.so: cannot open shared object file: No such file or 
directory
 
Old 11-14-2015, 07:04 PM   #8
Z038
Member
 
Registered: Jan 2006
Location: Dallas
Distribution: Slackware
Posts: 912

Original Poster
Rep: Reputation: 174Reputation: 174
Quote:
Originally Posted by number22 View Post
if you using xlock, check its permission, it has g+s, and then your username is in the same group, I choose different password for its .xlockrc file.
OK, this is what I'm using. The lock screen I normally see is the xlock screen.

I don't understand what you are saying about a different password for the .xlockrc file. How do I specify that?

The permissions on xlock appear to be what you said (or what I understood, anyway):

Code:
$ ls -al /usr/bin/xlock
-rwxr-s--x 1 root shadow 3115896 Aug 29  2013 /usr/bin/xlock
 
Old 11-14-2015, 07:06 PM   #9
Z038
Member
 
Registered: Jan 2006
Location: Dallas
Distribution: Slackware
Posts: 912

Original Poster
Rep: Reputation: 174Reputation: 174
Quote:
Originally Posted by orbea View Post
As I understand it, xlock is designed so that if any single screensaver crashes, the whole program goes down. Xscreensaver doesn't do this.

https://www.jwz.org/xscreensaver/versus-xlock.html

Could so also try other locking programs like slock.
Thank you for the link. Reading it now.
 
Old 11-14-2015, 07:12 PM   #10
slacker1337
Member
 
Registered: Jun 2012
Location: Connecticut, USA
Distribution: Slackware
Posts: 148

Rep: Reputation: 40
Quote:
Originally Posted by Z038 View Post
Thank you. But that just hangs. It doesn't lock the screen or display a screensaver or write anything to the log file. I can terminate it with CTRL+C.
It isn't hanging, it's simply running in the foreground. The lack of output to the log is good as well, since the "2>" redirects only stderr to the log. No output to the log means no errors. Place an ampersand at the end of my recommended command to place it in the background, or use CTRL+Z to suspend the process followed by a "bg" to place it in the background.

If you don't know which screensaver that fluxbox is using, just look in ~/.fluxbox/menu and search for "Lock Screen". For instance, my fluxbox menu has the following at line 196:
Code:
[exec] (Lock screen) {xlock}
Which tells me that my default screen locker was xlock.

Best of luck!
 
1 members found this post helpful.
Old 11-14-2015, 07:22 PM   #11
Z038
Member
 
Registered: Jan 2006
Location: Dallas
Distribution: Slackware
Posts: 912

Original Poster
Rep: Reputation: 174Reputation: 174
Thanks for telling me how to tell which program fluxbox is using, slacker1337. I have the same line in my fluxbox menu file.

Now I will see if I can change it to use xscreensaver.
 
Old 11-14-2015, 07:59 PM   #12
Z038
Member
 
Registered: Jan 2006
Location: Dallas
Distribution: Slackware
Posts: 912

Original Poster
Rep: Reputation: 174Reputation: 174
Ok, it turns out fluxbox menu system is pretty straightforward. I was able to edit ~/.fluxbox/startup to start xscreensaver when fluxbox starts, then add a menu item to run the {/usr/bin/xscreensaver-command -lock}. I'm leaving the xlock menu item in there until I am satisfied that xscreenserver will do the job for me.

Thank you all for the assistance. I appreciate it.

I'm going to mark this solved now.
 
Old 11-14-2015, 08:00 PM   #13
jmccue
Member
 
Registered: Nov 2008
Location: US
Distribution: slackware
Posts: 691
Blog Entries: 1

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Quote:
Originally Posted by Z038 View Post
I also get this when I run the xscreensaver-demo, but I'm not too concerned about it since I'm pretty sure that fluxbox is actually using xlock.
Code:
(xscreensaver-demo:32639): libglade-WARNING **: Could not load support for `gnome': libgnome.so: cannot open shared object file: No such file or 
directory
I get that too, I just ignore it. For Fluxbox I have this in file ~/.fluxbox/startup to enable xscreensaver:
Code:
xscreensaver -no-splash &
and in ~/.fluxbox/keys I have this:
Code:
Control Mod1 L :ExecCommand xscreensaver-command -lock
which will enable the screen saver when pressing "<Ctrl><Alt>L".

John
 
1 members found this post helpful.
Old 11-14-2015, 08:08 PM   #14
Z038
Member
 
Registered: Jan 2006
Location: Dallas
Distribution: Slackware
Posts: 912

Original Poster
Rep: Reputation: 174Reputation: 174
Thanks for the key shortcut, John. I just added that to the ~/.fluxbox/keys file, but it doesn't seem to have any affect. I'm working on it.
 
Old 11-14-2015, 08:13 PM   #15
Z038
Member
 
Registered: Jan 2006
Location: Dallas
Distribution: Slackware
Posts: 912

Original Poster
Rep: Reputation: 174Reputation: 174
Quote:
Originally Posted by Z038 View Post
Thanks for the key shortcut, John. I just added that to the ~/.fluxbox/keys file, but it doesn't seem to have any affect. I'm working on it.
Seems to work with lower case l, but not upper case L, even though the keys file has an uppercase L in the key sequence. Whatever. So long as it works...
 
  


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
Xfce screen lock: Not staying locked DaFrEQ Linux - Desktop 2 03-24-2009 09:50 AM
Num lock OFF and Caps & Screen Lock ON at Linux startup. Reversing? peteyperson Linux - Newbie 2 02-28-2009 11:44 AM
Screen lock in Fluxbox? harry2006 Linux - Software 9 09-18-2008 04:11 AM
get numbers lock to stay on SharpyWarpy Fedora 2 08-15-2005 06:21 AM
Gnome screen won't lock phahn Linux - Security 3 06-02-2002 08:45 AM

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

All times are GMT -5. The time now is 01:11 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