Thanks, but still no luck... I am even trying with root and 777 access to both flags and scripts folder. Command '/home/user/smart/scripts/vncmode' failed with return code 0 and error message /home/user/smart/scripts/keepawake: line 3: Lock: not found /home/user/smart/scripts/keepawake: line 13: Lock: not found According to log, it connects without a problem to both WinSCP and TightVNC, but the script just won't work. If I enter dbus-send from WinSCP terminal the screen wakes up fine. What am I missing?