You are not logged in.

#1 2022-11-15 17:32:25

ltsdw
Member
Registered: 2020-04-20
Posts: 65

[Solved] Black screen using PRIME render offload with wine

wm: dwm
kernel: linux-6.0.8.arch1-1
nvidia drivers: nvidia-dkms-520.56.06-2
mesa: mesa 22.2.3-1
dgpu: NVIDIA GeForce RTX 3050 Laptop
igpu: Mesa Intel(R) UHD Graphics (TGL GT1)

I tested with wine 6.16, 6.23, 7.0, 7.19, 7.20 (the 7.19 and 7.20 was from the arch linux repository, the other versions I had to compile myself for testing and couldn't compile versions before that because some issues with winegcc and something about conflicting types for ‘ldap_connect’)

I see this in the logs:

038c:err:system:NtUserChangeDisplaySettings Changing L"\\\\.\\DISPLAY1" display settings returned -1.
038c:err:system:NtUserChangeDisplaySettings Changing L"\\\\.\\DISPLAY1" display settings returned -1.
err:   DXGI: EnterFullscreenMode: Failed to change display mode
0470:fixme:imm:ImeSetActiveContext (000000000009008E, 1): stub
0470:fixme:imm:ImmReleaseContext (00000000000700C0, 000000000009008E): stub
X connection to :0 broken (explicit kill or server shutdown).
X connection to :0 broken (explicit kill or server shutdown).
X connection to :0 broken (explicit kill or server shutdown).

This line seems to tell the problem:

038c:err:system:NtUserChangeDisplaySettings Changing L"\\\\.\\DISPLAY1" display settings returned -1.

The part about the X is because I have to switch to another tty to kill the X and restart it again, because the screen will still being black even after killing the process of the game and wine altogether.

journalctl, dmesg and xorg.log doesn't show nothing (I think it's because nothing really breaks, it's just wine not switching stuffs)

I was also trying bisect for regression but as all versions I tried this happened, I gave up.
Also I can start the game normally with the integrated gpu and it works normally (using PRIME render offload) with wine-tkg and wine-ge (I think one of the those patches actually sort stuff that wine or wine-staging don't).

Last edited by ltsdw (2022-11-16 13:18:43)

Offline

#2 2022-11-16 13:18:22

ltsdw
Member
Registered: 2020-04-20
Posts: 65

Re: [Solved] Black screen using PRIME render offload with wine

Ok, I need this patch valve_proton_fullscreen_hack-staging.patch.

I also reported it at winehq, but needing this patch I don't think they can upstream such a fix.

Offline

Board footer

Powered by FluxBB