Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problems with Pipewire init when loading in Qtile from SDDM
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
zorthesosen
n00b
n00b


Joined: 14 Nov 2022
Posts: 3

PostPosted: Sat Nov 19, 2022 1:53 am    Post subject: Problems with Pipewire init when loading in Qtile from SDDM Reply with quote

I have a systemd build where pipewire worked without any hassle (as I expected due to the systemd scope creep) and decided to build a new system using rc-init and am having problems getting pipewire to load when I load into qtile.

To see if the problems persisted even if I loaded into a DE, I emerged the full KDE plasma meta and pipewire loads successfully when Xorg loads into KDE from SDDM. This leads me to believe that the init script is not loading the dbus properly (I think, but am making some lack of experience assumptions here).

EDIT: I am trying to play sound via HDMI out on an NVIDIA RTX3070LHR

I have emerged alsa-utils, pipewire, and am using USE flags for sound-server and pulseaudio.

this is the error I get running as my non-priv user:
Code:
[1] 23054
M 17:51:14.115471        wireplumber ../wireplumber-0.4.12/src/main.c:371:signal_handler: stopped by signal: Terminated                                                                                           
 ⚙ zorthesosen@zorth-gentoo  ~  M 17:51:14.117337        wireplumber ../wireplumber-0.4.12/src/main.c:363:on_disconnected: disconnected from pipewire
[W][02181.977089] mod.rt       | [     module-rt.c:  297 translate_error()] RTKit error: org.freedesktop.DBus.Error.ServiceUnknown
[W][02181.977119] mod.rt       | [     module-rt.c:  622 set_nice()] could not set nice-level to -11: No such file or directory
[W][02181.977165] mod.rt       | [     module-rt.c:  297 translate_error()] RTKit error: org.freedesktop.DBus.Error.ServiceUnknown
[W][02181.977213] mod.rt       | [     module-rt.c:  622 set_nice()] could not set nice-level to -11: No such file or directory
[W][02181.979367] mod.rt       | [     module-rt.c:  297 translate_error()] RTKit error: org.freedesktop.DBus.Error.ServiceUnknown
[W][02181.979379] mod.rt       | [     module-rt.c:  843 impl_acquire_rt()] could not make thread 23073 realtime using RTKit: No such file or directory
[W][02181.979406] mod.rt       | [     module-rt.c:  297 translate_error()] RTKit error: org.freedesktop.DBus.Error.ServiceUnknown
[W][02181.979415] mod.rt       | [     module-rt.c:  843 impl_acquire_rt()] could not make thread 23072 realtime using RTKit: No such file or directory
536870912

[2]  - 22967 done       gentoo-pipewire-launcher
 zorthesosen@zorth-gentoo  ~  M 17:51:15.120368             mod.rt ../pipewire-0.3.59/src/modules/module-rt.c:297:translate_error: RTKit error: org.freedesktop.DBus.Error.ServiceUnknown
M 17:51:15.120406             mod.rt ../pipewire-0.3.59/src/modules/module-rt.c:622:set_nice: could not set nice-level to -11: No such file or directory
M 17:51:15.121500             mod.rt ../pipewire-0.3.59/src/modules/module-rt.c:297:translate_error: RTKit error: org.freedesktop.DBus.Error.ServiceUnknown
M 17:51:15.121508             mod.rt ../pipewire-0.3.59/src/modules/module-rt.c:843:impl_acquire_rt: could not make thread 23083 realtime using RTKit: No such file or directory
M 17:51:15.127223          wp-device ../wireplumber-0.4.12/lib/wp/device.c:619:wp_spa_device_new_from_spa_factory: SPA handle 'api.libcamera.enum.manager' could not be loaded; is it installed?
M 17:51:15.127233   script/libcamera libcamera.lua:168:chunk: PipeWire's libcamera SPA missing or broken. libcamera not supported.
M 17:51:15.128872          wp-device ../wireplumber-0.4.12/lib/wp/device.c:619:wp_spa_device_new_from_spa_factory: SPA handle 'api.v4l2.enum.udev' could not be loaded; is it installed?
M 17:51:15.128883        script/v4l2 v4l2.lua:158:chunk: PipeWire's V4L SPA missing or broken. Video4Linux not supported.
M 17:51:15.391826    m-lua-scripting ../wireplumber-0.4.12/modules/module-lua-scripting/api/api.c:376:object_activate_done: <WpSiAudioAdapter:0x55b49872a080> Object activation aborted: proxy destroyed
M 17:51:15.391842 script/create-item create-item.lua:80:chunk: <WpSiAudioAdapter:0x55b49872a080> failed to activate item: Object activation aborted: proxy destroyed


this is what I get running as root:
Code:
E][02261.139716] mod.protocol-native | [module-protocol-:  684 init_socket_name()] server 0x55aac8846b30: name pipewire-0 is not an absolute path and no runtime dir found. Set one of PIPEWIRE_RUNTIME_DIR, XDG_RUNTIME_DIR or USERPROFILE in the environment
[E][02261.139743] pw.conf      | [          conf.c:  594 load_module()] 0x55aac882ed10: could not load mandatory module "libpipewire-module-protocol-native": No such file or directory
[E][02261.139798] default      | [      pipewire.c:  125 main()] failed to create context: No such file or directory
[E][02261.140029] mod.protocol-pulse | [         utils.c:   65 get_runtime_dir()] could not find a suitable runtime directory in$PULSE_RUNTIME_PATH and $XDG_RUNTIME_DIR
[W][02261.140066] mod.protocol-pulse | [        server.c: 1010 servers_create_and_start()] pulse-server 0x564663f5a450: failed to parse address 'unix:native': No such file or directory
[E][02261.140076] mod.protocol-pulse | [  pulse-server.c: 5621 pw_protocol_pulse_new()] 0x564663f5a450: no servers could be started: No such file or directory
[E][02261.140108] pw.conf      | [          conf.c:  594 load_module()] 0x564663f42d10: could not load mandatory module "libpipewire-module-protocol-pulse": No such file or directory
[E][02261.140164] default      | [      pipewire.c:  125 main()] failed to create context: No such file or directory
Failed to connect to PipeWire


Here is my make.conf:
Code:
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
COMMON_FLAGS="-march=native -O2 -pipe"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"
MAKEOPTS="-j26"
ACCEPT_LICENSE="*"
#ACCEPT_KEYWORDS="~amd64"

USE="X xorg udev nvidia tools gtk -gnome -qt4 qt5 -ios -ipod \
     kde dvd alsa pulseaudio sound-server cdr -iee1394 -emacs -3dfx -quicktime\
     xinerama elogind -css -systemd python dbus"

VIDEO_CARDS="nvidia"

# NOTE: This stage was built with the bindist Use flag enabled

# This sets the language of build output to English.
# Please keep this setting intact when reporting bugs.
LC_MESSAGES=C

GENTOO_MIRRORS="https://gentoo.osuosl.org/ http://gentoo.osuosl.org/ http://gentoo.mirrors.pair.com/"
GRUB_PLATFORMS="efi-64"


Here is my sddm.conf
Code:
[X11]
DisplayCommand=/etc/sddm/scripts/Xsetup


Xsetup:
Code:
/etc/sddm/scripts/Xsetup


My X11 configs in /etc/X11:

my xinitrc:
Code:
 zorthesosen@zorth-gentoo  /etc/X11/xinit  cat xinitrc
#!/bin/sh

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/Xresources
sysmodmap=/etc/X11/xinit/Xmodmap

# 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 [ -n "`/etc/X11/chooser.sh`" ]; then
 command="`/etc/X11/chooser.sh`"
else
 failsafe="yes"
fi

if [ -d /etc/X11/xinit/xinitrc.d ] ; then
 for f in /etc/X11/xinit/xinitrc.d/?* ; do
  [ -x "$f" ] && . "$f"
 done
 unset f
fi

if [ -n "$failsafe" ]; then
 twm &
 xclock -geometry 50x50-1+1 &
 xterm -geometry 80x50+494+51 &
 xterm -geometry 80x20+494-0 &
 exec xterm -geometry 80x66+0+0 -name login
else
 exec $command
fi


xserverrc:
Code:
#!/bin/sh
if [ -z "$XDG_VTNR" ]; then
  exec /usr/bin/X -nolisten tcp "$@"
else
  exec /usr/bin/X -nolisten tcp -keeptty "$@" "vt$XDG_VTNR"
fi


00-host:
Code:
#!/bin/sh
# Allow all local connections from the current UID
# This fixes issues with hostname changes (usually by dhcp clients)
# see bug 287498 for more info

[ -x /usr/bin/xhost ] && [ -x /usr/bin/id ] &&
        xhost +si:localuser:`id -un` > /dev/null 2>&1


40-libcanberra-gtk-module:
Code:
#!/bin/sh
# to be sourced

case "$SESSION" in
        GNOME)
                # Done by gnome-settings-daemon
                ;;
        *)
                if [ -z "$GTK_MODULES" ] ; then
                        GTK_MODULES="canberra-gtk-module"
                else
                        GTK_MODULES="$GTK_MODULES:canberra-gtk-module"
                fi
                export GTK_MODULES
                ;;
esac


80-dbus:
Code:
#!/bin/sh

# launches a session dbus instance

dbuslaunch=$(command -v dbus-launch 2>/dev/null)
if [ -n "$dbuslaunch" ] && [ -x "$dbuslaunch" ] && [ -z "$DBUS_SESSION_BUS_ADDRESS" ]; then
  if [ -n "$command" ]; then
    command="$dbuslaunch --exit-with-session $command"
  else
    eval "$($dbuslaunch --sh-syntax --exit-with-session)"
  fi
fi


85-appmenu-gtk-module:
Code:
if [[ -n "$GTK_MODULES" ]]; then
    GTK_MODULES="${GTK_MODULES}:appmenu-gtk-module"
else
    GTK_MODULES="appmenu-gtk-module"
fi

if [[ -z "$UBUNTU_MENUPROXY" ]]; then
    UBUNTU_MENUPROXY=1
fi

export GTK_MODULES
export UBUNTU_MENUPROXY


95-nvidia-settings:
Code:
#!/bin/sh
/usr/bin/nvidia-settings --load-config-only


X11 Sessions:
Qtile - this is the one I think might need the addition:
Code:
#!/bin/sh
# qtile Xsession starter, based on Xsession from x11-apps/xinit

# redirect errors to a file in user's home directory if we can
for errfile in "$HOME/.qtile-errors" "${TMPDIR-/tmp}/qtile-$USER" "/tmp/qtile-$USER"
do
        if ( cp /dev/null "$errfile" 2> /dev/null )
        then
                chmod 600 "$errfile"
                exec > "$errfile" 2>&1
                break
        fi
done

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
userxkbmap=$HOME/.Xkbmap

sysresources=/etc/X11/Xresources
sysmodmap=/etc/X11/Xmodmap
sysxkbmap=/etc/X11/Xkbmap

rh6sysresources=/etc/X11/xinit/Xresources
rh6sysmodmap=/etc/X11/xinit/Xmodmap

# merge in defaults
if [ -f "$rh6sysresources" ]; then
        xrdb -merge "$rh6sysresources"
fi

if [ -f "$sysresources" ]; then
        xrdb -merge "$sysresources"
fi

if [ -f "$userresources" ]; then
        xrdb -merge "$userresources"
fi

# merge in keymaps
if [ -f "$sysxkbmap" ]; then
        setxkbmap `cat "$sysxkbmap"`
        XKB_IN_USE=yes
fi

if [ -f "$userxkbmap" ]; then
        setxkbmap `cat "$userxkbmap"`
        XKB_IN_USE=yes
fi

#
# Eeek, this seems like too much magic here
#
if [ -z "$XKB_IN_USE" -a ! -L /etc/X11/X ]; then
        if grep '^exec.*/Xsun' /etc/X11/X > /dev/null 2>&1 && [ -f /etc/X11/XF86Config ]; then
                xkbsymbols=`sed -n -e 's/^[        ]*XkbSymbols[   ]*"\(.*\)".*$/\1/p' /etc/X11/XF86Config /etc/X11/xorg.conf`
                if [ -n "$xkbsymbols" ]; then
                        setxkbmap -symbols "$xkbsymbols"
                        XKB_IN_USE=yes
                fi
        fi
fi

# xkb and xmodmap don't play nice together
if [ -z "$XKB_IN_USE" ]; then
        if [ -f "$rh6sysmodmap" ]; then
                xmodmap "$rh6sysmodmap"
        fi

        if [ -f "$sysmodmap" ]; then
                xmodmap "$sysmodmap"
        fi

        if [ -f "$usermodmap" ]; then
                xmodmap "$usermodmap"
        fi
fi

unset XKB_IN_USE

# run all system xinitrc shell scripts.
if [ -d /etc/X11/xinit/xinitrc.d ]; then
        for i in /etc/X11/xinit/xinitrc.d/* ; do
                if [ -x "$i" ]; then
                . "$i"
                fi
        done
fi

exec /usr/bin/qtile start


Last edited by zorthesosen on Sat Nov 19, 2022 2:06 am; edited 1 time in total
Back to top
View user's profile Send private message
zorthesosen
n00b
n00b


Joined: 14 Nov 2022
Posts: 3

PostPosted: Sat Nov 19, 2022 2:03 am    Post subject: Reply with quote

Also, I tried changing the last line of my qtile Sessions script to:

Code:
dbus-launch --exit-with-session /usr/bin/qtile start


but it did not seem to affect anything.

Alsamixer shows the nvidia sound as a card, and has all of the expected spots, it will just not init the sound server and actually serve sound...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum