The Cookie Machine - Click here to drag window

DUMMY TEXT - Real text set in assets/js/theCookieMachine.js

Views: 447     Votes:  1     ✅ Solution
Tags: command-line   screen  
Link: 🔍 See Original Answer on Ask Ubuntu 🔗

Title: Turning screen off when running in without window manager running
ID: /2019/04/17/Turning-screen-off-when-running-in-without-window-manager-running
Created: April 17, 2019
Upload: November 24, 2022    Layout:  post
TOC: false    Navigation:  false    Copy to clipboard:  false

I would simply close the laptop lid to keep dust off the keyboard and power off the screen.

As no desktop manager is running you need to edit /etc/systemd/logind.conf and change this line:


to this:


Save the file and use systemctl restart systemd-logind

⇧ How to Switch Focus to a Gnome Terminal Tab via Script or Shell Command Default Ubuntu Desktop with TightVnc and Windows Linux Subsystem  ⇩