LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-11-2009, 03:07 AM   #1
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Rep: Reputation: 100Reputation: 100
How to temporarily disconnect keyboard and mouse under X ?


I need to ensure that some students will not mess around during some lessons, ie. when videos are displayed.

linked to this thread : http://www.linuxquestions.org/questi...nder-x-703802/

Last edited by Linux.tar.gz; 02-11-2009 at 07:34 AM.
 
Old 02-11-2009, 05:49 AM   #2
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,552

Rep: Reputation: 103Reputation: 103
Take a look at xscreensaver. Obviously you do not want a screensaver, but what xscreensaver can do is lock your keyboard and require your password to unlock. I. e. either take a look at its source or post on its discussion forum. It should not bee too extremely hard to write a small app based on xscreensaver code that locks X and requires a password before it will "listen" to the keyboard, mouse again, but leave your training script or whatever way you do the teaching running.
 
Old 02-11-2009, 07:33 AM   #3
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Original Poster
Rep: Reputation: 100Reputation: 100
Interesting, thanks. And as the professor's PC can ssh to students, it can simply killall xscreensaver.

Last edited by Linux.tar.gz; 02-11-2009 at 07:35 AM.
 
Old 02-11-2009, 10:54 AM   #4
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Original Poster
Rep: Reputation: 100Reputation: 100
Mmm finally not enough... I really need to "disconnect" keyboard and mouse.
Users should only be able to watch !
 
Old 02-12-2009, 02:53 AM   #5
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Original Poster
Rep: Reputation: 100Reputation: 100
rmmod psmouse
rmmod usbhid
It's violent, but it works.
I also tried to change permissions on devices, but without success...

Any other idea ?
 
Old 02-12-2009, 05:28 AM   #6
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,552

Rep: Reputation: 103Reputation: 103
Nope sorry... but I'll remember what you have above, it could be useful... thanks!

Well, at least I learned something new - even if I could not assist...
 
Old 02-12-2009, 07:22 AM   #7
Linux.tar.gz
Senior Member
 
Registered: Dec 2003
Location: Paris
Distribution: Slackware forever.
Posts: 2,534

Original Poster
Rep: Reputation: 100Reputation: 100
For the xscreensaver part, i used this : xscreensaver-command -lock
It works like a charm, except for the login screen, which appears when an input event occurs, but it's np :^).
 
  


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
USB keyboard disconnect with ps2/usb converter/splitter eaberry Linux - Hardware 3 01-04-2009 09:52 AM
Which command to use to (temporarily) turn off the mouse? gus_1985 Linux - Hardware 6 11-23-2008 03:12 AM
USB Keybooard/Mouse disconnect/reconnect issue (Genius TwinTouch Optical Office) 2Pacalypse Linux - Hardware 0 09-22-2007 05:06 AM
Turning off printer causes mouse to lockup temporarily BajaNick Linux - General 2 07-10-2005 02:33 PM
disconnect USB mouse data from the mouse pointer Yeronimo Programming 0 04-07-2005 03:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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