The Cookie Machine - Click here to drag window

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

If you can read me, I'm broken!

Views: 518β€…    Votes:  2β€…
Tags: keyboard   multiple-monitors  
Link: πŸ” See Original Answer on Ask Ubuntu ⧉ πŸ”—

URL: https://askubuntu.com/q/1183461
Title: Turn off primary screen, Ubuntu 19.10
ID: /2019/10/24/Turn-off-primary-screen_-Ubuntu-19.10
Created: October 24, 2019
Upload: April 28, 2024    Layout:  post
TOC: false    Navigation:  false    Copy to clipboard:  false


As demonstrated by this script you can turn off laptop screen:

To discover the power setting for your laptop display use:

$ ls /sys/class/backlight/*/bl_power

/sys/class/backlight/intel_backlight/bl_power

On my laptop the driver name is intel_backlight

Move your terminal window to your external screen and turn off your laptop display with:

echo 4 | sudo tee /sys/class/backlight/intel_backlight/bl_power

or a shorter version without specifying the name should work for all laptops:

echo 4 | sudo tee /sys/class/backlight/*/bl_power

To turn the screen back on:

echo 0 | sudo tee /sys/class/backlight/*/bl_power
## ```



You can also get a list of your monitors for `xrandr` software control:

``` bash
$ xrandr | grep " connected"
HDMI-0 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 1107mm x 623mm
eDP-1-1 connected primary 1920x1080+3840+2160 (normal left inverted right x axis y axis) 382mm x 215mm
DP-1-1 connected 3840x2160+1920+0 (normal left inverted right x axis y axis) 1600mm x 900mm

xrandr allows you to turn off a screen but then all windows will move to the screen that is left turned on which is what you don’t want.

⇧ Windows option just reloads grub bootloader after updating to Ubuntu 19.10 Selected Sound Output Device Not Persisting Between Reboots in gnome-control-center  β‡©