Solved forcing off the computer – endlessly waiting for sound application to exit at sleep/suspend time

OP
grahamperrin

grahamperrin

Son of Beastie

Reaction score: 830
Messages: 2,681

Note to self, before the change:

1624792709408.png


pulseaudio --start --log-target=syslog

Solution

… disable pulseaudio completely, if after that everything still works as expected.

Open /usr/local/etc/pulse/client.conf and uncomment the line with
Code:
autospawn=yes
and set it to no. …

Done, then a shut down to single user mode, then exit to multi user mode and touch wood, things seem to be fine. Things are audible in at least:
  • Chromium
  • Firefox
  • VLC media player.

Working without PulseAudio is not an option for me.

In retrospect, I should have been clearer.

I did, previously, experiment with forced deletion resulting in at least one thing broken. I can't recall what was broken but at the time, the breakage was a showstopper.

I hope to not encounter a show-stopper with PulseAudio not automatically spawning :)

When autospawn is enabled (the default), I do wonder what triggers the automation but for now, I'll be happy with fewer worries before sleeping the computer.



For reference only, things that would have been deleted if I had not applied force:

Code:
# pkg info -x pulseaudio | sort
linux-c7-pulseaudio-libs-10.0_3
pulseaudio-14.2
pulseaudio-qt-1.3
# pkg delete -n linux-c7-pulseaudio-libs
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 2 packages (of 0 packages in the universe):

Installed packages to be REMOVED:
        linux-c7-pulseaudio-libs: 10.0_3
        linux-wps-office: 11.1.0.10161

Number of packages to be removed: 2

The operation will free 994 MiB.
# pkg delete -n pulseaudio-qt
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 2 packages (of 0 packages in the universe):

Installed packages to be REMOVED:
        kdeconnect-kde: 21.04.2
        pulseaudio-qt: 1.3

Number of packages to be removed: 2

The operation will free 4 MiB.
# pkg delete -n pulseaudio
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 291 packages (of 0 packages in the universe):

Installed packages to be REMOVED:
        akonadi: 21.04.2
        akonadi-calendar: 21.04.2
        akonadi-calendar-tools: 21.04.2
        akonadi-contacts: 21.04.2
        akonadi-import-wizard: 21.04.2
        akonadi-mime: 21.04.2
        akonadi-notes: 21.04.2
        akonadi-search: 21.04.2
        akonadiconsole: 21.04.2
        akregator: 21.04.2
        alsa-plugins: 1.2.2
        ark: 21.04.2
        artikulate: 21.04.2
        audiocd-kio: 21.04.2
        baloo-widgets: 21.04.2
        blinken: 21.04.2
        bomber: 21.04.2
        bovo: 21.04.2
        calendarsupport: 21.04.2
        cantor: 21.04.2
        chromium: 91.0.4472.114_1
        cinnamon: 4.8.6_1
        cinnamon-control-center: 4.8.2
        cinnamon-desktop: 4.8.1
        cinnamon-screensaver: 4.8.1
        cinnamon-settings-daemon: 4.8.5
        dolphin: 21.04.2
        dooble: 2021.02.20
        dragon-player: 21.04.2
        efl: 1.25.1_11
        enlightenment: 0.24.2,2
        eventviews: 21.04.2
        falkon: 3.1.0_1
        filelight: 21.04.2
        gnome-settings-daemon: 3.38.2
        granatier: 21.04.2
        grantlee-editor: 21.04.2
        grantleetheme: 21.04.2
        gwenview: 21.04.2
        incidenceeditor: 21.04.2
        ja-kiten: 21.04.2
        k3b: 21.04.2
        kaccounts-integration: 21.04.2
        kaccounts-providers: 21.04.2
        kaddressbook: 21.04.2
        kalarm: 21.04.2
        kalarmcal: 21.04.2
        kalgebra: 21.04.2_1
        kamera: 21.04.2
        kanagram: 21.04.2
        kapman: 21.04.2
        kate: 21.04.2
        katomic: 21.04.2
        kblackbox: 21.04.2
        kblocks: 21.04.2
        kbounce: 21.04.2
        kbreakout: 21.04.2
        kbruch: 21.04.2
        kcalc: 21.04.2
        kcalutils: 21.04.2
        kcharselect: 21.04.2
        kcolorchooser: 21.04.2
        kcron: 21.04.2
        kde-baseapps: 21.04.2_1
        kde5: 5.22.1.21.04.2
        kdeaccessibility: 21.04.2
        kdeadmin: 21.04.2
        kdebugsettings: 21.04.2
        kdeconnect-kde: 21.04.2
        kdeedu: 21.04.2
        kdegames: 21.04.2
        kdegraphics: 21.04.2
        kdegraphics-mobipocket: 21.04.2
        kdegraphics-svgpart: 21.04.2
        kdegraphics-thumbnailers: 21.04.2
        kdemultimedia: 21.04.2
        kdemultimedia-ffmpegthumbs: 21.04.2
        kdenetwork: 21.04.2
        kdenetwork-filesharing: 21.04.2
        kdenlive: 21.04.2_1
        kdepim: 21.04.2
        kdepim-addons: 21.04.2
        kdepim-runtime: 21.04.2
        kdeutils: 21.04.2
        kdf: 21.04.2
        kdialog: 21.04.2
        kdiamond: 21.04.2
        kdiff3: 1.9.2_1
        keditbookmarks: 21.04.2
        kf5-baloo: 5.82.0
        kf5-frameworkintegration: 5.82.0
        kf5-frameworks: 5.82.0
        kf5-kactivities: 5.82.0
        kf5-kactivities-stats: 5.82.0
        kf5-kbookmarks: 5.82.0
        kf5-kcalendarcore: 5.82.0,1
        kf5-kcmutils: 5.82.0
        kf5-kdav: 5.82.0,1
        kf5-kdeclarative: 5.82.0
        kf5-kdelibs4support: 5.82.0
        kf5-kdesignerplugin: 5.82.0
        kf5-kdewebkit: 5.82.0
        kf5-kholidays: 5.82.0
        kf5-khtml: 5.82.0
        kf5-kinit: 5.82.0
        kf5-kio: 5.82.0_1
        kf5-kirigami2: 5.82.0
        kf5-kmediaplayer: 5.82.0
        kf5-knewstuff: 5.82.0
        kf5-knotifications: 5.82.0
        kf5-knotifyconfig: 5.82.0
        kf5-kparts: 5.82.0
        kf5-kquickcharts: 5.82.0
        kf5-kross: 5.82.0_1
        kf5-krunner: 5.82.0
        kf5-ktexteditor: 5.82.0
        kf5-ktextwidgets: 5.82.0
        kf5-kwallet: 5.82.0
        kf5-kxmlgui: 5.82.0
        kf5-kxmlrpcclient: 5.82.0
        kf5-plasma-framework: 5.82.0_1
        kf5-purpose: 5.82.0
        kf5-qqc2-desktop-style: 5.82.0
        kf5-syndication: 5.82.0,1
        kfind: 21.04.2
        kfloppy: 21.04.2
        kfourinline: 21.04.2
        kgeography: 21.04.2
        kgpg: 21.04.2
        khangman: 21.04.2
        khelpcenter: 21.04.2
        kidentitymanagement: 21.04.2
        kig: 21.04.2
        killbots: 21.04.2
        kimap: 21.04.2
        kio-extras: 21.04.2
        kio-fuse: 5.0.1
        kio-gdrive: 21.04.2
        kipi-plugins: 21.04.2
        kiriki: 21.04.2
        kitinerary: 21.04.2
        kjumpingcube: 21.04.2
        kldap: 21.04.2
        klettres: 21.04.2
        klickety: 21.04.2
        klines: 21.04.2
        kmag: 21.04.2
        kmahjongg: 21.04.2
        kmail: 21.04.2
        kmail-account-wizard: 21.04.2
        kmailtransport: 21.04.2
        kmbox: 21.04.2
        kmime: 21.04.2
        kmines: 21.04.2
        kmix: 21.04.2
        kmousetool: 21.04.2
        kmouth: 21.04.2
        kmplot: 21.04.2
        knavalbattle: 21.04.2
        knetwalk: 21.04.2
        knights: 21.04.2
        kolf: 21.04.2
        kollision: 21.04.2
        kolourpaint: 21.04.2
        kompare: 21.04.2
        konqueror: 21.04.2
        konquest: 21.04.2
        konsole: 21.04.2
        kontact: 21.04.2
        kontactinterface: 21.04.2
        kopete: 21.04.2
        korganizer: 21.04.2
        kpat: 21.04.2
        kpimtextedit: 21.04.2
        krdc: 21.04.2
        kreversi: 21.04.2
        krfb: 21.04.2
        krita: 4.4.5_17
        kruler: 21.04.2
        kshisen: 21.04.2
        ksirk: 21.04.2
        ksmtp: 21.04.2
        ksnakeduel: 21.04.2
        kspaceduel: 21.04.2
        ksquares: 21.04.2
        ksudoku: 21.04.2_1
        ksystemlog: 21.04.2
        kteatime: 21.04.2
        ktimer: 21.04.2
        ktnef: 21.04.2
        ktuberling: 21.04.2
        kturtle: 21.04.2
        kubrick: 21.04.2_1
        kwalletmanager: 21.04.2
        kwordquiz: 21.04.2
        libgravatar: 21.04.2
        libkcddb: 21.04.2
        libkcompactdisc: 21.04.2
        libkdegames: 21.04.2
        libkdepim: 21.04.2
        libkeduvocdocument: 21.04.2
        libkgapi: 21.04.2
        libkipi: 21.04.2
        libkleo: 21.04.2
        libkomparediff2: 21.04.2
        libksane: 21.04.2
        libksieve: 21.04.2
        libkvkontakte: 5.0.0_4
        libopenshot-audio: 0.2.0.59
        lskat: 21.04.2
        lxqt: 0.17.0
        lxqt-panel: 0.17.1
        mailcommon: 21.04.2
        mailimporter: 21.04.2
        marble: 21.04.2
        mbox-importer: 21.04.2
        messagelib: 21.04.2
        muffin: 4.8.0_1
        nautilus: 3.36.3
        ncpamixer: 1.3.3.1_1
        nemo: 4.8.3
        neochat: 1.2.0_2
        obs-studio: 27.0.1_1
        okular: 21.04.2
        openshot: 2.5.1.732_2
        orca: 40.0_1
        otter-browser: 1.0.02
        palapeli: 21.04.2
        parley: 21.04.2
        pavucontrol: 4.0_2
        picmi: 21.04.2
        pim-data-exporter: 21.04.2
        pim-sieve-editor: 21.04.2
        pimcommon: 21.04.2
        plasma5-breeze: 5.22.1_1
        plasma5-breeze-gtk: 5.22.1
        plasma5-discover: 5.22.1
        plasma5-drkonqi: 5.22.1
        plasma5-kactivitymanagerd: 5.22.1
        plasma5-kde-cli-tools: 5.22.1
        plasma5-kde-gtk-config: 5.22.1
        plasma5-kdeplasma-addons: 5.22.1
        plasma5-kgamma5: 5.22.1
        plasma5-khotkeys: 5.22.1
        plasma5-kinfocenter: 5.22.1_1
        plasma5-kmenuedit: 5.22.1
        plasma5-kscreen: 5.22.1
        plasma5-kscreenlocker: 5.22.1
        plasma5-ksshaskpass: 5.22.1
        plasma5-ksysguard: 5.22.0
        plasma5-kwallet-pam: 5.22.1
        plasma5-kwin: 5.22.1_1
        plasma5-kwrited: 5.22.1
        plasma5-libksysguard: 5.22.1
        plasma5-milou: 5.22.1
        plasma5-oxygen: 5.22.1
        plasma5-plasma: 5.22.1
        plasma5-plasma-browser-integration: 5.22.1
        plasma5-plasma-desktop: 5.22.1
        plasma5-plasma-disks: 5.22.1
        plasma5-plasma-integration: 5.22.1
        plasma5-plasma-sdk: 5.22.1
        plasma5-plasma-workspace: 5.22.1
        plasma5-polkit-kde-agent-1: 5.22.1
        plasma5-powerdevil: 5.22.1
        plasma5-sddm-kcm: 5.22.1
        plasma5-systemsettings: 5.22.1
        print-manager: 21.04.2
        pulseaudio: 14.2
        pulseaudio-qt: 1.3
        py38-libopenshot: 0.2.5.517
        py38-qt5-webengine: 5.15.4_1
        py38-speech-dispatcher: 0.10.2
        qt5-speech: 5.15.2_2
        qt5-webengine: 5.15.2_3
        qutebrowser: 2.2.3
        remmina: 1.4.17
        rocs: 21.04.2
        sigil: 1.6.0
        signon-kwallet-extension: 21.04.2
        simplescreenrecorder: 0.4.3_1
        skanlite: 2.2.0_1
        spectacle: 21.04.2
        speech-dispatcher: 0.10.2
        spice-gtk: 0.37
        step: 21.04.2_1
        terminology: 1.9.0
        totem: 3.38.1
        vscode: 1.56.2_1
        waterfox: 2019.12.c
        zanshin: 0.5.71

Number of packages to be removed: 291

The operation will free 3 GiB.
#
 
OP
grahamperrin

grahamperrin

Son of Beastie

Reaction score: 830
Messages: 2,681

For reference

My current edition of the script:

– removed 2021-09-15 –

Results of recent runs

2021-06-28:

Code:
root@mowa219-gjp4-8570p:~ # /usr/local/sbin/suspend.sh
hw.snd.default_unit: 1 -> 1
grahampe kmix        2732    9 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kmix        2732   10 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kmix        2732   11 /dev        105 crw-rw-rw-  mixer2 rw
grahampe kded5       2686 3194 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       2686 3195 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       2686 3196 /dev        105 crw-rw-rw-  mixer2 rw
grahampe kded5       2686 3194 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       2686 3195 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       2686 3196 /dev        105 crw-rw-rw-  mixer2 rw
kill: 6860: No such process
kill: 6860: No such process
kill: 6860: No such process
fstat: kinfo_getfile(): No such process
fstat: kinfo_getfile(): No such process
grahampe kded5       2686 3194 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       2686 3195 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       2686 3196 /dev        105 crw-rw-rw-  mixer2 rw
fstat: kinfo_getfile(): No such process
^C
root@mowa219-gjp4-8570p:~ # /usr/local/sbin/suspend.sh
hw.snd.default_unit: 1 -> 1
^C
root@mowa219-gjp4-8570p:~ #

2021-06-30 – two rounds before I chose to sleep the computer, the second not long after the first (maybe three or four minutes), I was surprised to find kded5 running in the second round:

Code:
root@mowa219-gjp4-8570p:~ # /usr/local/sbin/suspend.sh
hw.snd.default_unit: 1 -> 1
grahampe kded5       3037 3196 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3197 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3198 /dev        105 crw-rw-rw-  mixer2 rw
grahampe kded5       3037 3199 /dev        529 crw-rw-rw-  mixer3 rw
grahampe kmix        3103   10 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kmix        3103   11 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kmix        3103   12 /dev        105 crw-rw-rw-  mixer2 rw
grahampe kmix        3103   13 /dev        529 crw-rw-rw-  mixer3 rw
grahampe kded5       3037 3196 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3197 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3198 /dev        105 crw-rw-rw-  mixer2 rw
grahampe kded5       3037 3199 /dev        529 crw-rw-rw-  mixer3 rw
fstat: kinfo_getfile(): No such process
grahampe kded5       3037 3196 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3197 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3198 /dev        105 crw-rw-rw-  mixer2 rw
grahampe kded5       3037 3199 /dev        529 crw-rw-rw-  mixer3 rw
grahampe kded5       3037 3196 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3197 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3198 /dev        105 crw-rw-rw-  mixer2 rw
grahampe kded5       3037 3199 /dev        529 crw-rw-rw-  mixer3 rw
grahampe kded5       3037 3196 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3197 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3198 /dev        105 crw-rw-rw-  mixer2 rw
grahampe kded5       3037 3199 /dev        529 crw-rw-rw-  mixer3 rw
grahampe kded5       3037 3196 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3197 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3198 /dev        105 crw-rw-rw-  mixer2 rw
grahampe kded5       3037 3199 /dev        529 crw-rw-rw-  mixer3 rw
grahampe kded5       3037 3196 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3197 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3198 /dev        105 crw-rw-rw-  mixer2 rw
grahampe kded5       3037 3199 /dev        529 crw-rw-rw-  mixer3 rw
grahampe kded5       3037 3196 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3197 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3198 /dev        105 crw-rw-rw-  mixer2 rw
grahampe kded5       3037 3199 /dev        529 crw-rw-rw-  mixer3 rw
grahampe kded5       3037 3196 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3197 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3198 /dev        105 crw-rw-rw-  mixer2 rw
grahampe kded5       3037 3199 /dev        529 crw-rw-rw-  mixer3 rw
grahampe kded5       3037 3196 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3197 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3198 /dev        105 crw-rw-rw-  mixer2 rw
grahampe kded5       3037 3199 /dev        529 crw-rw-rw-  mixer3 rw
grahampe kded5       3037 3196 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3197 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3198 /dev        105 crw-rw-rw-  mixer2 rw
grahampe kded5       3037 3199 /dev        529 crw-rw-rw-  mixer3 rw
grahampe kded5       3037 3196 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3197 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3198 /dev        105 crw-rw-rw-  mixer2 rw
grahampe kded5       3037 3199 /dev        529 crw-rw-rw-  mixer3 rw
grahampe kded5       3037 3196 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3197 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3198 /dev        105 crw-rw-rw-  mixer2 rw
grahampe kded5       3037 3199 /dev        529 crw-rw-rw-  mixer3 rw
grahampe kded5       3037 3196 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3197 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3198 /dev        105 crw-rw-rw-  mixer2 rw
grahampe kded5       3037 3199 /dev        529 crw-rw-rw-  mixer3 rw
grahampe kded5       3037 3196 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3197 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3198 /dev        105 crw-rw-rw-  mixer2 rw
grahampe kded5       3037 3199 /dev        529 crw-rw-rw-  mixer3 rw
grahampe kded5       3037 3196 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3197 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3198 /dev        105 crw-rw-rw-  mixer2 rw
grahampe kded5       3037 3199 /dev        529 crw-rw-rw-  mixer3 rw
grahampe kded5       3037 3196 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3197 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3198 /dev        105 crw-rw-rw-  mixer2 rw
grahampe kded5       3037 3199 /dev        529 crw-rw-rw-  mixer3 rw
grahampe kded5       3037 3196 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3197 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3198 /dev        105 crw-rw-rw-  mixer2 rw
grahampe kded5       3037 3199 /dev        529 crw-rw-rw-  mixer3 rw
grahampe kded5       3037 3196 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3197 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3198 /dev        105 crw-rw-rw-  mixer2 rw
grahampe kded5       3037 3199 /dev        529 crw-rw-rw-  mixer3 rw
grahampe kded5       3037 3196 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3197 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3198 /dev        105 crw-rw-rw-  mixer2 rw
grahampe kded5       3037 3199 /dev        529 crw-rw-rw-  mixer3 rw
grahampe kded5       3037 3196 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3197 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3198 /dev        105 crw-rw-rw-  mixer2 rw
grahampe kded5       3037 3199 /dev        529 crw-rw-rw-  mixer3 rw
grahampe kded5       3037 3196 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3197 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3198 /dev        105 crw-rw-rw-  mixer2 rw
grahampe kded5       3037 3199 /dev        529 crw-rw-rw-  mixer3 rw
grahampe kded5       3037 3196 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3197 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3198 /dev        105 crw-rw-rw-  mixer2 rw
grahampe kded5       3037 3199 /dev        529 crw-rw-rw-  mixer3 rw
grahampe kded5       3037 3196 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3197 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3198 /dev        105 crw-rw-rw-  mixer2 rw
grahampe kded5       3037 3199 /dev        529 crw-rw-rw-  mixer3 rw
grahampe kded5       3037 3196 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3197 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3198 /dev        105 crw-rw-rw-  mixer2 rw
grahampe kded5       3037 3199 /dev        529 crw-rw-rw-  mixer3 rw
grahampe kded5       6448 3196 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       6448 3197 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       6448 3198 /dev        105 crw-rw-rw-  mixer2 rw
grahampe kded5       6448 3199 /dev        529 crw-rw-rw-  mixer3 rw
grahampe kded5       3037 3196 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3197 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3198 /dev        105 crw-rw-rw-  mixer2 rw
grahampe kded5       3037 3199 /dev        529 crw-rw-rw-  mixer3 rw
grahampe kded5       3037 3196 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3197 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3198 /dev        105 crw-rw-rw-  mixer2 rw
grahampe kded5       3037 3199 /dev        529 crw-rw-rw-  mixer3 rw
grahampe kded5       3037 3196 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3197 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3198 /dev        105 crw-rw-rw-  mixer2 rw
grahampe kded5       3037 3199 /dev        529 crw-rw-rw-  mixer3 rw
grahampe kded5       3037 3196 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3197 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3198 /dev        105 crw-rw-rw-  mixer2 rw
grahampe kded5       3037 3199 /dev        529 crw-rw-rw-  mixer3 rw
grahampe kded5       3037 3196 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3197 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3198 /dev        105 crw-rw-rw-  mixer2 rw
grahampe kded5       3037 3199 /dev        529 crw-rw-rw-  mixer3 rw
grahampe kded5       3037 3196 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3197 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3198 /dev        105 crw-rw-rw-  mixer2 rw
grahampe kded5       3037 3199 /dev        529 crw-rw-rw-  mixer3 rw
grahampe kded5       3037 3196 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3197 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3198 /dev        105 crw-rw-rw-  mixer2 rw
grahampe kded5       3037 3199 /dev        529 crw-rw-rw-  mixer3 rw
grahampe kded5       3037 3196 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3197 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3198 /dev        105 crw-rw-rw-  mixer2 rw
grahampe kded5       3037 3199 /dev        529 crw-rw-rw-  mixer3 rw
grahampe kded5       3037 3196 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3197 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3198 /dev        105 crw-rw-rw-  mixer2 rw
grahampe kded5       3037 3199 /dev        529 crw-rw-rw-  mixer3 rw
grahampe kded5       3037 3196 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3197 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3198 /dev        105 crw-rw-rw-  mixer2 rw
grahampe kded5       3037 3199 /dev        529 crw-rw-rw-  mixer3 rw
grahampe kded5       3037 3196 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3197 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3198 /dev        105 crw-rw-rw-  mixer2 rw
grahampe kded5       3037 3199 /dev        529 crw-rw-rw-  mixer3 rw
grahampe kded5       3037 3196 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3197 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3198 /dev        105 crw-rw-rw-  mixer2 rw
grahampe kded5       3037 3199 /dev        529 crw-rw-rw-  mixer3 rw
grahampe kded5       3037 3196 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3197 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3198 /dev        105 crw-rw-rw-  mixer2 rw
grahampe kded5       3037 3199 /dev        529 crw-rw-rw-  mixer3 rw
grahampe kded5       3037 3196 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3197 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3198 /dev        105 crw-rw-rw-  mixer2 rw
grahampe kded5       3037 3199 /dev        529 crw-rw-rw-  mixer3 rw
grahampe kded5       3037 3196 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3197 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3198 /dev        105 crw-rw-rw-  mixer2 rw
grahampe kded5       3037 3199 /dev        529 crw-rw-rw-  mixer3 rw
grahampe kded5       3037 3196 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3197 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3198 /dev        105 crw-rw-rw-  mixer2 rw
grahampe kded5       3037 3199 /dev        529 crw-rw-rw-  mixer3 rw
grahampe kded5       3037 3196 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3197 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3198 /dev        105 crw-rw-rw-  mixer2 rw
grahampe kded5       3037 3199 /dev        529 crw-rw-rw-  mixer3 rw
grahampe kded5       3037 3196 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3197 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3198 /dev        105 crw-rw-rw-  mixer2 rw
grahampe kded5       3037 3199 /dev        529 crw-rw-rw-  mixer3 rw
grahampe kded5       3037 3196 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3197 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3198 /dev        105 crw-rw-rw-  mixer2 rw
grahampe kded5       3037 3199 /dev        529 crw-rw-rw-  mixer3 rw
grahampe kded5       3037 3196 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3197 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3198 /dev        105 crw-rw-rw-  mixer2 rw
grahampe kded5       3037 3199 /dev        529 crw-rw-rw-  mixer3 rw
grahampe kded5       3037 3196 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3197 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3198 /dev        105 crw-rw-rw-  mixer2 rw
grahampe kded5       3037 3199 /dev        529 crw-rw-rw-  mixer3 rw
grahampe kded5       3037 3196 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3197 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3198 /dev        105 crw-rw-rw-  mixer2 rw
grahampe kded5       3037 3199 /dev        529 crw-rw-rw-  mixer3 rw
grahampe kded5       3037 3196 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3197 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3198 /dev        105 crw-rw-rw-  mixer2 rw
grahampe kded5       3037 3199 /dev        529 crw-rw-rw-  mixer3 rw
grahampe kded5       3037 3196 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3197 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3198 /dev        105 crw-rw-rw-  mixer2 rw
grahampe kded5       3037 3199 /dev        529 crw-rw-rw-  mixer3 rw
grahampe kded5       3037 3196 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3197 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3198 /dev        105 crw-rw-rw-  mixer2 rw
grahampe kded5       3037 3199 /dev        529 crw-rw-rw-  mixer3 rw
grahampe kded5       3037 3196 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3197 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3198 /dev        105 crw-rw-rw-  mixer2 rw
grahampe kded5       3037 3199 /dev        529 crw-rw-rw-  mixer3 rw
grahampe kded5       3037 3196 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3197 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3198 /dev        105 crw-rw-rw-  mixer2 rw
grahampe kded5       3037 3199 /dev        529 crw-rw-rw-  mixer3 rw
grahampe kded5       3037 3196 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3197 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3198 /dev        105 crw-rw-rw-  mixer2 rw
grahampe kded5       3037 3199 /dev        529 crw-rw-rw-  mixer3 rw
grahampe kded5       3037 3196 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3197 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3198 /dev        105 crw-rw-rw-  mixer2 rw
grahampe kded5       3037 3199 /dev        529 crw-rw-rw-  mixer3 rw
grahampe kded5       3037 3196 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3197 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3198 /dev        105 crw-rw-rw-  mixer2 rw
grahampe kded5       3037 3199 /dev        529 crw-rw-rw-  mixer3 rw
grahampe kded5       3037 3196 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3197 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3198 /dev        105 crw-rw-rw-  mixer2 rw
grahampe kded5       3037 3199 /dev        529 crw-rw-rw-  mixer3 rw
grahampe kded5       3037 3196 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3197 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3198 /dev        105 crw-rw-rw-  mixer2 rw
grahampe kded5       3037 3199 /dev        529 crw-rw-rw-  mixer3 rw
grahampe kded5       3037 3196 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3197 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3198 /dev        105 crw-rw-rw-  mixer2 rw
grahampe kded5       3037 3199 /dev        529 crw-rw-rw-  mixer3 rw
grahampe kded5       3037 3196 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3197 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3198 /dev        105 crw-rw-rw-  mixer2 rw
grahampe kded5       3037 3199 /dev        529 crw-rw-rw-  mixer3 rw
grahampe kded5       3037 3196 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3197 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3198 /dev        105 crw-rw-rw-  mixer2 rw
grahampe kded5       3037 3199 /dev        529 crw-rw-rw-  mixer3 rw
grahampe kded5       3037 3196 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3197 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       3037 3198 /dev        105 crw-rw-rw-  mixer2 rw
grahampe kded5       3037 3199 /dev        529 crw-rw-rw-  mixer3 rw
fstat: kinfo_getfile(): No such process
^C
root@mowa219-gjp4-8570p:~ # /usr/local/sbin/suspend.sh
hw.snd.default_unit: 1 -> 1
^C
root@mowa219-gjp4-8570p:~ #

Code:
root@mowa219-gjp4-8570p:~ # /usr/local/sbin/suspend.sh
hw.snd.default_unit: 1 -> 1
grahampe kded5       6736 3195 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       6736 3196 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       6736 3197 /dev        105 crw-rw-rw-  mixer2 rw
grahampe kded5       6736 3198 /dev        529 crw-rw-rw-  mixer3 rw
grahampe kded5       6736 3195 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       6736 3196 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       6736 3197 /dev        105 crw-rw-rw-  mixer2 rw
grahampe kded5       6736 3198 /dev        529 crw-rw-rw-  mixer3 rw
grahampe kded5       6736 3195 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       6736 3196 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5       6736 3197 /dev        105 crw-rw-rw-  mixer2 rw
grahampe kded5       6736 3198 /dev        529 crw-rw-rw-  mixer3 rw
fstat: kinfo_getfile(): No such process
fstat: kinfo_getfile(): No such process
fstat: kinfo_getfile(): No such process
kill: 6736: No such process
kill: 6736: No such process
kill: 6736: No such process
kill: 6736: No such process
^C
root@mowa219-gjp4-8570p:~ # /usr/local/sbin/suspend.sh
hw.snd.default_unit: 1 -> 1
^C
root@mowa219-gjp4-8570p:~ # /usr/local/sbin/suspend.sh
hw.snd.default_unit: 1 -> 1
^C
root@mowa219-gjp4-8570p:~ #

This afternoon:

Code:
root@mowa219-gjp4-8570p:~ # /usr/local/sbin/suspend.sh
hw.snd.default_unit: 1 -> 1
grahampe kded5      15006 3196 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5      15006 3197 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5      15006 3198 /dev        105 crw-rw-rw-  mixer2 rw
grahampe firefox    17453   89 /dev        680 crw-rw-rw-  dsp1.0  w
grahampe kded5      15006 3196 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5      15006 3197 /dev        104 crw-rw-rw-  mixer1 rw
grahampe kded5      15006 3198 /dev        105 crw-rw-rw-  mixer2 rw
fstat: kinfo_getfile(): No such process
fstat: kinfo_getfile(): No such process
fstat: kinfo_getfile(): No such process
kill: 15006: No such process
kill: 15006: No such process
kill: 15006: No such process
^C
root@mowa219-gjp4-8570p:~ # zpool status
  pool: copperbowl
state: ONLINE
status: One or more devices has been taken offline by the administrator.
        Sufficient replicas exist for the pool to continue functioning in a
        degraded state.
action: Online the device using 'zpool online' or replace the device with
        'zpool replace'.
  scan: scrub repaired 0B in 01:36:53 with 0 errors on Sun Jun 20 21:25:07 2021
config:

        NAME                    STATE     READ WRITE CKSUM
        copperbowl              ONLINE       0     0     0
          ada0p4.eli            ONLINE       0     0     0
        cache
          gpt/cache-copperbowl  OFFLINE      0     0     0

errors: No known data errors
root@mowa219-gjp4-8570p:~ # nano /etc/resolvconf.conf
root@mowa219-gjp4-8570p:~ # /usr/local/sbin/suspend.sh
hw.snd.default_unit: 1 -> 1
^C
root@mowa219-gjp4-8570p:~ #
 
Last edited:
OP
grahamperrin

grahamperrin

Son of Beastie

Reaction score: 830
Messages: 2,681

Audio Mixer (audio/gtk-mixer) and KMix audio/kmix)

KMix is a runtime requirement for KDE Multimedia (multimedia/kdemultimedia).

Since I forced deletion of KMix, touch wood:
  1. the pre-sleep script no longer kills kded5 (x11/kf5-kded)
  2. after waking the computer from sleep I no longer need to manually run kded5 &
  3. the system tray looks good (it never looked tidy after a manual run of kded5).
On one hand, I miss the system tray volume control of KMix.

On the other hand, I could never remember which of the KMix buttons from the system tray pop-up was intended to open the main window. (More often than not, I accidentally got the configuration window, from which the main window could not be opened).

Audio Mixer has a main window and system tray item that are non-ambiguous. The main window is particularly nice.
 
OP
grahamperrin

grahamperrin

Son of Beastie

Reaction score: 830
Messages: 2,681

Next to do: prevent automated reinstallation.

Done, with verification that pkg upgrade does not automatically reinstall the true audio/kmix:

Code:
% date ; pwd ; whoami ; uname -KrU
Sat 21 Aug 2021 11:55:56 BST
/usr/home/grahamperrin
grahamperrin
14.0-CURRENT 1400030 1400030
% cd dev
% gh repo clone pageflt/freebsd-mkmnfst
Cloning into 'freebsd-mkmnfst'...
remote: Enumerating objects: 18, done.
remote: Total 18 (delta 0), reused 0 (delta 0), pack-reused 18
Receiving objects: 100% (18/18), 5.65 KiB | 5.65 MiB/s, done.
Resolving deltas: 100% (5/5), done.
% ./freebsd-mkmnfst/mkmnfst kmix > kmix-fake-manifest
% code-oss ./kmix-fake-manifest &
[1] 4812
% slowcat --bps 2400 /usr/home/grahamperrin/dev/kmix-fake-manifest
name: kmix
version: 999
origin: local
comment: Prevent automated installation of audio/kmix
www: https://forums.FreeBSD.org/threads/80412/post-528187
maintainer: Graham Perrin
prefix: /tmp
desc: <<EOD
    Inspired by 'Preventing a given package from being installed – Dan Langille's Other Diary' <https://dan.langille.org/2021/02/16/preventing-a-given-package-from-being-installed/> with credit to bapt.
EOD
deps: {}
% su -
Password:
root@mowa219-gjp4-8570p-freebsd:~ # pkg delete --quiet --force --yes kmix
root@mowa219-gjp4-8570p-freebsd:~ # pkg upgrade -n
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
Updating poudriere repository catalogue...
poudriere repository is up to date.
All repositories are up to date.
Checking for upgrades (9 candidates): 100%
Processing candidates (9 candidates): 100%
Checking integrity... done (0 conflicting)
The following 1 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
        kmix: 21.08.0 [FreeBSD]

Number of packages to be installed: 1

The process will require 3 MiB more space.
root@mowa219-gjp4-8570p-freebsd:~ # pkg register -M /usr/home/grahamperrin/dev/kmix-fake-manifest
Installing kmix-999...
root@mowa219-gjp4-8570p-freebsd:~ # pkg upgrade
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
Updating poudriere repository catalogue...
poudriere repository is up to date.
All repositories are up to date.
Updating database digests format: 100%
Checking for upgrades (10 candidates): 100%
Processing candidates (10 candidates): 100%
Checking integrity... done (0 conflicting)
Your packages are up to date.
root@mowa219-gjp4-8570p-freebsd:~ #

The single long line for the description was not ideal, so I deleted the package, re-edited /usr/home/grahamperrin/dev/kmix-fake-manifest then reused pkg-register(8).

End result:

Code:
% pkg info --list kmix
kmix-999:
% pkg info kmix
kmix-999
Name           : kmix
Version        : 999
Installed on   : Sat Aug 21 12:12:16 2021 BST
Origin         : local
Architecture   : FreeBSD:14:amd64
Prefix         : /tmp
Categories     :
Licenses       :
Maintainer     : Graham Perrin
WWW            : https://forums.FreeBSD.org/threads/80412/post-528187
Comment        : Prevent automated installation of audio/kmix
Annotations    :
        FreeBSD_version: 1400030
Flat size      : 0.00B
Description    :
    Inspired by 'Preventing a given package from being installed – Dan Langille's Other Diary'
    <https://dan.langille.org/2021/02/16/preventing-a-given-package-from-being-installed/>
    with credit to bapt.
% pkg rquery '%o %v %R' kmix
audio/kmix 21.08.0 FreeBSD
% pkg query '%o %v %R' kmix
local 999 unknown-repository
%
 

Attachments

  • kmix-fake-manifest.txt
    429 bytes · Views: 22
OP
grahamperrin

grahamperrin

Son of Beastie

Reaction score: 830
Messages: 2,681

OP
grahamperrin

grahamperrin

Son of Beastie

Reaction score: 830
Messages: 2,681

My current edition of the script:

That edition of the script never put the computer to sleep, probably due to an editing error by me. (It did make the computer sleep-ready, but never reached the acpiconf command.)

I can't be bothered to fix it. With the affected part commented out, the computer does sleep, touch wood.

For reference:

Code:
#!/bin/sh

# Attempt to export ZFS pools that use USB
# 
while mount | grep Transcend 2>&1; do
   zpool export Transcend
   sleep 5
done

# Prepare to disconnect USB flash drives that are used for L2ARC
# 
# zpool offline copperbowl gpt/cache-copperbowl
zpool offline august gpt/cache-august
zpool offline august gpt/duracell
sync

# Make <IDT 92HD81B1X (Analog 2.0+HP/2.0)> (play/rec) the default
sysctl hw.snd.default_unit=1

# Credit to David Schlachter for 'USB audio devices on FreeBSD'
# <https://www.davidschlachter.com/misc/freebsd-usb-audio>
#
# Attempt to kill all dsp- and mixer-related processes
# 
while fstat | grep -e dsp -e mixer 2>&1; do
   fstat | grep -e dsp -e mixer | cut -w -f 3 | while read pid;
      do kill -15 "$pid"
   done
done

# My edition of the 'while' line below is probably bad.
# If I un-comment all three lines, then the script
# does _not_ proceed to the acpiconf command.
# 
# while [ "$(ls -l /dev | grep -c -e dsp -e mixer)" -gt 1 ]; do
#    sleep 1
# done

/usr/sbin/acpiconf -s3

# =============
# Retrospective
# =============
 
# I found it impossible to kill PulseAudio. Instead, it's set to
# no longer automatically spawn:
# <https://forums.FreeBSD.org/threads/80412/post-519408>.
 
# Killing of KMix by the script required a manual run of
# /usr/local/bin/kded5 &
# as grahamperrin after each wake of the computer.
# For a while, I forced deletion of KMix:
# <https://forums.FreeBSD.org/threads/80412/post-524012>
# – and used a fake manifest to prevent automated reinstallation:
# <https://forums.FreeBSD.org/threads/80412/post-528187>.
# Finally, the issue involving KMix was resolved: 
# <https://cgit.freebsd.org/ports/commit/?id=7dc8045a63930a3a520e17723139003867b58c39>
 
Last edited:
OP
grahamperrin

grahamperrin

Son of Beastie

Reaction score: 830
Messages: 2,681

Milestone

Retrospective:


forced deletion of KMix

prevent automated reinstallation


Now, thanks to tcberner@, it's no longer necessary to prevent automated reinstallation of KMix ☑

<https://cgit.freebsd.org/ports/commit/?id=7dc8045a63930a3a520e17723139003867b58c39> (2021-09-20):

KDE: change default sound mixer applet

The kmix mixer is being replaced by the more flexible and integrated plasma-pa mixer from audio/plasma5-plasma-pa


Test result – success:

2021-10-09 10:04:50 slept, woken.png
  • I ran the suspend script whilst listening, without PulseAudio, in Firefox
  • scripted killings included the tab where there was playback
  • pictured above, wake from sleep was good.
I reopened GTK-Mixer a.k.a. Audio Mixer, began listening to YouTube in another tab:

2021-10-09 10:08:06 no output or input devices found.png
  • the Audio Volume applet finds no input or output device because PulseAudio is configured to not autospawn.
 
OP
grahamperrin

grahamperrin

Son of Beastie

Reaction score: 830
Messages: 2,681

OP
grahamperrin

grahamperrin

Son of Beastie

Reaction score: 830
Messages: 2,681

Ongoing discussion:


(Whilst things are Solved for me, the bigger picture is not ideal.)
 
Top