LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-04-2016, 11:03 AM   #1
Pyrrhus
LQ Newbie
 
Registered: Nov 2015
Posts: 4

Rep: Reputation: Disabled
Changing default audio output to HDMI on Gnome 3


I currently running the latest Debian Testing on my X220 in Gnome 3. I haven't laptop connected to TV via HDMI using a display port adapter. Usually i just switch the audio output manually in Gnome 3 settings but I'm trying to use ZSNES on my TV. However every time I go into full screen mode it refreshes my TV to adjust the resolution which defaults the audio output back to my laptop speakers. Does anyone know how I can fix this problem? When I plug something in via the 3.5mm headphone jack it automatically switches the audio output to whatever is plugged in but this doesn't work with the HDMI cable.
 
Old 06-04-2016, 06:30 PM   #2
replica9000
Senior Member
 
Registered: Jul 2006
Distribution: Debian Unstable
Posts: 1,122
Blog Entries: 2

Rep: Reputation: 259Reputation: 259Reputation: 259
You could create a file called .asoundrc in your home directory.

Code:
pcm.!default {
      type hw
      card 1
      device 7
 }
You'll have to change the values to what need for sound over HDMI. You'll probably also have to remove/rename the file and login again when you want sound on the internal speakers instead.
 
Old 06-05-2016, 03:49 AM   #3
Pyrrhus
LQ Newbie
 
Registered: Nov 2015
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by replica9000 View Post
You'll have to change the values to what need for sound over HDMI. You'll probably also have to remove/rename the file and login again when you want sound on the internal speakers instead.
Hm this solution isn't ideal but I guess it'll have to do for now. Thanks for your help!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian 7 and HDMI Output - How To Configure Default Behaviour RafaelUmbelino Linux - Laptop and Netbook 2 02-21-2014 08:13 PM
HDMI Audio Output Issues bassmadrigal Slackware 1 11-03-2013 02:34 PM
[SOLVED] Changing default audio device Cultist Slackware 4 02-10-2013 02:50 AM
Is it possible to play Blu Ray through a video card HDMI output to HDMI TV? SharpyWarpy Linux - Hardware 5 10-28-2012 01:01 AM
HDMI Audio doesn't work - Debian Squeeze (Intel HDMI) felipefv Linux - Hardware 8 02-06-2012 09:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration