kyechou / leagueoflegends

League of Legends install and launch wrapper for Linux
https://www.leagueoflegends.com
GNU General Public License v3.0
290 stars 23 forks source link

winediag:is_broken_driver Broken NVIDIA RandR detected, falling back to RandR 1.0. Please consider using the Nouveau driver instead. #113

Closed drshapeless closed 1 year ago

drshapeless commented 1 year ago

Before creating an issue, please take a look at the troubleshooting section.

System information

If your issue is related to graphics display, please attach the output of vulkaninfo --summary.

Describe the issue

Starting from yesterday, I keep seeing this error about broken nvidia randr detected.

00c4:err:winediag:is_broken_driver Broken NVIDIA RandR detected, falling back to RandR 1.0. Please consider using the Nouveau driver instead.
002c:err:winediag:is_broken_driver Broken NVIDIA RandR detected, falling back to RandR 1.0. Please consider using the Nouveau driver instead.
0024:err:winediag:is_broken_driver Broken NVIDIA RandR detected, falling back to RandR 1.0. Please consider using the Nouveau driver instead.
0110:err:winediag:is_broken_driver Broken NVIDIA RandR detected, falling back to RandR 1.0. Please consider using the Nouveau driver instead.
0120:err:winediag:is_broken_driver Broken NVIDIA RandR detected, falling back to RandR 1.0. Please consider using the Nouveau driver instead.
0148:err:winediag:is_broken_driver Broken NVIDIA RandR detected, falling back to RandR 1.0. Please consider using the Nouveau driver instead.
0258:err:winediag:is_broken_driver Broken NVIDIA RandR detected, falling back to RandR 1.0. Please consider using the Nouveau driver instead.
02c4:err:winediag:is_broken_driver Broken NVIDIA RandR detected, falling back to RandR 1.0. Please consider using the Nouveau driver instead.

The client now uses CPU rendering, resulting in ridiculous laggy performance. I believe I have not updated anything nvidia related before yesterday. Even I updated today, the issue still persists.

After some searching, this should be something wine related, but I have no idea how to fix it. I have follow the wine FAQ, https://wiki.winehq.org/FAQ, to change the xorg.conf, but no success. LOL is the only thing I use with wine on my computer.

I have tried reinstalling, removing the .wine directory at HOME, still have no idea how I ended up in this situation.

Here is my vulkaninfo --summary.

==========
VULKANINFO
==========

Vulkan Instance Version: 1.3.255

Instance Extensions: count = 21
-------------------------------
VK_EXT_acquire_drm_display             : extension revision 1
VK_EXT_acquire_xlib_display            : extension revision 1
VK_EXT_debug_report                    : extension revision 10
VK_EXT_debug_utils                     : extension revision 2
VK_EXT_direct_mode_display             : extension revision 1
VK_EXT_display_surface_counter         : extension revision 1
VK_KHR_device_group_creation           : extension revision 1
VK_KHR_display                         : extension revision 23
VK_KHR_external_fence_capabilities     : extension revision 1
VK_KHR_external_memory_capabilities    : extension revision 1
VK_KHR_external_semaphore_capabilities : extension revision 1
VK_KHR_get_display_properties2         : extension revision 1
VK_KHR_get_physical_device_properties2 : extension revision 2
VK_KHR_get_surface_capabilities2       : extension revision 1
VK_KHR_portability_enumeration         : extension revision 1
VK_KHR_surface                         : extension revision 25
VK_KHR_surface_protected_capabilities  : extension revision 1
VK_KHR_wayland_surface                 : extension revision 6
VK_KHR_xcb_surface                     : extension revision 6
VK_KHR_xlib_surface                    : extension revision 6
VK_LUNARG_direct_driver_loading        : extension revision 1

Instance Layers: count = 9
--------------------------
VK_LAYER_KHRONOS_validation       Khronos Validation Layer     1.3.250  version 1
VK_LAYER_LUNARG_api_dump          LunarG API dump layer        1.3.250  version 2
VK_LAYER_LUNARG_monitor           Execution Monitoring Layer   1.3.250  version 1
VK_LAYER_LUNARG_screenshot        LunarG image capture layer   1.3.250  version 1
VK_LAYER_NV_optimus               NVIDIA Optimus layer         1.3.242  version 1
VK_LAYER_VALVE_steam_fossilize_32 Steam Pipeline Caching Layer 1.3.207  version 1
VK_LAYER_VALVE_steam_fossilize_64 Steam Pipeline Caching Layer 1.3.207  version 1
VK_LAYER_VALVE_steam_overlay_32   Steam Overlay Layer          1.3.207  version 1
VK_LAYER_VALVE_steam_overlay_64   Steam Overlay Layer          1.3.207  version 1

Devices:
========
GPU0:
    apiVersion         = 1.3.242
    driverVersion      = 535.98.0.0
    vendorID           = 0x10de
    deviceID           = 0x1e89
    deviceType         = PHYSICAL_DEVICE_TYPE_DISCRETE_GPU
    deviceName         = NVIDIA GeForce RTX 2060
    driverID           = DRIVER_ID_NVIDIA_PROPRIETARY
    driverName         = NVIDIA
    driverInfo         = 535.98
    conformanceVersion = 1.3.5.0
    deviceUUID         = 646f025c-4f21-bf7a-dd97-61e403a0453f
    driverUUID         = c484261a-32ea-55a9-9340-c6bd9eba29c9

Steps to reproduce

leagueoflegends start

Screenshots

If applicable, add screenshots for the issue.

drshapeless commented 1 year ago

The issue is fixed by using sudo nvidia-xconfig and modify the corresponding line according to this FAQ, https://wiki.winehq.org/FAQ.

I am not exactly sure why this would happen, but it is probably not related to this project, sorry for the inconvenience.