You are not logged in.

#1 2010-04-16 06:30:20

Darksoul71
Member
Registered: 2010-04-12
Posts: 319

[solved] Wine with 3D under 32 Bit chroot -> any how2 ?

Hi fellow archers,

I have set up a 32 Bit change root as discribed in the wiki here:
http://wiki.archlinux.org/index.php/Ins … _in_Arch64

The installation and configuration worked pretty straight forward. Unfortunately WINE doesn't find 3D acceleration. I installed Mesa inside the chroot but it lists softwaremode for the renderer when I do a glxinfo. sad

Do I need to follow the ATI guide in the wiki and install some libs like this ?
pacman -S libgl ati-dri

Or do I need to completely build Mesa within the 32 bit chroot ?

TIA,
D$

Last edited by Darksoul71 (2010-04-16 20:48:48)


My archlinux x86_64 host:
AMD E350 (2x1.6GHz) / 8GB DDR3 RAM / GeForce 9500GT (passive) / Arch running from 16GB USB Stick

Offline

#2 2010-04-16 09:08:21

Runiq
Member
From: Germany
Registered: 2008-10-29
Posts: 1,053

Re: [solved] Wine with 3D under 32 Bit chroot -> any how2 ?

No need to build. I installed the same packages inside my chroot that allowed me to get hardware acceleration on the real system - intel-dri (ati-dri for you), libgl and xf86-video-intel. Works for Diablo 2, at least…

Offline

#3 2010-04-16 09:14:15

Darksoul71
Member
Registered: 2010-04-12
Posts: 319

Re: [solved] Wine with 3D under 32 Bit chroot -> any how2 ?

Ok, thanks for the info. So I essentially go the same route setting up a 32 bit system.
I think I should be fine with:
pacman -S xf86-video-ati libgl ati-dri

Will try out this evening and report back. It is and was still not obvious how the 32 chroot "integrates" (or should I say interfaces ?) with the native 64 bit kernel. To my limited understanding now the 64 bit kernel switches to 32 bit mode for running 32 bit apps. What I still do not understand is how for example WINE plus X11 apps interface with the "native" 64 bit x-system for example ?!

I would be willing the write the corresponding part for either the WINE or 32 bit chroot article in the wiki. This information is definitely missing.
BTW: An example on how to start a Windows game installed under the chroot via schroot from a shell script would be nice within the wiki.

Last edited by Darksoul71 (2010-04-16 12:30:22)


My archlinux x86_64 host:
AMD E350 (2x1.6GHz) / 8GB DDR3 RAM / GeForce 9500GT (passive) / Arch running from 16GB USB Stick

Offline

#4 2010-04-16 18:15:00

Darksoul71
Member
Registered: 2010-04-12
Posts: 319

Re: [solved] Wine with 3D under 32 Bit chroot -> any how2 ?

Haha, it works....:D

I wrote a small text in regard to chroot, wine and 3D. What's the standard process to submit something to the wiki ?

How do I get 3D acceleration under the 32 bit chroot ?

In case you want to run any 32 bit application under your chroot with 3D acceleration (e.g. WINE, native 32 bit games) you simply need to install the corresponding libs as under your "native" arch. For an ATI card this could be:
pacman -S xf86-video-ati libgl ati-dri

Also refer to:
http://wiki.archlinux.org/index.php/Ati
http://wiki.archlinux.org/index.php/Nvidia
http://wiki.archlinux.org/index.php/Intel

Your can easily check if you have 3D rendering within the 32 bit chroot by installing mesa (pacman -S mesa) and running the following command:
glxinfo | grep renderer

If you have no 3D acceleration you'll get some output like this:
>>OpenGL renderer string: Software Rasterizer

If 3D acceleration is enabled you'll get a message like this:
>>OpenGL renderer string: Mesa DRI R600 (RV730 9490) 20090101 x86/MMX+/3DNow!+/SSE2 TCL DRI2

Thanks again !
BTW: A CDROM mounted inside the chroot seems to be accessed different from being mounted inside the native linux environment.
At least Starcraft tells me that the original CD is not inserted although it is my original CD is inserted in the DVD drive. Under 64 Bit Ubuntu 9.04 works fine with WINE and the original CD.

Do I have to change my mounting approach ?


My archlinux x86_64 host:
AMD E350 (2x1.6GHz) / 8GB DDR3 RAM / GeForce 9500GT (passive) / Arch running from 16GB USB Stick

Offline

#5 2010-04-16 18:39:36

Runiq
Member
From: Germany
Registered: 2008-10-29
Posts: 1,053

Re: [solved] Wine with 3D under 32 Bit chroot -> any how2 ?

You're welcome smile If you don't have a wiki account, just register one and you should be able to edit the page you want. It's a wiki, after all. wink

Darksoul71 wrote:

BTW: A CDROM mounted inside the chroot seems to be accessed different from being mounted inside the native linux environment.
At least Starcraft tells me that the original CD is not inserted although it is my original CD is inserted in the DVD drive. Under 64 Bit Ubuntu 9.04 works fine with WINE and the original CD.

Do I have to change my mounting approach ?

First of all: Do you use schroot and have your --bind mounts set up properly?

The Arch Linux Wiki wrote:

mount --bind /proc /opt/arch32/proc
        mount --bind /proc/bus/usb /opt/arch32/proc/bus/usb
        mount --bind /dev /opt/arch32/dev
        mount --bind /dev/pts /opt/arch32/dev/pts
        mount --bind /dev/shm /opt/arch32/dev/shm
        mount --bind /sys /opt/arch32/sys
        mount --bind /tmp /opt/arch32/tmp
        mount --bind /home /opt/arch32/home

You can just add the path to your arch32 rc.d script (if you use that) or to mount-arch32 (if you use schroot), e.g.

mount --bind /media/cd /opt/arch32/media/cd

Anyways, CD checks are a weird matter with wine… I can't get Warcraft III to recognize the CD either, so I'd just cross my fingers hmm

Offline

#6 2010-04-16 20:48:21

Darksoul71
Member
Registered: 2010-04-12
Posts: 319

Re: [solved] Wine with 3D under 32 Bit chroot -> any how2 ?

Oh well, my question was, well, not very smart. This is of course what a wiki is all about, isn't ? roll

I added my part here:
http://wiki.archlinux.org/index.php/Ins … celeration

In regard to my 32 bit chroot I am currently not using schroot. I simply mounted my DVD drive to a directory inside my chroot. My mount command is like this:
mount /dev/dvd /opt/arch32/cdrom

Your hint was really perfect ! big_smile

After adding the mount code for my DVD drive StarCraft detects the CD correctly. Hm, seems that this "bind" stuff provides a different access to the CD itself.

In regard to wine and copy protection I agree. It only works without no-cd stuff if the copy protection is not too good. neutral

Edit:
Oops, worked first not so perfectly but sometimes it helps to read:
http://appdb.winehq.org/objectManager.p … ion&iId=51
This discribes the fact that sometimes you have to add your DVD drive to Wine manually via wineconfig if copyprotection fails.

Last edited by Darksoul71 (2010-04-16 21:51:34)


My archlinux x86_64 host:
AMD E350 (2x1.6GHz) / 8GB DDR3 RAM / GeForce 9500GT (passive) / Arch running from 16GB USB Stick

Offline

Board footer

Powered by FluxBB