You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

volker75

Beginner

  • "volker75" started this thread

Posts: 1

Location: Germany

  • Send private message

1

Sunday, June 5th 2005, 12:49pm

turn off screen from other pc

Hallo,

i want to install linux/kde in a training classroom.

The old windows-systems allowed the teacher to turn screens from pupils black.

How can i do this with kde?


thx
Volker

2

Sunday, June 5th 2005, 1:47pm

RE: turn off screen from other pc

If you have the necceasiry rights to use dcop on every computer, you can lock the display with a dcop call. The user can unlock it with a password, but it is possible to make a scripts that checks every second if a screen is unlocked, and lock it again if so. A script could look like:

Source code

1
2
3
4
5
6
7
#!/bin/bash
while[ true ]; do
  if [ "`dcop kdesktop KScreensaverIface isEnabled`" != "true" ]; then
    dcop kdesktop KScreensaverIface lock
  fi
  sleep 1
done


To unlock it, just terminate the script and the users are able to unlock the screen with there password.