You are not logged in.

#1 2020-11-01 13:47:53

Zibi1981
Member
From: Poland
Registered: 2008-01-31
Posts: 476

How to permanently set volume levels in KMix

Sorry for a dumb question, but I can't find an option to permanently adjust sound volumes in KMix - every time I change settings to the desired level, those revert back after every reboot. I use PulseAudio and PulseEffects, but can't find a proper option in any of the configuration files I'm familiar with.
Please give me a hint. Thanks.


"... being a Linux user is sort of like living in a house inhabited by a large family of carpenters and architects. Every morning when you wake up, the house is a little different. Maybe there is a new turret, or some walls have moved. Or perhaps someone has temporarily removed the floor under your bed."

MSI GT75 Titan 8RG

Offline

#2 2020-11-01 13:54:20

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 11,138

Re: How to permanently set volume levels in KMix

It's up to pulseaudio to restore those. KMix does have code for this, but it should explicitly not work if you are using pulseaudio as pulse should be doing this. FWIW this might depend on which volume you are adjusting, do you touch the pulseeffects slider or the actual hardware component? With an "adjusted" volume, what's your output for

pacmd list-sinks
pacmd list-sink-inputs
pacmd list-sources
pacmd list-source-outputs
pacmd list-modules

and maybe post a screenshot of your kmix window as a link because I'm not entirely sure if you are seeing the correct device.

Offline

#3 2020-11-03 22:32:02

Zibi1981
Member
From: Poland
Registered: 2008-01-31
Posts: 476

Re: How to permanently set volume levels in KMix

Here are the outputs

$ pacmd list-sinks
3 sink(s) available.
  * index: 0
        name: <alsa_output.pci-0000_00_1f.3.analog-stereo>
        driver: <module-alsa-card.c>
        flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
        state: RUNNING
        suspend cause: (none)
        priority: 9039
        volume: front-left: 39322 /  60% / -13,31 dB,   front-right: 39322 /  60% / -13,31 dB
                balance 0,00
        base volume: 65536 / 100% / 0,00 dB
        volume steps: 65537
        muted: no
        current latency: 89,64 ms
        max request: 67 KiB
        max rewind: 67 KiB
        monitor source: 0
        sample spec: s32le 2 k 96000 Hz
        channel map: front-left,front-right
                     Stereo
        used by: 1
        linked by: 1
        configured latency: 90,00 ms; range is 0,50 .. 2000,00 ms
        card: 1 <alsa_card.pci-0000_00_1f.3>
        module: 7
        properties:
                alsa.resolution_bits = "32"
                device.api = "alsa"
                device.class = "sound"
                alsa.class = "generic"
                alsa.subclass = "generic-mix"
                alsa.name = "ALC1220 Analog"
                alsa.id = "ALC1220 Analog"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                alsa.device = "0"
                alsa.card = "0"
                alsa.card_name = "HDA Intel PCH"
                alsa.long_card_name = "HDA Intel PCH at 0x9a210000 irq 171"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:00:1f.3"
                sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"
                device.bus = "pci"
                device.vendor.id = "8086"
                device.vendor.name = "Intel Corporation"
                device.product.id = "a348"
                device.product.name = "Cannon Lake PCH cAVS"
                device.form_factor = "internal"
                device.string = "front:0"
                device.buffering.buffer_size = "1536000"
                device.buffering.fragment_size = "768000"
                device.access_mode = "mmap+timer"
                device.profile.name = "analog-stereo"
                device.profile.description = "Analogowe stereo"
                device.description = "Wbudowany dźwięk Analogowe stereo"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        ports:
                analog-output-speaker: Speakers (priority 10000, latency offset 0 usec, available: unknown)
                        properties:
                                device.icon_name = "audio-speakers"
        active port: <analog-output-speaker>
    index: 1
        name: <PulseEffects_apps>
        driver: <module-null-sink.c>
        flags: DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
        state: RUNNING
        suspend cause: (none)
        priority: 9000
        volume: front-left: 39322 /  60% / -13,31 dB,   front-right: 39322 /  60% / -13,31 dB
                balance 0,00
        base volume: 65536 / 100% / 0,00 dB
        volume steps: 65537
        muted: no
        current latency: 0,82 ms
        max request: 7 KiB
        max rewind: 0 KiB
        monitor source: 1
        sample spec: float32le 2 k 96000 Hz
        channel map: front-left,front-right
                     Stereo
        used by: 1
        linked by: 2
        configured latency: 10,00 ms; range is 0,50 .. 50,00 ms
        module: 27
        properties:
                device.description = "PulseEffects(apps)"
                device.class = "sound"
                device.icon_name = "audio-card"
    index: 2
        name: <PulseEffects_mic>
        driver: <module-null-sink.c>
        flags: DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
        state: SUSPENDED
        suspend cause: IDLE
        priority: 9000
        volume: front-left: 39322 /  60% / -13,31 dB,   front-right: 39322 /  60% / -13,31 dB
                balance 0,00
        base volume: 65536 / 100% / 0,00 dB
        volume steps: 65537
        muted: no
        current latency: 0,00 ms
        max request: 18 KiB
        max rewind: 0 KiB
        monitor source: 2
        sample spec: s16le 2 k 96000 Hz
        channel map: front-left,front-right
                     Stereo
        used by: 0
        linked by: 0
        configured latency: 0,00 ms; range is 0,50 .. 50,00 ms
        module: 28
        properties:
                device.description = "PulseEffects(mic)"
                device.class = "sound"
                device.icon_name = "audio-card"
pacmd list-sink-inputs
2 sink input(s) available.
    index: 2
        driver: <protocol-native.c>
        flags: START_CORKED 
        state: RUNNING
        sink: 0 <alsa_output.pci-0000_00_1f.3.analog-stereo>
        volume: front-left: 65536 / 100% / 0,00 dB,   front-right: 65536 / 100% / 0,00 dB
                balance 0,00
        muted: no
        current latency: 42,12 ms
        requested latency: 90,00 ms
        sample spec: float32le 2 k 96000 Hz
        channel map: front-left,front-right
                     Stereo
        resample method: copy
        module: 12
        client: 14 <PulseEffects>
        properties:
                application.id = "com.github.wwmm.pulseeffects.sinkinputs"
                media.name = "Playback Stream"
                application.name = "PulseEffects"
                native-protocol.peer = "UNIX socket client"
                native-protocol.version = "34"
                application.icon_name = "pulseeffects"
                application.process.id = "1797"
                application.process.user = "zbyszek"
                application.process.host = "titanlinux"
                application.process.binary = "pulseeffects"
                application.language = "pl_PL.UTF-8"
                window.x11.display = ":0"
                application.process.machine_id = "e6356ef8461349318707a27e3626d5ed"
                application.process.session_id = "2"
                module-stream-restore.id = "sink-input-by-application-id:com.github.wwmm.pulseeffects.sinkinputs"
    index: 14
        driver: <protocol-native.c>
        flags: START_CORKED 
        state: RUNNING
        sink: 1 <PulseEffects_apps>
        volume: front-left: 65536 / 100% / 0,00 dB,   front-right: 65536 / 100% / 0,00 dB
                balance 0,00
        muted: no
        current latency: 44,00 ms
        requested latency: 21,33 ms
        sample spec: float32le 2 k 96000 Hz
        channel map: front-left,front-right
                     Stereo
        resample method: (null)
        module: 12
        client: 31 <Chromium>
        properties:
                application.icon_name = "chromium-browser"
                media.name = "Playback"
                application.name = "Chromium"
                native-protocol.peer = "UNIX socket client"
                native-protocol.version = "34"
                application.process.id = "963"
                application.process.user = "zbyszek"
                application.process.host = "titanlinux"
                application.process.binary = "vivaldi-bin"
                application.language = "pl_PL.UTF-8"
                window.x11.display = ":0"
                application.process.machine_id = "e6356ef8461349318707a27e3626d5ed"
                application.process.session_id = "2"
                module-stream-restore.id = "sink-input-by-application-name:Chromium"
pacmd list-sources
3 source(s) available.
  * index: 0
        name: <alsa_output.pci-0000_00_1f.3.analog-stereo.monitor>
        driver: <module-alsa-card.c>
        flags: DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
        state: IDLE
        suspend cause: (none)
        priority: 1030
        volume: front-left: 65536 / 100% / 0,00 dB,   front-right: 65536 / 100% / 0,00 dB
                balance 0,00
        base volume: 65536 / 100% / 0,00 dB
        volume steps: 65537
        muted: no
        current latency: 0,00 ms
        max rewind: 67 KiB
        sample spec: s32le 2 k 96000 Hz
        channel map: front-left,front-right
                     Stereo
        used by: 0
        linked by: 0
        configured latency: 2000,00 ms; range is 0,50 .. 2000,00 ms
        monitor_of: 0
        card: 1 <alsa_card.pci-0000_00_1f.3>
        module: 7
        properties:
                device.description = "Monitor of Wbudowany dźwięk Analogowe stereo"
                device.class = "monitor"
                alsa.card = "0"
                alsa.card_name = "HDA Intel PCH"
                alsa.long_card_name = "HDA Intel PCH at 0x9a210000 irq 171"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:00:1f.3"
                sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"
                device.bus = "pci"
                device.vendor.id = "8086"
                device.vendor.name = "Intel Corporation"
                device.product.id = "a348"
                device.product.name = "Cannon Lake PCH cAVS"
                device.form_factor = "internal"
                device.string = "0"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
    index: 1
        name: <PulseEffects_apps.monitor>
        driver: <module-null-sink.c>
        flags: DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
        state: RUNNING
        suspend cause: (none)
        priority: 1000
        volume: front-left: 65536 / 100% / 0,00 dB,   front-right: 65536 / 100% / 0,00 dB
                balance 0,00
        base volume: 65536 / 100% / 0,00 dB
        volume steps: 65537
        muted: no
        current latency: 0,00 ms
        max rewind: 0 KiB
        sample spec: float32le 2 k 96000 Hz
        channel map: front-left,front-right
                     Stereo
        used by: 1
        linked by: 1
        configured latency: 10,00 ms; range is 0,50 .. 50,00 ms
        monitor_of: 1
        module: 27
        properties:
                device.description = "Monitor of PulseEffects(apps)"
                device.class = "monitor"
                device.icon_name = "audio-input-microphone"
    index: 2
        name: <PulseEffects_mic.monitor>
        driver: <module-null-sink.c>
        flags: DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
        state: SUSPENDED
        suspend cause: IDLE
        priority: 1000
        volume: front-left: 65536 / 100% / 0,00 dB,   front-right: 65536 / 100% / 0,00 dB
                balance 0,00
        base volume: 65536 / 100% / 0,00 dB
        volume steps: 65537
        muted: no
        current latency: 0,00 ms
        max rewind: 0 KiB
        sample spec: s16le 2 k 96000 Hz
        channel map: front-left,front-right
                     Stereo
        used by: 0
        linked by: 0
        configured latency: 0,00 ms; range is 0,50 .. 50,00 ms
        monitor_of: 2
        module: 28
        properties:
                device.description = "Monitor of PulseEffects(mic)"
                device.class = "monitor"
                device.icon_name = "audio-input-microphone"
$ pacmd list-source-outputs
1 source output(s) available.
    index: 0
        driver: <protocol-native.c>
        flags: START_CORKED 
        state: RUNNING
        source: 1 <PulseEffects_apps.monitor>
        volume: front-left: 65536 / 100% / 0,00 dB,   front-right: 65536 / 100% / 0,00 dB
                balance 0,00
        muted: no
        current latency: 0,00 ms
        requested latency: 10,00 ms
        sample spec: float32le 2 k 96000 Hz
        channel map: front-left,front-right
                     Stereo
        resample method: (null)
        owner module: 12
        client: 15 <PulseEffects>
        properties:
                application.id = "com.github.wwmm.pulseeffects.sinkinputs"
                media.name = "Record Stream"
                application.name = "PulseEffects"
                native-protocol.peer = "UNIX socket client"
                native-protocol.version = "34"
                application.icon_name = "pulseeffects"
                application.process.id = "1797"
                application.process.user = "zbyszek"
                application.process.host = "titanlinux"
                application.process.binary = "pulseeffects"
                application.language = "pl_PL.UTF-8"
                window.x11.display = ":0"
                application.process.machine_id = "e6356ef8461349318707a27e3626d5ed"
                application.process.session_id = "2"
                module-stream-restore.id = "source-output-by-application-id:com.github.wwmm.pulseeffects.sinkinputs"
pacmd list-modules
29 module(s) loaded.
    index: 0
        name: <module-device-restore>
        argument: <>
        used: -1
        load once: yes
        properties:
                module.author = "Lennart Poettering"
                module.description = "Automatically restore the volume/mute state of devices"
                module.version = "13.99.3"
    index: 1
        name: <module-stream-restore>
        argument: <>
        used: -1
        load once: yes
        properties:
                module.author = "Lennart Poettering"
                module.description = "Automatically restore the volume/mute/device state of streams"
                module.version = "13.99.3"
    index: 2
        name: <module-card-restore>
        argument: <>
        used: -1
        load once: yes
        properties:
                module.author = "Lennart Poettering"
                module.description = "Automatically restore profile of cards"
                module.version = "13.99.3"
    index: 3
        name: <module-augment-properties>
        argument: <>
        used: -1
        load once: yes
        properties:
                module.author = "Lennart Poettering"
                module.description = "Augment the property sets of streams with additional static information"
                module.version = "13.99.3"
    index: 4
        name: <module-switch-on-port-available>
        argument: <>
        used: -1
        load once: yes
        properties:
                module.author = "David Henningsson"
                module.description = "Switches ports and profiles when devices are plugged/unplugged"
                module.version = "13.99.3"
    index: 5
        name: <module-udev-detect>
        argument: <>
        used: -1
        load once: yes
        properties:
                module.author = "Lennart Poettering"
                module.description = "Detect available audio hardware and load matching drivers"
                module.version = "13.99.3"
    index: 6
        name: <module-alsa-card>
        argument: <device_id="1" name="pci-0000_01_00.1" card_name="alsa_card.pci-0000_01_00.1" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes avoid_resampling=yes card_properties="module-udev-detect.discovered=1">
        used: 0
        load once: no
        properties:
                module.author = "Lennart Poettering"
                module.description = "ALSA Card"
                module.version = "13.99.3"
    index: 7
        name: <module-alsa-card>
        argument: <device_id="0" name="pci-0000_00_1f.3" card_name="alsa_card.pci-0000_00_1f.3" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes avoid_resampling=yes card_properties="module-udev-detect.discovered=1">
        used: 1
        load once: no
        properties:
                module.author = "Lennart Poettering"
                module.description = "ALSA Card"
                module.version = "13.99.3"
    index: 8
        name: <module-bluetooth-policy>
        argument: <>
        used: -1
        load once: yes
        properties:
                module.author = "Frédéric Dalleau, Pali Rohár"
                module.description = "Policy module to make using bluetooth devices out-of-the-box easier"
                module.version = "13.99.2-7-g610179"
    index: 9
        name: <module-bluetooth-discover>
        argument: <>
        used: -1
        load once: yes
        properties:
                module.author = "João Paulo Rechi Vita"
                module.description = "Detect available Bluetooth daemon and load the corresponding discovery module"
                module.version = "13.99.2-7-g610179"
    index: 10
        name: <module-bluez5-discover>
        argument: <>
        used: -1
        load once: yes
        properties:
                module.author = "João Paulo Rechi Vita"
                module.description = "Detect available BlueZ 5 Bluetooth audio devices and load BlueZ 5 Bluetooth audio drivers"
                module.version = "13.99.2-7-g610179"
    index: 11
        name: <module-dbus-protocol>
        argument: <>
        used: -1
        load once: yes
        properties:
                module.author = "Tanu Kaskinen"
                module.description = "D-Bus interface"
                module.version = "13.99.3"
    index: 12
        name: <module-native-protocol-unix>
        argument: <>
        used: -1
        load once: no
        properties:
                module.author = "Lennart Poettering"
                module.description = "Native protocol (UNIX sockets)"
                module.version = "13.99.3"
    index: 13
        name: <module-gsettings>
        argument: <>
        used: -1
        load once: yes
        properties:
                module.author = "Sylvain Baubeau"
                module.description = "GSettings Adapter"
                module.version = "13.99.3"
    index: 14
        name: <module-default-device-restore>
        argument: <>
        used: -1
        load once: yes
        properties:
                module.author = "Lennart Poettering"
                module.description = "Automatically restore the default sink and source"
                module.version = "13.99.3"
    index: 16
        name: <module-always-sink>
        argument: <>
        used: -1
        load once: yes
        properties:
                module.author = "Colin Guthrie"
                module.description = "Utrzymywanie zawsze co najmniej jednego wczytanego odpływu, nawet jeśli to pusty odpływ"
                module.version = "13.99.3"
    index: 17
        name: <module-intended-roles>
        argument: <>
        used: -1
        load once: yes
        properties:
                module.author = "Lennart Poettering"
                module.description = "Automatically set device of streams based on intended roles of devices"
                module.version = "13.99.3"
    index: 18
        name: <module-suspend-on-idle>
        argument: <>
        used: -1
        load once: yes
        properties:
                module.author = "Lennart Poettering"
                module.description = "When a sink/source is idle for too long, suspend it"
                module.version = "13.99.3"
    index: 19
        name: <module-console-kit>
        argument: <>
        used: -1
        load once: yes
        properties:
                module.author = "Lennart Poettering"
                module.description = "Create a client for each ConsoleKit session of this user"
                module.version = "13.99.3"
    index: 20
        name: <module-systemd-login>
        argument: <>
        used: -1
        load once: yes
        properties:
                module.author = "Lennart Poettering"
                module.description = "Create a client for each login session of this user"
                module.version = "13.99.3"
    index: 21
        name: <module-position-event-sounds>
        argument: <>
        used: -1
        load once: yes
        properties:
                module.author = "Lennart Poettering"
                module.description = "Position event sounds between L and R depending on the position on screen of the widget triggering them."
                module.version = "13.99.3"
    index: 22
        name: <module-role-cork>
        argument: <>
        used: -1
        load once: yes
        properties:
                module.author = "Lennart Poettering"
                module.description = "Mute & cork streams with certain roles while others exist"
                module.version = "13.99.3"
    index: 23
        name: <module-filter-heuristics>
        argument: <>
        used: -1
        load once: yes
        properties:
                module.author = "Colin Guthrie"
                module.description = "Detect when various filters are desirable"
                module.version = "13.99.3"
    index: 24
        name: <module-filter-apply>
        argument: <>
        used: -1
        load once: yes
        properties:
                module.author = "Colin Guthrie"
                module.description = "Load filter sinks automatically when needed"
                module.version = "13.99.3"
    index: 25
        name: <module-x11-publish>
        argument: <display=:0 xauthority=/home/zbyszek/.Xauthority>
        used: -1
        load once: no
        properties:
                module.author = "Lennart Poettering"
                module.description = "X11 credential publisher"
                module.version = "13.99.3"
    index: 26
        name: <module-x11-xsmp>
        argument: <display=:0 xauthority=/home/zbyszek/.Xauthority session_manager=local/titanlinux:@/tmp/.ICE-unix/1355,unix/titanlinux:/tmp/.ICE-unix/1355>
        used: -1
        load once: no
        properties:
                module.author = "Lennart Poettering"
                module.description = "X11 session management"
                module.version = "13.99.3"
    index: 27
        name: <module-null-sink>
        argument: <sink_name=PulseEffects_apps sink_properties=device.description="PulseEffects(apps)"device.class="sound" norewinds=1>
        used: 2
        load once: no
        properties:
                module.author = "Lennart Poettering"
                module.description = "Zegarowy PUSTY odpływ"
                module.version = "13.99.3"
    index: 28
        name: <module-null-sink>
        argument: <sink_name=PulseEffects_mic sink_properties=device.description="PulseEffects(mic)"device.class="sound" norewinds=1>
        used: 0
        load once: no
        properties:
                module.author = "Lennart Poettering"
                module.description = "Zegarowy PUSTY odpływ"
                module.version = "13.99.3"
    index: 29
        name: <module-cli-protocol-unix>
        argument: <>
        used: -1
        load once: no
        properties:
                module.author = "Lennart Poettering"
                module.description = "Command line interface protocol (UNIX sockets)"
                module.version = "13.99.3"

KMix settings: https://i.ibb.co/MBDb17w/asd.png

Last edited by Zibi1981 (2020-11-03 22:36:29)


"... being a Linux user is sort of like living in a house inhabited by a large family of carpenters and architects. Every morning when you wake up, the house is a little different. Maybe there is a new turret, or some walls have moved. Or perhaps someone has temporarily removed the floor under your bed."

MSI GT75 Titan 8RG

Offline

#4 2020-11-04 12:39:57

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 11,138

Re: How to permanently set volume levels in KMix

Ok and which of these is not being retained? If the pulseeffects values I somewhat expect them as they are under the control of pulseeffects (I'm fairly certain you have options here within pulseffects to define on what volumes pulseeffects should open the virtual sinks with, but I'd suspect that an adjustment on the actual card should stick, does it not?

FWIW your screenshot shows you are using plasma-pa BUT you still have kmix in there as well. I'd suggest you stop kmix (...maybe even remove the package) to ensure it doesn't try to persist conflicting information.

Last edited by V1del (2020-11-04 12:41:41)

Offline

#5 2020-11-08 15:47:41

Zibi1981
Member
From: Poland
Registered: 2008-01-31
Posts: 476

Re: How to permanently set volume levels in KMix

This is what I see freshly after reboot

https://i.ibb.co/XfnkDxK/abc.png

I really don't want to get rid of KMix.


"... being a Linux user is sort of like living in a house inhabited by a large family of carpenters and architects. Every morning when you wake up, the house is a little different. Maybe there is a new turret, or some walls have moved. Or perhaps someone has temporarily removed the floor under your bed."

MSI GT75 Titan 8RG

Offline

Board footer

Powered by FluxBB