Author Topic: No sound on Linux client 64amd  (Read 550 times)

Legacy_whiteraven_gl

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
No sound on Linux client 64amd
« on: March 13, 2011, 01:43:35 am »


               Hi I fear I need some fresh eyes on this problem

Sound works fine in desktop and afew other games but not in the nwn client

Running ubuntu 10.10 (64bit) with NWN(+SOU/HOUT) installation from windows installation of nwn and linux client files

I've tried about everything I could find on the subject. 
 
ia32-libs ---- installed
tried moving libSDL from usr to nwn/lib

removed ./lib: from nwn launch script 


And tried to inset these lines to nwn launch script
Alone and in afew combinations
 
---START-----

esdctl off

sleep 2

./nwmain $@

esdctl on

-----END------



These single lines:


SDL_AUTODRIVER=esd



export SDL_AUDIODRIVER=alsa



export SDL_DSP_NOSELECT=1

---------------

But still no luck on the sound any idea how to fix this problem?
               
               

               
            

Legacy_Skildron

  • Sr. Member
  • ****
  • Posts: 421
  • Karma: +0/-0
No sound on Linux client 64amd
« Reply #1 on: March 13, 2011, 03:31:06 pm »


               I suspect that some instance of sound software is blocking your sound device and your sound chip does not support hardware mixing. If that is the case, you have to set up alsa for software mixing. You could try my .asoundrc file to do this. You can download it here. Save it in your home directory and rename it to .asoundrc, but check first if you already have an .asoundrc file. In that case, move the old one out of the way first so that you can restore it, should mine not do the trick.

After that, you have to log out and possibly to even restart so that the alsa shared libs will be reloaded using your new .asoundrc file set up for software mixing.

If it does not work this way, search the ubuntu forums for help. This thread could be of help for you, too.

Edit: Oh, I'm sorry, the thread in the Ubuntu forums is in German. If you can read it, it will of course, help you, but if not, you have to search the forums, there should be an english version of that German howto as well.

HTH
Greetings
Skildron
               
               

               


                     Modifié par Skildron, 13 mars 2011 - 03:34 .
                     
                  


            

Legacy_whiteraven_gl

  • Newbie
  • *
  • Posts: 4
  • Karma: +0/-0
No sound on Linux client 64amd
« Reply #2 on: March 13, 2011, 10:29:31 pm »


               Thank you very much now I at least get some error code will look at the problem

Just incase I am now running the follwing lines in nwn standard launch script

export SDL_DSP_NOSELECT=1
export SDL_AUDIODRIVER=alsa

and I get following after trying to run it

 *** glibc detected *** ./nwmain: corrupted double-linked list: 0x0f599360 ***
======= Backtrace: =========
/lib32/libc.so.6(+0x6c421)[0xf73ae421]
/lib32/libc.so.6(+0x6c87a)[0xf73ae87a]
/lib32/libc.so.6(+0x6dc2d)[0xf73afc2d]
/lib32/libc.so.6(cfree+0x6d)[0xf73b2d5d]
/usr/lib32/nvidia-173/libGLcore.so.1(+0x5e75e2)[0xf6be85e2]
/lib32/libc.so.6(+0x2f67e)[0xf737167e]
/lib32/libc.so.6(+0x2f6ef)[0xf73716ef]
/lib32/libc.so.6(__libc_start_main+0xef)[0xf7358cef]
./nwmain(AIL_WAV_info+0x39)[0x804f851]
======= Memory map: ========
to long to cut and past and not sure it will give additionally info but if neassary I can post it somewhere

Since it seem to be a hardware/software connection issue this is the computer I am trying to run it on
MSI laptop GT628
with T6600 intel processor
chipset PM45+ and ICH9M 
4 GB ram
GTS 160M Nvidia
complet info at http://www.msi.com/p...v=Specification

PS sorry but don't understand german but will try to search for the english one thank for the step forward it provided google translated helped me a little of the way translating to danish which I speak working on the problem currenly
               
               

               


                     Modifié par whiteraven_gl, 13 mars 2011 - 10:42 .
                     
                  


            

Legacy_Skildron

  • Sr. Member
  • ****
  • Posts: 421
  • Karma: +0/-0
No sound on Linux client 64amd
« Reply #3 on: March 13, 2011, 11:18:28 pm »


               

whiteraven_gl wrote...

*** glibc detected *** ./nwmain: corrupted double-linked list: 0x0f599360 ***
======= Backtrace: =========
/lib32/libc.so.6(+0x6c421)[0xf73ae421]
/lib32/libc.so.6(+0x6c87a)[0xf73ae87a]
/lib32/libc.so.6(+0x6dc2d)[0xf73afc2d]
/lib32/libc.so.6(cfree+0x6d)[0xf73b2d5d]
/usr/lib32/nvidia-173/libGLcore.so.1(+0x5e75e2)[0xf6be85e2]
/lib32/libc.so.6(+0x2f67e)[0xf737167e]
/lib32/libc.so.6(+0x2f6ef)[0xf73716ef]
/lib32/libc.so.6(__libc_start_main+0xef)[0xf7358cef]
./nwmain(AIL_WAV_info+0x39)[0x804f851]
======= Memory map: ========


This could be due to the fact that some memory allocation code in glibc was changed some versions ago. This should prevent software crashes due to memory corruption but requires code changes in software linked against glibc. As nwn is no longer updated, no one will make those code changes for nwn. To run nwn with newer glibc versions, you may need to add the following line to your nwn start script:

export MALLOC_CHECK_=0

This will keep glibc from doing the additional memory checks and will allow nwn to run - but it may lead nwn to crash some times, though I did not experience any crashes in a long time.

HTH
Greetings
Skildron
               
               

               


                     Modifié par Skildron, 13 mars 2011 - 11:27 .
                     
                  


            

Legacy_rchilso

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
No sound on Linux client 64amd
« Reply #4 on: September 10, 2011, 03:00:31 am »


               Try launching the game from a terminal with the "sudo" command as the sdl folders are accessable to root only.
ut2004 has the same problem and works great if logged as root or started using sudo. however after about 15 min. your sudo prevlige's run out and the game will exit abruptly with out warning. so enable your root account and run it under it.
               
               

               
            

Legacy_Skildron

  • Sr. Member
  • ****
  • Posts: 421
  • Karma: +0/-0
No sound on Linux client 64amd
« Reply #5 on: September 10, 2011, 05:53:55 pm »


               You never ever run any software under your root account except for system maintainance reasons. Period. The lib dirs /usr/lib, /usr/lib32, /lib and /lib32 and the files within are of course readable for every system user, but only root can edit them - and that's the way it has to be on any Linux/Unix system. SDL folders are accessible for all users, too, as libSDL resides in /usr/lib or /usr/lib32, depending on your system and the version you need.

And your understanding of sudo is questionable as well. sudo starts a process as root and that process has root privileges as long as it runs. If you enter your password to run sudo and don't use sudo for longer than the defined grace time, then sudo will ask you for your password again the next time you use it. The grace time has a default value of 15 minutes on many systems but that can be changed.

So, please stop giving Linux advice before you have a basic understanding of the mechanics of a Linux system.

Greetings
Skildron
               
               

               


                     Modifié par Skildron, 10 septembre 2011 - 04:55 .