#How to use SPDIF (Toslink)

200 messages · Page 1 of 1 (latest)

rapid crater
#

Hi, I just switched to Linux and now I want to use my old speakers. I always used SPDIF because I cant plug in all 6 Chanels an my mainbord. On Nobara I got it working but on mint not. I already tryed a few combinations but best I could do is make it look like its outputing something but the speakers stay silend...

night herald
#

open Sound settings, first tab is Outputs. choose s/pdif from the output modes

#

iff it doesn't appear there, show result of inxi -SMAxxx here

rapid crater
#

Megatrends LLC. v: 2.A40 date: 06/19/2025
Audio:
Device-1: NVIDIA vendor: Micro-Star MSI driver: snd_hda_intel v: kernel
pcie: speed: 2.5 GT/s lanes: 16 bus-ID: 01:00.1 chip-ID: 10de:22bc
class-ID: 0403
Device-2: AMD Rembrandt Radeon High Definition Audio
vendor: Micro-Star MSI driver: snd_hda_intel v: kernel pcie: speed: 16 GT/s
lanes: 16 bus-ID: 0d:00.1 chip-ID: 1002:1640 class-ID: 0403
Device-3: AMD Family 17h/19h HD Audio vendor: Micro-Star MSI
driver: snd_hda_intel v: kernel pcie: speed: 16 GT/s lanes: 16
bus-ID: 0d:00.6 chip-ID: 1022:15e3 class-ID: 0403
Device-4: Micro Star USB Audio driver: hid-generic,snd-usb-audio,usbhid
type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 bus-ID: 1-5:3 chip-ID: 0db0:cd0e
class-ID: 0300
Device-5: Logitech C920 HD Pro Webcam driver: snd-usb-audio,uvcvideo
type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 bus-ID: 7-1.4:5
chip-ID: 046d:0892 class-ID: 0102 serial: CF5F00EF
API: ALSA v: k6.17.0-29-generic status: kernel-api
Server-1: PipeWire v: 1.0.5 status: active with: 1: pipewire-pulse
status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin

night herald
#

Device-4: Micro Star USB Audio driver: hid-generic,snd-usb-audio,usbhid
type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 bus-ID: 1-5:3 chip-ID: 0db0:cd0e
class-ID: 0300

#

this is a mic?

rapid crater
#

no I got no mic. Maye the one in my Webcam?

#

I unplugged everything besides my speakers now: Audio:
Device-1: NVIDIA vendor: Micro-Star MSI driver: snd_hda_intel v: kernel
pcie: speed: 2.5 GT/s lanes: 16 bus-ID: 01:00.1 chip-ID: 10de:22bc
class-ID: 0403
Device-2: AMD Rembrandt Radeon High Definition Audio
vendor: Micro-Star MSI driver: snd_hda_intel v: kernel pcie: speed: 16 GT/s
lanes: 16 bus-ID: 0d:00.1 chip-ID: 1002:1640 class-ID: 0403
Device-3: AMD Family 17h/19h HD Audio vendor: Micro-Star MSI
driver: snd_hda_intel v: kernel pcie: speed: 16 GT/s lanes: 16
bus-ID: 0d:00.6 chip-ID: 1022:15e3 class-ID: 0403
Device-4: Micro Star USB Audio driver: hid-generic,snd-usb-audio,usbhid
type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 bus-ID: 1-5:3 chip-ID: 0db0:cd0e
class-ID: 0300
API: ALSA v: k6.17.0-29-generic status: kernel-api
Server-1: PipeWire v: 1.0.5 status: active with: 1: pipewire-pulse
status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin

night herald
#

inxi -SMx

#

MSI has some weird usb soundcard in it to handle the front or the rear ports, in addition to Family 17h card

rapid crater
#

you have to explain it for beginners. Im really new to this. Wath should I do? 😅

night herald
rapid crater
#

compiler: gcc v: 13.3.0
Desktop: Cinnamon v: 6.6.7 Distro: Linux Mint 22.3 Zena
base: Ubuntu 24.04 noble
Machine:
Type: Desktop Mobo: Micro-Star model: MAG B850 TOMAHAWK MAX WIFI (MS-7E62)
v: 2.0 serial: <superuser required> UEFI: American Megatrends LLC. v: 2.A40
date: 06/19/2025

night herald
#

...

#

cut off again

#

repeat and show all

rapid crater
#

JohPC Kernel: 6.17.0-30-generic arch: x86_64 bits: 64
compiler: gcc v: 13.3.0
Desktop: Cinnamon v: 6.6.7 Distro: Linux Mint 22.3 Zena
base: Ubuntu 24.04 noble
Machine:
Type: Desktop Mobo: Micro-Star model: MAG B850 TOMAHAWK MAX WIFI (MS-7E62)
v: 2.0 serial: <superuser required> UEFI: American Megatrends LLC. v: 2.A40
date: 06/19/2025

night herald
#

ok that's pretty recent kernel as far as Mint can go

#

sudo apt install pavucontrol && pavucontrol please

#

then show its configuration (5th) tab

#

use the included screenshot tool for WINDOW MODE screenshots

rapid crater
#

you speak german? It translates to: pavucontrol is on the newes version, 0 renewed, 0 installed, 0 to remove and 0 not renewed

night herald
#

oh ok good

#

just fire it up : pavucontrol

#

show config tab

rapid crater
#

Thats the configuration Tab

night herald
#

also too much space wasted in those pics.

#

and makes it hard to see

#

resize the window just big enough to show 5 tabs

rapid crater
#

like this?

night herald
#

then redo screenshot with webcam out

#

still no good

#

resize window

#

i dont need to see so wide

#

Just enough for 5 tabs to show horizontally

#

and enough be shaped like a square

#

^ proper way to show a screenshot

rapid crater
#

Hope thats it

#

still getting used to Linux

night herald
#

did u unplug webcam?

rapid crater
#

yes just speakers are pluged in now

#

ausgesteckt = unplugged

night herald
#

how are they connected? 3.5 mm stereo analog?

rapid crater
#

to the PC? just with a Toslink cable

night herald
#

oh

#

ok just so you know, nvidia and rembrandt are the video cards. this is only applicable for HDMI or Display Port sound to TV

#

run up a terminal

#

do alsamixer

#

and maximize the window

#

then press F6 and choose the USB sound

rapid crater
#

ok, did that

night herald
#

show screenshot of the alsamixer now

rapid crater
night herald
#

raise first column with arrow keys to 100

#

raise pcm1 column also to 100

rapid crater
#

ok, did that

night herald
#

press F4

#

only about inputs, but worth to see

rapid crater
night herald
#

hm

#

press Escape key

#

see if you get digital sound audible now

#

from the digital PCM

#

the only problem is I didn't see s/pdif column

#

run alsamixer again. press F6 and choose the other sound card.

#

Device-3: AMD Family 17h/19h HD Audio vendor: Micro-Star MSI
driver: snd_hda_intel v: kernel pcie: speed: 16 GT/s lanes: 16
bus-ID: 0d:00.6 chip-ID: 1022:15e3 class-ID: 0403

#

it may say realtek or something

rapid crater
#

I just got NVidia and 2 "Generic"

night herald
#

let's see generic

#

press F5 and make terminal wide to see all columns

rapid crater
#

F5 did nothing

#

Thats generic 1 btw

night herald
#

press enter or space

#

see if first column changes at all

#

or up/down arrow

#

oh nevermind

rapid crater
#

nop. I can just highlite it in red

night herald
#

that's AMD Graphics card

#

u can see in top left

#

so in F6, u only have usb , nvidia, and generic?

rapid crater
#

yes NVidia, 2 gerneric and USB. Ill show you

#

I dont know why there is a USB Audio. No USB is pluged in

night herald
#

so choose default: 1 . which one did you last show me?

rapid crater
#

I showed you default 1

night herald
#

show default: 2 then

night herald
rapid crater
#

Hard to translate give me a sec

night herald
#

translate plz

#

but obviously doesn't do much.

#

I think you need latest kernel

rapid crater
#

This sound dives has no adjustment

night herald
#

do you still have nobara on live usb?

rapid crater
#

No. I had to make space for Mint :/

night herald
#

np

#

was just curious to see alsamixer in nobara

rapid crater
#

with nobara it was just plug and play

night herald
#

but for now, can you use HDMI output to surround sound amplifier?

#

hdmi can carry multichannel digital surround sound

rapid crater
#

my speakers have toslink and 6 Chancel but no HDMI input 😅

#

but I think i can use the generic AUX but than its just stereo

night herald
#

one moment

#

show result for inxi -SMGxxx please. complete.

rapid crater
# night herald show result for `inxi -SMGxxx` please. complete.

inxi -SMGxxx
System:
Host: Johannes-PC Kernel: 6.17.0-30-generic arch: x86_64 bits: 64
compiler: gcc v: 13.3.0 clocksource: tsc
Desktop: Cinnamon v: 6.6.7 tk: GTK v: 3.24.41 wm: Muffin v: 6.6.3 vt: 7
dm: LightDM v: 1.30.0 Distro: Linux Mint 22.3 Zena base: Ubuntu 24.04 noble
Machine:
Type: Desktop Mobo: Micro-Star model: MAG B850 TOMAHAWK MAX WIFI (MS-7E62)
v: 2.0 serial: <superuser required> uuid: <superuser required> UEFI: American
Megatrends LLC. v: 2.A40 date: 06/19/2025

#

Graphics:
Device-1: NVIDIA AD104 [GeForce RTX 4070 Ti] vendor: Micro-Star MSI
driver: nvidia v: 595.71.05 arch: Lovelace pcie: speed: 2.5 GT/s lanes: 16
ports: active: none off: DP-2 empty: DP-1,DP-3,HDMI-A-1 bus-ID: 01:00.0
chip-ID: 10de:2782 class-ID: 0300
Device-2: AMD vendor: Micro-Star MSI driver: amdgpu v: kernel pcie:
speed: 16 GT/s lanes: 16 ports: active: none empty: DP-4, DP-5, DP-6,
HDMI-A-2, Writeback-1 bus-ID: 0d:00.0 chip-ID: 1002:13c0 class-ID: 0300
temp: 39.0 C
Display: x11 server: X.Org v: 21.1.11 with: Xwayland v: 23.2.6 driver: X:
loaded: amdgpu,nvidia unloaded: fbdev,modesetting,nouveau,vesa dri: radeonsi
gpu: nv_platform,nvidia,nvidia-nvswitch display-ID: :0 screens: 1
Screen-1: 0 s-res: 2560x1440 s-dpi: 92 s-size: 707x393mm (27.83x15.47")
s-diag: 809mm (31.85")
Monitor-1: DP-2 note: disabled model: AOC Q32G1WG4 serial: 19169
res: 2560x1440 dpi: 93 size: 697x393mm (27.44x15.47") diag: 800mm (31.5")
modes: max: 2560x1440 min: 640x480
API: EGL v: 1.5 hw: drv: nvidia drv: amd radeonsi platforms: device: 0
drv: nvidia device: 1 drv: radeonsi device: 3 drv: swrast gbm:
drv: kms_swrast surfaceless: drv: nvidia x11: drv: nvidia
inactive: wayland,device-2
API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: nvidia mesa v: 595.71.05
glx-v: 1.4 direct-render: yes renderer: NVIDIA GeForce RTX 4070 Ti/PCIe/SSE2
API: Vulkan v: 1.3.275 layers: 9 surfaces: xcb,xlib device: 0
type: discrete-gpu driver: N/A device-ID: 10de:2782 device: 1
type: integrated-gpu driver: N/A device-ID: 1002:13c0 device: 2 type: cpu
driver: N/A device-ID: 10005:0000

night herald
#

and the rest

rapid crater
#

It was to long for discord ...

night herald
#

ok what you can do since this nvidia driver should work with kernel 7, is get the mainline stable kernel 7.0.10

#

but first. do Timeshift

#

have you created a system snapshot with it yet?

rapid crater
#

No I build a new PC yesterday and switched to Linux with the new PC

night herald
#

no prob.

#

lsblk -o name,model,size,mountpoint

#

show plz

#

result of that command

rapid crater
night herald
#

ok do timeshift.

#

wont take long

#

this is nvme drive

#

save snapshots on /dev/nvme0n1p2

#

rsync mode

rapid crater
#

where can I do a Timeshift?

night herald
#

it's in start menu> administration i think

#

or System Tools

rapid crater
#

found it

night herald
#

this makes a backup of the core system state as it is right now

rapid crater
#

I made one ... I think ... 🙂

night herald
#

afterwards, i'll help u set up kernel 7... which should work for the soundcard for digital optical

#

when?

rapid crater
#

just now. It took like 10 sec

night herald
#

show main window of timeshift plz

rapid crater
#

I think there is an automatic one as well

night herald
#

ok. capital O means 'on-demand' (manually forced)

#

click the comment field beside that one

#

put Pre- linux kernel 7

#

then u can close it

#

Step 1: Install Mainline Kernels Tool

Because Linux Mint relies on stable LTS and HWE kernels vetted by their team, you need a community tool to grab the bleeding-edge upstream kernels.
Open your Terminal. Add the Mainline PPA by running:

sudo add-apt-repository ppa:cappelikan/ppa
sudo apt update

Install the Mainline Kernels tool:
sudo apt install -y mainline

rapid crater
#

ok, did that

night herald
#

Step 2: Download and Install Kernel 7.0.10

Open the Mainline Kernels application from your Mint application menu. Allow the tool to sync with the kernel archives. Scroll through the list and select (7.0.10). Click the Install button. Wait for the download and configuration process to finish.

Step 3: Reboot and Verify
Reboot your computer. Once booted back into the desktop, open the Terminal and type the following to verify the new version is active:
uname -r

#

i would also say to check inxi -SG

#

to ensure nvidia driver is still same (ver. 595)

rapid crater
#

just need to finde the applications menu. I bet it has a different name for me

night herald
#

(start menu)

rapid crater
#

where can I download the Kernel?

night herald
#

show the tool , by screenshot

rapid crater
#

I dont see the 7.0.10 version

night herald
#

cannot show 7.0.10 ?

rapid crater
#

no. newest is 7.0.9

night herald
#

ok put a checkmark for that

#

and download/install

rapid crater
#

brb

#

thats after uname -r : 6.17.0-29-generic

night herald
#

open the 'system administration' app

rapid crater
#

thats for inxi -SG : System:
Host: Johannes-PC Kernel: 6.17.0-29-generic arch: x86_64 bits: 64
Desktop: Cinnamon v: 6.6.7 Distro: Linux Mint 22.3 Zena
Graphics:
Device-1: NVIDIA AD104 [GeForce RTX 4070 Ti] driver: nvidia v: 595.71.05
Device-2: AMD driver: amdgpu v: kernel
Display: x11 server: X.Org v: 21.1.11 with: Xwayland v: 23.2.6 driver: X:
loaded: amdgpu,nvidia unloaded: fbdev,modesetting,nouveau,vesa dri: radeonsi
gpu: nv_platform,nvidia,nvidia-nvswitch resolution: 2560x1440
API: EGL v: 1.5 drivers: kms_swrast,nvidia,radeonsi,swrast
platforms: gbm,x11,surfaceless,device
API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: nvidia mesa v: 595.71.05
renderer: NVIDIA GeForce RTX 4070 Ti/PCIe/SSE2
API: Vulkan v: 1.3.275 drivers: N/A surfaces: xcb,xlib

night herald
#

ya nothing changed yet

night herald
#

save and restart

#

then pick "mint advanced options' from this black menu when ur pc restarts early on, and boot from linux image 7.0.09 if it is found there

#

@wheat tangle hi friend. Would you know how to make this recognize kernel 7?

night herald
rapid crater
#

yes I did

night herald
#

and...

wheat tangle
#

Kernel install may have failed if the nvidia dkms didn't compile

rapid crater
#

I think I just use standart AUX for now thats just stereo but its fine

night herald
wheat tangle
#

Have to remove the nvidia-dkms and then install the 7.0 kernel and some of those might not work because of some self test failures on Ubuntu mainline kernels

night herald
#

hm

#

the whole point was to get 7 to see if optical jack works

#

maybe 6.18 would work idk

rapid crater
#

creazy thing is with Nobara it was no problem at all and I am really new at this stuff

#

But I really really aprechiate your help!

night herald
#

because uses different kernel

#

probably 7.x

#

u can use Debian SID, or Fedora KDE too

#

which have more modern linux kernel

wheat tangle
#

The 7.0 kernels are in nobel-proposed repos but I don't know if there are newer Nvidia drivers yet

rapid crater
#

so you guys think it will be fixed soon? I can life with stereo for a while

night herald
#

december. new mint 23. will require probably a reinstall.

#

or use Ubuntu 26.04 Cinnamon.

#

u can do that right now. . it uses kernel 7

rapid crater
#

alright. For now I will wait. I want to try out my new PC and all the Linux stuff for a while not ceep beeing stuck with toslink 😂

night herald
rapid crater
#

Thanks again for your help! Do I need to reset anything bec of wath we did?

night herald
rapid crater
#

just restart and load that version?

night herald
#

um no

#

u at the desktop?

rapid crater
#

yes

night herald
#

open timeshift, click "restore" and pick last version i had u make