Hello folks, this is the Omniscientist with another exciting bug report. I emerged nwn with +nowin into /opt/nwn. Booted it up, and everything works fine including the sound. However if I switch over to another user account (my girlfriends to be more exact) who is in the same groups as me (including audio and games), the sound doesn't work. Now under closer inspection I saw this as the problem: Under sound in the options menu, the option Hardware Sound was selected for her account. This option is grayed out, so even though it shouldn't be selected in the first place, I cannot unselect it. If we switch over to my account, the option is grayed out and NOT checked. I believe the Linux version doesn't have support for Hardware Sound or EAX, probably due to patents or because Creative doesn't want Linux to be able to use its EAX. The thing is, I am aware that nwn uses the windows hierarchy scheme of user dynamic data (saving it in the game folder itself), and not in ~. So we should be loading up the same config file (tried the same saved game file), so I am at a loss as to why Hardware Sound is selected for her. I looked in the config files in /opt/nwn, but I could not find anything relating to Hardware Sound. That's about it! (btw her alsamixer is not muted...I don't think NWN's SDL library uses alsa anyway but that's besides the point...sound works for her in other applications otherwise) Reproducible: Always Steps to Reproduce: 1. Boot into girlfriend's user account 2. Open up NWN 3. Experience the lack of sound Actual Results: No sound, and hardware sound is selected (and it should not be) in the user options. Expected Results: Hardware Sound should not be selected and sound should be playing. Portage 2.0.51.19 (default-linux/amd64/2005.0, gcc-3.4.3, glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r6-Omni x86_64) ================================================================= System uname: 2.6.11-gentoo-r6-Omni x86_64 AMD Athlon(tm) 64 Processor 3200+ Gentoo Base System version 1.4.16 Python: dev-lang/python-2.3.4-r1 [2.3.4 (#1, Apr 16 2005, 06:39:15)] distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] dev-lang/python: 2.3.4-r1 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.8.5-r3, 1.5, 1.6.3, 1.7.9-r1, 1.4_p6, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r7 sys-devel/libtool: 1.5.14 virtual/os-headers: 2.6.8.1-r4 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CFLAGS="-march=athlon64 -O2" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon64 -O2" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 X aac acpi alsa avi bash-completion bigger-fonts bindist bitmap-fonts bootsplash cdparanoia cdr cracklib crypt cups curl dga directfb dvd dvdread editor emacs encode esd ethereal fb fbcon flac font-server foomaticdb fortran gdbmgif gimp gimpprint gmail gnome gnomedb gpm gstreamer gtk gtk2 http imlib imlib2ipv6 irc java joystick jpeg jpeg2k kdeenablefinal mad mikmod motif mp3 mpeg mpeg4 mplayer nas ncurses nethack nls nvidia offensive ogg oggvorbis opengl oscar oss pam perl png python readline samba sdl sftplogging spell ssl symlink tcltk tcpd tiff truetype truetype-fonts type1-fonts v4l v4l2 vim vim-with-x wxwindows xchatdccserver xemacs xmms xosd xprint xv xvid xvmc zlib" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
*** Bug 90450 has been marked as a duplicate of this bug. ***
make sure the permissions on your sound files in /dev/ are setup properly (owned by audio group and group writable)
/opt/nwn/* has the group games as the owner, I did a chmod -R ug+rwx * in the directory. I can verify the correct permissions are set because if I save a file with one account I can overwrite it with the other account. Therefore the user who has the Hardware Sound checked has all the permissions that the user with sound working as, but still that option remains checked and I am very sure that is the cause of the lack of sound.
This may be of interest. After looking at dmesg when trying to run the program I get this: ------ ioctl32(nwmain:15809): Unknown cmd fd(13) cmd(c0384642){00} arg(ffffd238) on /dev/nvidiactl ioctl32(nwmain:15809): Unknown cmd fd(13) cmd(c0384642){00} arg(ffffd170) on /dev/nvidiactl ioctl32(nwmain:15809): Unknown cmd fd(13) cmd(c0384642){00} arg(ffffd170) on /dev/nvidiactl ioctl32(nwmain:15809): Unknown cmd fd(13) cmd(c0384642){00} arg(ffffd170) on /dev/nvidiactl ioctl32(nwmain:15809): Unknown cmd fd(13) cmd(c0384642){00} arg(ffffd170) on /dev/nvidiactl ioctl32(nwmain:15809): Unknown cmd fd(13) cmd(c0384642){00} arg(ffffd170) on /dev/nvidiactl ioctl32(nwmain:15809): Unknown cmd fd(13) cmd(c0384642){00} arg(ffffd170) on /dev/nvidiactl ioctl32(nwmain:15809): Unknown cmd fd(13) cmd(c0384642){00} arg(ffffd170) on /dev/nvidiactl ioctl32(nwmain:15809): Unknown cmd fd(13) cmd(c0384642){00} arg(ffffd170) on /dev/nvidiactl ioctl32(nwmain:15809): Unknown cmd fd(13) cmd(c0384642){00} arg(ffffd170) on /dev/nvidiactl ioctl32(nwmain:15809): Unknown cmd fd(13) cmd(c0384642){00} arg(ffffd170) on /dev/nvidiactl ioctl32(nwmain:15809): Unknown cmd fd(13) cmd(c0384642){00} arg(ffffd170) on /dev/nvidiactl ioctl32(nwmain:15809): Unknown cmd fd(13) cmd(c0384642){00} arg(ffffd170) on /dev/nvidiactl ioctl32(nwmain:15809): Unknown cmd fd(13) cmd(c0384642){00} arg(ffffd170) on /dev/nvidiactl ioctl32(nwmain:15809): Unknown cmd fd(13) cmd(c0384642){00} arg(ffffd170) on /dev/nvidiactl ioctl32(nwmain:15809): Unknown cmd fd(13) cmd(c0384642){00} arg(ffffd170) on /dev/nvidiactl ioctl32(nwmain:15809): Unknown cmd fd(13) cmd(c0384642){00} arg(ffffd170) on /dev/nvidiactl ioctl32(nwmain:15809): Unknown cmd fd(13) cmd(c0384642){00} arg(ffffd170) on /dev/nvidiactl ioctl32(nwmain:15809): Unknown cmd fd(13) cmd(c0384642){00} arg(ffffd170) on /dev/nvidiactl ioctl32(nwmain:15809): Unknown cmd fd(13) cmd(c0384642){00} arg(ffffd170) on /dev/nvidiactl ioctl32(nwmain:15809): Unknown cmd fd(13) cmd(c0384642){00} arg(ffffd170) on /dev/nvidiactl ioctl32(nwmain:15809): Unknown cmd fd(13) cmd(c0384642){00} arg(ffffd170) on /dev/nvidiactl ioctl32(nwmain:15809): Unknown cmd fd(13) cmd(c0384642){00} arg(ffffd170) on /dev/nvidiactl ioctl32(nwmain:15809): Unknown cmd fd(13) cmd(c0384642){00} arg(ffffd170) on /dev/nvidiactl ioctl32(nwmain:15809): Unknown cmd fd(13) cmd(c0384642){00} arg(ffffd170) on /dev/nvidiactl ioctl32(nwmain:15809): Unknown cmd fd(13) cmd(c0384642){00} arg(ffffd170) on /dev/nvidiactl ioctl32(nwmain:15809): Unknown cmd fd(13) cmd(c0384642){00} arg(ffffd170) on /dev/nvidiactl ioctl32(nwmain:15809): Unknown cmd fd(13) cmd(c0384642){00} arg(ffffd170) on /dev/nvidiactl ioctl32(nwmain:15809): Unknown cmd fd(13) cmd(c0384642){00} arg(ffffd170) on /dev/nvidiactl ioctl32(nwmain:15809): Unknown cmd fd(13) cmd(c0384642){00} arg(ffffd170) on /dev/nvidiactl ioctl32(nwmain:15809): Unknown cmd fd(13) cmd(c0384642){00} arg(ffffd170) on /dev/nvidiactl ioctl32(nwmain:15809): Unknown cmd fd(13) cmd(c0384642){00} arg(ffffd170) on /dev/nvidiactl ioctl32(nwmain:15809): Unknown cmd fd(13) cmd(c0384642){00} arg(ffffd170) on /dev/nvidiactl ioctl32(nwmain:15809): Unknown cmd fd(13) cmd(c0384642){00} arg(ffffd170) on /dev/nvidiactl ioctl32(nwmain:15809): Unknown cmd fd(13) cmd(c0384642){00} arg(ffffd170) on /dev/nvidiactl ioctl32(nwmain:15809): Unknown cmd fd(13) cmd(c0384642){00} arg(ffffd170) on /dev/nvidiactl ioctl32(nwmain:15809): Unknown cmd fd(13) cmd(c0384642){00} arg(ffffd170) on /dev/nvidiactl ioctl32(nwmain:15809): Unknown cmd fd(13) cmd(c0384642){00} arg(ffffd170) on /dev/nvidiactl ioctl32(nwmain:15809): Unknown cmd fd(13) cmd(c0384642){00} arg(ffffd170) on /dev/nvidiactl ioctl32(nwmain:15809): Unknown cmd fd(13) cmd(c0384642){00} arg(ffffd170) on /dev/nvidiactl ioctl32(nwmain:15809): Unknown cmd fd(13) cmd(c0384642){00} arg(ffffd170) on /dev/nvidiactl ioctl32(nwmain:15809): Unknown cmd fd(13) cmd(c0384642){00} arg(ffffd170) on /dev/nvidiactl ioctl32(nwmain:15809): Unknown cmd fd(13) cmd(c0384642){00} arg(ffffd170) on /dev/nvidiactl ioctl32(nwmain:15809): Unknown cmd fd(13) cmd(c0384642){00} arg(ffffd170) on /dev/nvidiactl ioctl32(nwmain:15809): Unknown cmd fd(13) cmd(c0384642){00} arg(ffffd170) on /dev/nvidiactl ioctl32(nwmain:15809): Unknown cmd fd(13) cmd(c0384642){00} arg(ffffd170) on /dev/nvidiactl ioctl32(nwmain:15809): Unknown cmd fd(13) cmd(c0384642){00} arg(ffffd170) on /dev/nvidiactl ioctl32(nwmain:15809): Unknown cmd fd(13) cmd(c0384642){00} arg(ffffd170) on /dev/nvidiactl ioctl32(nwmain:15809): Unknown cmd fd(13) cmd(c0384642){00} arg(ffffd170) on /dev/nvidiactl ioctl32(nwmain:15809): Unknown cmd fd(13) cmd(c0384642){00} arg(ffffd170) on /dev/nvidiactl ----- I'm not sure if this has any relevance to the matter, but hey...might mean something. Yes I am using a nvidia card.
that's not what i asked i asked if the files in /dev/ had proper permissions, not in /opt/nwn/
Sorry, forgot to include that: Yes, the permissions in /dev/dsp (and all sound related /dev's) are set up correctly (in addition to all the stuff in /opt/nwn)
if your /dev nodes have proper perms like you say, then try running the game through strace and see what kind of useful information you can find strace -f -e out nwn
REOPEN with strace output, please...