Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Max volume is lower then Stock os #157

Closed
ghost opened this issue Sep 2, 2023 · 15 comments · Fixed by #187
Closed

Max volume is lower then Stock os #157

ghost opened this issue Sep 2, 2023 · 15 comments · Fixed by #187
Labels
2. priority: 2. normal ❗ help wanted Extra attention is needed ↺ workaround A known workaround for the issue exists.

Comments

@ghost
Copy link

ghost commented Sep 2, 2023

No description provided.

@ghost
Copy link
Author

ghost commented Sep 11, 2023

I think this could be fixed with a filter chain but I am struggling to get it setup (pipewire is confusing 😭)

@ghost
Copy link
Author

ghost commented Sep 12, 2023

add this to /etc/pipewire/pipewire.conf.d/

    context.modules = [
        {   name = libpipewire-module-filter-chain
            args = {
                node.description =  "Boost Filter"
                media.name =  "Boost Filter"
                filter.graph = {
                    nodes = [
                        {
                            type = builtin 
                            name = mixer 
                            label = mixer 
                            control = {
			   	"Gain 1" = 3.5
				"Gain 2" = 3.5
                            }
                        }
		
                    ]
		   inputs = ["mixer:In 1" "mixer:In 2"]
		   outputs = ["mixer:Out"]
                }
                capture.props = {
                    node.name = "boost.sink"
                    node.passive = true
		   media.class = Audio/Sink
                }
            }
        }
    ]

wpctl set-default <sink's id>

@samueldr samueldr added ❗ help wanted Extra attention is needed ↺ workaround A known workaround for the issue exists. 2. priority: 2. normal labels Sep 12, 2023
@ghost
Copy link
Author

ghost commented Sep 13, 2023

@samueldr is something that I should make into a pr ? At least until its understood why the audio is quiet

@toast003
Copy link
Contributor

toast003 commented Oct 9, 2023

Did some research and I think these files make the speakers loud enough, although I haven't tested it yet

@toast003
Copy link
Contributor

Took a look at modules/steamdeck/sound.nix, and environment variables are set up with the location of the files I linked earlier, but they don't seem to be taking effect

Maybe putting them in a package (making them show up in /run/current-system/) might fix this?

@milikhin
Copy link

milikhin commented Oct 12, 2023

I've noticed that SteamOS 3.5 Preview release increases volume on my Deck significantly.

What solved the issue for me was taking a backup of ALSA settings with alsactl --file asound.state store under SteamOS 3.5 (or under NixOS right after installation on top of SteamOS 3.5) and then restoring them under NixOS when the max volume eventually becomes lower with alsactl --file asound.state restore.

I believe it's also possible to tweak setting for acp5x sound card manually using the alsamixer.

Stock SteamOS 3.5 settings are the following:
1
2
3

alsactl settings backup: asound.state

@pongo1231
Copy link
Contributor

alsactl --file /home/pongo/asound.state restore gives me the following on NixOS

alsa-lib main.c:846:(execute_sequence) exec '/bin/rm -rf /var/lib/alsa/card1.conf.d' failed (exit code 1)

In case anyone else also hits this, what worked for me is running the command in a container to then manually copy the resulting ctl-remap.conf to /var/lib/alsa/card1.conf.d/.

@milikhin
Copy link

alsactl --file /home/pongo/asound.state restore gives me the following on NixOS

Oh, totally forgot about it, as a workaround to make alsactl work I've also created symlinks for /run/current-system/sw/bin/rm and /run/current-system/sw/bin/mkdir at /bin

@pongo1231
Copy link
Contributor

Is that file perhaps something that should be shipped by default if jovian.devices.steamdeck.enableSoundSupport = true?

@K900
Copy link
Contributor

K900 commented Oct 21, 2023

Please test #187

@pongo1231
Copy link
Contributor

Works on my end. After deleting /var/lib/alsa/card1.conf.d/ctl-remap.conf, applying #187 and rebooting the volume is still as it should be.

@toast003
Copy link
Contributor

#187 doesn't seem to change the max volume for me

@K900
Copy link
Contributor

K900 commented Oct 21, 2023

Try running spa-acp-tool -c 1 spr 1

@toast003
Copy link
Contributor

toast003 commented Oct 21, 2023

That did it!
It doesn't seem to persist reboots tho

@K900
Copy link
Contributor

K900 commented Oct 22, 2023

Should now survive reboots (after #187).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2. priority: 2. normal ❗ help wanted Extra attention is needed ↺ workaround A known workaround for the issue exists.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants