LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 02-09-2005, 06:20 PM   #1
webdevel
Member
 
Registered: Jan 2005
Location: Moldova
Distribution: Gentoo / Athlon 3200 / RAM 512
Posts: 60

Rep: Reputation: 15
How to lock keyboard and mouse (inet cafe locks)


I am going to create a simple perl script to lock terminals in my internet cafe.
How can I lock keyboard, mouse and turn off monitor ?

I was trying to use "rm /dev/keyb" and "chmod 000 ..." but my idea is bad.

Do you have any idea how to lock keyboard/mouse?
 
Old 02-09-2005, 07:06 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,965
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
Depending on how the kiosk is set-up/works ...
If you're assigning users temporary passwords an
easy way would be to run a little script ...
Step 1: change password
Step 2: fire up xscreensaver-command -lock

That doesn't disable the mouse & keyboard,
but with the right module (blank) enabled for
the saver the box will be unusable...


Cheers,
Tink
 
Old 02-10-2005, 06:47 AM   #3
webdevel
Member
 
Registered: Jan 2005
Location: Moldova
Distribution: Gentoo / Athlon 3200 / RAM 512
Posts: 60

Original Poster
Rep: Reputation: 15
I wish to have two lock levels.

1st - when prepayed time is over and keyboard/mouse are locked, but all applications are still open. User can add payment and continue job.
2nd - close all user applications and turn off monitor.
To close I will run kill, to turn off monitor as you said will be used screensaver. But I have no idea how to lock keyboard and mouse without turning off monitor. I am afraid that I have to build own kernel driver.
 
Old 02-10-2005, 11:30 AM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,965
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
What I've seen for other Kiosk systems here is a
physical device with a coin-regulated timer that
is hooked up between keyboard/mouse and computer.

;)

As I said in my first post: it depends on what way
you're going to run the thing.
Have a look on http://freshmeat.net - search for
"Internet cafe" or Kiosk; you might be surprised
how many are about and freely available.


Cheers,
Tink
 
  


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
|Keyboard locks after 15 mins Stimz Linux - Hardware 2 08-29-2005 03:23 AM
redhat 7.2 mouse/keyboard lock up rioguia Linux - Newbie 10 06-06-2005 01:33 PM
keyboard locks up in console busbarn Linux - Laptop and Netbook 10 06-23-2003 08:35 PM
Keyboard Locks Up in RH8.0 FireBuzzard Linux - Hardware 1 03-10-2003 06:44 PM
svgalib locks keyboard! kernelgimp Linux - Software 0 06-08-2002 02:17 PM


All times are GMT -5. The time now is 01:35 AM.

Main Menu
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