UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I have an Nvidia GT 1030 video card with the Nvidia 450 driver installed. My PC is connected to the TV via HDMI cable through a HDMI 2.0 Switch.
On a fresh install of Ubuntu 20.04.1 I have after reboot 2 audio devices in the Setting -> Sound -> Output:
1. Digital Output (S/PIDIF) - Built-in Audio
2. HDMI/DisplayPort - GP108 High definition Audio Controller
With the 2nd audio output device selected (HDMI) my PC plays audio just fine. But if I switch the HDMI switch to another computer and later switch back, the audio is back on device 1, the default, and I have no choice for device #2, HDMI.
My HDMI display comes back when I switch, but not my audio.
I have an idea for testing purposes. It's really a shot in the dark.
Try running dmesg and piping the results to a file before making the switch, doing the same thing after switching back, and using diff or meld or a similar tool to compare the two files. I'm wondering whether the devices appear in both files.
If there are no differences, I'm not sure what it would tell us, but, if they are differences, it might provide a clue.
thanks for the suggestion. I didn't see any differences with dmesg. I used journalctl looking around the time of the switching and could see the event related to Nvidia GPU, but nothing specific to audio.
However, I did get it working. This was my development system and I frequently rebuild it for whatever I need and when I installed from the latest Ubuntu 20.04.1 ISO, it failed to install because of a known bug caused by installing with the include 3rd party drivers on install. So I started over with the "3rd party drivers during install" button unchecked and the install worked.
After installation, I updated all software packages and then enabled Proprietary drivers which in my case is only Nvidia drivers. At this point I still had the audio switching problem. However, when I checked for updated packages I found a few more and they were mostly Nvidia driver updates to version 450.80.02.
After that the audio has been available after switching HDMI signals, i.e. disconnecting the cable electronically.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.