You are not logged in.

#1 2017-06-08 22:14:54

incertia
Member
Registered: 2014-10-25
Posts: 29

[solved] xmonad starts with two screens with one connected screen

According to information piped to xmobar, XMonad thinks that there are two screens connected and I can open windows offscreen by switching to the off-screen workplace. Here is xrandr output from a minimal x session.

Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 16384 x 16384
eDP-1-1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 344mm x 194mm
   1920x1080     60.02*+
   1400x1050     59.98  
   1280x1024     60.02  
   1280x960      60.00  
   1024x768      60.04    60.00  
   960x720       60.00  
   928x696       60.05  
   896x672       60.01  
   800x600       60.00    60.32    56.25  
   700x525       59.98  
   640x512       60.02  
   640x480       60.00    59.94  
   512x384       60.00  
   400x300       60.32    56.34  
   320x240       60.05  
HDMI-1-1 disconnected (normal left inverted right x axis y axis)

with the following xinitrc

#! /bin/bash

xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto
xrandr --dpi 96

exec xterm

Running `xrandr --output eDP-1-1 --primary` fixes the issue temporarily but this was never an issue before so I'm curious as to what the problem actually is. Thanks in advance.

Last edited by incertia (2017-06-08 22:21:26)

Offline

#2 2017-06-08 22:21:13

incertia
Member
Registered: 2014-10-25
Posts: 29

Re: [solved] xmonad starts with two screens with one connected screen

welp, immediately after posting i traced the issue down to a stale xmonad.state file

primary vs non-primary should have no effect on single monitor setups

Offline

Board footer

Powered by FluxBB