Wine and xrandr

I'm trying to run some games with wine, but everyone shows the same problem when I try to run it in fullscreen.
For instance if I run Starcraft or Fallout 2, terminal says:
fixme:advapi:SetSecurityInfo stub
fixme:win:EnumDisplayDevicesW ((null),0,0x32f420,0x00000000), stub!
err:x11settings:X11DRV_ChangeDisplaySettingsEx No matching mode found 640x480x8 @0! (XRandR)
err:x11settings:X11DRV_ChangeDisplaySettingsEx No matching mode found 1680x1050x8 @0! (XRandR)
err:x11settings:X11DRV_ChangeDisplaySettingsEx No matching mode found 1680x1050x32 @0! (XRandR)
So I've found out that xrandr only has one mode:
Screen 0: minimum 2960 x 1050, current 2960 x 1050, maximum 2960 x 1050
default connected 2960x1050+0+0 0mm x 0mm
2960x1050 50.0*
As you see, I have a dual monitor setup on nvidia card, and I configured everything with nvidia-settings.
So my question - how do I add more 'modes' to xrandr.

Since this is a problem which many have even today, im posting this GREAT solution … g-in-wine/
and mods, i hope this is not considered 'necroposting the ONLY solution', im sorry if it is.

Similar Messages

  • Wine and resolution issue

    i have used archlinux for a year or so. everything went quite perfectly, but because archlinux is not multilib (i need it for my 32-bit blitzmax application) i installed gentoo last week. and because gentoo did not get me "that feeling" of arch, i went back and reinstalled arch...completely new. now i have got problems with 32bit-wine. i am using arch64 and never had such a problem. we are discussing that in the german forums without any solutions yet so i hope you could help me. i guess nobody else has this problem (because i did not read of it) so i must be an idiot and do sth. wrong .
    ok, first, this issue does not appear when running native 64bit applications, like frozen-bubble iin fullscreen. so i guess it has sth to do with the lib32 packages...dont know. when i am running windows games iin wine (bin32-wine 1.1.17 or bin32-wine-suse 1.1.18 from aur) in fullscreen, wine changes the resolution as it has to be (640x480, 800x600 or whatever), but i can still use my mouse and move it to the right or bottom edge and can so navigate through the whole screen ( so i can see the rest of my gnome desktop for example). because of that my games are unplayable. it happens to morrowind, half-life (the old one, not the source-based) & half-life 2, so it not depends on one game. i tried running wine using xrandr resolution changer (changed in wine config) but the i cannot change the resolution from my native one (1680x1050), also not perfectly, because i want to play my games in 800x600 ^^.
    but remember, it did work quite well two weeks ago :-\ (i will never change my distro again, i will never change my distro again... )
    here is maybe stuff you will need:
    my xorg.conf:
    Section "ServerLayout"
    Identifier "Layout0"
    Screen 0 "Screen0" 0 0
    InputDevice "Keyboard0" "CoreKeyboard"
    InputDevice "Mouse0" "CorePointer"
    Section "Files"
    Section "Module"
    Load "dbe"
    Load "extmod"
    Load "type1"
    Load "freetype"
    Load "glx"
    Section "InputDevice"
    # generated from default
    Identifier "Mouse0"
    Driver "mouse"
    Option "Protocol" "auto"
    Option "Device" "/dev/psaux"
    Option "Emulate3Buttons" "no"
    Option "ZAxisMapping" "4 5"
    Section "InputDevice"
    # generated from default
    Identifier "Keyboard0"
    Driver "kbd"
    Section "Monitor"
    Identifier "Monitor0"
    VendorName "Unknown"
    ModelName "Unknown"
    HorizSync 28.0 - 33.0
    VertRefresh 43.0 - 72.0
    Option "DPMS"
    Section "Device"
    Identifier "Device0"
    Driver "nvidia"
    VendorName "NVIDIA Corporation"
    Section "Screen"
    Identifier "Screen0"
    Device "Device0"
    Monitor "Monitor0"
    DefaultDepth 24
    SubSection "Display"
    Depth 24
    but i also tried different other xorg.conf's. i had also this minimalistic one:
    Section "Device"
    Identifier "Device0"
    Driver "nvidia"
    VendorName "NVIDIA Corporation"
    but the i had problems changing my resolution in gnome (via gnome-display-properties).
    my lib32-*:
    [[email protected] ~]$ pacman -Qs lib32-
    local/lib32-alsa-lib 1.0.19-1 (lib32)
    An alternative implementation of Linux sound support
    local/lib32-e2fsprogs 1.41.4-1
    Ext2 filesystem utilities
    local/lib32-expat 2.0.1-2 (lib32)
    An XML Parser library written in C
    local/lib32-fontconfig 2.6.0-2 (lib32)
    A library for configuring and customizing font access
    local/lib32-freetype2 2.3.9-1 (lib32)
    TrueType font rendering library
    local/lib32-gcc-libs 4.3.3-1 (lib32)
    The GNU Compiler Collection
    local/lib32-glibc 2.9-4 (lib32)
    GNU C Library (32 Bit)
    local/lib32-libdrm 2.3.1-3 (lib32)
    Userspace interface to kernel DRM services
    local/lib32-libice 1.0.5-1 (lib32)
    X11 Inter-Client Exchange library
    local/lib32-libjpeg 6b-6 (lib32)
    Library of JPEG support functions
    local/lib32-libsm 1.1.0-1.1 (lib32)
    X11 Session Management library
    local/lib32-libx11 1.2-1 (lib32)
    X11 client-side library
    local/lib32-libxau 1.0.4-1 (lib32)
    X11 authorisation library
    local/lib32-libxcb 1.2-1 (lib32)
    X11 client-side library
    local/lib32-libxcomposite 0.4.0-1 (lib32)
    X11 Composite extension library
    local/lib32-libxdamage 1.1.1-1 (lib32)
    X11 damaged region extension library
    local/lib32-libxdmcp 1.0.2-1 (lib32)
    X11 Display Manager Control Protocol library
    local/lib32-libxext 1.0.5-1 (lib32)
    X11 miscellaneous extensions library
    local/lib32-libxfixes 4.0.3-1 (lib32)
    X11 miscellaneous 'fixes' extension library
    local/lib32-libxml2 2.7.3-1 (lib32)
    XML parsing library, version 2
    local/lib32-libxrender 0.9.4-1 (lib32)
    X Rendering Extension client library
    local/lib32-libxslt 1.1.24-2 (lib32)
    XML stylesheet transformation library
    local/lib32-libxt 1.0.5-1 (lib32)
    X11 toolkit intrinsics library
    local/lib32-libxxf86vm 1.0.2-1 (lib32)
    X11 XFree86 video mode extension library
    local/lib32-mesa 7.2-1 (lib32)
    Mesa OpenGL library
    local/lib32-nvidia-utils 180.29-3 (lib32)
    NVIDIA drivers utilities and libraries.
    local/lib32-zlib (lib32)
    A compression/decompression Library
    i am using stable archlinux, no testing. as you can see i have got an nvidia-card.
    i also tried removing .wine and also (!) .* and created a new user, but without any solution. everytime the same problem. i will try installing a 32bit chroot now, maybe it is working there.
    i hope you can help me

    G`Day I had the same problem also (x64), I managed to get it working by installing all of lib32* without chroot
    # pacman -S lib32
    resolving dependencies...
    looking for inter-conflicts...
    warning: removing 'lib32-libgl' from target list because it conflicts with 'lib32-nvidia-utils'
    Targets (69): lib32-glibc-2.9-4 lib32-alsa-lib-1.0.19-1 lib32-glib2-2.20.1-1 lib32-atk-1.26.0-1 lib32-expat-2.0.1-2 lib32-zlib- lib32-freetype2-2.3.9-2
    lib32-fontconfig-2.6.0-2 lib32-libpng-1.2.35-1 lib32-libxau-1.0.4-1 lib32-libxcb-1.2-1 lib32-libxcomposite-0.4.0-2 lib32-libxdmcp-1.0.2-2
    lib32-libx11-1.2.1-1 lib32-libxrender-0.9.4-2 lib32-pixman-0.14.0-2 lib32-xcb-util-0.3.4-2 lib32-cairo-1.8.6-1 lib32-openssl-0.9.8k-2
    lib32-curl-7.19.4-1 lib32-gcc-libs-4.3.3-1 lib32-db-4.7.25-2 lib32-libtasn1-2.1-1 lib32-lzo2-2.02-3.1 lib32-libgpg-error-1.6-1.1
    lib32-libgcrypt-1.4.4-1 lib32-opencdk-0.6.6-1.1 lib32-ncurses-5.7-2 lib32-readline-5.2.013-2 lib32-gnutls-2.6.6-1 lib32-heimdal-1.2.1-3
    lib32-libjpeg-6b-6 lib32-libtiff-3.8.2-4 lib32-libcups-1.3.10-2 lib32-libxfixes-4.0.3-2 lib32-libxcursor-1.1.9-2 lib32-libxext-1.0.5-2
    lib32-libxi-1.2.1-1 lib32-libxinerama-1.0.3-2 lib32-libxrandr-1.3.0-1 lib32-libxft-2.1.13-1 lib32-pango-1.24.1-1 lib32-pcre-7.9-1 lib32-gtk2-2.16.1-1
    lib32-libart-lgpl-2.3.20-1 lib32-libdrm-2.4.9-1 lib32-libxxf86vm-1.0.2-1 lib32-libice-1.0.5-1 lib32-libsm-1.1.0-1.1 lib32-libstdc++5-3.3.6-3
    lib32-libxdamage-1.1.1-2 lib32-libxml2-2.7.3-1 lib32-libxt-1.0.5-2 lib32-libxmu-1.0.4-2 lib32-libxslt-1.1.24-2 lib32-libxss-1.1.3-1
    lib32-libxtst-1.0.3-2 lib32-libxv-1.0.4-1 lib32-nvidia-utils-180.51-1 lib32-mesa-7.4.1-1 lib32-nas-1.9.2-1 lib32-nspr-4.7.4-1 lib32-sqlite3-3.6.13-1
    lib32-nss-3.12.3-1 lib32-openal-1.7.411-1 lib32-pciutils-3.1.2-1 lib32-qt-4.5.0-5 lib32-qt3-3.3.8-10 lib32-sdl-1.2.13-3

  • Wine and directsound 3d

    I have a problem with wine, I have enabled hardware sound with winecfg but I have errors anyway when I start games with wine, errors say that hardware acceleration is not enabled and wine will use HEL instead. I can't post the errors cause now i'm in an other computer, anyway someone could advice me? I'm playing starcraft 2 with wine and it has very low fps, with windows 7 is better.
    thank you

    Ok this evening i will be on my computer and i'll do my duty . I was wondering only to know if i have to something special to enable it...

  • [SOLVED] WINE and Eve Online

    First off, I am not using 64bit.
    Lately, running Wine and Eve-Online is fine.
    However, when I Quit from the game freezes.
    I actually have to x-it-out (the wine window), and a window pops up with
    "A simulated logout was in the process and is not responding".. or some such thing
    and then I can terminate it and get my desktop back.
    I've seen several posts about this, but no resolve.
    Last edited by Kilzool (2014-07-13 09:58:09)

    andrewd18 wrote:
    Sekre wrote:
    Did you try the aur package, I suggested earlier?
    I compiled this again two-three days ago, and am seeing good effect in EVE in particular, with an nVidia 660, both with and without bumblebee.
    I use PlayOnLinux to manage my WINE prefixes. It turns out the 1.7.18-CS-0.8-f1cf438 build is a build of the HEAD of that repository. So I switched to that WINE version, and yes, the problem is solved.
    I also created a CSMT-enabling registry key. To do so, launch regedit, browse to HKEY_CURRENT_USER/Software/Wine/Direct3D, right click and select New > String Value “CSMT”. Then, double click and set the string to “enabled”.
    Thank you!
    Then the million isk question is, "Why does the CSMT build not display this issue?"
    I just might have to put on my scuba gear and go diving into this some more when the schedule permits.

  • [SOLVED] Playing sound simultaniously from wine and other applications

    I'm using Pulseaudio with the following packages installed:
    ~> pacman -Q | grep 'alsa\|pulse'
    alsa-plugins 1.0.27-2
    lib32-libpulse 5.0-1
    libpulse 5.0-1
    pulseaudio 5.0-1
    pulseaudio-alsa 2-2
    When running a wine application sound works, unless a linux application is playing sound. If that is the case, no sound is playing from the wine app until sound from the linux application stops (for example by pausing smplayer).
    Is there any way to make sound work simultaneously from wine and native applications?
    Other information that may be relevant:
    Architecture - x86_64
    Desktop - KDE
    Wine application - BabasChess
    Last edited by CarbonFixer (2014-04-16 16:14:10)

    V1del wrote:Install lib32-alsa-plugins and set wine to use the default resp (System Standard) card in winecfg pulsemixers should show an [alsa-plugin] wine stream
    Was missing that package.

  • Wine and crossover and anyu other vs vmware

    whats better in performance
    vmware or wine and etc
    i am talking about games
    on what software it will run faster

    To play relatively new games, Cedega is by far the easiest way.  It requires a subscription fee, or you can compile it for yourself, and get a few less features.  It's worth the fee if you consider yourself a gamer, as it just streamlines the whole process.
    Games will play underneath apps like Wine still, but it can be difficult for modern games, and can require lots of workarounds.  I only play games occasionally, and when I do they're pretty old (Starcraft, warcraft, doom, etc) so wine is more than capable to suit my needs.

  • Wine and PulseAudio 5.0

    Seems since PulseAudio updated to version 5, Wine and PlayOnLinux cannot seem to use the following library even though it exists in the directory.
    ALSA lib dlmisc.c:252:(snd1_dlobj_cache_get) Cannot open shared library /usr/lib32/alsa-lib/
    Any ideas how to fix this issue, the library actually exists in that directory.

    V1del wrote:@Daerandin I'm pretty sure its a different issue, you get SOME sound from timidity it doesn't not find the alsa lib and crashes a horrible death
    Yes it might be unrelated. If I find myself with some extra time during next week I will see if I can figure out what the problem is with Timidity. As I said, Timidity actually works if I select my laptop's internal speakers as default sound output, instead of my USB headset. Munt from AUR behaves in a somewhat similar manner. It works as long as it outputs to internal speakers. Unlike Timidity, Munt stops working if I switch output to my headphones. The sound mixing simply stops immediately if switch output to USB headset. The relevant output in terminal is:
    Scanning audio devices ...
    MT-32 emulator ALSA address is: "128:0"
    Scanning audio devices ...
    Using ALSA audio device: default
    Using audio latency: 2048 frames, chunk size: 512 frames
    ALSA audio: Processing thread started
    snd_pcm_writei failed: Broken pipe
    ALSA audio: Processing thread stopped
    ALSAMidiDriver: Connected application "129:0 DOSBOX"
    When I have the time to sink my teeth into this I might pursue the matter in a seperate topic.
    As for the PlayOnLinux issue, the file referred to in the error message is provided by lib32-alsa-plugins. This file is not affected by the Pulseaudio update, so I would assume there is some problem in how Pulseaudio interacts with the application.
    Edit: PlayOnLinux devs just confirmed that since Wine does not support Pulse by default, they will not either. Now I happen to quite enjoy Pulseaudio so I will look into possibly workarounds while still having Pulseaudio. If I find a good solution I will make sure to mention it in this topic.
    Last edited by Daerandin (2014-03-10 13:52:07)

  • I have a license for LR 5 (Win) and also have the CC Photography membership. Can I install and use LR on Windows PC and MAC?

    I have a license for LR 5 (Win) and also have the CC Photography membership. Can I install and use LR on Windows PC and MAC?

    Cloud License allows 2 activations
    -Install on a 2nd computer
    -Windows or Mac does not matter... 2 on the same operating system, or 1 on each

  • Win and Mac with one CC account

    Is ist possible to use one CC account for Win and Mac? I have now PS CS5 installed on my Win PC and would to like it run on my Mac. Is it possible?
    Thank you

    Hello, with CC, there is no problem, you will be able to install in both plaforms if you want:
    Fro CS5, it was a different serial number.

  • IndexOf - difference between Win and Linux encoding

    Hello folks, wondering if someone could put me on the right track over this little problem with porting a java app to Linux...
    I have a nice little program, developed on (the latest) JDK under windows which reads a custom file format, locates the second occurance of the substring 'PNG', ignores everything before the character before this PNG (hence the -1 below) and saves the remainder, which is now a bog-standard PNG image. The first 'PNG substring always occurs within the first 50 bytes (hence the 50 below) and the second around the 2kB mark. Here's the line that finds the location of the second 'PNG' in the file loaded into strFileContent:
    location = strFileContent.indexOf( "PNG", 50 )-1;All is well compiled and run on windows, say file '' produces a value for location of 2076 and saves a nice PNG called 'test1.png'.
    When I haul it over to Linux (Ubuntu 9.04) and lo, location comes out as 1964 for the same file, and of course the file is no-longer a PNG because there are an extra 112 bytes on the front end. Running the windows compile of the code or a fresh Linux compile makes no difference.
    I'm suspecting Win and Linux Java count, perhaps, line endings or some such differently, perhaps have to check an encoding. I'd appreciate any pointers on correcting this to work on both platforms (ultimately I'm trying to appease a Mac user, but don't have a Mac to play with at the moment).

    phaethon2008 wrote:
    I'm suspecting Win and Linux Java count, perhaps, line endings or some such differently, perhaps have to check an encoding. I'd appreciate any pointers on correcting this to work on both platforms (ultimately I'm trying to appease a Mac user, but don't have a Mac to play with at the moment).The immediate cause of your problem is probably that Windows uses a 8bit encoding as the default (probably some ISO-8859-{noformat}*{noformat} variant or the Windows-bastardization of it), while Ubuntu uses UTF-8, which has a varying number of bytes per character.
    The much more important underlying problem is that you're trying to treat binary data as if it were text. A PNG image is not text. Handling binary data in Strings (or char[]) is a sure way to invite desaster.
    You must convert your code to handle InputStream/OutputStream/byte[] instead of Reader/Writer/String/char[].

  • WINE and my Dual-screens

    I have looked around, quite a bit, haven't found a answer that i've been really looking for...
    I'm a big gamer, and I run two 17" flatpanel monitors at 1280x1024 on a NVIDIA GeForce GTS250.
    When I run apps in WINE, it tries pushing each app out in 2560x1024, such as World of Warcraft... now, for WoW, it doesn't bother me. because my UI scales to 1280x1024 for some reason anyway.
    As for games, like PoRTaL and Left4Dead.... it's trying to squeeze 2560x1024 into one monitor, making them pretty much unable to play..
    I have tried emulating the app in a virtual environment, at 1280x1024... and I really don't wanna disable my other monitor every time.... Because I use them for Cheats, or a guide, whatever I tend to use it for...
    Is there a way to push these apps into 1280x1024 instead of my dual-screen resolution?
    It's one of the main issues for me keeping Winblows 7 on my computer... pretty sure once I figure this out, i can get rid of it.
    Sorry if this has been answered elsewhere, probably wasn't searching the right terms and what not.

    o1911 wrote:
    Perhaps, if you are interested, you could setup a new xorg.conf which has separate X sessions for each window (rather than TwinView), such that you could open up what you want on one window, then play your game on the other.  Even if that is beyond what you want, you could check out ways to dynamically turn off screens:
    For a while there I would launch games via scripts, which called xrandr first to turn off my second screen, but these days I launch everything with xinit to avoid turning off/on compiz for max performance.
    I'm interested to see what you decide on, post back here
    I have thought about both options, and I'm not sure if I wanna do either of them,
    I mean, I want WINE apps to go into 1280x1024 which makes sense that I won't be able to unless I disable a monitor or run two separate X sessions, which I'll probably set it up to run two separate X sessions.
    Still doing some research and making my decision.

  • [SOLVED] WINE and NVIDIA issues - scrolling away from fullscreen

    Hello again... more problems from me.
    I seem to have a problem with my WINE running fullscreen applications, such as games. When I start, say, a fullscreen game, it does start in fullscreen, but if I move my mouse to the right or bottom edge of the screen, the game screen "scrolls away", and I'm shown my desktop (at a lower resolution). When I pull my mouse/touchpad back to the left or upper edge, the screen returns.
    I'd love to post screenshots of this, but those show nothing useful
    (which leads me to a suspicion there might me something wrong with my display configuration - but this is only a suspicion.)
    It happens regardless of Compiz or any other window manager, and regardless of the "Graphics" settings in winecfg. This is only the case with WINE; I've tried some native fullscreen games, which work flawlessly.
    This is really annoying, as it renders most of the games unplayable.
    I have an NVIDIA GeForce 9600M GT graphics card, and am running the 64-bit Arch Linux. Here's my xorg.conf and my Xorg.0.log.
    I'd be very grateful if someone could help me with this. Thanks!
    Last edited by Wintershade (2009-08-20 19:58:14)

    there was also a workaround I came to, but it was a messy one compared to this. the idea was to make a batch script for every game I would install, which would first call the xrandr <resolution>, then wine the game, and after that xrandr back to my desktop resolution. needless to say I had this as a last resort, since this would mess up changing the ingame resolution, and don't even get me started about the mess it makes on the desktop

  • Problem with wine and Tony Hawk Pro Skater

    Hi, I 've installed sucessfully Tony Hawk 4, but when i execute Start.exe:
    [[email protected] ~]$ wine .wine/drive_c/Archivos\ de\ programa/Aspyr/Tony\ Hawks\ Pro\ Skater\ 4/Start.exe
    fixme:msg:pack_message msg 14 (WM_ERASEBKGND) not supported yet
    fixme:msg:pack_message msg 14 (WM_ERASEBKGND) not supported yet
    fixme:msg:pack_message msg 14 (WM_ERASEBKGND) not supported yet
    fixme:msg:pack_message msg 14 (WM_ERASEBKGND) not supported yet
    fixme:msg:pack_message msg 14 (WM_ERASEBKGND) not supported yet
    fixme:msg:pack_message msg 14 (WM_ERASEBKGND) not supported yet
    fixme:msg:pack_message msg 14 (WM_ERASEBKGND) not supported yet
    fixme:msg:pack_message msg 14 (WM_ERASEBKGND) not supported yet
    fixme:msg:pack_message msg 14 (WM_ERASEBKGND) not supported yet
    fixme:msg:pack_message msg 14 (WM_ERASEBKGND) not supported yet
    fixme:msg:pack_message msg 14 (WM_ERASEBKGND) not supported yet
    fixme:msg:pack_message msg 14 (WM_ERASEBKGND) not supported yet
    fixme:msg:pack_message msg 14 (WM_ERASEBKGND) not supported yet
    fixme:msg:pack_message msg 14 (WM_ERASEBKGND) not supported yet
    fixme:msg:pack_message msg 14 (WM_ERASEBKGND) not supported yet
    fixme:msg:pack_message msg 14 (WM_ERASEBKGND) not supported yet
    my graphics card is Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller, and maybe should install a module for it works with wine.
    The window where you start all options configuration appears to me, but when I go to Play THPS4! showed me the error. The version of my wine is wine-1.1.8. I don't know if I have to install any shape or form over any other option in winecfg.
    Last edited by trancos83 (2008-11-10 20:19:44)

    Can you try it on a desktop comp using arch and wine instead?  Maybe it's a graphics problem?  Anyway, I've checked the min req. and it's quite low..
    Please check this site if your game is supported or if ever you want to play another game in the future.

  • Wine and KDE hotkeys

    I LIKE the KDE shortcuts so I don't want to permanently disable them.  I would like them to be disabled whenever I run games in fullscreen under wine.  For instance:  Ctrl-F2 switches to desktop 2 which is great...  Accept when I'm playing Diablo II.  Can anyone think of any creative way to have shortcuts toggled on and off as I run wine?

    simongmzlj wrote:You could start wine games in another xserver...
    Very cool idea!  Google found me this: … b&t=634067
    This is way simpler than I thought it'd be.  Thanks.

  • Wine and KDE shortcuts

    Using the Window-Specific workarounds I'm able to disable KDE global shortcuts.  For example, in Diablo 2, ALT-F2 does not bring up the run dialog.  GREAT!
    My problem is that there are occasions that I want my full-screen wine application to loose focus or minimize; for example to make a Skype call.  When someone calls me the Skype dialog and KDE taskbar pop to the front allowing me to minimize my wine application.  However, I have no way of making a call without exiting the application.
    I'm kind of at a loss here.  I don't want to disable the KDE global shortcuts but I'd like some way of minimizing the full-screen wine application.  Does anyone have a creative suggestion?

    simongmzlj wrote:You could start wine games in another xserver...
    Very cool idea!  Google found me this: … b&t=634067
    This is way simpler than I thought it'd be.  Thanks.

Maybe you are looking for