grml / grml-debootstrap

wrapper around debootstrap
59 stars 27 forks source link

Speaker not available #208

Closed suntong closed 1 year ago

suntong commented 1 year ago

Follow up on #172, I've just redo grml-debootstrap installation, and now my speaker is not available:

image

To reproduce this, how did you install Debian with grml-debootstrap, and how did you install packages afterward?

Here is my /etc/debootstrap/packages

udev
attr
efibootmgr
dosfstools
ntfs-3g
fatattr
initramfs-tools
hdparm
ncdu
bsdutils
bsdextrautils
ncal
gpm
pciutils
usbutils
lshw
hardinfo
beep
eject
pulseaudio
pavucontrol
cpufrequtils
lsb-release
symlinks
rename
plocate
sudo
at
pwgen
locales
localepurge
recode
rxvt-unicode
xorg
fonts-dejavu-core
fonts-noto-mono
fonts-noto-color-emoji
fonts-noto-cjk
fontconfig
fluxbox
xosview
xclip
xterm
featherpad
less
lsof
strace
bzip2
zip
unzip
xz-utils
zstd
qiv
geeqie
thunar
sox
libsox-fmt-all
vorbis-tools
mpv
nano
dte
imagemagick
file
xutils-dev
tofrodos
jq
ripgrep
glimpse
wdiff
diffuse
athena-jot
gawk
patch
rlwrap
git
openssh-server
bind9-dnsutils
net-tools
rsync
keychain
curl
openssh-client
openssl
telnet
screen
grub-pc
locales
console-data
cryptsetup
file
initramfs-tools
less
locales
lsb-release
lsof
os-prober
pciutils
rsync
screen
ssh
openssh-server
usbutils
curl
ca-certificates

I then install packages normally afterward with apt install, within grml-chroot or within the booted system.

I have the /etc/X11/Xsession.d/20dbus_xdg-runtime file on my system, and I have dbus-user-session installed too.

Here are more needed info as per #172:

$ pactl list short sinks
0       alsa_output.pci-0000_00_1b.0.analog-stereo      module-alsa-card.c     s16le 2ch 44100Hz        IDLE

$ pulseaudio --check | wc 
      0       0       0

$ systemctl start --user pulseaudio | wc 
      0       0       0

$ id | grep -E 'audio|pulse'
 -- I have ,29(audio), but no pulse

Please help.

mika commented 1 year ago

You didn't provide information about which Debian release you installed, but are you sure you're part of pulse and/or pulse-access groups?

suntong commented 1 year ago

Ah, yes forgot to mention that the Debian release I installed is stable, Debian GNU/Linux 11 (bullseye).

I wasn't part of pulse and pulse-access groups before as reported in OP, but I've since added them both, logged off then back in, verified that I'm in both pulse and pulse-access groups, then start pavucontrol again.

Yet, my speaker is still not available as shown in OP. Also,

pulseaudio --check and systemctl start --user pulseaudio | wc still gives
0 0 0.

UPDATE:

rebooted the machine and the symptom persists.

suntong commented 1 year ago

might this the root cause?

$ pulseaudio -D
E: [pulseaudio] main.c: Daemon startup failed.

$ systemctl status pulseaudio
Unit pulseaudio.service could not be found.
mika commented 1 year ago

Uhm, how did you manage to install pulseaudio without having pulseaudio.service? Output of debsums -s pulseaudio and apt-cache policy pulseaudio would be useful.

suntong commented 1 year ago

dunno -- I thought installing pulseaudio and pavucontrol should be good enough. Here is my current situation:

$ systemctl status pulseaudio
Unit pulseaudio.service could not be found.
-- running as root would get the same result

$ debsums -s pulseaudio
-bash: debsums: command not found

$ apt-cache policy pulseaudio
pulseaudio:
  Installed: 14.2-2
  Candidate: 14.2-2
  Version table:
     16.1+dfsg1-2+b1 80
         80 http://deb.debian.org/debian bookworm/main amd64 Packages
 *** 14.2-2 500
        500 http://deb.debian.org/debian bullseye/main amd64 Packages
        100 /var/lib/dpkg/status

$ dpkg -L pulseaudio
/.
/etc
/etc/alsa
/etc/alsa/conf.d
/etc/dbus-1
/etc/dbus-1/system.d
/etc/dbus-1/system.d/pulseaudio-system.conf
/etc/init.d
/etc/init.d/pulseaudio-enable-autospawn
/etc/pulse
/etc/pulse/client.conf.d
/etc/pulse/daemon.conf
/etc/pulse/default.pa
/etc/pulse/system.pa
/etc/xdg
/etc/xdg/autostart
/etc/xdg/autostart/pulseaudio.desktop
/lib
/lib/systemd
/lib/systemd/system
/lib/udev
/lib/udev/rules.d
/lib/udev/rules.d/90-pulseaudio.rules
/usr
/usr/bin
/usr/bin/pulseaudio
/usr/bin/start-pulseaudio-x11
/usr/lib
/usr/lib/pulse-14.2
/usr/lib/pulse-14.2/modules
/usr/lib/pulse-14.2/modules/libalsa-util.so
...
/usr/lib/systemd
/usr/lib/systemd/user
/usr/lib/systemd/user/pulseaudio.service
/usr/lib/systemd/user/pulseaudio.socket
/usr/lib/x86_64-linux-gnu
/usr/lib/x86_64-linux-gnu/pulseaudio
/usr/lib/x86_64-linux-gnu/pulseaudio/libpulsecore-14.2.so
/usr/share
/usr/share/alsa
/usr/share/alsa/alsa.conf.d
/usr/share/alsa/alsa.conf.d/pulse.conf
/usr/share/alsa/pulse-alsa.conf
/usr/share/apport
/usr/share/apport/package-hooks
/usr/share/apport/package-hooks/source_pulseaudio.py
/usr/share/bash-completion
/usr/share/bash-completion/completions
/usr/share/bash-completion/completions/pulseaudio
/usr/share/bug
/usr/share/bug/pulseaudio
/usr/share/doc
/usr/share/doc/pulseaudio
/usr/share/doc/pulseaudio/NEWS.Debian.gz
...
/usr/share/pulseaudio
/usr/share/pulseaudio/alsa-mixer
/usr/share/pulseaudio/alsa-mixer/paths
/usr/share/pulseaudio/alsa-mixer/paths/analog-input-aux.conf
...
/usr/share/zsh
/usr/share/zsh/vendor-completions
/usr/share/zsh/vendor-completions/_pulseaudio
/etc/alsa/conf.d/99-pulse.conf
/etc/pulse/client.conf.d/01-enable-autospawn.conf
/lib/systemd/system/pulseaudio-enable-autospawn.service
/usr/share/bash-completion/completions/pacat
...
mika commented 1 year ago
$ debsums -s pulseaudio
-bash: debsums: command not found

Uhm, yeah then install debsums?

mika commented 1 year ago

Also:

/usr/lib/systemd/user/pulseaudio.service

the file is there, so ls -la /usr/lib/systemd/user/pulseaudio.service as well.

suntong commented 1 year ago

yeah then install debsums?

sure, but I never make any unnecessary changes to my system files so it'll pass for sure. And here is the proof:


$ debsums -s pulseaudio | wc
      0       0       0

# and for /usr/lib/systemd/user/pulseaudio.service

$ ls -la /usr/lib/systemd/user/pulseaudio.service
-rw-r--r-- 1 root root 1101 2021-02-26 17:51 /usr/lib/systemd/user/pulseaudio.service
mika commented 1 year ago

Good, also I only noticed now it's a user service, so:

systemctl status --user pulseaudio

And if it's not running, then also start it (systemctl start --user pulseaudio)

suntong commented 1 year ago

Ah, yes, working now. thanks.