I have to restart pulseaudio.service every time to access the built-in microphone

As you’re on KDE like me, that’s exceedingly simple:

  1. Execute:

    sudo nano --backup /usr/local/bin/PulseRestart
    
  2. Copy-paste the following in there:

    #!/bin/bash
    sleep 5
    systemctl --user restart pulseaudio.service
    

    Ctrl+X Enter (and if you do this twice because you made a mistake, you have to add Y to overwrite)

  3. Make this text file an executable file:

    sudo chmod a+x /usr/local/bin/PulseRestart
    
  4. And now go to System Settings

  5. Type start

  6. Click on Autostart

  7. Click on Add Script

  8. Copy-paste /usr/local/bin/PulseRestart in the Shell script path

  9. Click on OK

  10. Quit System Settings

  11. Log off and back on and see if that worked.

If it doesn’t or only does work every now and then, increase the 5 in sleep 5 by 1 second and keep increasing until it does work (or if it’s too slow, decrease that number)

:innocent: