i need to lock my keyboard and mouse for a short period of time and also unlock them
Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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!
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.