Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] KDE/Phonon: Change Profile
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
MMMMM
Tux's lil' helper
Tux's lil' helper


Joined: 13 Jun 2011
Posts: 134
Location: Berlin

PostPosted: Sat Mar 02, 2019 8:12 pm    Post subject: [SOLVED] KDE/Phonon: Change Profile Reply with quote

Hi,

I have a problem with sound configuration and did not find a proper solution so far. Problem is that every time I start the PC only digital output is activated. In KDE's system settings I can't change anything about that. With pavucontrol I can selct "Analog Stereo Duplex (unplugged)" and then everything works fine. I guess that this "unplugged" is forcing phonon to switch to anoter output - digital stereo in my case. Funny thing is that there is nothing plugged into stereo but my headphones are in analog output.

alsa-info.sh has this output: http://alsa-project.org/db/?f=8b865c2d94195aabc4afe76a9314b48cb957b217

I guess this bug was introduced by an update of KDE, but can't remember which one.

Now I have to start pavucontrol and manually set the output everytime. Is there a way to fix this or force the profile I need or to set the profile via a shell script?

BR, Micha.


Last edited by MMMMM on Sun Mar 10, 2019 4:23 pm; edited 1 time in total
Back to top
View user's profile Send private message
ppurka
Advocate
Advocate


Joined: 26 Dec 2004
Posts: 3256

PostPosted: Sun Mar 03, 2019 7:43 am    Post subject: Reply with quote

You can check the index of your sink, and then set the default sink (output):
Code:
pacmd list-sink-inputs
pacmd  set-default-sink <index number, for example, 0>
Once you have figured out the index number of your sink, the second command can be made to run on every startup of KDE by putting it in the "Autostart" configuration in KDE (search for autostart after pressing Alt-F2).
_________________
emerge --quiet redefined | E17 vids: I, II | Now using kde5 | e is unstable :-/
Back to top
View user's profile Send private message
MMMMM
Tux's lil' helper
Tux's lil' helper


Joined: 13 Jun 2011
Posts: 134
Location: Berlin

PostPosted: Sun Mar 03, 2019 10:48 am    Post subject: Reply with quote

ppurka,
Code:
$ pacmd list-sink-inputs
0 sink input(s) available.

Setting correct profile with pavucontrol does not change this result.

BR, Micha.
Back to top
View user's profile Send private message
ppurka
Advocate
Advocate


Joined: 26 Dec 2004
Posts: 3256

PostPosted: Sun Mar 03, 2019 1:03 pm    Post subject: Reply with quote

Sorry, not sure why I gave "list-sink-inputs". Can you try
Code:
pacmd list-sinks

_________________
emerge --quiet redefined | E17 vids: I, II | Now using kde5 | e is unstable :-/
Back to top
View user's profile Send private message
MMMMM
Tux's lil' helper
Tux's lil' helper


Joined: 13 Jun 2011
Posts: 134
Location: Berlin

PostPosted: Mon Mar 04, 2019 7:14 pm    Post subject: Reply with quote

ppurka,

this gives me after bootup:
Code:
$ pacmd list-sinks
1 sink(s) available.
  * index: 0
        name: <alsa_output.pci-0000_00_14.2.iec958-stereo>
        driver: <module-alsa-card.c>
        flags: HARDWARE HW_MUTE_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
        state: SUSPENDED
        suspend cause: IDLE
        priority: 9038
        volume: front-left: 55705 /  85% / -4,24 dB,   front-right: 52428 /  80% / -5,81 dB
                balance -0,06
        base volume: 65536 / 100% / 0,00 dB
        volume steps: 65537
        muted: no
        current latency: 0,00 ms
        max request: 0 KiB
        max rewind: 0 KiB
        monitor source: 0
        sample spec: s16le 2ch 44100Hz
        channel map: front-left,front-right
                     Stereo
        used by: 0
        linked by: 0
        configured latency: 0,00 ms; range is 0,50 .. 1999,82 ms
        card: 0 <alsa_card.pci-0000_00_14.2>
        module: 6
        properties:
                alsa.resolution_bits = "16"
                device.api = "alsa"
                device.class = "sound"
                alsa.class = "generic"
                alsa.subclass = "generic-mix"
                alsa.name = "ALC889 Digital"
                alsa.id = "ALC889 Digital"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                alsa.device = "1"
                alsa.card = "0"
                alsa.card_name = "HDA ATI SB"
                alsa.long_card_name = "HDA ATI SB at 0xfe6f0000 irq 16"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:00:14.2"
                sysfs.path = "/devices/pci0000:00/0000:00:14.2/sound/card0"
                device.bus = "pci"
                device.vendor.id = "1002"
                device.vendor.name = "Advanced Micro Devices, Inc. [AMD/ATI]"
                device.product.id = "4383"
                device.product.name = "SBx00 Azalia (Intel HDA)"
                device.form_factor = "internal"
                device.string = "iec958:0"
                device.buffering.buffer_size = "352768"
                device.buffering.fragment_size = "176384"
                device.access_mode = "mmap+timer"
                device.profile.name = "iec958-stereo"
                device.profile.description = "Digital Stereo (IEC958)"
                device.description = "Internes Audio Digital Stereo (IEC958)"
                alsa.mixer_name = "Realtek ALC889"
                alsa.components = "HDA:10ec0889,14627576,00100004"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        ports:
                iec958-stereo-output: Digitalausgang (S/PDIF) (priority 0, latency offset 0 usec, available: unknown)
                        properties:

        active port: <iec958-stereo-output>

When I set the correct profile with pavucontrol it changes to:
Code:
$ pacmd list-sinks
1 sink(s) available.
  * index: 2
        name: <alsa_output.pci-0000_00_14.2.analog-stereo>
        driver: <module-alsa-card.c>
        flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
        state: IDLE
        suspend cause: (none)
        priority: 9039
        volume: front-left: 45220 /  69% / -9,67 dB,   front-right: 45220 /  69% / -9,67 dB
                balance 0,00
        base volume: 60694 /  93% / -2,00 dB
        volume steps: 65537
        muted: no
        current latency: 39,78 ms
        max request: 6 KiB
        max rewind: 6 KiB
        monitor source: 3
        sample spec: s16le 2ch 44100Hz
        channel map: front-left,front-right
                     Stereo
        used by: 0
        linked by: 1
        configured latency: 40,00 ms; range is 0,50 .. 1999,82 ms
        card: 0 <alsa_card.pci-0000_00_14.2>
        module: 6
        properties:
                alsa.resolution_bits = "16"
                device.api = "alsa"
                device.class = "sound"
                alsa.class = "generic"
                alsa.subclass = "generic-mix"
                alsa.name = "ALC889 Analog"
                alsa.id = "ALC889 Analog"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                alsa.device = "0"
                alsa.card = "0"
                alsa.card_name = "HDA ATI SB"
                alsa.long_card_name = "HDA ATI SB at 0xfe6f0000 irq 16"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:00:14.2"
                sysfs.path = "/devices/pci0000:00/0000:00:14.2/sound/card0"
                device.bus = "pci"
                device.vendor.id = "1002"
                device.vendor.name = "Advanced Micro Devices, Inc. [AMD/ATI]"
                device.product.id = "4383"
                device.product.name = "SBx00 Azalia (Intel HDA)"
                device.form_factor = "internal"
                device.string = "front:0"
                device.buffering.buffer_size = "352768"
                device.buffering.fragment_size = "176384"
                device.access_mode = "mmap+timer"
                device.profile.name = "analog-stereo"
                device.profile.description = "Analog Stereo"
                device.description = "Internes Audio Analog Stereo"
                alsa.mixer_name = "Realtek ALC889"
                alsa.components = "HDA:10ec0889,14627576,00100004"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        ports:
                analog-output-lineout: Line-Ausgang (priority 9900, latency offset 0 usec, available: no)
                        properties:

                analog-output-headphones: Kopfhörer (priority 9000, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "audio-headphones"
        active port: <analog-output-lineout>
Back to top
View user's profile Send private message
ppurka
Advocate
Advocate


Joined: 26 Dec 2004
Posts: 3256

PostPosted: Thu Mar 07, 2019 3:29 pm    Post subject: Reply with quote

I am out of ideas here. There must be some argument to this command that can find out the other sink. :?
_________________
emerge --quiet redefined | E17 vids: I, II | Now using kde5 | e is unstable :-/
Back to top
View user's profile Send private message
MMMMM
Tux's lil' helper
Tux's lil' helper


Joined: 13 Jun 2011
Posts: 134
Location: Berlin

PostPosted: Sat Mar 09, 2019 8:06 pm    Post subject: Reply with quote

I guess that the "unplugged" is the real problem.
Back to top
View user's profile Send private message
MMMMM
Tux's lil' helper
Tux's lil' helper


Joined: 13 Jun 2011
Posts: 134
Location: Berlin

PostPosted: Sun Mar 10, 2019 4:22 pm    Post subject: Reply with quote

I could not fix the "unplugged" bug so far, but this sets in my case the correct output:
Code:
pacmd set-card-profile 0 output:analog-stereo
With this you can check possible profiles:
Code:
pacmd list-cards
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum