We can create a shell script which would simulate mouse movement at a specified
interval (only when XBMC is running) and prevent your screen from turning off.
Follow the steps:
Install necessary tools:
We would need xdotool to do this job for us. Install it by running the following
command