#to generate xorg.conf if it does not exist
#make sure X11 is not running including login managers
/etc/init.d/gdm stop || /etc/init.d/gdm3 stop || /etc/init.d/kdm stop || /etc/init.d/xdm stop || /etc/init.d/lightdm stop
Xorg -configure
#copy generated file to xorg folder
cp xorg.conf.new /etc/X11/xorg.conf.d/{custom_name}.conf
#add the following "options"to the conf file:
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Evdev Mouse" "CorePointer"
Option "BlankTime" "0"
Option "StandbyTime" "0"
Option "SuspendTime" "0"
Option "OffTime" "0"