No sound after starting DWM then ...

Help with creation, editing, or playback of sounds, images, or video. Amarok, audacious, mplayer, grip, cdparanoia and anything else that makes a sound or plays a video.
Post Reply
badguru
n00b
n00b
Posts: 7
Joined: Sat Feb 04, 2023 12:49 pm

No sound after starting DWM then ...

Post by badguru »

I have a weird problem with sound on my laptop. When I start DWM and then open youtube on firefox there is no sound then after using speaker-test it starts working. After restarting DWM , the problem returns being fixed by doing another speaker-test. What is going on here?
alamahant
Advocate
Advocate
Posts: 4032
Joined: Sat Mar 23, 2019 12:12 pm

Post by alamahant »

Is it alsa, pulseaudio or pipewqire?
See also
https://www.alsa-project.org/wiki/Setti ... ult_device
How do you start dwm?
:)
badguru
n00b
n00b
Posts: 7
Joined: Sat Feb 04, 2023 12:49 pm

Post by badguru »

Its pulseaudio
alamahant
Advocate
Advocate
Posts: 4032
Joined: Sat Mar 23, 2019 12:12 pm

Post by alamahant »

Plz post your emerge --info
Also insrall

Code: Select all

media-sound/pavucontrol
and play with the UI.
Also
How do you start dwm?
By DM or via startx?
:)
garrison
Apprentice
Apprentice
Posts: 276
Joined: Tue Mar 18, 2003 9:23 am

Post by garrison »

Guess you are on openrc? Looks like xdg autostart does not work with DWM so speaker-test spawns the daemon. Check if you can access pulseaudio daemon with 'pactl info'

I think running firefox should auto-start daemon too the same way which worked for speaker-test, but that is not happening for some reason - do you have custom pulseaudio client.conf somewhere?
badguru
n00b
n00b
Posts: 7
Joined: Sat Feb 04, 2023 12:49 pm

Post by badguru »

@ alamahant

Here is my emerge --info

Code: Select all

Portage 3.0.43 (python 3.10.9-final-0, default/linux/amd64/17.1/no-multilib, gcc-12, glibc-2.36-r5, 5.15.88-gentoo x86_64)
=================================================================
System uname: Linux-5.15.88-gentoo-x86_64-AMD_A8-6410_APU_with_AMD_Radeon_R5_Graphics-with-glibc2.36
KiB Mem:     5017296 total,   3422832 free
KiB Swap:    8388604 total,   8388604 free
Timestamp of repository gentoo: Wed, 08 Feb 2023 13:30:01 +0000
Head commit of repository gentoo: 7a46581d174d586a01e661b0179c273c97da991e
sh bash 5.1_p16-r2
ld GNU ld (Gentoo 2.39 p5) 2.39.0
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r2::gentoo
dev-lang/perl:             5.36.0-r1::gentoo
dev-lang/python:           3.10.9-r1::gentoo, 3.11.1-r1::gentoo
dev-lang/rust:             1.66.1::gentoo
dev-util/cmake:            3.25.2::gentoo
dev-util/meson:            0.64.1::gentoo
sys-apps/baselayout:       2.9::gentoo
sys-apps/openrc:           0.45.2-r2::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-devel/autoconf:        2.71-r5::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.39-r4::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/gcc:             12.2.1_p20230121-r1::gentoo
sys-devel/gcc-config:      2.8::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/llvm:            15.0.7::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.15-r3::gentoo (virtual/os-headers)
sys-libs/glibc:            2.36-r5::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    volatile: True
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts:

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep->
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PER>
FCFLAGS="-march=native -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if>
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="http://www.gtlib.gatech.edu/pub/gentoo rsync://rsync.gtlib.gatech.edu/gentoo https://gentoo.osuosl.org/ htt>
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j5"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --del>
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="X acl alsa amd64 bzip2 cli crypt dri elogind fortran gdbm iconv ipv6 libglvnd libtirpc ncurses nls nptl openmp pam pcr>
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_>


Currently installing pavucontrol

I start DWM via startx


@garrison

Yes I'm on openrc

Here is the output from pactl info:

Code: Select all

Server String: /tmp/pulse-PKdhtXMmr18n/native
Library Protocol Version: 35
Server Protocol Version: 35
Is Local: yes
Client Index: 0
Tile Size: 65472
User Name: badguru
Host Name: craptop
Server Name: pulseaudio
Server Version: 16.1
Default Sample Specification: s16le 2ch 44100Hz
Default Channel Map: front-left,front-right
Default Sink: alsa_output.pci-0000_00_14.2.analog-stereo
Default Source: alsa_input.pci-0000_00_14.2.analog-stereo
Cookie: 71eb:635d
no custom client.conf
garrison
Apprentice
Apprentice
Posts: 276
Joined: Tue Mar 18, 2003 9:23 am

Post by garrison »

Your 'emerge --info' has USE line truncated, but what we have is probably enough already.

Pulseaudio autostart is not working from firefox sandbox process https://bugzilla.mozilla.org/show_bug.cgi?id=1434392 so pulseaudio daemon should be started before firefox.

Normally this is done by desktop environment, if it supports XDG autostart then on openrc it would automatically run start-pulseaudio-x11 at desktop startup time.

DWM does not support XDG so you will need to run it by hand: run start-pulseaudio-x11& before starting dwm.

Eventually you probably will need DBUS working, to do that see dbus-session here https://wiki.gentoo.org/wiki/Dwm#Starting
Post Reply