poor sound quality

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • boka
    PCHF Member
    • Sep 2024
    • 8

    #1

    poor sound quality

    When I boot my laptop, I experience awful sound quality from my headphones (i’ve tried to switch to a different headphones, but this did’t help). But if I unplug and plug in the headphones, it fixes the problem.
    The default sound test on Fedora Linux works fine, even with headphones.
    My default laptop speaker works fine.
    I also noticed that if I run β€œpactl list short sinks” and then, for example, β€œpactl suspend-sink 51 1”, it partially fixes the problem.
    i also had this problem on linux mint
  • Malnutrition
    PCHF Moderator
    • Jul 2016
    • 7045

    #2
    I am not a Linux user, but found this on google. Honestly have no idea if this will help. I’ll tag a couple people to see if they have input. jmarket @Bruce @PeterOz


    [MEDIA=reddit]pop_os/comments/n82egy[/MEDIA]

    Edit:

    I have a set of nice wireless headphones which I use from time to time, in addition to my speakers and normal microphone. I'd like to write a script to switch between one input and output source and



    Code:
    DEFAULT_SINK=$(pactl list short sinks | grep RUNNING | awk β€˜{print $1}’)
    if [ -z β€œ$DEFAULT_SINK” ]; then
    
    fi
    
    pactl suspend-sink β€œ$DEFAULT_SINK” 1
    sleep 1
    pactl suspend-sink β€œ$DEFAULT_SINK” 0

    Comment

    • boka
      PCHF Member
      • Sep 2024
      • 8

      #3
      Originally posted by Malnutrition
      I am not a Linux user, but found this on google. Honestly have no idea if this will help. I’ll tag a couple people to see if they have input. @jmarket @Bruce @PeterOz


      [MEDIA=reddit]pop_os/comments/n82egy[/MEDIA]

      Edit:

      I have a set of nice wireless headphones which I use from time to time, in addition to my speakers and normal microphone. I'd like to write a script to switch between one input and output source and


      Code:
      DEFAULT_SINK=$(pactl list short sinks | grep RUNNING | awk β€˜{print $1}’)
      if [ -z β€œ$DEFAULT_SINK” ]; then
      
      fi
      
      pactl suspend-sink β€œ$DEFAULT_SINK” 1
      sleep 1
      pactl suspend-sink β€œ$DEFAULT_SINK” 0
      i’ve tried this
      if I run β€œpactl list short sinks” and then, for example, β€œpactl suspend-sink 51 1”, it partially fixes the problem. Partially means that the sound before this commands is awful, and after it is better, but still sounds like it’s coming from a barrel.
      A full fix happens only if I physically reconnect the headphones. It would be great if there were a way to do this from the terminal. However, I would like to resolve this issue fully without using a workaround.

      Comment

      • jmarket
        PCHF Owner
        • Jan 2015
        • 7634

        #4
        Hello,

        What distro are you using? Can you post a pic of your fastfetch or neofetch?

        Comment

        • boka
          PCHF Member
          • Sep 2024
          • 8

          #5
          Originally posted by jmarket
          Hello,

          What distro are you using? Can you post a pic of your fastfetch or neofetch?
          [ATTACH type=β€œfull” size=β€œ941x615”]14320[/ATTACH]

          Comment

          • jmarket
            PCHF Owner
            • Jan 2015
            • 7634

            #6
            Let’s try this. Let’s run this command:

            [CODE=bash]mkdir ~/.config/pipewire

            cp /usr/share/pipewire/*.conf ~/.config/pipewire

            chown $USER ~/.config/pipewire/pipewire-pulse.conf

            nano ~/.config/pipewire/pipewire-pulse.conf[/CODE]

            in the conf file find pulse properties and put:
            Code:
            pulse.min.req = 1024/48000
            
            pulse.min.frag = 1024/48000
            
            pulse.min.quantum = 1024/48000
            then save and reboot.

            Comment

            • boka
              PCHF Member
              • Sep 2024
              • 8

              #7
              Originally posted by jmarket
              Let’s try this. Let’s run this command:

              [CODE=bash]mkdir ~/.config/pipewire

              cp /usr/share/pipewire/*.conf ~/.config/pipewire

              chown $USER ~/.config/pipewire/pipewire-pulse.conf

              nano ~/.config/pipewire/pipewire-pulse.conf[/CODE]

              in the conf file find pulse properties and put:
              Code:
              pulse.min.req = 1024/48000
              
              pulse.min.frag = 1024/48000
              
              pulse.min.quantum = 1024/48000
              then save and reboot.
              I tried adding it to both pulse.properties and pulse.rules, but there is no effect.

              Comment

              • boka
                PCHF Member
                • Sep 2024
                • 8

                #8
                Originally posted by jmarket
                Let’s try this. Let’s run this command:

                [CODE=bash]mkdir ~/.config/pipewire

                cp /usr/share/pipewire/*.conf ~/.config/pipewire

                chown $USER ~/.config/pipewire/pipewire-pulse.conf

                nano ~/.config/pipewire/pipewire-pulse.conf[/CODE]

                in the conf file find pulse properties and put:
                Code:
                pulse.min.req = 1024/48000
                
                pulse.min.frag = 1024/48000
                
                pulse.min.quantum = 1024/48000
                then save and reboot.
                for some reason default fedora sound test works well
                [ATTACH type=β€œfull” size=β€œ662x554”]14321[/ATTACH]
                but any other audio is bad.

                i started speaker-test -t wav -c 6 and here is the output from pavucontrol:
                [ATTACH type=β€œfull” size=β€œ949x825”]14322[/ATTACH]
                [ATTACH type=β€œfull” size=β€œ955x899”]14323[/ATTACH]

                The sound from spotify and from speaker-test uses the same port, but sound from spotify (or any other audio) is bad. If after replugging headphones everything works fine

                Comment

                • boka
                  PCHF Member
                  • Sep 2024
                  • 8

                  #9
                  Originally posted by jmarket
                  Let’s try this. Let’s run this command:

                  [CODE=bash]mkdir ~/.config/pipewire

                  cp /usr/share/pipewire/*.conf ~/.config/pipewire

                  chown $USER ~/.config/pipewire/pipewire-pulse.conf

                  nano ~/.config/pipewire/pipewire-pulse.conf[/CODE]

                  in the conf file find pulse properties and put:
                  Code:
                  pulse.min.req = 1024/48000
                  
                  pulse.min.frag = 1024/48000
                  
                  pulse.min.quantum = 1024/48000
                  then save and reboot.
                  i also noticed that if i set balance to smth like this:
                  [ATTACH type=β€œfull” size=β€œ950x225”]14340[/ATTACH]
                  or
                  [ATTACH type=β€œfull” size=β€œ647x256”]14342[/ATTACH]
                  sound is much better, but it is still dull

                  Comment

                  • Bruce
                    PCHF Moderator
                    • Oct 2017
                    • 10702

                    #10
                    @boka - any improvement in the last few days?

                    Comment

                    • boka
                      PCHF Member
                      • Sep 2024
                      • 8

                      #11
                      Originally posted by Bruce
                      @boka - any improvement in the last few days?
                      not really,i just plug in headphones only when i need them

                      Comment

                      • Bruce
                        PCHF Moderator
                        • Oct 2017
                        • 10702

                        #12
                        And when plugged in, the headphones are still crap?

                        Comment

                        • boka
                          PCHF Member
                          • Sep 2024
                          • 8

                          #13
                          Originally posted by Bruce
                          And when plugged in, the headphones are still crap?
                          No, i have the problem with sound only after boot/reboot. if the headphones were connected while booting, the sound is bad. Only reconnecting the headphones fixes this problem. If the headphones were not connected when the system was booted and I connected them after, the sound works as it should

                          Comment

                          • Bruce
                            PCHF Moderator
                            • Oct 2017
                            • 10702

                            #14
                            jmarket - any other Linux ideas?

                            Comment

                            • Bruce
                              PCHF Moderator
                              • Oct 2017
                              • 10702

                              #15
                              Looks like your work-around solution will have to do, for now.

                              Comment

                              Working...