Systemctl --user error

I am trying to start pulseaudio by default. running command pulseaudio --start would start it. However, if I want to start it by default

systemctl --user start pulseaudio

I will get this error:
Oct 19 16:57:55   dbus-daemon[493]: [session uid=1000 pid=490] Activating service name='org.freedesktop.systemd1' requested by ':1.60' (uid=1000 pid=1008 comm="systemctl --user enable pulseaudio ")
Oct 19 16:57:55   dbus-daemon[493]: [session uid=1000 pid=490] Activated service 'org.freedesktop.systemd1' failed: Process org.freedesktop.systemd1 exited with status 1

And pretty much every systemctl --user will end up in this error.
Any idea on how to fix this?

Please post system information

inxi -Fazy

The pulseaudio.service is usually started automatically by pulseaudio.socket, but direct commands to PulseAudio like pulseaudio --start can sometimes cause the socket and service to fail

I suggest you reboot system and then run this command to check the socket and service

systemctl --user status --full --no-pager pulseaudio.{socket,service}

pulseaudio.socket should be shown as enabled and Active(running)
pulseaudio.service should be shown as disabled and Active(running)

Command systemctl --user enable pulseaudio should not be necessary
pulseaudio.service does not need to be enabled because it is started by pulseaudio.socket

1 Like

I think anything I did with systemctl --user will result in

Failed to get properties: Process org.freedesktop.systemd1 exited with status 1

I am not sure why,

System:
  Kernel: 5.4.150-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.4-x86_64
  root=UUID=a7f2d821-642c-4b07-a8bc-381b2f416fd0 rw quiet udev.log_priority=3
  Desktop: KDE Plasma 5.22.5 tk: Qt 5.15.2 wm: kwin_x11
  dm: LightDM 1.30.0, SDDM Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Kvm System: QEMU product: Standard PC (i440FX + PIIX, 1996)
  v: pc-i440fx-3.0 serial: <filter> Chassis: type: 1 v: pc-i440fx-3.0
  serial: <filter>
  Mobo: N/A model: N/A serial: N/A BIOS: SeaBIOS
  v: rel-1.11.2-0-gf9626ccb91-prebuilt.qemu-project.org date: 04/01/2014
CPU:
  Info: 2x Single Core model: Common KVM bits: 64 type: SMP
  arch: Netburst Presler family: F (15) model-id: 6 stepping: 1 microcode: 1
  cache: L2: 32 MiB
  flags: lm nx pae sse sse2 sse3 bogomips: 9578
  Speed: 2394 MHz min/max: N/A Core speeds (MHz): 1: 2394 2: 2394
  Vulnerabilities: Type: itlb_multihit status: KVM: Vulnerable
  Type: l1tf mitigation: PTE Inversion
  Type: mds status: Vulnerable: Clear CPU buffers attempted, no microcode; SMT
  Host state unknown
  Type: meltdown mitigation: PTI
  Type: spec_store_bypass status: Vulnerable
  Type: spectre_v1
  mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2
  mitigation: Full generic retpoline, STIBP: disabled, RSB filling
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: vendor: Red Hat driver: bochs-drm v: N/A alternate: bochs_drm
  bus-ID: 00:02.0 chip-ID: 1234:1111 class-ID: 0300
  Display: server: X.Org 1.20.13 compositor: kwin_x11 driver:
  loaded: modesetting alternate: fbdev,vesa display-ID: :10.0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x286mm (20.0x11.3")
  s-diag: 583mm (23")
  OpenGL: renderer: llvmpipe (LLVM 12.0.1 128 bits) v: 4.5 Mesa 21.2.3
  compat-v: 3.1 direct render: Yes
Audio:
  Message: No device data found.
  Sound Server-1: JACK v: 1.9.19 running: no
  Sound Server-2: PulseAudio v: 15.0 running: yes
  Sound Server-3: PipeWire v: 0.3.38 running: no
Network:
  Device-1: Intel 82371AB/EB/MB PIIX4 ACPI
  vendor: Red Hat Qemu virtual machine type: network bridge
  driver: piix4_smbus v: N/A modules: i2c_piix4 port: N/A bus-ID: 00:01.3
  chip-ID: 8086:7113 class-ID: 0680
  Device-2: Red Hat Virtio network driver: virtio-pci v: 1 modules: virtio_pci
  port: e060 bus-ID: 00:12.0 chip-ID: 1af4:1000 class-ID: 0200
  IF: ens18 state: up speed: -1 duplex: unknown mac: <filter>
Drives:
  Local Storage: total: 25 GiB used: 12.3 GiB (49.2%)
  ID-1: /dev/vda maj-min: 254:0 model: N/A size: 25 GiB block-size:
  physical: 512 B logical: 512 B type: N/A serial: N/A scheme: MBR
  SMART Message: Unknown smartctl error. Unable to generate data.
Partition:
  ID-1: / raw-size: 24.99 GiB size: 24.43 GiB (97.76%) used: 12.3 GiB (50.3%)
  fs: ext4 dev: /dev/vda1 maj-min: 254:1
Swap:
  Alert: No swap data was found.
Sensors:
  Message: No sensor data found. Is lm-sensors configured?


Info:
  Processes: 155 Uptime: 2d 18h 8m wakeups: 0 Memory: 3.84 GiB
  used: 1.17 GiB (30.5%) Init: systemd v: 249 tool: systemctl Compilers:
  gcc: 11.1.0 clang: 12.0.1 Packages: 1442 pacman: 1435 lib: 327 snap: 7
  Shell: Bash v: 5.1.8 running-in: konsole inxi: 3.3.07

System data is showing a QEMU virtual machine with no audio devices

Audio:
  Message: No device data found.

And ALSA is not shown to support audio hardware, I would expect to see ALSA shown in data like this:

Sound Server-1: ALSA v: k5.14.10-1-MANJARO running: yes

This system has no audio device passthrough or virtual audio device. Audio device configuration for QEMU might be absent or misconfigured

qemu — Arch manual pages
NOTE: parameter validation is known to be incomplete, in many cases specifying an invalid option causes QEMU to print an error message and continue emulation without sound

Ah, I did a xrdp audio source.

xrdp packages are from AUR and are not officially supported

You should contact the package developers for help & support
Issues · neutrinolabs/xrdp · GitHub
Issues · neutrinolabs/pulseaudio-module-xrdp · GitHub