Hyprland icon indicating copy to clipboard operation
Hyprland copied to clipboard

blank screen with thunderbolt connected monitor

Open croots opened this issue 1 year ago • 15 comments

Regression?

Yes

System Info and Version

System/Version info
<Paste the output of the command here>

Description

External monitor connected via thunderbolt (from my laptop directly to the monitor) does not consistently display and spawn a workspace when it is hotplugged. Works when Hyprland is started with the monitor plugged in. Regression from 41 when this worked reliably and regression from 42 (non -git release) when it worked inconsistently. Peripherals and charging correctly work.

Symptoms matched #7321 but issue was not fixed when others were.

How to reproduce

Observe display on boot, unplug Dell XPS 9310 from an HP monitor via thunderbolt, plug back in, observe no display.

Crash reports, logs, images, videos

Logs forthcoming based on hyprwm/aquamarine#76

croots avatar Sep 06 '24 21:09 croots

dmesg.log

croots avatar Sep 06 '24 21:09 croots

hyprland.log

Both of these are from Hyprland -> unplug -> plug back in -> Quit Hyprland

croots avatar Sep 06 '24 21:09 croots

can you please add your hyprland.conf and printenv output

romanstingler avatar Sep 07 '24 20:09 romanstingler

hmm.. does it work on sway?

btw this seems unrelated to AQ_NO_MODIFIERS since there is no DDB stuff in dmesg.log

ikalco avatar Sep 09 '24 12:09 ikalco

@romanstingler Sorry for the delay, this setup is at my workplace.

env.txt

Most of my dotfiles are from Illogical Impulse (though I've since moved on to an amalgamation of a few setups so there's some customization)

hyprland.conf.txt env.conf.txt execs.conf.txt general.conf.txt rules.conf.txt colors.conf.txt keybinds.conf.txt

croots avatar Sep 09 '24 16:09 croots

@ikalco Just tested it with Sway, monitor hotpluging works out of the box. This issue appeared alongside the switch to aquamarine, so that follows I think.

croots avatar Sep 09 '24 16:09 croots

Update - When I boot the machine up unplugged and then plug it in, the display works fine. It seems as though if the display has been seen already since first Hyprland launch it fails to get readded.

croots avatar Sep 12 '24 19:09 croots

Update - When I boot the machine up unplugged and then plug it in, the display works fine. It seems as though if the display has been seen already since first Hyprland launch it fails to get readded.

uuuh... can you give hyprland.log where you boot, and replug so it works

ikalco avatar Sep 12 '24 21:09 ikalco

Any updates? I'm still having this exact same problem.

Estebiu avatar Oct 12 '24 12:10 Estebiu

I am using workaround for this where I just restart the monitor and then image appears.

c-danil0o avatar Oct 12 '24 12:10 c-danil0o

I have the same issue. What is working for me is :

hyprctl dispatch dpms off DP-x
hyprctl dispatch dpms on DP-x

Or two dpms toggle...

christophe-vescovi avatar Oct 16 '24 07:10 christophe-vescovi

I have the same issue. What is working for me is :

hyprctl dispatch dpms off DP-x
hyprctl dispatch dpms on DP-x

Or two dpms toggle...

I ended up with the same hack myself.

erahhal avatar Oct 16 '24 15:10 erahhal

@christophe-vescovi @erahhal can you guys give a full hyprlandd.log of you guys using the dpms trick I think the problem is that the enable commit fails because a pageflip is happening or something

ikalco avatar Oct 17 '24 00:10 ikalco

I've attached the log. hyprland.log

erahhal avatar Oct 17 '24 15:10 erahhal

Not sure if related but on occasion the DPMS trick doesn't work, and when this happens wdisplays and wlr-randr show the same external display twice.

erahhal avatar Oct 17 '24 15:10 erahhal

Update - When I boot the machine up unplugged and then plug it in, the display works fine. It seems as though if the display has been seen already since first Hyprland launch it fails to get readded.

uuuh... can you give hyprland.log where you boot, and replug so it works

Hi! Sorry for the delay, I've been in super crunch mode since September. Here's a log file of me launching hyprland, Plugging in my monitor successfully, unplugging, plugging in my monitor unsuccessfully, unplugging, then closing hyprland.

hyprland.log

croots avatar Oct 29 '24 17:10 croots

@croots can you try this patch.txt for hyprland

@erahhal your issue seems unrelated based on logs (its some weird output manager stuff like you said) you should make an issue and try to find a minimum repo with a config as close to the default one as possible

ikalco avatar Oct 31 '24 01:10 ikalco

@croots can you try this patch.txt for hyprland

This patch worked with 93b4478e70af6ffb08a4a66a6d0364c3296db296! Thanks for your help.

croots avatar Oct 31 '24 19:10 croots

I have this exact issue on 0.46.2

sillen102 avatar Feb 05 '25 19:02 sillen102

I have this exact issue on 0.46.2

update Hyprland and Aquamarine versions, many issues like this fixed there

ikalco avatar Feb 05 '25 20:02 ikalco

I have this exact issue on 0.46.2

update Hyprland and Aquamarine versions, many issues like this fixed there

I did now. Built from source, commit 8a6778f0a087cdfc4bc1d3751b0be2c2bf3322aa. It still doesn't work, but differently. Now the monitor is not blank but I can't get it to display in the correct resolution. I get the error that the monitor failed to set any requested modes and then it defaults to 1920x1080 (it's a 4K monitor).

Strangely enough it does work if I disable my internal monitor by running: hyprctl --batch 'keyword monitor eDP-1,disable' then the 4K monitor gets it's proper resolution, but now my internal monitor is disabled and I cannot enable it again as it stays blank even after I unplug the cable. I tried setting up a script that I could trigger with a keybinding that runs: hyprctl --batch 'keyword monitor eDP-1,3840x2160,auto,2' but it doesn't work. I have to kill Hyprland and log in again to get the internal screen back.

Edit: just wanted to mention that both monitors work correctly under KDE with Wayland so I know that this should work.

sillen102 avatar Feb 06 '25 07:02 sillen102