title: Shutdown monitor on debian server
body: <p>I'm running a debian server and because the pc is in my room and always running I want to shutdown the monitor.</p>
  
  <p>I have no graphic interface so </p>
  
  <pre><code>xset dpms force off
  </code></pre>
  
  <p>doesn't work (returning: xset:  unable to open display "")</p>
  
  <p>I try "setterm powerdown" commands but it only "clear" the screen but it still produces light (black screen but with background light ... )</p>
  
  <p>So after major google research I'm comming here.
  The cool thing will be shutdown monitor after inactivity and power on if a keyboard keys is pressed.</p>
  
  <p>Only poweroff the screen will be fine because I'm using ssh to manage the server.</p>