You are not logged in.
Pages: 1
Hello!
I'm having some problems getting pulseaudio working using systemd.
The pulseaudio-related packages I installed are:
% pacman -Q | grep pulse
libcanberra-pulse 0.30+2+gc0620e4-3
libpulse 13.0-3
pulseaudio 13.0-3
pulseaudio-alsa 1:1.2.2-2
pulsemixer 1.5.1-1I ran this to try to make sure that it is running and got this
% pactl info
Connection failure: Connection refused
pa_context_connect() failed: Connection refused
% pulsemixer
Failed to connect to pulseaudio: Connection refusedI tried to make sure pulseaudio was running to begin with, here are the steps I took along with some output:
% ps -aux | grep
nathani+ 327982 12.5 0.0 315676 12696 ? S<sl 00:05 0:00 /usr/bin/pulseaudio --daemonize=no
nathani+ 328346 0.0 0.0 9116 2280 pts/0 S+ 00:05 0:00 grep pulseaudio
% systemctl --user status pulseaudio
● pulseaudio.service - Sound Service
Loaded: loaded (/usr/lib/systemd/user/pulseaudio.service; disabled; vendor preset: enabled)
Active: active (running) since Tue 2020-05-19 00:05:13 PDT; 16min 8s ago
TriggeredBy: ● pulseaudio.socket
Main PID: 327982 (pulseaudio)
CGroup: /user.slice/user-1000.slice/user@1000.service/pulseaudio.service
├─327982 /usr/bin/pulseaudio --daemonize=no
└─328152 /usr/lib/pulse/gsettings-helper
May 19 00:05:13 main systemd[508]: Starting Sound Service...
May 19 00:05:13 main systemd[508]: Started Sound Service.These do lead me to believe that something is activating it, but then when I ran this, with Firefox running, I get this:
% sudo fuser -v /dev/snd/*
USER PID ACCESS COMMAND
/dev/snd/controlC0: nathaniel 119984 F.... firefox
nathaniel 327982 F.... pulseaudio
/dev/snd/controlC1: nathaniel 327982 F.... pulseaudio
/dev/snd/pcmC0D0p: nathaniel 119984 F...m firefox
/dev/snd/timer: nathaniel 119984 f.... firefoxI'd like to note with this output that when firefox is not running, I get only the two pulseaudio entries at the top.
So, I am not sure what is happening here and why these utilities are not connecting to pulseaudio.
I'd like to note that if I run these commands:
% killall -q pulseaudio
% pulseaudio -D
% pactl info
Server String: /tmp/nathaniel/pulse/native
Library Protocol Version: 33
Server Protocol Version: 33
Is Local: yes
Client Index: 145
Tile Size: 65472
User Name: nathaniel
Host Name: main
Server Name: pulseaudio
Server Version: 13.0
Default Sample Specification: s16le 2ch 44100Hz
Default Channel Map: front-left,front-right
Default Sink: alsa_output.pci-0000_00_1f.3.analog-stereo
Default Source: alsa_input.pci-0000_00_1f.3.analog-stereo
Cookie: b023:b9c3I do end up getting some output.
Offline
How do you log in/start your session? Post files in relation to that if using startx like your .xinitrc. And maybe throw in a
printenvOffline
How do you log in/start your session? Post files in relation to that if using startx like your .xinitrc. And maybe throw in a
printenv
This is a
printenvSHELL=/bin/bash
WINDOWID=8388655
LESSHISTFILE=-
COLORTERM=rxvt
WM=i3
ISLOGGEDIN=true
XDG_DATA_HOME=/home/nathaniel/.local/share
XDG_CONFIG_HOME=/home/nathaniel/.config
GITPROMPT=1
EDITOR=nvim
GTK_MODULES=canberra-gtk-module
XDG_SEAT=seat0
ENV=/home/nathaniel/.config/sh/shinit
PWD=/home/nathaniel
LOGNAME=nathaniel
XDG_SESSION_TYPE=tty
TERMINAL=urxvtc
WINDOWPATH=2
HOME=/home/nathaniel
LANG=en_US.UTF-8
HISTFILE=/home/nathaniel/.cache/sh_history
CARGO_HOME=/home/nathaniel/.local/share/cargo
RXVT_SOCKET=/tmp/nathaniel/urxvtd
INVOCATION_ID=d854905e52f645cea82d1e6942ddfb9a
XDG_CACHE_HOME=/home/nathaniel/.cache
XDG_SESSION_CLASS=user
TERM=rxvt-unicode-256color
USER=nathaniel
COLORFGBG=7;default
XINITRC=/home/nathaniel/.config/X11/xinitrc
DISPLAY=:0
SHLVL=2
XDG_VTNR=1
XDG_SESSION_ID=3
LOCAL=/home/nathaniel/.local
XDG_RUNTIME_DIR=/tmp/nathaniel
PS1=`prompt $? $0 $$`
SCREENSHOTS=/home/nathaniel/Pictures/screenshots
JOURNAL_STREAM=9:469221
BROWSER=firefox-developer-edition
PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/nathaniel/bin/:/home/nathaniel/.local/bin:/home/nathaniel/.local/share/pip/bin:/opt/devkitpro/devkitARM/bin/:/home/nathaniel/.local/share/cargo/bin:/opt/devkitpro/devkitARM/bin/:/home/nathaniel/.local/share/cargo/bin
PYTHONUSERBASE=/home/nathaniel/.local/share/pip
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
MAIL=/var/spool/mail/nathaniel
_=/usr/bin/printenvAnd this is my .xinitrc
#!/bin/sh
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap
if [ -z $WM ]; then
export WM=bspwm
fi
# merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f "$userresources" ]; then
xrdb -merge "$userresources"
fi
if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap"
fi
# start some nice programs
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/* ; do
. "$f"
done
unset f
fi
if [ -d $LOCAL/etc/xinitrc.d ] ; then
for f in $LOCAL/etc/xinitrc.d/* ; do
. "$f"
done
unset f
fi
exec $WMThe files that end up running in
$LOCAL/etc/xinitrc.ddon't launch anything which should modify it, but these are some of the files that do run in them:
start-sxhkd
start-picom
xdg-autostart
update-wal
update-xres
start-urxvtdOffline
Pages: 1