22

My short question is:

How do I get rid of the RandR error below, while still using a proprietaty nVidia driver package (e.g. 304) ?

The gore follows.

A fresh install of wine 1.5 (latest, from ubuntu-wine ppa) leaves me with the following when I run winecfg for the spanking-first time, and note I have not touched winetricks yet, nor does ~/.wine exist :

me@mine:~$ winecfg
wine: created the configuration directory '/home/me/.wine'
**err:winediag:xrandr12_init_modes Broken NVIDIA RandR detected, falling back to RandR 1.0. Please consider using the Nouveau driver instead.**
[err repeats at least 4x more]
fixme:storage:create_storagefile Storage share mode not implemented.
[fixme repeats at least 2x more]
err:mscoree:LoadLibraryShim error reading registry key for installroot
...
fixme:storage:create_storagefile Storage share mode not implemented.
fixme:iphlpapi:NotifyAddrChange (Handle 0x112e8d0, overlapped 0x112e8dc): stub
wine: configuration in '/home/me/.wine' has been updated.
**err:winediag:xrandr12_init_modes Broken NVIDIA RandR detected, falling back to RandR 1.0. Please consider using the Nouveau driver instead.**
[err repeats sporadically]

Removing the current nVidia packages and (re)installing Nouveau gets rid of the RandR error, but gives me copious errors when I launch anything requiring shader model 3, e.g. Eve Online, my only motivation to wrestle with Wine, currently. For it to run, I know I need the proprietary driver, and so Nouveau is not a solution for me - unless y'all know how to get sm3 support with the open stuff currently available, which would be just fabulous and tell me please.

I have gathered from WineHQ that the fixmes and the majority of errs are an innocuous "don't look behind the curtain" type of wish-list verbosity.

This Broken nVidia RandR thing, though, is something I'd like to deal with in order to get to, well, the other graphics issues I'm crossing my fingers about (in particular, a manual modification of wine1.5's shader model 3 detection routine to allow for my nVidia GeForce Go 7900 GS, which is one of the few sm3-compliant laptop gpu's to come out before sm4-type features were also implemented, leaving it out of consideration by the current Wine developers who seem to use sm4-ish flags to test for sm3 suport).

In order to tinker with my other woes, I must first eliminate the non-starters. This RandR is one. I think it's different from the other related posts in that I have not attempted to run anything other than winecfg itself to elicit the error, as opposed to a third party program.

PS `uname -a` --> Linux aestrid 3.8.0-12-generic #21-Ubuntu SMP Thu Mar 7 17:17:00 UTC 2013 i686 i686 i686 GNU/Linux

PPS `raring` up-to-the-minute update/dist-upgrade

How to solve this ?

PPPS If Henri Verbeet is listening.

3
  • Same problem here with a GeForce 320m
    – nbm
    Commented Jan 28, 2014 at 0:27
  • 1
    @nbm - just meant as idea or suggestion - deinstall wine, avoid dual-boot with win-x - test this nvidia-driver (but remove all drivers you have tried out before)...askubuntu.com/questions/311151/… Commented Jun 5, 2014 at 4:20
  • Do you still have this problem?
    – Elder Geek
    Commented Apr 7, 2015 at 15:51

4 Answers 4

3

Install winetricks and run winetricks orm=backbuffer glsl=disable. This will fix the error mentioned.

7
  • in case you cannot live without wine, not without samba, and not without windows, then this option with winetricks is then probably creating less trouble, but only to your desktopand not to mine or not to those, who want to live without dual-boot like in this situation and therefore am then one of those Linuxers who are less touchable ... :o) ... Commented May 3, 2015 at 17:25
  • 1
    @dschinn1001: I agree, but the user asked something wine-related. ;)
    – Frantique
    Commented May 4, 2015 at 6:54
  • 1
    + is ok + users should know this too + more ubuntu-related installation and less wine-windows-samba-installation is making hardware living longer ... + ... :oD Commented May 4, 2015 at 7:40
  • 4
    This one liner has no effect on the RandR warnings on my system.
    – James K
    Commented Oct 24, 2015 at 7:45
  • 1
    Did not work for me. Commented Sep 19, 2019 at 14:52
0

Maybe I'm moving far from the solution here, but if you did your own installation with the script provided by nvidia, I would try to add ppa of xorg-edgers, update and install the driver prepared by them:

sudo add-apt-repository ppa:xorg-edgers/ppa

It saved me lots of troubles when trying to install official nvidia drivers in the past and since then I had no troubles at all with wine or anything.

0

apparently the bug happens when wine try switching the resolution using XRandr extension.

so to resolve the issue you must disable or prevent wine from this behavior

go ahead and install Q4Wine from synaptic package manager and launch it

next go to Programs tab in the main window and right click on the prefix you are using by and choose Configure fake drive settings

in the Fake Drive Settings window go to Video > X11 Driver and set UseRandR to N as below

https://i.sstatic.net/KRmRa.jpg

2
  • Hello. Do you know this works on this 9 year old question?
    – David DE
    Commented Apr 13, 2022 at 7:50
  • Indeed It's a 9 years old question but the solution proposed didn't work for me neither for other people and i found this solution by trial and error that works without disabling GLSL or setting orm to a specific value I'm using MXlinux 21 with WINE 7.0
    – M01iR
    Commented Apr 16, 2022 at 14:49
-1

The solution is to restrict your X server to only one screen resolution by adding one line to your /etc/X11/xorg.conf in Screen section:

Option "metamodes" "1920x1080 +0+0"

Replace 1920x1080 with the supported resolution you need.

It's explained in detail at Wine FAQ:

https://wiki.winehq.org/FAQ#Broken_NVIDIA_RandR_detected.2C_falling_back_to_RandR_1.0

1
  • This added a non-existent half size third monitor to my screen, and now instead of RandR error in Wine I get <no_output>
    – Richard
    Commented Jul 20 at 20:27

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .