Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 07-22-2002, 04:03 PM   #1
LQ Newbie
Registered: Jul 2002
Posts: 1

Rep: Reputation: 0
Lock keyboard but enable display to update.


I would like to lock the keyboard/screen but enable the display to keep updating (don't display a screen saver). I have looked at xscreensaver but it cannot lock the screen without running a screen saver. I have a graphical monitor program which I run on the console display but would like to lock the keyboard so nobody can "dork" with the system when I leave in the evening. I can do this on my CDE desktop in Unix and would like to do the same on my Linux Mandrake 7.2 installation.

Old 07-26-2002, 04:22 PM   #2
Registered: Dec 2001
Location: Netherlands
Distribution: redhat suse mandrake freebsd
Posts: 344

Rep: Reputation: 30
use the good old xlock like this;
xlock -mode clock -geometry 100x100
this will use the clock screensaver in a 100x100 display
it locks your mouse and keyboard, but since it is in a
window u can still see your display output
see man xlock for all different screen savers and the
geometry can't be set to 0x0
try this in console and put it lateron somewhere in a script

some other 'nice', tho resource eating options;
-inroot or -inwindow these won't lock anything just showing
a screensaver background
Old 07-27-2002, 03:48 PM   #3
Registered: Dec 2001
Location: Netherlands
Distribution: redhat suse mandrake freebsd
Posts: 344

Rep: Reputation: 30
some (hopefully) useful options and remarks
xlock options;
-dpmsstandby 0 -dpmssuspend 0 ; otherwise your screen
will die eventually (see also option dpms "off" in XF86Config-4)
- mousemotion grabs mouse movements for password check
+ usefirst useful, otherwise the first key entered must be
the first one of your password.

xlock works great with xfce, windowmaker, fluxbox etc, but results are different in KDE considering powermanagement; you should alter that in K's control center
and the -inroot thingy wont work on K cause K puts a own
layer on top of the rootwindow
good luck


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to enable my keyboard if DISPLAY is exported?? dileepkk Linux - Software 1 07-30-2005 07:19 PM
logitech keyboard & F-lock edM Slackware 4 04-24-2005 12:01 PM
How to Lock keyboard ? sudhir Linux - General 2 09-18-2003 10:09 PM
Enable Scroll Lock in XWindows Demon10000 Linux - General 0 09-10-2003 12:15 PM
Enable Caps Lock nta Linux - Newbie 1 09-11-2002 05:37 PM

All times are GMT -5. The time now is 11:40 PM.

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