You are not logged in.

#1 2022-02-06 06:33:30

MoonSwan
Member
From: Great White North
Registered: 2008-01-23
Posts: 881

No sound when playing Super Tux 2 (from the AUR) or Cgoban [Solved]

[Solved for Supertux but not Cgoban 3 as yet]

Newer laptop (Inspiron 15 5510) with an SOF soundcard (a new type for me that I'd not heard of until I purchased this laptop). I got Alsa working and I get sound with games like Xonotic, for example, as well as Youtube and other mundane things.

I have been unable thus far to get sound working on Supertux 2 or Cgoban. I tried to look up sound issues (for these two programs) on the web but I have found nothing so far.

I realise these two games are running on different code programs (one is C I think and the other is on Java) which makes me think this issue is not specific to each application.

My setup is running SwayWM on Wayland using Alsa with libpulse also installed as a dependency of some other program (Firefox I believe).

If I run Supertux from a terminal I do get this error:

[WARNING] /build/supertux/src/SuperTux-v0.6.3-Source/src/audio/sound_manager.cpp:65 Couldn't initialize audio device: Couldn't open audio device.

Searching the web for that error proved to be difficult and yielded no results relevant to my situation though (at least none that I could find).

Ouput of lspci -v|grep -i snd

Kernel modules: snd_hda_intel, snd_sof_pci_intel_tgl

Last edited by MoonSwan (2022-02-11 18:36:40)

Offline

#2 2022-02-06 06:56:39

ishaanbhimwal
Member
Registered: 2022-01-21
Posts: 48
Website

Re: No sound when playing Super Tux 2 (from the AUR) or Cgoban [Solved]

Try installing "sof-firmware" package.

Offline

#3 2022-02-06 13:40:17

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,944

Re: No sound when playing Super Tux 2 (from the AUR) or Cgoban [Solved]

Any custom ALSA config, post it if so? during this not working situation

sudo fuser -v /dev/snd/*
aplay -lL

@ishaanbhimwal by virtue of it apparently working in other context, we can potentially assume this has already happened.

Offline

#4 2022-02-06 19:03:34

MoonSwan
Member
From: Great White North
Registered: 2008-01-23
Posts: 881

Re: No sound when playing Super Tux 2 (from the AUR) or Cgoban [Solved]

fuser -v /dev/snd/*
                     USER        PID ACCESS COMMAND
/dev/snd/controlC0:  raine      4040 F.... pipewire
                     raine      4041 F.... pipewire-media-
/dev/snd/seq:        raine      4040 F.... pipewire
aplay -lL
null
    Discard all samples (playback) or generate zero samples (capture)
lavrate
    Rate Converter Plugin Using Libav/FFmpeg Libraaplay -lL
nullsudo fuser -v /dev/snd/*
    Discard all samples (playback) or generate zero samples (capture)
lavrate
    Rate Converter Plugin Using Libav/FFmpeg Library
samplerate
    Rate Converter Plugin Using Samplerate Library
speexrate
    Rate Converter Plugin Using Speex Resampler
jack
    JACK Audio Connection Kit
oss
    Open Sound System
pipewire
    PipeWire Sound Server
pulse
    PulseAudio Sound Server
speex
    Plugin using Speex DSP (resample, agc, denoise, echo, dereverb)
upmix
    Plugin for channel upmix (4,6,8)
vdownmix
    Plugin for channel downmix (stereo) with a simple spacialization
default:CARD=sofhdadsp
    sof-hda-dsp,
    Default Audio Device
sysdefault:CARD=sofhdadsp
    sof-hda-dsp,
    Default Audio Device
usbstream:CARD=sofhdadsp
    sof-hda-dsp
    USB Stream Output
**** List of PLAYBACK Hardware Devices ****
card 0: sofhdadsp [sof-hda-dsp], device 0: HDA Analog (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 1: HDA Digital (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 3: HDMI1 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 4: HDMI2 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 5: HDMI3 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0ry
samplerate
    Rate Converter Plugin Using Samplerate Library
speexrate
    Rate Converter Plugin Using Speex Resampler
jack
    JACK Audio Connection Kit
oss
    Open Sound System
pipewire
    PipeWire Sound Server
pulse
    PulseAudio Sound Server
speex
    Plugin using Speex DSP (resample, agc, denoise, echo, dereverb)
upmix
    Plugin for channel upmix (4,6,8)
vdownmix
    Plugin for channel downmix (stereo) with a simple spacialization
default:CARD=sofhdadsp
    sof-hda-dsp,
    Default Audio Device
sysdefault:CARD=sofhdadsp
    sof-hda-dsp,
    Default Audio Device
usbstream:CARD=sofhdadsp
    sof-hda-dsp
    USB Stream Output
**** List of PLAYBACK Hardware Devices ****
card 0: sofhdadsp [sof-hda-dsp], device 0: HDA Analog (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 1: HDA Digital (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 3: HDMI1 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 4: HDMI2 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 5: HDMI3 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Thanks for the reply V1del. I have no custom config for Alsa.

Confusingly I seem to have pipewire/jack/pulse also installed yet I didn't explicitly install that which leads me to think it's another dependency of Firefox or similar. That could lead to complicating this troubleshooting issue but I hope not.  Installed Retux, a similar game to Supertux (it even re-uses some of ST's art works) and sound works just fine there.

@ishaanbhimwal by virtue of it apparently working in other context, we can potentially assume this has already happened.

Thanks but I'm not that new. smile

Last edited by MoonSwan (2022-02-06 19:31:16)

Offline

#5 2022-02-06 21:10:34

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,944

Re: No sound when playing Super Tux 2 (from the AUR) or Cgoban [Solved]

the non-audio components of pipewire are dependencies of a lot of things for wayland screensharing purposes, so this can be normal.

However the problem with plain ALSA is that there isn't really a agreed upon standard way of accessing/querying which audio device should be used and depending on what any given implementation decides to do they might pick the wrong device/lead to exclusive access. On checking Supertux is using OpenAL which might even try to use pipewire as it notices it's present but can't since you aren't using its general audio setup. You might be able to configure that with an ~/.alsoftrc if you really want to stick with plain ALSA you should try the contents

[general]
drivers = alsa

[alsa]
device = default

Offline

#6 2022-02-11 18:35:35

MoonSwan
Member
From: Great White North
Registered: 2008-01-23
Posts: 881

Re: No sound when playing Super Tux 2 (from the AUR) or Cgoban [Solved]

Thank you very much, V1del, that did the trick for Supertux. Cgoban 3 is still proving intractable, however, for some reason. Makes me wonder if I should install and use another audio solution. Still, this is partly solved and for that I'm grateful. smile

Offline

#7 2022-02-12 13:51:22

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,944

Re: No sound when playing Super Tux 2 (from the AUR) or Cgoban [Solved]

I'd personally adocate for an audio server, it makes things more consistent and more clear in my opinion and gives you generally more flexibility, should you ever have the need for multiple sound cards.

Offline

Board footer

Powered by FluxBB