Startux.de

Linux
Wine ebuild integrating pulseaudio PDF Print E-mail
  
Saturday, 09 January 2010 20:49

Update:

Pulseaudio has been integrated into upstream wine ebuild !!

Hence I removed wine from my overlay.

Gentoo still rocks!

During my journey from Ubuntu back to my beloved Gentoo Hardened I came across the fact that current upstream wine ebuilds do not allow to enable the existing wine pulseaudio patches.
These patches from Art Taylor have proven to be rock stable ( great work !!) , so I decided to make them accessible by adding the pulseaudio USE flag to the wine-9999.ebuild.

Either download the ebuild incl. all needed patches or use Quarks Overlay, e.g.

 git clone http://www.startux.de/git/quarks_gentoo_overlay/.git

 

Last Updated ( Sunday, 07 March 2010 03:49 )
 
Encrypted disks using dmcrypt PDF Print E-mail
  
Tuesday, 09 June 2009 07:40

Add a key from file to your partition

  • generate key file
    head -c 32 < /dev/urandom | uuencode -m - | grep -v begin | head -c 32 > key_file
  • add key into slot
    cryptsetup luksAddKey /dev/luksPartition key_file
Last Updated ( Tuesday, 09 June 2009 08:00 )
 
Controlling the fan speed for ATI/AMD GPUs PDF Print E-mail
  
Sunday, 08 February 2009 17:25

Recently I bought an AMD 4670 graphic card.
As the temperature of the card stays below 60 degree Celsius during normal work anyway, I was wondering if it is possible to control the fan speed due to the quite annoying noise of the fan. It is ;-)

The temperature can be checked calling:

aticonfig --od-gettemperature

Actually the fan speed can be controlled by calling aticonfig on the command line, after the AMD kernel module fglrx is loaded and the X server is running.

In order to set the fan speed automatically after reboot and in advance someone logs in put something like:

/opt/bin/aticonfig --pplib-cmf 'set fanspeed 0 auto' > /dev/null

to /etc/X11/gdm/Init/Default.

( using Gentoo, location of aticonfig and gdm/Init/Default may differ )

Last Updated ( Tuesday, 18 August 2009 06:13 )
 
Wine patch to use 3GB userspace PDF Print E-mail
  
Thursday, 28 August 2008 10:31

Playing Everquest 2 using Wine, I suffered from the more and more often occurring "out of memory" crashes especially in new zones like RoK or TSO. After reading in the EQ2 forums about various remedies for Windows using the /3GB switch in boot.ini, I looked into Wine wether this could be done with linux too.

Wine is actually ware of the so called LARGEADDRESSAWARE flag, but these "out of memory" errors seem to originate from the nvidia or ati opengl driver allocationg texture memory. It is reserved directly within the driver via the C API and therefore not taken into account by wine.

The current Wine preallocates all memory between 2 and 4GB of the virtual address space in order to simulate the windows memory model. The OpenGL driver apparently can only get the memory below 2GB and therefore only 2GB are available for both, the application and the opengl textures.

The following hack modifies the preallocation to only block memory between 3 and 4GB. This probably leads to a slightly wrong memory model compared to a native Windows, but it gives at least EQ2 1GB more memory to be used by the OpenGL driver.

Since using this patch I have never seen any crash concerning "out of memory" anymore.

After all this is just a temporary workaround for the problem described in http://bugs.winehq.org/show_bug.cgi?id=13335, which will hopefully be fixed soon and my workaround is not needed anymore.

See U in Norrath ;-)

diff --git a/libs/wine/mmap.c b/libs/wine/mmap.c
index ff117cc..c4e1446 100644
--- a/libs/wine/mmap.c
+++ b/libs/wine/mmap.c
@@ -346,7 +346,8 @@ void mmap_init(void)
 #if defined(__i386__) && !defined(__FreeBSD__) && !defined(__FreeBSD_kernel__)  /* commented out until FreeBSD gets fixed */
     char stack;
     char * const stack_ptr = &stack;
-    char *user_space_limit = (char *)0x7ffe0000;
+    char *user_space_limit = (char *)0xbffe0000;
+    // char *user_space_limit = (char *)0x7ffe0000;
 
     reserve_malloc_space( 8 * 1024 * 1024 );
 
Last Updated ( Wednesday, 14 January 2009 11:22 )
 
Make wine use pulseaudio on gentoo amd64 PDF Print E-mail
  
Wednesday, 26 March 2008 08:59

During the upgrade of my server to Ubuntu 8.04 LTS pulseaudio was installed as the central sound server. By using pulseaudio it is possible to receive, mix and play multiple audio streams simultaneously, even from different machines, to an e.g connected to 5.1 surround system. That way I am able to receive radio streams on the server and at the same time getting sound from games played on a different machine using the same audio equipment.

I enjoy playing Everquest 2 using wine on my gentoo amd64 box. Works like a charm currently using wine version 1.1.3 btw !
Playing games on linux leads to wine most of the time. Wine is a 32bit application ( guess why Wink ) , my gaming box runs gentoo amd64. Wine uses either alsa or OSS to get sound working. Despite the favor for alsa by the wine developers, OSS seems to work better at least for Everquest 2. In order to route OSS audio to a pulseaudio server, you have to use padsp to wrap audio playback. See recommended Pulseaudio OSS setup.

That's where the trouble started.
padsp needs libpulsedsp.so 32bit, which is currently (ebuild 20071125) not part of the emul-linux-x86-soundlibs ebuild. I setup a chroot32 following the quite good chroot32 guid on AMD64 in order to compile the needed libraries myself. If you don't want to compile them yourself you can get them here until they are added to the upstream ebuild (bug already filed). Extract the archive under /usr/lib32.

Additionally you need various alsa plugin 32bit libraries to get rid of all errors and warnings. All libraries for the alsa plugins from the alsa-plugins ebuild are also missing in the emul package, so if you want get them here. This archive needs to extracted under /usr/lib32/alsa-plugins.

Update: I added libsamplerate.so and libpulse-simple.so. Amongst others, this should make libflashsupport work, thx Per for the point.

Update: By using the latest emulation libraries (app-emulation/emul-linux-x86-soundlibs-20091231) from upstream pulseaudio works !!

Last Updated ( Sunday, 10 January 2010 00:54 )
 


Copyright © 2010 Startux.de. All Rights Reserved.
Joomla! is Free Software released under the GNU/GPL License.