Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Hardware
User Name
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?


  Search this Thread
Old 02-15-2007, 11:58 PM   #1
LQ Newbie
Registered: Feb 2007
Posts: 2

Rep: Reputation: 0
locking mouse,keyboard and the system

i am currently doing my final year project.and as a module in that i need to lock the keyboard,mouse and the system when the user gets away from the system and resume them to normal state when the user comes back.i use a bluetooth phone as a token for the user.using python i check for the users presence.if the communication between phone and the system(laptop) breaks i need to lock mouse,keyboard and system.
for that i need to lock mouse,keyboard and the system individually so that someone cannot give any input via mouse or please tell me how to lock mouse,keyboard and system individually using a program.i am using ubuntu.i dont want the user to enter any password when he returns.the system will automatically detect him when he returns.

Last edited by balajitrz; 02-16-2007 at 11:27 PM.
Old 02-16-2007, 12:28 AM   #2
Senior Member
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
Can you please explain what exactly you want to do? You must provide us with much more details if you want us to help you.

Also, what distro are you using? Please put this information in your profile.

Old 02-16-2007, 08:29 AM   #3
Registered: Aug 2002
Location: Phoenix, AZ
Distribution: PCLinuxOS 2012.08
Posts: 430

Rep: Reputation: 30
If you use KDE for your desktop there is a Lock applet that you can add to the panel. Just right-click on an empty part of the panel, then in the drop-down (drop-up?) menu, click "Add applet to panel", then select the Lock/logout applet, or whatever Lock applet you have there.

When you click the Lock applet, your screen will go into screensaver mode and you will need to type in your password to unlock it. After one of my cats deleted a year's worth of email by walking on the keyboard, I never turn my back for a moment without now locking it!
Old 02-16-2007, 12:46 PM   #4
Registered: Mar 2003
Location: Cambridge, MA, USA
Distribution: Ubuntu (Dapper and Heron)
Posts: 377

Rep: Reputation: 31
For a generic solution, run xscreensaver-demo and use menu File->Lock Screen Now. (There used to be xlock, but it's not installed by default in Ubuntu Dapper, so I assume it's obsolete.)

You probably ought to find the easier way you're meant to use. On Ubuntu / Gnome, it's menu System -> Quit... -> Lock Screen.


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
i need to lock my keyboard and mouse for a short period of time and also unlock them balajitrz Linux - Hardware 1 02-16-2007 01:00 AM
Blank Screen after short period of inactivity SweetLou Debian 6 12-13-2006 08:45 PM
redhat 7.2 mouse/keyboard lock up rioguia Linux - Newbie 10 06-06-2005 01:33 PM
kernel-2.6.11-1.14_FC3 disables usb keyboard after short idle time acebass Fedora 2 05-22-2005 09:02 AM
Can I develop a Graphical Interface in C in a short period of time? dennyvm Programming 4 03-15-2004 06:40 AM > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:26 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
Open Source Consulting | Domain Registration