Join GitHub today
[Bug] Monitors Aren't Detected After Login #3673
I'm submitting a…
[x] Bug [ ] Feature Request [ ] Documentation Request [ ] Other (Please describe in detail)
When connecting or disconnecting a monitor after login i3 does not detect that it has changed.
But, if you log out and then connect or disconnect a monitor and then login again, it all works fine, but not whilst logged in.
When connecting a monitor the new monitor should be displayed.
When disconnecting a monitor it should be removed and i3 should not still try and move windows to it, or other multi monitor functionality.
After login, connect or disconnect a monitor and the problem occurs.
i3 version: 4.16-124-g88912d6f
Logfile URL: https://logs.i3wm.org/logs/5698027943624704.bz2
- Linux Distribution & Version: Ubuntu 18.04 - Are you using a compositor (e.g., xcompmgr or compton): xcompmgr v1.1.7
When you say connect, do you mean "plug it in"? Can you check with xrandr whether the output is actually activated?
i3 doesn't manage hardware directly. We rely on RandR to notify us, so if you plug it in and nothing else takes care of activating the output in X, you need to do so yourself.
A quick test would be to run
In terminal, xrandr detects the monitors correctly both when connected or disconnected, if thats what you mean.
Yes, this works but, it changes the settings until you log out and then in again.
Can you show the output of
If afterwards xrandr sees the output but reports it as disconnected, you need to first activate it. Whether you do this with xrandr, arandr, udev rules etc is up to you. i3 can only use outputs once they're connected (not just plugged in).
All, it shows is connected when plugged in and disconnected when plugged out, this is after logging in with the monitor plugged out.
It doesn't it seams to be working as it should but, with out displaying the monitor.
how do i test if the monitor needs activating.
In terminal, xrandr seams to be working as it should i.e. displaying monitors as connected or disconnected when they actually are.
But, i3 only seams to detect monitors as connected or disconnected at the initial login point, after that it does not change regardless of whether they are displayed as connected or disconnected by xrandr.
Ok, i will get back to you when i have the logs