LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
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?

Notices



Reply
 
Search this Thread
Old 02-16-2007, 12:58 AM   #1
balajitrz
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 keyboard.so 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-17-2007 at 12:27 AM.
 
Old 02-16-2007, 01:28 AM   #2
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 61
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.

--Ian
 
Old 02-16-2007, 09:29 AM   #3
tigerflag
Member
 
Registered: Aug 2002
Location: Phoenix, AZ
Distribution: PCLinuxOS 2012.08
Posts: 428

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, 01:46 PM   #4
Quigi
Member
 
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.
 
  


Reply


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 02:00 AM
Blank Screen after short period of inactivity SweetLou Debian 6 12-13-2006 09:45 PM
redhat 7.2 mouse/keyboard lock up rioguia Linux - Newbie 10 06-06-2005 02:33 PM
kernel-2.6.11-1.14_FC3 disables usb keyboard after short idle time acebass Fedora 2 05-22-2005 10:02 AM
Can I develop a Graphical Interface in C in a short period of time? dennyvm Programming 4 03-15-2004 07:40 AM


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

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration