View previous topic :: View next topic |
Author |
Message |
Mh7tiger n00b
Joined: 29 Apr 2024 Posts: 22
|
Posted: Sun Jan 12, 2025 6:38 am Post subject: No sound in Wine |
|
|
Even though audio works normally, I can't seem to get audio working in winecfg or the games I try to run. When I close wine, sound starts to work again. Code: | cat /proc/asound/cards | returns Code: | 0 [Audio ]: HdmiLpeAudio - Intel HDMI/DP LPE Audio
Intel HDMI/DP LPE Audio
1 [chtrt5645 ]: chtrt5645 - chtrt5645
LENOVO-80XF-LenovoMIIX320_10ICR-LNVNB161216 |
returns
Code: |
Sink #5928
State: SUSPENDED
Name: alsa_output.platform-cht-bsw-rt5645.HiFi__Speaker__sink.9
Description: Vnitřní zvukový systém Speaker
Driver: PipeWire
Sample Specification: s16le 2ch 48000Hz
Channel Map: front-left,front-right
Owner Module: 4294967295
Mute: no
Volume: front-left: 29491 / 45% / -20.81 dB, front-right: 29491 / 45% / -20.81 dB
balance 0.00
Base Volume: 65536 / 100% / 0.00 dB
Monitor Source: alsa_output.platform-cht-bsw-rt5645.HiFi__Speaker__sink.9.monitor
Latency: 0 usec, configured 0 usec
Flags: HARDWARE DECIBEL_VOLUME LATENCY
Properties:
alsa.card = "1"
alsa.card_name = "chtrt5645"
alsa.class = "generic"
alsa.device = "0"
alsa.driver_name = "snd_soc_sst_cht_bsw_rt5645"
alsa.id = "3"
alsa.long_card_name = "LENOVO-80XF-LenovoMIIX320_10ICR-LNVNB161216"
alsa.mixer_device = "_ucm0003.hw:chtrt5645"
alsa.name = ""
alsa.resolution_bits = "16"
alsa.subclass = "generic-mix"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
alsa.sync.id = "00000000:00000000:00000000:00000000"
api.alsa.card.longname = "LENOVO-80XF-LenovoMIIX320_10ICR-LNVNB161216"
api.alsa.card.name = "chtrt5645"
api.alsa.open.ucm = "true"
api.alsa.path = "hw:chtrt5645"
api.alsa.pcm.card = "1"
api.alsa.pcm.stream = "playback"
audio.channels = "2"
audio.position = "FL,FR"
card.profile.device = "2"
device.api = "alsa"
device.class = "sound"
device.id = "51"
device.profile.description = "Speaker"
device.profile.name = "HiFi: Speaker: sink"
device.routes = "1"
factory.name = "api.alsa.pcm.sink"
media.class = "Audio/Sink"
device.description = "Vnitřní zvukový systém"
node.name = "alsa_output.platform-cht-bsw-rt5645.HiFi__Speaker__sink.9"
node.nick = "Speaker"
node.pause-on-idle = "false"
object.path = "alsa:acp:chtrt5645:2:playback"
port.group = "playback"
priority.driver = "1000"
priority.session = "1000"
factory.id = "19"
clock.quantum-limit = "8192"
client.id = "49"
node.driver = "true"
node.loop.name = "data-loop.0"
library.name = "audioconvert/libspa-audioconvert"
object.id = "78"
object.serial = "5928"
api.acp.auto-port = "false"
api.alsa.card = "1"
api.alsa.use-acp = "true"
api.dbus.ReserveDevice1 = "Audio1"
api.dbus.ReserveDevice1.Priority = "-20"
device.bus_path = "platform-cht-bsw-rt5645"
device.enum.api = "udev"
device.form_factor = "internal"
device.icon_name = "audio-card-analog"
device.name = "alsa_card.platform-cht-bsw-rt5645"
device.nick = "chtrt5645"
device.plugged.usec = "14835041"
device.subsystem = "sound"
sysfs.path = "/devices/pci0000:00/808622A8:00/cht-bsw-rt5645/sound/card1"
device.string = "1"
Ports:
[Out] Speaker: Speaker (type: Speaker, priority: 100, availability unknown)
Active Port: [Out] Speaker
Formats:
pcm
| .
Please how do I proceed? Thanks in advance. |
|
Back to top |
|
|
FranciscoJaimes n00b
Joined: 15 Jan 2025 Posts: 24 Location: Mexico
|
Posted: Wed Jan 15, 2025 9:38 pm Post subject: |
|
|
It seems like the audio device is being suspended while Wine is running, which could be the reason the sound doesn't work in Wine, but starts functioning again after closing it. Here's how to troubleshoot and potentially fix the issue:
Check PipeWire Settings: It appears that PipeWire is managing your audio. Sometimes PipeWire and Wine have compatibility issues. You can try restarting PipeWire to see if it helps:
bash
systemctl --user restart pipewire
Disable Audio Suspension in PipeWire: You might need to disable automatic suspension of audio devices in PipeWire. Open /etc/pipewire/pipewire.conf or check ~/.config/pipewire/pipewire.conf, and ensure the following option is set:
ini
context.modules = [
{ name = libpipewire-module-alsa-sink
args = { suspend-time = -1 }
}
]
After making changes, restart PipeWire:
bash
systemctl --user restart pipewire
Wine Audio Settings: In winecfg, under the Audio tab, make sure the correct audio driver is selected (usually ALSA or PulseAudio). You might want to try switching between ALSA, PulseAudio, and OSS to see if one works better.
Check ALSA Settings: Since the output shows the sound card is chtrt5645 (probably your internal sound card), ensure that ALSA is configured correctly and the device is not muted. You can check the volume settings with alsamixer or pavucontrol.
Ensure Wine Uses ALSA: If Wine is not using the ALSA driver properly, try setting the Wine audio driver explicitly by creating or editing ~/.wine/user.reg with the following:
csharp
[Software\\Wine\\Wine\\AppDefaults\\winecfg\\Driver]
"Audio"="alsa"
Check for Conflicting Audio Programs: If you have other audio management programs like PulseAudio or JACK, ensure that they are not conflicting with each other. If you're using PulseAudio, check if it's suspending the sound device during Wine’s runtime.
Try these solutions, and let me know if the issue persists! |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|