You are not logged in.

#1 2017-09-18 08:00:24

tigerjack
Member
Registered: 2017-08-20
Posts: 53

Xmonad - windows drawn to not connected monitor

Hi there, first post here so please be patient smile
Well, the problem is that yesterday I connected an external monitor to the laptop in order to test the behavior of my system.
I used mons as suggested in the wiki to detect the external monitor and all worked well.
However, the problem is that now, even if there is no external monitor connected, Xmonad always behaves as if there is one and obviously sends windows/workspaces to the external (absent) monitor.

I have a dual-GPU laptop and I'm using intel + nvidia drivers using bumblebee + bbswitch to manage them.
I don't have any configuration file in xorg.conf.d related to video devices or monitors, just one for the keyboard and another one for the input peripherals (libinput).

I read somewhere that this may be a problem of the old Xinerama, but to be honest I don't know who is the culprit (Xmonad, Xinerama, bumblebee) and how to solve the problem.

Here is the output of xrandr

>xrandr -q
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 8192 x 8192
LVDS-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 382mm x 215mm
... 
VGA-1 disconnected (normal left inverted right x axis y axis)
HDMI-1 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)

As you can see, the other monitors are disconnected.

I also tried to run

> mons -a
> xrandr -s 0
> xrasengan --force -off HDMI-1

but none of them works.

This is my xmonad.hs if it may be of help.

Offline

Board footer

Powered by FluxBB