Posts

Showing posts with the label headphones not working

Fix for No Sound in Headphones on Fedora 32/33

Okay if anyone else has a Samsung Galaxy Book Flex ⍺ running Fedora 32/33 and runs into the issue of getting no sound in your headphones, I have a solution/workaround that is satisfying enough for me. First let's get the headphones working on boot. Create a service like so: [root@localhost ~]# cat /usr/lib/systemd/system/headphones.service [Unit] Description=Start headphones After=multi-user.target [Service] Type=oneshot ExecStart=/usr/local/bin/headphones [Install] WantedBy=basic.target As you can see it makes a call to /usr/local/bin/headphones, this file looks like so: [root@localhost ~]# cat /usr/local/bin/headphones #!/usr/bin/bash /usr/bin/hda-verb /dev/snd/hwC0D0 0x1a SET_PIN_WIDGET_CONTROL 0x5 Make sure to make the file executable: chmod +x /usr/local/bin/headphones We still need to install acpid: `sudo dnf install acpid` Now create the corresponding scripts to detect when headphones have been plugged/unplugged...