Hyprland icon indicating copy to clipboard operation
Hyprland copied to clipboard

Recovering a removed monitor fails

Open brodi1 opened this issue 3 years ago • 1 comments

Distro: Arch Linux Hyprland Version: AUR (-git | commit 670d6ce8f476cbdced7aa62e7d8c16a48bccf0d5) Config:

monitor=HDMI-A-3,1920x1080@60,0x0,1,mirror,eDP-1
monitor=,preferred,auto,1

Log: hyprland.log

Steps to reproduce

  1. Use the config I used
  2. Start hyprland with external monitor connected
  3. Disconnect monitor cable
  4. Reconnect monitor cable

Expected outcome

Mirror the screen after reconnecting

Noted outcome

After reconnecting the external monitor (HDMI-A-3) it stays black and the windows on the integrated one (eDP-1) go invisible...

brodi1 avatar Oct 14 '22 13:10 brodi1

Check with recent commits.

vaxerski avatar Nov 19 '22 13:11 vaxerski

@vaxerski k so I tested both 0ffaa8d and 5530cf6 with the same results.

It improved a lot but the part of the bug that causes the windows to go invisible still is there....but it happens less often. While I did the testing I got it like 4-5 on average after disconnecting and connecting the cable. Atleast when it happens im able to disconnect and reconnect the cable and everything is normal again....not like in previous versions where I had to kill the Hyprland process.

I tried figure it out the cause but I can't find anything abnormal inside the logs imo... I'm not 100% sure but I got a feeling that it happens when switching very quickly from a workspace with a XWayland window to another workspace with a native Wayland application

brodi1 avatar Nov 19 '22 19:11 brodi1

the windows don't disappear for me, the monitor just switches to a different workspace. You sure they disappear?

vaxerski avatar Nov 19 '22 19:11 vaxerski

@vaxerski

You sure they disappear?

yup! I just see my wallpaper and when I'm switching workspaces I can see the current focused window title on my waybar. And the screen output on the second monitor is frozen

brodi1 avatar Nov 19 '22 19:11 brodi1

super odd. That was fixed for me with recent commits.

vaxerski avatar Nov 19 '22 23:11 vaxerski

make sure you updated by verifying the hash with hyprctl version

vaxerski avatar Nov 19 '22 23:11 vaxerski

@vaxerski grafik

brodi1 avatar Nov 20 '22 10:11 brodi1

alr. Odd.

vaxerski avatar Nov 20 '22 11:11 vaxerski

@vaxerski idk if this helps but here's a part of the log (I enabled time logging). The frame on the second monitor stopped at 17:26:54 hyprland.log

brodi1 avatar Nov 20 '22 16:11 brodi1

Nothing out of the ordinary. Possibly a driver bug?

vaxerski avatar Nov 20 '22 18:11 vaxerski

Can't even see any logs related to connecting / disconnecting mons

vaxerski avatar Nov 20 '22 18:11 vaxerski

Nothing out of the ordinary. Possibly a driver bug?

I also thought about that....

Sometimes I get layersurface messages inside the logs right when the frame freezes idk if it's related... one of them was this one https://github.com/hyprwm/Hyprland/blob/31aa357c17ab670041695da3d8ba8586063bf5a6/src/events/Layers.cpp#L29 I also tried turning off blur completly

brodi1 avatar Nov 20 '22 19:11 brodi1

So I tried using the same installation but on other hardware (same iGPU) no problems at all.... imma close this issue for now

brodi1 avatar Nov 21 '22 13:11 brodi1

welcome to another episode of "your system is haunted"

vaxerski avatar Nov 21 '22 13:11 vaxerski

I have nearly the same issue, when i shutdown my only monitor, and i turn it on after the night all the window have disappeared but programs are still running.., log:

[LOG] Callback ab6f7510 -> ab6f7508,  removed.
[WARN] Unplugged last monitor, entering an unsafe state. Good luck my friend.
[LOG] Callback ab6f7578 -> ab6f7570,  removed.
[LOG] LayerSurface ab9a3de0 unmapped
[WARN] Layersurface unmapping on invalid monitor (removed?) ignoring.
[LOG] LayerSurface ab9a3de0 destroyed
[LOG] Callback abbc7e08 -> abbc7e00, layerSurface removed.
[LOG] Callback abbc7cd0 -> abbc7cc8, layerSurface removed.
[LOG] Callback abbc7d38 -> abbc7d30, layerSurface removed.
[LOG] Callback abbc7da0 -> abbc7d98, layerSurface removed.
[LOG] Callback abbc7e70 -> abbc7e68, layerSurface removed.
[LOG] LayerSurface abf0a340 arranged: x: 0 y: 0 w: 2560 h: 32 with margins: t: 0 l: 0 r: 0 b: 0
[LOG] Monitor DP-1 layers arranged: reserved: 0.000000 32.000000 0.000000 0.000000
[LOG] LayerSurface ab9a3f10 unmapped
[WARN] Layersurface unmapping on invalid monitor (removed?) ignoring.
[LOG] LayerSurface ab9a3f10 destroyed
[LOG] Callback abeaff38 -> abeaff30, layerSurface removed.
[LOG] Callback abeafe00 -> abeafdf8, layerSurface removed.
[LOG] Callback abeafe68 -> abeafe60, layerSurface removed.
[LOG] Callback abeafed0 -> abeafec8, layerSurface removed.
[LOG] Callback abeaffa0 -> abeaff98, layerSurface removed.
[LOG] Monitor DP-1 layers arranged: reserved: 0.000000 0.000000 0.000000 0.000000
[ERR] Committing TextInput on no IME!
[ERR] Committing TextInput on no IME!

nmateo avatar Mar 09 '23 23:03 nmateo