Hi! I have managed to get games like Team Fortress 2 and Mirror's Edge to finally run. But only with really bad performance. If I run glxinfo | grep direct in the terminal, I get: Code: direct rendering: No (LIBGL_ALWAYS_INDIRECT set) However, if I run sudo glxinfo | grep direct, it outputs this: Code: direct rendering: Yes I'm not sure if that is relevant, but it seems a bit odd. Here is my xorg.conf file: Code: Section "ServerLayout" Identifier "aticonfig Layout" Screen 0 "aticonfig-Screen[0]-0" 0 0 EndSection Section "Module" EndSection Section "Monitor" Identifier "aticonfig-Monitor[0]-0" Option "VendorName" "ATI Proprietary Driver" Option "ModelName" "Generic Autodetecting Monitor" Option "DPMS" "true" EndSection Section "Monitor" Identifier "0-DFP4" Option "VendorName" "ATI Proprietary Driver" Option "ModelName" "Generic Autodetecting Monitor" Option "DPMS" "true" Option "PreferredMode" "1680x1050" Option "TargetRefresh" "60" Option "Position" "1680 0" Option "Rotate" "normal" Option "Disable" "false" EndSection Section "Monitor" Identifier "0-DFP3" Option "VendorName" "ATI Proprietary Driver" Option "ModelName" "Generic Autodetecting Monitor" Option "DPMS" "true" Option "PreferredMode" "1680x1050" Option "TargetRefresh" "60" Option "Position" "0 0" Option "Rotate" "normal" Option "Disable" "false" EndSection Section "Device" Identifier "aticonfig-Device[0]-0" Driver "fglrx" Option "Monitor-DFP4" "0-DFP4" Option "Monitor-DFP3" "0-DFP3" BusID "PCI:1:0:0" EndSection Section "Screen" Identifier "aticonfig-Screen[0]-0" Device "aticonfig-Device[0]-0" DefaultDepth 24 SubSection "Display" Viewport 0 0 Virtual 3360 1680 Depth 24 EndSubSection EndSection If I run WINEDEBUG=+wgl wine hl2.exe &> wine.log from the tf2 folder, it outputs stuff this (and 1000+ other lines): Code: trace:wgl:wglGetProcAddress func: 'wglGetIntegerv' trace:wgl:X11DRV_WineGL_InitOpenglInfo GL version : 2.1 (4.1.10750 Compatibility Profile Context). trace:wgl:X11DRV_WineGL_InitOpenglInfo GL renderer : AMD Radeon HD 6800 Series. trace:wgl:X11DRV_WineGL_InitOpenglInfo GLX version : 1.4. trace:wgl:X11DRV_WineGL_InitOpenglInfo Server GLX version : 1.4. trace:wgl:X11DRV_WineGL_InitOpenglInfo Server GLX vendor: : ATI. trace:wgl:X11DRV_WineGL_InitOpenglInfo Client GLX version : 1.4. trace:wgl:X11DRV_WineGL_InitOpenglInfo Client GLX vendor: : ATI. trace:wgl:X11DRV_WineGL_InitOpenglInfo Direct rendering enabled: False err:winediag:X11DRV_WineGL_InitOpenglInfo Direct rendering is disabled, most likely your OpenGL drivers haven't been installed correctly I have Linux Mint 10 64-bit. My graphics card is an AMD Radeon 6870 and the driver is the most recent 64-bit driver from their website (CCC 11.5). What may be the problem with my setup? Just ask if I need to provide any more information.
On Sun, May 15, 2011 at 10:13, Dannie <wineforum-user at winehq.org> wrote:> I have Linux Mint 10 64-bit. My graphics card is an AMD Radeon 6870 and the driver is the most recent 64-bit driver from their website (CCC 11.5). > > What may be the problem with my setup? Just ask if I need to provide any more information.Well perf will almost always be worse in wine due to DirectX -> OpenGL "translation", and ATI Linux drivers aren't the best around... You could try with a (non-Optimus) nVidia card if feasible; their drivers are quite good (almost on par with windows ones)
Okey. I don't have any Nvidia cards lying around, and buying a new card isn't an option. So if there isn't anything I can do, I suppose I will keep on gaming in Windows.
On 5/15/11 1:13 AM, Dannie wrote:> Hi! > > I have managed to get games like Team Fortress 2 and Mirror's Edge to finally run. But only with really bad performance. > > If I run glxinfo | grep direct in the terminal, I get: > > Code: > direct rendering: No (LIBGL_ALWAYS_INDIRECT set) > > However, if I run sudo glxinfo | grep direct, it outputs this: > > Code: > direct rendering: Yes > > I'm not sure if that is relevant, but it seems a bit odd.It is and this should be reported to AMD/ATI. You should not need to run as root to get direct rendering. James McKenzie
Is your user in the video group? See also http://forums.opensuse.org/english/get-technical-help-here/hardware/387523-direct-rendering-only-root.html
Thank you guys for your replies. I visited the link and added the following lines to the bottom of my xorg.conf file: Code: Section "DRI" Group "video" Mode 0660 EndSection I have also added my user account to the video group. However, glxinfo | grep direct does still say: Code: direct rendering: No (LIBGL_ALWAYS_INDIRECT set) And I have restarted the computer since I did these changes.
On 5/15/11 12:23 PM, Dannie wrote:> Code: > direct rendering: No (LIBGL_ALWAYS_INDIRECT set)Try this: unset LIBGL_ALWAYS_INDIRECT Chip
Just to add some information: TF2 works, but even with all graphics options on the lowest I get hiccups, and it runs really slow when there is much happening on the screen. Charles Davis wrote:> On 5/15/11 12:23 PM, Dannie wrote: > > > Code: > > direct rendering: No (LIBGL_ALWAYS_INDIRECT set) > > > Try this: > > unset LIBGL_ALWAYS_INDIRECT > > ChipThat actually worked. However, only until I open a new terminal window. Then glxinfo goes back to saying no again. :? jjmckenzie wrote:> On 5/15/11 11:26 AM, Dannie wrote: > > > I would have tried to launch tf2 as root, and see if the performance would get any better, if it wasn't for this strange message: > > > > Code: > > $ sudo wine hl2.exe > > wine: /home/daniel/.wine is not owned by you > > > Now you really have messed things up. NEVER RUN WINE AS ROOT. > > Go to the FAQ and read the part about how to reset permissions. > > http://wiki.winehq.org/FAQ > > James McKenzieAh, okey. Thanks for providing that information. :D
Fr??d??ric Delanoy wrote:> On Sun, May 15, 2011 at 20:26, Dannie <wineforum-user at winehq.org> wrote: > > > I would have tried to launch tf2 as root, and see if the performance would get any better, if it wasn't for this strange message: > > > > Code: > > $ sudo wine hl2.exe > > wine: /home/daniel/.wine is not owned by you > > > > NEVER run Wine as root! > > See FAQ for explanationsYeah, jjmckenzie told that.
Hmm. See also https://bugs.launchpad.net/ubuntu/+source/desktop-effects/+bug/137388 What if you disable desktop effects?