Sound not working, volume buttons not working

I recently installed manjaro, but just realized my sound is not working. A list of devices shows up when typing sudo aplay -l, but nothing works. I have tried rebooting, logging out, using with and without headphones, but nothing works. Also, nothing shows up when I try to use any of the volume buttons.

For reference, I am using a Dell XPS 13.

Also, when trying to configure sound in the system settings, it does not appear to recognize any sound device, input or output.

when trying to run pulseaudio, I get the following error:

W: [pulseaudio] main.c: This program is not intended to be run as root (unless --system is specified).
E: [pulseaudio] module-jackdbus-detect.c: Unable to contact D-Bus session bus: org.freedesktop.DBus.Error.NotSupported: Using X11 for dbus-daemon autolaunch was disabled at compile time, set your DBUS_SESSION_BUS_ADDRESS instead
E: [pulseaudio] module.c: Failed to load module “module-jackdbus-detect” (argument: “channels=2”): initialization failed.
W: [pulseaudio] server-lookup.c: Unable to contact D-Bus: org.freedesktop.DBus.Error.NotSupported: Using X11 for dbus-daemon autolaunch was disabled at compile time, set your DBUS_SESSION_BUS_ADDRESS instead
W: [pulseaudio] main.c: Unable to contact D-Bus: org.freedesktop.DBus.Error.NotSupported: Using X11 for dbus-daemon autolaunch was disabled at compile time, set your DBUS_SESSION_BUS_ADDRESS instead

Dell have produced a number of different versions of XPS 13 laptops

please post response to

inxi -Fxxz 

sudo is not needed to get a list of ALSA audio devices

please post response to

aplay -l

pulseaudio should not be run with sudo either - What is wrong with system mode?

W: [pulseaudio] main.c: This program is not intended to be run as root

Pulseaudio should be started automatically by systemd pulseaudio.service when system is booted

please post response to

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

inxi -Fxxz
System:
Kernel: 5.7.17-2-MANJARO x86_64 bits: 64 compiler: gcc v: 10.2.0
Desktop: GNOME 3.36.5 tk: GTK 3.24.22 wm: gnome-shell dm: GDM, LightDM
Distro: Manjaro Linux
Machine:
Type: Laptop System: Dell product: XPS 13 9370 v: N/A serial:
Chassis: type: 10 serial:
Mobo: Dell model: 0F6P3V v: A00 serial: UEFI: Dell v: 1.12.1
date: 12/11/2019
Battery:
ID-1: BAT0 charge: 42.5 Wh condition: 43.9/52.0 Wh (84%) volts: 8.5/7.6
model: LGC-LGC6.73 DELL H754V8B serial: status: Discharging
CPU:
Topology: Quad Core model: Intel Core i7-8550U bits: 64 type: MT MCP
arch: Kaby Lake rev: A L2 cache: 8192 KiB
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
bogomips: 32012
Speed: 2225 MHz min/max: 400/4000 MHz Core speeds (MHz): 1: 2004 2: 2000
3: 1963 4: 1969 5: 1992 6: 2019 7: 1972 8: 1992
Graphics:
Device-1: Intel UHD Graphics 620 vendor: Dell driver: i915 v: kernel
bus ID: 00:02.0 chip ID: 8086:5917
Device-2: Realtek Integrated_Webcam_HD type: USB driver: uvcvideo
bus ID: 1-5:2 chip ID: 0bda:58f4
Display: x11 server: X .org 1.20.8 compositor: gnome-shell driver: intel
unloaded: modesetting alternate: fbdev,vesa resolution:
OpenGL: renderer: Mesa Intel UHD Graphics 620 (KBL GT2) v: 4.6 Mesa 20.1.6
direct render: Yes
Audio:
Device-1: Intel Sunrise Point-LP HD Audio vendor: Dell
driver: snd_hda_intel v: kernel bus ID: 00:1f.3 chip ID: 8086:9d71
Sound Server: ALSA v: k5.7.17-2-MANJARO
Network:
Device-1: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter
vendor: Bigfoot Networks Killer 1435 Wireless-AC driver: ath10k_pci
v: kernel port: f040 bus ID: 02:00.0 chip ID: 168c:003e
IF: wlp2s0 state: up mac:
Drives:
Local Storage: total: 476.94 GiB used: 54.99 GiB (11.5%)
ID-1: /dev/nvme0n1 vendor: Samsung model: PM981 NVMe 512GB
size: 476.94 GiB speed: 31.6 Gb/s lanes: 4 serial:
Partition:
ID-1: / size: 303.38 GiB used: 54.90 GiB (18.1%) fs: ext4
dev: /dev/nvme0n1p7
Swap:
Alert: No Swap data was found.
Sensors:
System Temperatures: cpu: 28.5 C mobo: N/A
Fan Speeds (RPM): N/A
Info:
Processes: 323 Uptime: 33m Memory: 15.36 GiB used: 1.63 GiB (10.6%)
Init: systemd v: 246 Compilers: gcc: 10.2.0 Packages: 1200 pacman: 1194
snap: 6 Shell: fish v: 3.1.2 running in: gnome-terminal inxi: 3.1.05

aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC3271 Analog [ALC3271 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 8: HDMI 2 [HDMI 2]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 9: HDMI 3 [HDMI 3]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 10: HDMI 4 [HDMI 4]
Subdevices: 1/1
Subdevice #0: subdevice #0

I am aware that pulseaudio should not be run as root, however I get permission denied when I don’t use sudo

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

● pulseaudio.socket - Sound System
Loaded: loaded (/usr/lib/systemd/user/pulseaudio.socket; enabled; vendor preset: enabled)
Active: failed (Result: service-start-limit-hit) since Wed 2020-09-02 13:37:42 CEST; 35min ago
Triggers: ● pulseaudio.service
Listen: /run/user/1000/pulse/native (Stream)

sep 02 13:37:39 joel-xps systemd[1273]: Listening on Sound System.
sep 02 13:37:42 joel-xps systemd[1273]: pulseaudio.socket: Failed with result ‘service-start-limit-hit’.

● pulseaudio.service - Sound Service
Loaded: loaded (/usr/lib/systemd/user/pulseaudio.service; disabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2020-09-02 13:37:42 CEST; 35min ago
TriggeredBy: ● pulseaudio .socket
Process: 2365 ExecStart=/usr/bin/pulseaudio --daemonize=no (code=exited, status=1/FAILURE)
Main PID: 2365 (code=exited, status=1/FAILURE)

sep 02 13:37:42 joel-xps systemd[1273]: pulseaudio.service: Scheduled restart job, restart counter is at 5.
sep 02 13:37:42 joel-xps systemd[1273]: Stopped Sound Service.
sep 02 13:37:42 joel-xps systemd[1273]: pulseaudio.service: Start request repeated too quickly.
sep 02 13:37:42 joel-xps systemd[1273]: pulseaudio.service: Failed with result ‘exit-code’.
sep 02 13:37:42 joel-xps systemd[1273]: Failed to start Sound Service.

After some more testing, I have managed to narrow down the issue. I am able to change the volume with alsamixer, and can then hear audio with and without headphones. However, I am unable to change the volume using the buttons on my keyboard.

I am not sure of the packages in gnome
but I think you need package gnome-settings for gsd-media-keys