Originally Posted by
repzeroworld
A QUICK FIX TO PREVENT SLEEPING SCREEN AND MONITOR IN KALI LINUX
I encounter this problem in kali 1.0.6 where I disabled the screen lock (lock and brightness)
and prevent screen from suspending (Power Management)..but still the monitor went to sleep
Also there was no option prevent screen going in an inactive state infinitely..(lock and brightness-maximum time 1 hour)
I did some digging in xorg man pages and feel my way around with some tweaks..
turn off Energy star featUres of monitor by disabling Display Power Management Signalling (dpms) in xorg.conf
open a terminal and do the following
root@localhost:~# leafpad /etc/X11/xorg.conf
In leafpad browse to this section
Section "Monitor"
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Unknown"
HorizSync 28.0 - 33.0
VertRefresh 43.0 - 72.0
now append this line below "VertRefresh 43.0 - 72.0"
Option "dpms" "false"
afterwards save file
you can also use "xset" command to do this (xset -dpms)..but you will have to disable energy everytime you reboot..atleast in kali
after you do this...but appending the dpms lines above permanently disable dpms ... ..you can check to see if dpms is disabled.
root@localhost:~# xset q
At the bottom of standard output you should see " DPMS is Disabled"
Now that you have done that your the monitor will not go into
an energy saving state if mouse or keyboard is inactive....that is...you will not find your monitor saving power...power light on your monitor will always be green...one problem solved
Despite doing the above, kali linux will put the SCREEN (there is a difference between screen and monitor according to xorg man pages) to sleep when inactive
if you go to Application--->System Tools--->Preferences---->Setting---->Brightness and Lock----> there is no option there to
never let screen sleep...maximum inactive state time is 1 hour the screen goes inactive (blank)!.......to add this option..do.....I use leafpad to open the screen file with
the codes in it
root@localhost:~# leafpad /usr/share/gnome-control-center/ui/screen.ui
once leapad is opened look at lines 83-86 you will see the following
<row>
<col id="0" translatable="yes">1 hour</col>
<col id="1">3600</col>
</row>
below these instructions add
<row>
<col id="0" translatable="yes">Never</col>
<col id="1">0</col>
</row>
EXACTLY HOW IT IS!....save file.....
Now go back to Application--->System Tools--->Preferences---->Setting---->Brightness and Lock---->
and select the option "Never",the new option you create.....
This worked for me!
Problem..only problem you will have is that when you select 1 minute the screen will not go inactive after 1 minute
..if you select 2 minutes or any other options it will reset the value the boolean value "0" and after that 1 minute option
will work fine!
not a well done fix but it worked for me!!!
Other methods i tried include appending and setting blanktime status, suspendtime and offtime statuses in xorg.conf file to "0" but it wasn't working...i suppose i have
disable the dpms that is why there is no need for this.....