doc:appunti:hardware:mini_pc_ryzen_7_5825u
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| doc:appunti:hardware:mini_pc_ryzen_7_5825u [2025/10/17 15:59] – [Problem with audio over HDMI using Pulseaudio and ALSA] niccolo | doc:appunti:hardware:mini_pc_ryzen_7_5825u [2025/10/17 16:36] (current) – [The problem of mute HDMI audio] niccolo | ||
|---|---|---|---|
| Line 59: | Line 59: | ||
| </ | </ | ||
| + | Solving the second problem (pulseaudio.service which sets the mute state to the HDMI port) is a bit more complicated. I resorted on creating **an user systemd service** to be run just after the pulseaudio.service. | ||
| + | |||
| + | First of all unmute the HDMI S/PDIF port using **alsamixer**; | ||
| + | |||
| + | <code bash> | ||
| + | mkdir -p ~/ | ||
| + | / | ||
| + | </ | ||
| + | |||
| + | Create a systemd service named **alsa-restore.service** (the name is the same as the system-wide service, but this is executed on user logon): | ||
| + | |||
| + | <code bash> | ||
| + | mkdir -p ~/ | ||
| + | vi ~/ | ||
| + | </ | ||
| + | |||
| + | The file is like this: | ||
| + | |||
| + | < | ||
| + | [Unit] | ||
| + | Description=Restore ALSA mixer levels | ||
| + | After=pulseaudio.service | ||
| + | |||
| + | [Service] | ||
| + | Type=oneshot | ||
| + | RemainAfterExit=true | ||
| + | ExecStart=/ | ||
| + | |||
| + | [Install] | ||
| + | WantedBy=default.target | ||
| + | </ | ||
| + | |||
| + | Finally enable this user's systemd service: | ||
| + | |||
| + | <code bash> | ||
| + | systemctl --user enable alsa-restore.service | ||
| + | </ | ||
| + | |||
| + | **NOTICE**: The '' | ||
| + | |||
| + | < | ||
| + | / | ||
| + | alsa-lib parser.c: | ||
| + | alsa-lib main.c: | ||
| + | </ | ||
| + | |||
| + | To view the **card ID** associated to the **card number**, inspect the ''/ | ||
| + | |||
| + | < | ||
| + | cat / | ||
| + | 0 [Generic_1 | ||
| + | HD-Audio Generic at 0xfc9c8000 irq 69 | ||
| + | 1 [Generic | ||
| + | HD-Audio Generic at 0xfc9c0000 irq 70 | ||
| + | 2 [Device | ||
| + | C-Media Electronics Inc. USB Audio Device at usb-0000: | ||
| + | 3 [acp ]: acp - acp | ||
| + | HCTechnology.Ltd.-HCAR5000_MI-Defaultstring | ||
| + | </ | ||
doc/appunti/hardware/mini_pc_ryzen_7_5825u.1760709546.txt.gz · Last modified: by niccolo
