You are not logged in.

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.