wmderland
wmderland copied to clipboard
Starting wmderland with external monitor connected results in black screen when switching to laptop monitor
Hi @aesophor, I am experiencing a problem where if I start wmderland with my external monitor connected to my laptop it results in a black screen when I switch the output to my laptop display. The output will first be shown on both monitors when starting wmderland. I then use the command xrandr --output eDP-1-1 --auto --output DP-2 --off
to switch to only my laptop monitor. If I use the command xrandr --output eDP-1-1 --off --output DP-2 --auto
to switch to only my external monitor I do no get a black screen on my external monitor.
The black screen does have a cursor and when I hover the cursor over e.g. where polybar should be the cursor changes to a hand, so it still seems to be there just totally black.
I am not having the issues with the black screen if I change my .xinitrc file to start e.g. xterm instead. I do not have issues either if I have my external monitor disconnected when starting wmderland, then plug in my external monitor, and switch between the two monitors.
My laptop is an Legion Y540-15IRH Laptop (Lenovo) - Type 81SX (81SX0008MX). It uses the NVIDIA Optimus technology. I am only having the issue with the black screen in wmderland if I use my NVIDIA GPU only. In hybrid mode I am not experiencing the issue. In this case however my laptop does not output to both monitors at first, but only my laptop monitor, which might be the reason why it works in this case.