How to close display 0

Hi peeps, I am running a laptop (with a small screen) and after login the screen is duplicated on another larger display (through laptop HDMI). I see that i am not using the laptop screen at all, because i am using the larger screen. is there a way to turn of the laptop screen (display 0).

Sorry, didn’t see topic’s category.

Maybe you can find something useful in this page:

https://docs.qtile.org/en/latest/manual/config/screens.html#multiple-screens

thanks for your effort. i checked somehow was not able to figure out. may be needs a deeper understanding. probably @etrigan63 could help. His Qtile configuration is awesome. (available on github)

You’re gonna make me blush. :blush:

Seriously, use arandr to disable the screen and then save the setting as a script. Reverse the process and do the same. Now you have scripts to turn Display-0 on/off.

1 Like

here is the xrandr command to do what is required, but the screen switches off momentarily and then it turns on.

xrandr --output eDP1 --brightness 0 --mode 1366x768 --off --out put HDMI1 --mode 1920x1080 --preferred

i checked out arandr, i am able to achieve what i want by unchecking active checkbox for eDP1 and `applying’ the changes.

intention is to add the working xrandr to the end of autostart.sh Qtile helper.


export DESKTOP_SESSION=xfce4 &

xsetroot -cursor_name left_ptr &
picom & disown
nm-applet & disown
/usr/bin/ibus-daemon -dr &
redshift-gtk &
xfce4-power-manager & disown 
plank & disown
conky -C /home/pannet1/.config/conky/conky.conf 2> /home/pannet1/.config/conky/error.log
conky & disown
cbatticon & disown
volumeicon & disown
~/.config/qtile/scripts/check_battery.sh & disown
/usr/bin/aw-qt &
/usr/bin/xrandr --output eDP1 --brightness 0 --mode 1366x768 --off --output HDMI1 --mode 1920x1080 --preferred

Hello Everyone,
Bumping this.

@dalto
I did some DuckDuckGo before posting the above. Any idea who else can help me on this.

I use i3wm, but what works for me is to use first arandr to setup the screen as I like it. Then I save it to my preferred profile using autorandr. Maybe redundant but easiest for me.

The command autorandr --change checks if the current configuration corresponds to any of your saved profiles. I implement it in i3 so that when I respawn it loads the command.

So let’s say you save two profile, one only laptop and the other laptop plus external monitor with laptop switch off. Once you connect the monitor your can press your keybindings to respawn/refresh qtile and in principle it should pick it up or you can use the terminal.

1 Like

Thanks @Zircon34 it worked like charm

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.