You are not logged in.

#1 2018-05-31 01:08:47

linuxbro
Member
Registered: 2017-04-10
Posts: 11

[SOLVED] pulseaudio broken after recent upgrade

Greetings.
I performed my weekly system upgrade yesterday and rebooted, because a kernel upgrade was included. Pulseaudio and plasma backlight control (another issue) are no longer function correctly. Searched the forums and I could not find a match. Did I miss something? Thanks.


System:
KDE Plasma 5.12.5
kernel 4.14.44-1-lts
Hardware:
SAMSUNG  NP510R5E-A02UB Laptop
Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
CPU: Intel Core i7-3537U @ 4x 2.00GHz
RAM: 7866MiB


Here are some outputs:

systemctl status --user pulseaudio.service
● pulseaudio.service - Sound Service
   Loaded: loaded (/usr/lib/systemd/user/pulseaudio.service; disabled; vendor preset: enabled)
   Active: activating (start) since Wed 2018-05-30 19:55:52 EDT; 57s ago
 Main PID: 1619 (pulseaudio)
   CGroup: /user.slice/user-1000.slice/user@1000.service/pulseaudio.service
           └─1619 /usr/bin/pulseaudio --daemonize=no

pacmd list
No PulseAudio daemon running, or not running as session daemon.


journalctl -b | grep pulse
May 30 19:30:14 archlinux ksmserver[943]: ksmserver: Starting autostart service  "/etc/xdg/autostart/pulseaudio.desktop" ("/usr/bin/start-pulseaudio-x11")
May 30 19:30:14 archlinux dbus-daemon[633]: [system] Activating via systemd: service name='org.freedesktop.RealtimeKit1' unit='rtkit-daemon.service' requested by ':1.26' (uid=1000 pid=982 comm="/usr/bin/pulseaudio --daemonize=no ")
May 30 19:30:47 archlinux plasmashell[967]: org.kde.plasma.pulseaudio: context kaput
May 30 19:31:18 archlinux plasmashell[967]: org.kde.plasma.pulseaudio: context kaput
May 30 19:31:44 archlinux systemd[880]: pulseaudio.service: Start operation timed out. Terminating.
May 30 19:31:44 archlinux systemd[880]: pulseaudio.service: Failed with result 'timeout'.
May 30 19:31:44 archlinux systemd[880]: pulseaudio.service: Service hold-off time over, scheduling restart.
May 30 19:31:44 archlinux systemd[880]: pulseaudio.service: Scheduled restart job, restart counter is at 1.
May 30 19:31:49 archlinux plasmashell[967]: org.kde.plasma.pulseaudio: context kaput
May 30 19:33:14 archlinux systemd[880]: pulseaudio.service: Start operation timed out. Terminating.
May 30 19:33:14 archlinux systemd[880]: pulseaudio.service: Failed with result 'timeout'.
May 30 19:33:15 archlinux systemd[880]: pulseaudio.service: Service hold-off time over, scheduling restart.
May 30 19:33:15 archlinux systemd[880]: pulseaudio.service: Scheduled restart job, restart counter is at 2.
May 30 19:34:45 archlinux systemd[880]: pulseaudio.service: Start operation timed out. Terminating.
May 30 19:34:45 archlinux systemd[880]: pulseaudio.service: Failed with result 'timeout'.
May 30 19:34:45 archlinux systemd[880]: pulseaudio.service: Service hold-off time over, scheduling restart.
May 30 19:34:45 archlinux systemd[880]: pulseaudio.service: Scheduled restart job, restart counter is at 3.
May 30 19:36:15 archlinux systemd[880]: pulseaudio.service: Start operation timed out. Terminating..............



pulseaudio  -vvvv
I: [pulseaudio] main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operation not permitted
I: [pulseaudio] main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Operation not permitted
D: [pulseaudio] core-rtclock.c: Timer slack is set to 50 us.
I: [pulseaudio] core-util.c: Failed to acquire high-priority scheduling: Input/output error
I: [pulseaudio] main.c: This is PulseAudio 11.1
D: [pulseaudio] main.c: Compilation host: x86_64-pc-linux-gnu
D: [pulseaudio] main.c: Compilation CFLAGS: -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -Wall -W -Wextra -Wno-long-long -Wno-overlength-strings -Wunsafe-loop-optimizations -Wundef -Wformat=2 -Wlogical-op -Wsign-compare -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wpointer-arith -Winit-self -Wdeclaration-after-statement -Wfloat-equal -Wmissing-prototypes -Wredundant-decls -Wmissing-declarations -Wmissing-noreturn -Wshadow -Wendif-labels -Wcast-align -Wstrict-aliasing -Wwrite-strings -Wno-unused-parameter -ffast-math -fno-common -fdiagnostics-show-option -fdiagnostics-color=auto
D: [pulseaudio] main.c: Running on host: Linux x86_64 4.14.44-1-lts #1 SMP Mon May 28 08:39:26 UTC 2018
D: [pulseaudio] main.c: Found 4 CPUs.
I: [pulseaudio] main.c: Page size is 4096 bytes
D: [pulseaudio] main.c: Compiled with Valgrind support: no
D: [pulseaudio] main.c: Running in valgrind mode: no
D: [pulseaudio] main.c: Running in VM: no
D: [pulseaudio] main.c: Optimized build: yes
D: [pulseaudio] main.c: FASTPATH defined, only fast path asserts disabled.
I: [pulseaudio] main.c: Machine ID is 98c680da5b0b449ca45d8ebfc1c97680.
I: [pulseaudio] main.c: Session ID is c2.
I: [pulseaudio] main.c: Using runtime directory /run/user/1000/pulse.
I: [pulseaudio] main.c: Using state directory /home/carlton/.config/pulse.
I: [pulseaudio] main.c: Using modules directory /usr/lib/pulse-11.1/modules.
I: [pulseaudio] main.c: Running in system mode: no
E: [pulseaudio] pid.c: Daemon already running.
E: [pulseaudio] main.c: pa_pid_file_create() failed.

Last edited by linuxbro (2018-05-31 18:52:29)

Offline

#2 2018-05-31 01:26:54

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,804

Re: [SOLVED] pulseaudio broken after recent upgrade

Thank you for attempting to use BBCode code tags.  Note that BBCode uses [], not <>.  I took the liberty of fixing them for you.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2018-05-31 01:27:55

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,804

Re: [SOLVED] pulseaudio broken after recent upgrade

What are the output of uname -a and of pacman -Q linux  (assuming you are using the stock kernel)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#4 2018-05-31 13:39:44

linuxbro
Member
Registered: 2017-04-10
Posts: 11

Re: [SOLVED] pulseaudio broken after recent upgrade

Thanks for the clarification on the tags and the reference.
Forgot to say that alsa is working.

uname -a
Linux archlinux 4.14.44-1-lts #1 SMP Mon May 28 08:39:26 UTC 2018 x86_64 GNU/Linux

pacman -Q linux
error: package 'linux' was not found

Offline

#5 2018-05-31 13:48:16

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,770

Re: [SOLVED] pulseaudio broken after recent upgrade

We would need the output of

pacman -Q linux-lts

in this case. However from the rest of the output it looks like pulse starts properly, but the rest isn't part of the same session. How do you start KDE, how do you log in? What's the output of

loginctl show-session $XDG_SESSION_ID
printenv
journalctl -b --no-pager

Last edited by V1del (2018-05-31 13:50:12)

Offline

#6 2018-05-31 14:10:21

linuxbro
Member
Registered: 2017-04-10
Posts: 11

Re: [SOLVED] pulseaudio broken after recent upgrade

OK.

pacman -Q linux-lts
linux-lts 4.14.44-1

loginctl show-session $XDG_SESSION_ID
Id=c2
User=1000
Name=carlton
Timestamp=Thu 2018-05-31 09:32:44 EDT
TimestampMonotonic=51439406
VTNr=1
Seat=seat0
Display=:0
Remote=no
Service=sddm
Desktop=KDE
Scope=session-c2.scope
Leader=5257
Audit=0
Type=x11
Class=user
Active=yes
State=active
IdleHint=no
IdleSinceHint=0
IdleSinceHintMonotonic=0
LockedHint=no

journalctl -b --no-pager
https://paste.ubuntu.com/p/zx6QG3smjb/

Offline

#7 2018-05-31 14:12:31

linuxbro
Member
Registered: 2017-04-10
Posts: 11

Re: [SOLVED] pulseaudio broken after recent upgrade

Oh yeah.

printenv
GS_LIB=/home/carlton/.fonts
KDE_FULL_SESSION=true
LANG=en_US.UTF-8
PROFILEHOME=
DISPLAY=:0
SHELL_SESSION_ID=2a29b361a24747e380c9b3a3a5abb635
COLORTERM=truecolor
MOZ_PLUGIN_PATH=/usr/lib/mozilla/plugins
XDG_VTNR=1
XDG_SESSION_ID=c2
USER=carlton
DESKTOP_SESSION=/usr/share/xsessions/plasma
PWD=/home/carlton
HOME=/home/carlton
XCURSOR_SIZE=24
XDG_SESSION_TYPE=x11
XDG_DATA_DIRS=/home/carlton/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share
KONSOLE_DBUS_SESSION=/Sessions/1
XDG_SESSION_DESKTOP=KDE
KONSOLE_DBUS_WINDOW=/Windows/1
GTK_MODULES=canberra-gtk-module
MAIL=/var/spool/mail/carlton
TERM=xterm-256color
SHELL=/bin/bash
KONSOLE_DBUS_SERVICE=:1.42
XDG_SESSION_CLASS=user
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XCURSOR_THEME=Maya-Black
XDG_CURRENT_DESKTOP=KDE
KONSOLE_PROFILE_NAME=Profile 1
XDG_SEAT=seat0
SHLVL=2
COLORFGBG=15;0
LANGUAGE=
WINDOWID=58720262
LOGNAME=carlton
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
XDG_RUNTIME_DIR=/run/user/1000
XAUTHORITY=/home/carlton/.Xauthority
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session1
QT_AUTO_SCREEN_SCALE_FACTOR=0
PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
KDE_SESSION_UID=1000
KDE_SESSION_VERSION=5
SESSION_MANAGER=local/archlinux:@/tmp/.ICE-unix/5322,unix/archlinux:/tmp/.ICE-unix/5322
_=/usr/bin/printenv

Offline

#8 2018-05-31 14:14:08

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,770

Re: [SOLVED] pulseaudio broken after recent upgrade

 /usr/lib/polkit-1/polkitd: error while loading shared libraries: libmozjs-52.so.0: cannot open shared object file: No such file or directory

How "exactly" do you do your weekly system updates? Post your /var/log/pacman.log and read https://www.archlinux.org/news/js52-527 … ervention/

Offline

#9 2018-05-31 14:27:27

linuxbro
Member
Registered: 2017-04-10
Posts: 11

Re: [SOLVED] pulseaudio broken after recent upgrade

UnfortunateIy I read that after I upgraded. Then I deleted /usr/lib/libmozjs-52.so.0 and ran the upgrade again. I usually do a pacman -Syu. "Occasionally" I upgrade with, uh, yaourt -Syua.

/var/log/pacman.log
https://paste.ubuntu.com/p/3mp5tP57yK/

Offline

#10 2018-05-31 14:38:52

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,770

Re: [SOLVED] pulseaudio broken after recent upgrade

Stop habitually running --noconfirm and take care to not run partial upgrades. Run an explicit

sudo pacman -Syu js52

that should fix this. Because the package was already an updated version, deleting the relevant file (which you shouldn't have needed to do if the update was already successful) made the file disappear but pacman not give you any new updates for that library (as in it's database you already had the latest version.

Offline

#11 2018-05-31 14:45:02

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,896
Website

Re: [SOLVED] pulseaudio broken after recent upgrade

[2018-02-26 21:23] [PACMAN] Running '/usr/bin/pacman -Syu --noconfirm --force'

Break this habit as well, please. You should rarely have cause to use force, and never ever force an entire update.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#12 2018-05-31 15:21:18

linuxbro
Member
Registered: 2017-04-10
Posts: 11

Re: [SOLVED] pulseaudio broken after recent upgrade

Updated, rebooted and working fine!
Resolved my backlight issue as well. I don't know why the "--force" option is in the log. I understand the danger of that and I am not sure why that occured.
Questions:
- Why is --no confirm not recommended? I do not edit the builds.
- I do not recall consciously performing a partial upgrade. What could I have done to cause this? Yaourt?

Offline

#13 2018-05-31 15:40:23

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,770

Re: [SOLVED] pulseaudio broken after recent upgrade

If you properly use yaourt you won't do partial upgrades either. This is a bad example sequence, as that will have done a partial update

[2018-05-18 19:15] [PACMAN] Running '/usr/bin/pacman -Sy'
[2018-05-18 19:15] [PACMAN] synchronizing package lists
[2018-05-18 19:15] [PACKAGEKIT] synchronizing package lists
[2018-05-18 19:17] [ALPM] transaction started
[2018-05-18 19:17] [ALPM] upgraded ca-certificates-mozilla (3.36.1-1 -> 3.37-1)
[2018-05-18 19:17] [PACKAGEKIT] upgraded ca-certificates-mozilla (3.36.1-1 -> 3.37-1)
[2018-05-18 19:17] [ALPM] upgraded e2fsprogs (1.44.1-1 -> 1.44.2-1)
[2018-05-18 19:17] [PACKAGEKIT] upgraded e2fsprogs (1.44.1-1 -> 1.44.2-1)
[2018-05-18 19:17] [ALPM] upgraded nss (3.36.1-1 -> 3.37-1)
[2018-05-18 19:17] [PACKAGEKIT] upgraded nss (3.36.1-1 -> 3.37-1)
[2018-05-18 19:17] [ALPM] upgraded firefox (60.0-1 -> 60.0.1-1)
[2018-05-18 19:17] [PACKAGEKIT] upgraded firefox (60.0-1 -> 60.0.1-1)
[2018-05-18 19:17] [ALPM] upgraded k3b (1:18.04.1-2 -> 1:18.04.1-3)
[2018-05-18 19:17] [PACKAGEKIT] upgraded k3b (1:18.04.1-2 -> 1:18.04.1-3)
[2018-05-18 19:17] [ALPM] transaction completed
[2018-05-18 19:17] [ALPM] running 'gtk-update-icon-cache.hook'...
[2018-05-18 19:17] [ALPM] running 'systemd-update.hook'...
[2018-05-18 19:17] [ALPM] running 'texinfo-install.hook'...
[2018-05-18 19:17] [ALPM] running 'update-ca-trust.hook'...
[2018-05-18 19:17] [ALPM] running 'update-desktop-database.hook'...
[2018-05-18 19:17] [ALPM] running 'update-mime-database.hook'...
[2018-05-18 19:17] [ALPM-SCRIPTLET] Unknown media type in type 'all/all'
[2018-05-18 19:17] [ALPM-SCRIPTLET] Unknown media type in type 'all/allfiles'
[2018-05-18 19:17] [PACKAGEKIT] synchronizing package lists
[2018-05-18 19:17] [PACKAGEKIT] synchronizing package lists
[2018-05-18 19:17] [PACKAGEKIT] synchronizing package lists
[2018-05-18 19:17] [PACKAGEKIT] synchronizing package lists
[2018-05-18 20:45] [PACKAGEKIT] synchronizing package lists
[2018-05-19 04:24] [PACKAGEKIT] synchronizing package lists
[2018-05-19 07:27] [PACKAGEKIT] synchronizing package lists
[2018-05-19 07:49] [PACKAGEKIT] synchronizing package lists
[2018-05-19 08:50] [PACKAGEKIT] synchronizing package lists
[2018-05-19 18:25] [PACKAGEKIT] synchronizing package lists
[2018-05-19 19:23] [PACKAGEKIT] synchronizing package lists
[2018-05-19 19:24] [PACKAGEKIT] synchronizing package lists
[2018-05-19 19:50] [PACKAGEKIT] synchronizing package lists
[2018-05-19 19:59] [PACKAGEKIT] synchronizing package lists
[2018-05-19 19:59] [PACKAGEKIT] synchronizing package lists
[2018-05-19 20:01] [PACKAGEKIT] synchronizing package lists
[2018-05-19 20:02] [PACMAN] Running 'pacman -S --noconfirm community/arduino-avr-core'

There's an -Sy followed by several -S that is a partial update. If you use yaourt to do a proper update it would look like

[2018-05-29 23:22] [PACMAN] Running 'pacman --color auto -Sy'
[2018-05-29 23:22] [PACMAN] synchronizing package lists
[2018-05-29 23:22] [PACMAN] Running 'pacman --color auto -S -u'
[2018-05-29 23:22] [PACMAN] starting full system upgrade

note the immediate follow up -S -u after showing the package list with -Sy

Passing --no-confirm is generally discouraged, because even if the official packages have a situation that would require your intervention you are expected to consciously think about if this is the right thing to do. This is doubly true for installing AUR packages, as they are unverified user supplied PKGBUILDs which could have harmful consequences to your system. By using --no-confirm you implicitly say you trust everyone which really isn't a good idea for the AUR, anything could be in there, you are expected to check the PKGBUILD to ensure it really does what it advertises.

Offline

#14 2018-05-31 16:16:50

linuxbro
Member
Registered: 2017-04-10
Posts: 11

Re: [SOLVED] pulseaudio broken after recent upgrade

Thank you.

Offline

#15 2018-05-31 16:57:33

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,770

Re: [SOLVED] pulseaudio broken after recent upgrade

If you feel this is [SOLVED] please mark it as such by editing the thread title in your first post.

Offline

Board footer

Powered by FluxBB