How to fix nvidia randr broken on wine

Questions about Wine on Linux
Locked
kapakduosangah
Newbie
Newbie
Posts: 1
Joined: Sat Mar 04, 2023 9:31 am

How to fix nvidia randr broken on wine

Post by kapakduosangah »

i first time using wine on my linux. i have getting error as below. how to fixed?

0090:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
00a0:err:winediag:is_broken_driver Broken NVIDIA RandR detected, falling back to RandR 1.0. Please consider using the Nouveau driver instead.
0090:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0090:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0090:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0090:fixme:wineusb:query_id Unhandled ID query type 0x5.
0034:err:winediag:is_broken_driver Broken NVIDIA RandR detected, falling back to RandR 1.0. Please consider using the Nouveau driver instead.
002c:fixme:ver:GetCurrentPackageId (000000000021FD70 0000000000000000): stub
0034:fixme:ver:GetCurrentPackageId (000000000021FD70 0000000000000000): stub
Application could not be started, or no application associated with the specifie
d file.
ShellExecuteEx failed: File not found.

my hardware :
➜ ~ inxi -G
Graphics:
Device-1: NVIDIA GK107M [GeForce GTX 660M] driver: nvidia v: 470.161.03
Device-2: Sunplus Innovation ASUS Webcam type: USB driver: uvcvideo
Display: x11 server: X.Org v: 1.21.1.3 driver: X: loaded: nvidia
unloaded: fbdev,modesetting,nouveau,vesa gpu: nvidia
resolution: 1366x768~120Hz
OpenGL: renderer: NVIDIA GeForce GTX 660M/PCIe/SSE2
v: 4.6.0 NVIDIA 470.161.03
➜ ~
OS: Linux Mint 21 x86_64
Kernel: 5.15.0-60-generic
➜ ~ wine --version
wine-8.0
thanks
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: How to fix nvidia randr broken on wine

Post by jkfloris »

This is well known and there is information about it in several places.
https://wiki.winehq.org/FAQ#Broken_NVID ... _RandR_1.0
https://bugs.winehq.org/show_bug.cgi?id=34348
https://bugs.winehq.org/show_bug.cgi?id=37966
https://bugs.winehq.org/show_bug.cgi?id=38032

TL;DR:
Just a quick update. There is a work-around for this bug I stumbled across by accident when working on something unrelated. In hindsight it was somewhat obvious.

I had changed my /etc/X11/xorg.conf file to include the following line in the Section "Screen" part of the config:

Option "metamodes" "LVDS-0: 1920x1080 +0+0"

The effect of this is that only a single resolution will be available.

$ xrandr --q1
SZ: Pixels Physical Refresh
*0 1920 x 1080 ( 344mm x 194mm ) *60 40
Current rotation - normal
Current reflection - none
Rotations possible - normal left inverted right
Reflections possible - X Axis Y Axis
$

Hence, there is no resolution to change to, so the broken code-path is presumably never executed.
and
That message is a driver issue, but it's unlikely to prevent most applications from running. The practical effect is that display mode changes will be slightly screwed up in general, and more so in multihead setups. The easiest way to avoid that is to use the Nouveau driver, though probably at the cost of some GL performance. Other options are using an AMD or Intel GPU, or trying to convince NVIDIA to fix the drivers.

Either way, as I said before, this is unlikely to prevent most applications from running, so you probably have a different issue as well.
I expect this is your problem:

Code: Select all

Application could not be started, or no application associated with the specified file.
ShellExecuteEx failed: File not found.
How do you start the program?
You could read the WineHQ Wiki for more information.
Locked