You are not logged in.

#1 2016-12-04 17:41:14

1journ3y
Member
Registered: 2015-06-21
Posts: 4

Selected/Default Audio Device Always Changing

Hi,

I've got my system almost configured perfectly and everything is working superb except
for one very annoying thing. I have connected to the computer 5.1 analog speakers via
the sound card on the motherboard and I also got a Sennheiser USB headset that is connected
to the USB port. When the system boots up into the desktop environment no matter what I
change in the configuration it always defaults to the headset. Also when I set the sound to output
through the 5.1 speakers and the screen locks due to inactivity, when I return and continue my work
the system sets the default sound output back to the headphones.

Which files do I need to include to start diagnosing the problem?

Here are a few that I think might help

/etc/pulse/default.pa
http://pastie.org/private/4yqlsvtzrjvmwxnmoofa

I've tried to include set-default-sink alsa_output.pci-0000_00_1b.0.analog-surround-51 in this file all the way at the bottom but this did not help

I've also cleared the ~/.config/pulse and ~/.pulse directories in an attempt to purge any local settings but that also did not help

Result of pacmd list-sinks:
http://pastie.org/private/vs6shy2ceb0cqqjk7oihw

[EDIT]
- Just to make sure the the result i am trying to achieve is clear. When I boot the system, I want the 5.1 Analog Speaker to be the default audio device.

[EDIT]
- I've got the Gnome DE

Last edited by 1journ3y (2016-12-04 17:43:02)

Offline

#2 2016-12-04 19:13:28

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,452

Re: Selected/Default Audio Device Always Changing

GNOME (or rather GDM) uses its own pulse configuration and will more or less ignore what you set in the usual files, find out where (somewhere in /etc/gdm if I'm not mistaken, I don't use gnome) the file is GDM uses to set up pulseaudio and add that last line to that file instead or try to simply issue a 

pacmd set-default-sink alsa_output.pci-0000_00_1b.0.analog-surround-51

from a terminal and see if that sticks.

Last edited by V1del (2016-12-04 20:45:40)

Offline

#3 2016-12-04 21:28:14

1journ3y
Member
Registered: 2015-06-21
Posts: 4

Re: Selected/Default Audio Device Always Changing

V1del wrote:

GNOME (or rather GDM) uses its own pulse configuration and will more or less ignore what you set in the usual files, find out where (somewhere in /etc/gdm if I'm not mistaken, I don't use gnome) the file is GDM uses to set up pulseaudio and add that last line to that file instead or try to simply issue a 

pacmd set-default-sink alsa_output.pci-0000_00_1b.0.analog-surround-51

from a terminal and see if that sticks.

Hi V1del, thank you for taking time to help me out! I searched for a related to Pulse file in

/etc/gdm

but I could not find anything. Then I pasted your command in the terminal and that changed the audio device to the speakers. However, when I restarted the computer everything was back to default i.e the Headphones were set as the default output device.

Offline

#4 2016-12-04 21:39:59

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,452

Re: Selected/Default Audio Device Always Changing

Googled a bit further GDM's pulse config files are at /var/lib/gdm/.pulse/

Offline

#5 2016-12-04 22:29:52

1journ3y
Member
Registered: 2015-06-21
Posts: 4

Re: Selected/Default Audio Device Always Changing

V1del wrote:

Googled a bit further GDM's pulse config files are at /var/lib/gdm/.pulse/

Ok so I am a step closer... but the problem is still there. I found the location /var/lib/gdm but there was no .pulse folder. However, i found a .config and within that there is a pulse folder i.e (/var/lib/gdm/.config/pulse)

Inside I found these four files

drwx------ 2 gdm gdm  4096  1 дек 16,04 .
drwx------ 6 gdm gdm  4096  3 дек 12,32 ..
-rw-r--r-- 1 gdm gdm 24576  3 дек 20,51 6622d6b0d5f04933be975e318a63c5f0-card-database.tdb
-rw-r--r-- 1 gdm gdm    48  3 дек 15,46 6622d6b0d5f04933be975e318a63c5f0-default-sink
-rw-r--r-- 1 gdm gdm    63  3 дек 15,46 6622d6b0d5f04933be975e318a63c5f0-default-source
-rw-r--r-- 1 gdm gdm 12288  3 дек 12,59 6622d6b0d5f04933be975e318a63c5f0-device-volumes.tdb
-rw-r--r-- 1 gdm gdm   696  1 дек 16,04 6622d6b0d5f04933be975e318a63c5f0-stream-volumes.tdb
-rw------- 1 gdm gdm   256  1 дек 16,04 cookie

and within 6622d6b0d5f04933be975e318a63c5f0-default-sink there is just one line "alsa_output.pci-0000_00_1b.0.analog-surround-51" and yet when I restart the headphones are selected as the default output device.

Offline

Board footer

Powered by FluxBB