Hi,

If you use KDE4, I recommand you use the following commands, as D-COP server was replaced with D-BUS within KDE4 :

lock : qdbus org.kde.screensaver /ScreenSaver Lock ; xset dpms force...