Announcement

Collapse
No announcement yet.

Pulse audio problem

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Pulse audio problem

    Because I don't want to continue hijacking the thread about sound quality I'll start this now one.

    It started with my problem getting the pa equaliser working and Vinny gave me the right tips to set it up:
    https://www.kubuntuforums.net/showth...an-Win10/page2

    Next I realised manual loading of the modules would not survive a reboot and Vinny gave me the solution to add the commands to /etc/pulse/default.pa
    ### Load the integrated PulseAudio equalizer and D-Bus module
    load-module module-equalizer-sink
    load-module module-dbus-protocol
    But now after a reboot I'm no longer able to start up anything pulse audio.

    Code:
    teunis@W520:~$ qpaeq
    There was an error connecting to pulseaudio, please make sure you have the pulseaudio dbus module loaded, exiting...
    teunis@W520:~$ pavucontrol-qt
    The last command to start the pa volume control will open a huge gui window with a very long text that roughly translates to:
    Connection to PulseAudi failed. Automatic retry in 5 sec. In this case the cause is probably wrong configuration of the PULSE_SERVER in /X11 root window or the server is wrongly configured in client.conf. This situation can also exist when PulsAudio locked up and left stale details in the X11 root window. In this case PulseAudio should start automatically, or if not configured that way, you need to manually give the command start-pulseaudio-x11.
    Code:
    teunis@W520:~$ start-pulseaudio-x11
    Connection error: Connection refused
    pa_context_connect()failedt: Connection refused
    A simple re install of things PulseAudio did not bring a solution.

    The content of /ect/pulse/default.pa:
    #!/usr/bin/pulseaudio -nF
    #
    # This file is part of PulseAudio.
    #
    # PulseAudio is free software; you can redistribute it and/or modify it
    # under the terms of the GNU Lesser General Public License as published by
    # the Free Software Foundation; either version 2 of the License, or
    # (at your option) any later version.
    #
    # PulseAudio is distributed in the hope that it will be useful, but
    # WITHOUT ANY WARRANTY; without even the implied warranty of
    # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
    # General Public License for more details.
    #
    # You should have received a copy of the GNU Lesser General Public License
    # along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.

    # This startup script is used only if PulseAudio is started per-user
    # (i.e. not in system mode)

    .fail

    ### Automatically restore the volume of streams and devices
    load-module module-device-restore
    load-module module-stream-restore
    load-module module-card-restore

    ### Automatically augment property information from .desktop files
    ### stored in /usr/share/application
    load-module module-augment-properties

    ### Should be after module-*-restore but before module-*-detect
    load-module module-switch-on-port-available

    ### Load audio drivers statically

    ### Load the integrated PulseAudio equalizer and D-Bus module
    load-module module-equalizer-sink
    load-module module-dbus-protocol
    ### (it's probably better to not load these drivers manually, but instead
    ### use module-udev-detect -- see below -- for doing this automatically)
    #load-module module-alsa-sink
    #load-module module-alsa-source device=hw:1,0
    #load-module module-oss device="/dev/dsp" sink_name=output source_name=input
    #load-module module-oss-mmap device="/dev/dsp" sink_name=output source_name=input
    #load-module module-null-sink
    #load-module module-pipe-sink

    ### Automatically load driver modules depending on the hardware available
    .ifexists module-udev-detect.so
    load-module module-udev-detect
    .else
    ### Use the static hardware detection module (for systems that lack udev support)
    load-module module-detect
    .endif

    ### Automatically connect sink and source if JACK server is present
    .ifexists module-jackdbus-detect.so
    .nofail
    load-module module-jackdbus-detect channels=2
    .fail
    .endif

    ### Automatically load driver modules for Bluetooth hardware
    .ifexists module-bluetooth-policy.so
    load-module module-bluetooth-policy
    .endif

    .ifexists module-bluetooth-discover.so
    load-module module-bluetooth-discover
    .endif

    ### Load several protocols
    .ifexists module-esound-protocol-unix.so
    load-module module-esound-protocol-unix
    .endif
    load-module module-native-protocol-unix

    ### Network access (may be configured with paprefs, so leave this commented
    ### here if you plan to use paprefs)
    #load-module module-esound-protocol-tcp
    #load-module module-native-protocol-tcp
    #load-module module-zeroconf-publish

    ### Load the RTP receiver module (also configured via paprefs, see above)
    #load-module module-rtp-recv

    ### Load the RTP sender module (also configured via paprefs, see above)
    #load-module module-null-sink sink_name=rtp format=s16be channels=2 rate=44100 sink_properties="device.description='RTP Multicast Sink'"
    #load-module module-rtp-send source=rtp.monitor

    ### Load additional modules from GConf settings. This can be configured with the paprefs tool.
    ### Please keep in mind that the modules configured by paprefs might conflict with manually
    ### loaded modules.
    .ifexists module-gconf.so
    .nofail
    load-module module-gconf
    .fail
    .endif

    ### Automatically restore the default sink/source when changed by the user
    ### during runtime
    ### NOTE: This should be loaded as early as possible so that subsequent modules
    ### that look up the default sink/source get the right value
    load-module module-default-device-restore

    ### Automatically move streams to the default sink if the sink they are
    ### connected to dies, similar for sources
    load-module module-rescue-streams

    ### Make sure we always have a sink around, even if it is a null sink.
    load-module module-always-sink

    ### Honour intended role device property
    load-module module-intended-roles

    ### Automatically suspend sinks/sources that become idle for too long
    load-module module-suspend-on-idle

    ### If autoexit on idle is enabled we want to make sure we only quit
    ### when no local session needs us anymore.
    .ifexists module-console-kit.so
    load-module module-console-kit
    .endif
    .ifexists module-systemd-login.so
    load-module module-systemd-login
    .endif

    ### Enable positioned event sounds
    load-module module-position-event-sounds

    ### Cork music/video streams when a phone stream is active
    load-module module-role-cork

    ### Modules to allow autoloading of filters (such as echo cancellation)
    ### on demand. module-filter-heuristics tries to determine what filters
    ### make sense, and module-filter-apply does the heavy-lifting of
    ### loading modules and rerouting streams.
    load-module module-filter-heuristics
    load-module module-filter-apply

    ### Make some devices default
    #set-default-sink output
    #set-default-source input

    ### Use hot-plugged devices like Bluetooth or USB automatically (LP: #1702794)
    .ifexists module-switch-on-connect.so
    load-module module-switch-on-connect
    .endif

    ### Load the integrated PulseAudio equalizer and D-Bus module
    load-module module-equalizer-sink
    load-module module-dbus-protocol
    It's the last eight lines I would like to have confirmed.
    (In 16.04 this configuration is very different.)

    Any other suggestions?

    #2
    1-your /ect/pulse/default.pa: is arranged different than mine , and from what I'v read on the subject the order of it is important as certain things knead to be loaded first, second and so forth.

    2- you have the
    Code:
    ### Load the integrated PulseAudio equalizer and D-Bus module
    load-module module-equalizer-sink
    load-module module-dbus-protocol
    incerted twice ,,,it needs to be at the end of the file ,,,,you have it their , but also in the middle of this statement
    Code:
    ### Load audio drivers statically
    
    ### Load the integrated PulseAudio equalizer and D-Bus module
    load-module module-equalizer-sink
    load-module module-dbus-protocol
    ### (it's probably better to not load these drivers manually, but instead
    ### use module-udev-detect -- see below -- for doing this automatically)
    #load-module module-alsa-sink
    #load-module module-alsa-source device=hw:1,0
    #load-module module-oss device="/dev/dsp" sink_name=output source_name=input
    #load-module module-oss-mmap device="/dev/dsp" sink_name=output source_name=input
    #load-module module-null-sink
    #load-module module-pipe-sink
    that should read

    Code:
    ### Load audio drivers statically
    ### (it's probably better to not load these drivers manually, but instead
    ### use module-udev-detect -- see below -- for doing this automatically)
    #load-module module-alsa-sink
    #load-module module-alsa-source device=hw:1,0
    #load-module module-oss device="/dev/dsp" sink_name=output source_name=input
    #load-module module-oss-mmap device="/dev/dsp" sink_name=output source_name=input
    #load-module module-null-sink
    #load-module module-pipe-sink
    like I said this file has to be arranged in a specific order ,,,so

    hears mine

    Code:
    #!/usr/bin/pulseaudio -nF
    #
    # This file is part of PulseAudio.
    #
    # PulseAudio is free software; you can redistribute it and/or modify it
    # under the terms of the GNU Lesser General Public License as published by
    # the Free Software Foundation; either version 2 of the License, or
    # (at your option) any later version.
    #
    # PulseAudio is distributed in the hope that it will be useful, but
    # WITHOUT ANY WARRANTY; without even the implied warranty of
    # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
    # General Public License for more details.
    #
    # You should have received a copy of the GNU Lesser General Public License
    # along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.
    
    # This startup script is used only if PulseAudio is started per-user
    # (i.e. not in system mode)
    
    .nofail
    
    ### Load something into the sample cache
    #load-sample-lazy x11-bell /usr/share/sounds/freedesktop/stereo/bell.oga
    #load-sample-lazy pulse-hotplug /usr/share/sounds/freedesktop/stereo/device-added.oga
    #load-sample-lazy pulse-coldplug /usr/share/sounds/freedesktop/stereo/device-added.oga
    #load-sample-lazy pulse-access /usr/share/sounds/freedesktop/stereo/message.oga
    
    .fail
    
    ### Automatically restore the volume of streams and devices
    load-module module-device-restore
    load-module module-stream-restore
    load-module module-card-restore
    
    ### Automatically augment property information from .desktop files
    ### stored in /usr/share/application
    load-module module-augment-properties
    
    ### Should be after module-*-restore but before module-*-detect
    load-module module-switch-on-port-available
    
    ### Load audio drivers statically
    ### (it's probably better to not load these drivers manually, but instead
    ### use module-udev-detect -- see below -- for doing this automatically)
    #load-module module-alsa-sink
    #load-module module-alsa-source device=hw:1,0
    #load-module module-oss device="/dev/dsp" sink_name=output source_name=input
    #load-module module-oss-mmap device="/dev/dsp" sink_name=output source_name=input
    #load-module module-null-sink
    #load-module module-pipe-sink
    
    ### Automatically load driver modules depending on the hardware available
    .ifexists module-udev-detect.so
    load-module module-udev-detect
    .else
    ### Use the static hardware detection module (for systems that lack udev support)
    load-module module-detect
    .endif
    
    ### Automatically connect sink and source if JACK server is present
    .ifexists module-jackdbus-detect.so
    .nofail
    load-module module-jackdbus-detect channels=2
    .fail
    .endif
    
    ### Automatically load driver modules for Bluetooth hardware
    .ifexists module-bluetooth-policy.so
    load-module module-bluetooth-policy
    .endif
    
    .ifexists module-bluetooth-discover.so
    load-module module-bluetooth-discover
    .endif
    
    ### Load several protocols
    .ifexists module-esound-protocol-unix.so
    load-module module-esound-protocol-unix
    .endif
    load-module module-native-protocol-unix
    
    ### Network access (may be configured with paprefs, so leave this commented
    ### here if you plan to use paprefs)
    #load-module module-esound-protocol-tcp
    #load-module module-native-protocol-tcp
    #load-module module-zeroconf-publish
    
    ### Load the RTP receiver module (also configured via paprefs, see above)
    #load-module module-rtp-recv
    
    ### Load the RTP sender module (also configured via paprefs, see above)
    #load-module module-null-sink sink_name=rtp format=s16be channels=2 rate=44100 sink_properties="device.description='RTP Multicast Sink'"
    #load-module module-rtp-send source=rtp.monitor
    
    ### Load additional modules from GConf settings. This can be configured with the paprefs tool.
    ### Please keep in mind that the modules configured by paprefs might conflict with manually
    ### loaded modules.
    .ifexists module-gconf.so
    .nofail
    load-module module-gconf
    .fail
    .endif
    
    ### Automatically restore the default sink/source when changed by the user
    ### during runtime
    ### NOTE: This should be loaded as early as possible so that subsequent modules
    ### that look up the default sink/source get the right value
    load-module module-default-device-restore
    
    ### Automatically move streams to the default sink if the sink they are
    ### connected to dies, similar for sources
    load-module module-rescue-streams
    
    ### Make sure we always have a sink around, even if it is a null sink.
    load-module module-always-sink
    
    ### Honour intended role device property
    load-module module-intended-roles
    
    ### Automatically suspend sinks/sources that become idle for too long
    load-module module-suspend-on-idle
    
    ### If autoexit on idle is enabled we want to make sure we only quit
    ### when no local session needs us anymore.
    .ifexists module-console-kit.so
    load-module module-console-kit
    .endif
    .ifexists module-systemd-login.so
    load-module module-systemd-login
    .endif
    
    ### Enable positioned event sounds
    load-module module-position-event-sounds
    
    ### Cork music/video streams when a phone stream is active
    #load-module module-role-cork
    
    ### Modules to allow autoloading of filters (such as echo cancellation)
    ### on demand. module-filter-heuristics tries to determine what filters
    ### make sense, and module-filter-apply does the heavy-lifting of
    ### loading modules and rerouting streams.
    load-module module-filter-heuristics
    load-module module-filter-apply
    
    # X11 modules should not be started from default.pa so that one daemon
    # can be shared by multiple sessions.
    
    ### Load X11 bell module
    #load-module module-x11-bell sample=x11-bell
    
    ### Register ourselves in the X11 session manager
    #load-module module-x11-xsmp
    
    ### Publish connection data in the X11 root window
    #.ifexists module-x11-publish.so
    #.nofail
    #load-module module-x11-publish
    #.fail
    #.endif
    
    ### Make some devices default
    #set-default-sink output
    #set-default-source input
    
    ### Load the integrated PulseAudio equalizer and D-Bus module
    load-module module-equalizer-sink
    load-module module-dbus-protocol
    VINNY
    i7 4core HT 8MB L3 2.9GHz
    16GB RAM
    Nvidia GTX 860M 4GB RAM 1152 cuda cores

    Comment


      #3
      Wow.

      Very well observed!
      Yes that was the problem, apparently I middle clicked the moment the file opened and again at the bottom.

      In hindsight there is some logic to the error, some of the modules were already loaded before it was expected by the next step in the script.

      I find it a bit curious this equaliser has disappeared from the standard set-up and now you even have to manually add it to the K launcher.

      Thanks again, have a beer

      Comment


        #4
        Originally posted by Teunis View Post
        I find it a bit curious this equaliser has disappeared from the standard set-up and now you even have to manually add it to the K launcher.

        Thanks again, have a beer
        yum ,,,that beer was good ,thank you ,,,

        I to find it strange that it (the EQ) is not a standard part of the pulse audio installation anymore , I know a lot of audio players have a software EQ built it , but is it not better to have a system wide one that works at the sound system level ,,,,,I think so .

        take spotify for instance , it has no built in EQ ,,,,,I pay for the premium high quality stream ,,,, and it sounds grate through my surround system , but through the headphones the EQ helps a lot.

        VINNY
        i7 4core HT 8MB L3 2.9GHz
        16GB RAM
        Nvidia GTX 860M 4GB RAM 1152 cuda cores

        Comment


          #5
          I too have Spotify, it is included in my internet account.

          Usually I use it on my Android phone that is then connected to a ~40 y/o WIFI.
          This laptop has a nice Dell QHD external screen with sound bar and it hardly needs any adjustment.

          (Which reminds me, the missus told me to listen to a certain Fauré piece)

          Comment


            #6
            Originally posted by Teunis View Post
            I too have Spotify, it is included in my internet account.

            Usually I use it on my Android phone that is then connected to a ~40 y/o WIFI.
            This laptop has a nice Dell QHD external screen with sound bar and it hardly needs any adjustment.

            (Which reminds me, the missus told me to listen to a certain Fauré piece)
            the only one I could find was Faures , ,,,,,which one ?

            EDIT:OK had to copy and past to get the é

            Oooo classical ,,,,soothing

            VINNY
            Last edited by vinnywright; Mar 04, 2018, 05:16 PM.
            i7 4core HT 8MB L3 2.9GHz
            16GB RAM
            Nvidia GTX 860M 4GB RAM 1152 cuda cores

            Comment


              #7
              Gabriel Fauré, specifically Après un rêve (After a dream), yes classical.

              Today they had a special commemoration service for the Danish prince Henrik who died a few weeks ago.
              The missus lives not far from one of the palaces and this was in the palace chapel.

              About the é and ê, set your keyboard to US International with dead keys and it's easy, start with the accent, followed by the letter.
              Via AltGR you get more characters like ßå©úµ.
              Last edited by Teunis; Mar 04, 2018, 05:41 PM.

              Comment


                #8
                Way to go, VINNY!
                Whether you have one or not, VINNY, you've reached the Linux Greybeard status!
                "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
                – John F. Kennedy, February 26, 1962.

                Comment


                  #9
                  Originally posted by vinny
                  EDIT:OK had to copy and past to get the é
                  system settings->keyboard, advanced tab, position of compose key. I use Pause or Scroll lock. Then, compose e '
                  Regards, John Little

                  Comment


                    #10
                    Originally posted by GreyGeek View Post
                    Way to go, VINNY!
                    Whether you have one or not, VINNY, you've reached the Linux Greybeard status!
                    O yes , I have one , when I let it grow

                    VINNY
                    i7 4core HT 8MB L3 2.9GHz
                    16GB RAM
                    Nvidia GTX 860M 4GB RAM 1152 cuda cores

                    Comment


                      #11
                      Originally posted by jlittle View Post
                      system settings->keyboard, advanced tab, position of compose key. I use Pause or Scroll lock. Then, compose e '
                      ok then ,,,,,thank you I will look into this as well .

                      Originally posted by Teunis View Post
                      Gabriel Fauré, specifically Après un rêve (After a dream), yes classical.

                      About the é and ê, set your keyboard to US International with dead keys and it's easy, start with the accent, followed by the letter.
                      Via AltGR you get more characters like ßå©úµ.
                      cool thanks .

                      VINNY
                      i7 4core HT 8MB L3 2.9GHz
                      16GB RAM
                      Nvidia GTX 860M 4GB RAM 1152 cuda cores

                      Comment


                        #12
                        Hmm, I followed the same route as given for 17.10 by vinny in this post:
                        https://www.kubuntuforums.net/showth...an-Win10/page2

                        While installing pulseaudi-equaliser a bunch of dependencies were installed including python-qt4 but nothing qt5.
                        Looking back in the history of Muon for pyqt5 I noticed several python3-pyqt5 packages were part of the original download and installation.
                        Two were updated the day I installed, python3-pyqt5.webkit and python3-pyqt5.qtsvg.

                        Open Muon, press Ctrl+H and type pyqt5 in the search box to see.

                        Oh by the way, to get best replies you should realy ask this question in the 18.04 hardware group.


                        Last edited by Teunis; Sep 22, 2018, 01:38 PM.

                        Comment

                        Working...
                        X