View previous topic :: View next topic |
Author |
Message |
nulltheliteralnothing n00b
Joined: 23 Feb 2024 Posts: 68
|
Posted: Fri Mar 15, 2024 1:39 pm Post subject: [RESOLVED] Gnome shows 0 input/output audio devices |
|
|
Hi Everyone,
I am pretty happy with my Micros**t Surface Pro 3 Gentoo build.
Does everything I needed the system to do minus audio.
I am using Gnome 40, and for example, if I go to YouTube and try to play a video there isn't any sound.
Makes sense, considering in the Gnome settings it claims there isn't any audio input/output devices.
I am slightly overwhelmed with the amount of possibilities and combinations for the multi-layer sound system for Linux.
As a starting point, here are the drivers:
Code: |
# Output from `lspci -v`
00:1b.0 Audio device: Intel Corporation 8 Series HD Audio Controller (rev 04)
Subsystem: Microsoft Corporation 8 Series HD Audio Controller
Flags: bus master, fast devsel, latency 0, IRQ 60
Memory at c0610000 (64-bit, non-prefetchable) [size=16K]
Capabilities: <access denied>
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel
|
Where do I go from here? I have very basic audio needs.[/list]
Last edited by nulltheliteralnothing on Wed Mar 20, 2024 12:21 pm; edited 2 times in total |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22423
|
Posted: Fri Mar 15, 2024 3:08 pm Post subject: |
|
|
Start at the bottom and work your way up. Does ALSA know the audio device exists (aplay -l)? If you use an ALSA command line tool to play a sound, do you hear that sound come from your speaker (speaker-test)? Once ALSA works, move upward. If you use Pipewire or Pulseaudio, tell us which one, and check that playing a sound using that tool works. Once that works, investigate why GNOME reports no devices. Fix that. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54539 Location: 56N 3W
|
Posted: Fri Mar 15, 2024 5:11 pm Post subject: |
|
|
nulltheliteralnothing,
There are two different sound stacks in the kernel. The usual one and the Sound Open Firmware stack becoming more popular in notebooks and portable devices.
What does say about Code: | 00:1b.0 Audio device: Intel Corporation 8 Series HD Audio Controller (rev 04) |
You will get the Vendor and Device ID now, which is what we want. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
nulltheliteralnothing n00b
Joined: 23 Feb 2024 Posts: 68
|
Posted: Fri Mar 15, 2024 6:16 pm Post subject: |
|
|
Hu wrote: | Start at the bottom and work your way up. Does ALSA know the audio device exists (aplay -l)? If you use an ALSA command line tool to play a sound, do you hear that sound come from your speaker (speaker-test)? Once ALSA works, move upward. If you use Pipewire or Pulseaudio, tell us which one, and check that playing a sound using that tool works. Once that works, investigate why GNOME reports no devices. Fix that. |
Code: |
shinobi@thezengarden /dev/snd $ aplay -l
bash: aplay: command not found
|
UPDATE: Installed the alsa-utils
Code: |
shinobi@thezengarden /dev/snd $ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: HDMI [HDA Intel HDMI], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: HDMI [HDA Intel HDMI], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: HDMI [HDA Intel HDMI], device 8: HDMI 2 [HDMI 2]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 0: ALC288 Analog [ALC288 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
|
Code: |
shinobi@thezengarden /dev/snd $ speaker-test
speaker-test 1.2.10
Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.10-r2/work/alsa-lib-1.2.10/src/pcm/pcm_dmix.c:1000:(snd_pcm_dmix_open) unable to open slave
Playback open error: -2,No such file or directory
|
Last edited by nulltheliteralnothing on Fri Mar 15, 2024 6:43 pm; edited 2 times in total |
|
Back to top |
|
|
nulltheliteralnothing n00b
Joined: 23 Feb 2024 Posts: 68
|
Posted: Fri Mar 15, 2024 6:17 pm Post subject: |
|
|
NeddySeagoon wrote: | nulltheliteralnothing,
There are two different sound stacks in the kernel. The usual one and the Sound Open Firmware stack becoming more popular in notebooks and portable devices.
What does say about Code: | 00:1b.0 Audio device: Intel Corporation 8 Series HD Audio Controller (rev 04) |
You will get the Vendor and Device ID now, which is what we want. |
Code: |
00:03.0 Audio device [0403]: Intel Corporation Haswell-ULT HD Audio Controller [8086:0a0c] (rev 09)
Subsystem: Intel Corporation Haswell-ULT HD Audio Controller [8086:0a0c]
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel
|
|
|
Back to top |
|
|
nulltheliteralnothing n00b
Joined: 23 Feb 2024 Posts: 68
|
Posted: Fri Mar 15, 2024 6:31 pm Post subject: |
|
|
I realized I built the system without the use flag “alsa”. I will add it and rebuild @world.
UPDATE: I was only missing the alsa-utils. Nothing was rebuilt adding the alsa USE flag. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54539 Location: 56N 3W
|
Posted: Fri Mar 15, 2024 7:36 pm Post subject: |
|
|
nulltheliteralnothing,
does not need the Sound Open Firmware stack, so you are probably good.
Code: | Playback device is default | thats card 0 Device 0, or one of your HDMI outputs.
That's probably not what you want.
Your analogue sound output is card 1 device 0.
Point speaker-test to that.
You will need to run to umute Master, Front and PCM, then set the sliders to 70% before you get any output too. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
nulltheliteralnothing n00b
Joined: 23 Feb 2024 Posts: 68
|
Posted: Fri Mar 15, 2024 10:22 pm Post subject: |
|
|
NeddySeagoon wrote: | nulltheliteralnothing,
does not need the Sound Open Firmware stack, so you are probably good.
Code: | Playback device is default | thats card 0 Device 0, or one of your HDMI outputs.
That's probably not what you want.
Your analogue sound output is card 1 device 0.
Point speaker-test to that.
You will need to run to umute Master, Front and PCM, then set the sliders to 70% before you get any output too. |
I ran the line `alsamixer -c1` and increased both the master and speaker volumes to 75%, and changed the default device to the non-HDMI entry. I then proceeded to execute `speaker-test`, which resulted in the same missing file or directory error.
I also observed that pipewire was installed; however, I didn’t see a systemd service script. I added systemd to package.use but of course since I am on the systemd/gnome profile the change didn’t impact the compile of the pipewire service.
I wonder what happened? |
|
Back to top |
|
|
logrusx Advocate
Joined: 22 Feb 2018 Posts: 2219
|
Posted: Sat Mar 16, 2024 6:22 am Post subject: |
|
|
Quote: | ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.10-r2/work/alsa-lib-1.2.10/src/pcm/pcm_dmix.c:1000:(snd_pcm_dmix_open) unable to open slave |
That to me looks like a problem in the ebuild. But it might be secondary to the real issue.
nulltheliteralnothing wrote: |
I also observed that pipewire was installed; however, I didn’t see a systemd service script. I added systemd to package.use but of course since I am on the systemd/gnome profile the change didn’t impact the compile of the pipewire service. |
Did you follow the pipewire wiki? Pipewire service is user service. You should start it by running the following command with the user you're using Gnome with:
Code: | systemctl start --user pipewire |
Also you need to add your user to the appropriate group.
Better consult with the wiki.
Best Regards,
Georgi |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54539 Location: 56N 3W
|
Posted: Sat Mar 16, 2024 12:10 pm Post subject: |
|
|
nulltheliteralnothing,
Quote: | I ran the line `alsamixer -c1` and increased both the master and speaker volumes to 75%, |
What about PCM and the Mute switches?
Code: |
┌───────── AlsaMixer v1.2.11 ──────────┐
│ Card: HD-Audio Generic │
│ Chip: Realtek ALC1220 │
│ View: Playback │
│ Item: Headphone [Off, Off] │
│ │
│ ┌──┐ ┌──┐ ┌──┐ │
│ │▒▒│ │▒▒│ │▒▒│ │
│ │▒▒│ │▒▒│ │▒▒│ │
│ │▒▒│ │▒▒│ │▒▒│ →
│ │▒▒│ │▒▒│ │▒▒│ →
│ │▒▒│ │▒▒│ │▒▒│ →
│ │▒▒│ │▒▒│ │▒▒│ →
│ │▒▒│ │▒▒│ │▒▒│ →
│ │▒▒│ │▒▒│ │▒▒│ →
│ │▒▒│ │▒▒│ │▒▒│ →
│ │▒▒│ │▒▒│ │▒▒│ │
│ │▒▒│ │▒▒│ │▒▒│ │
│ ├──┤ ┌──┐ └──┘ └──┘ │
│ │OO│ │MM│ │
│ └──┘ └──┘ │
│ 100 100<>100 100<>100 │
│ Master <Headphon>Headphon PCM │
└──────────────────────────────────────┘ |
The OO at the bottom of the slider means Open. The MM, shown in the next column, (no slider) means Muted.
The switches overide the sliders. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22423
|
Posted: Sat Mar 16, 2024 3:19 pm Post subject: |
|
|
logrusx wrote: | Quote: | ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.10-r2/work/alsa-lib-1.2.10/src/pcm/pcm_dmix.c:1000:(snd_pcm_dmix_open) unable to open slave |
That to me looks like a problem in the ebuild. But it might be secondary to the real issue. | Embedding the PORTAGE_TMPDIR path is unfortunate, but harmless. Fixing it would require that upstream pass relative paths to the compiler.
However, the latter part of the line you quoted is important. unable to open slave means that the device is unavailable, and cannot be opened by this sound producer, so this program cannot produce sound from this device. The part you did not quote asserts that the device does not exist. That then leads to the question of whether OP is trying to access a device that is not supposed to exist, or is trying to access the right device and the device wrongly does not exist. |
|
Back to top |
|
|
nulltheliteralnothing n00b
Joined: 23 Feb 2024 Posts: 68
|
Posted: Sat Mar 16, 2024 9:00 pm Post subject: |
|
|
UPDATES:
Code: |
shinobi@thezengarden ~ $ systemctl status --user pipewire
● pipewire.service - PipeWire Multimedia Service
Loaded: loaded (/usr/lib/systemd/user/pipewire.service; enabled; preset: e>
Active: active (running) since Sat 2024-03-16 16:23:08 EDT; 10min ago
TriggeredBy: ● pipewire.socket
Main PID: 1140 (pipewire)
Tasks: 2 (limit: 9341)
Memory: 4.2M (peak: 4.5M)
CPU: 34ms
CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/pipewi>
└─1140 /usr/bin/pipewire
Mar 16 16:23:08 thezengarden systemd[1131]: Started PipeWire Multimedia Service.
|
For clarity, PipeWire was pulled in from the gnone profile. Understanding the service was in the user space allowed me to check if the status is active. However, I did go to the PipeWire Gentoo Wiki page for debugging. I updated the user group etc. The challenge is the configuration steps didn't work.
Code: |
shinobi@thezengarden ~ $ cp /usr/share/pipewire/pipewire.conf ~/.config/pipewire/pipewire.conf
cp: cannot create regular file '/home/shinobi/.config/pipewire/pipewire.conf': No such file or directory
|
I will debug when I have a moment. I have a new born baby. Zaps my time (in a good way)
In terms of the speaker-test, I am yet to understand the reference for devices.
Code: |
shinobi@thezengarden ~ $ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: HDMI [HDA Intel HDMI], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: HDMI [HDA Intel HDMI], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: HDMI [HDA Intel HDMI], device 8: HDMI 2 [HDMI 2]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 0: ALC288 Analog [ALC288 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
|
So, I assumed:
Code: |
shinobi@thezengarden ~ $ speaker-test -Dplug:"card 1"
speaker-test 1.2.10
Playback device is plug:card 1
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.10-r2/work/alsa-lib-1.2.10/src/pcm/pcm.c:2675:(snd_pcm_open_noupdate) Unknown PCM card 1
Playback open error: -2,No such file or directory
shinobi@thezengarden ~ $ speaker-test -D"card 1"
speaker-test 1.2.10
Playback device is card 1
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.10-r2/work/alsa-lib-1.2.10/src/pcm/pcm.c:2675:(snd_pcm_open_noupdate) Unknown PCM card 1
Playback open error: -2,No such file or directory
shinobi@thezengarden ~ $ speaker-test -Dplug:PCH
speaker-test 1.2.10
Playback device is plug:PCH
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.2.10-r2/work/alsa-lib-1.2.10/src/pcm/pcm.c:2675:(snd_pcm_open_noupdate) Unknown PCM PCH
Playback open error: -2,No such file or directory
|
Would work. So, I need to understand more about speaker-test. |
|
Back to top |
|
|
logrusx Advocate
Joined: 22 Feb 2018 Posts: 2219
|
Posted: Sun Mar 17, 2024 7:14 am Post subject: |
|
|
I believe at this point you should share your emerge --info as well as the full output of lspci -nnk as well as your config if you use a custom kernel or tell us which distribution kernel you're using.
Best Regards,
Georgi |
|
Back to top |
|
|
nulltheliteralnothing n00b
Joined: 23 Feb 2024 Posts: 68
|
Posted: Sun Mar 17, 2024 4:10 pm Post subject: |
|
|
logrusx wrote: | I believe at this point you should share your emerge --info as well as the full output of lspci -nnk as well as your config if you use a custom kernel or tell us which distribution kernel you're using.
Best Regards,
Georgi |
Code: |
shinobi@thezengarden ~ $ emerge --info
Portage 3.0.61 (python 3.11.8-final-0, default/linux/amd64/17.1/desktop/gnome/systemd/merged-usr, gcc-13, glibc-2.38-r10, 6.6.16-gentoo-dist x86_64)
=================================================================
System uname: Linux-6.6.16-gentoo-dist-x86_64-Intel-R-_Core-TM-_i7-4650U_CPU_@_1.70GHz-with-glibc2.38
KiB Mem: 8035852 total, 6143872 free
KiB Swap: 15625212 total, 15625212 free
Timestamp of repository gentoo: Mon, 11 Mar 2024 00:45:00 +0000
Head commit of repository gentoo: f3c2501cb73441d0dcab997df0f0f14c1c5bdba5
Head commit of repository librewolf: 09f2e73504f9247099f8d0d580afbb9237caa2f0
sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.41 p5) 2.41.0
app-misc/pax-utils: 1.3.7::gentoo
app-shells/bash: 5.1_p16-r6::gentoo
dev-build/autoconf: 2.13-r8::gentoo, 2.71-r6::gentoo
dev-build/automake: 1.16.5-r2::gentoo
dev-build/cmake: 3.27.9::gentoo
dev-build/libtool: 2.4.7-r2::gentoo
dev-build/make: 4.4.1-r1::gentoo
dev-build/meson: 1.3.1-r1::gentoo
dev-lang/perl: 5.38.2-r2::gentoo
dev-lang/python: 3.11.8_p1::gentoo, 3.12.2_p1::gentoo
dev-lang/rust-bin: 1.74.1::gentoo
sys-apps/baselayout: 2.14-r2::gentoo
sys-apps/sandbox: 2.38::gentoo
sys-apps/systemd: 255.3-r1::gentoo
sys-devel/binutils: 2.41-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang: 17.0.6::gentoo
sys-devel/gcc: 13.2.1_p20240113-r1::gentoo
sys-devel/gcc-config: 2.11::gentoo
sys-devel/lld: 17.0.6::gentoo
sys-devel/llvm: 17.0.6::gentoo
sys-kernel/linux-headers: 6.6::gentoo (virtual/os-headers)
sys-libs/glibc: 2.38-r10::gentoo
Repositories:
gentoo
location: /var/db/repos/gentoo
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000
volatile: False
sync-rsync-verify-jobs: 1
sync-rsync-verify-metamanifest: yes
sync-rsync-verify-max-age: 3
sync-rsync-extra-opts:
librewolf
location: /var/db/repos/librewolf
sync-type: git
sync-uri: https://codeberg.org/librewolf/gentoo.git
masters: gentoo
volatile: False
Binary Repositories:
gentoobinhost
priority: 1
sync-uri: https://distfiles.gentoo.org/releases/amd64/binpackages/17.1/x86-64
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d"
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 PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-march=native -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="ftp://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ https://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ rsync://mirror.csclub.uwaterloo.ca/gentoo-distfiles https://gentoo.osuosl.org/ http://gentoo.osuosl.org/"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j2"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="X a52 aac acl acpi alsa amd64 bluetooth branding bzip2 cairo cdda cdr cli colord crypt cups dbus dri dts dvd dvdr eds encode evo exif flac fortran gdbm gif gnome gnome-keyring gnome-online-accounts gnome-shell gpm gstreamer gtk gui iconv icu introspection ipv6 jpeg keyring lcms libnotify libtirpc mad mng mp3 mp4 mpeg multilib nautilus ncurses networkmanager nls ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt5 readline sdl seccomp sound spell ssl startup-notification svg sysprof systemd test-rust tiff tracker truetype udev udisks unicode upower usb vorbis vulkan wayland wxwidgets x264 xattr xcb xft xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 aes avx avx2 f16c fma3 pclmul popcnt rdrand sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
|
Code: |
00:00.0 Host bridge [0600]: Intel Corporation Haswell-ULT DRAM Controller [8086:0a04] (rev 09)
Subsystem: Microsoft Corporation Haswell-ULT DRAM Controller [1414:0a04]
Kernel driver in use: hsw_uncore
00:02.0 VGA compatible controller [0300]: Intel Corporation Haswell-ULT Integrated Graphics Controller [8086:0a26] (rev 09)
Subsystem: Microsoft Corporation Haswell-ULT Integrated Graphics Controller [1414:0005]
Kernel driver in use: i915
Kernel modules: i915
00:03.0 Audio device [0403]: Intel Corporation Haswell-ULT HD Audio Controller [8086:0a0c] (rev 09)
Subsystem: Intel Corporation Haswell-ULT HD Audio Controller [8086:0a0c]
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel
00:14.0 USB controller [0c03]: Intel Corporation 8 Series USB xHCI HC [8086:9c31] (rev 04)
Subsystem: Microsoft Corporation 8 Series USB xHCI HC [1414:9c31]
Kernel driver in use: xhci_hcd
00:16.0 Communication controller [0780]: Intel Corporation 8 Series HECI #0 [8086:9c3a] (rev 04)
Subsystem: Microsoft Corporation 8 Series HECI [1414:9c3a]
Kernel driver in use: mei_me
Kernel modules: mei_me
00:1b.0 Audio device [0403]: Intel Corporation 8 Series HD Audio Controller [8086:9c20] (rev 04)
Subsystem: Microsoft Corporation 8 Series HD Audio Controller [1414:9c20]
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel
00:1c.0 PCI bridge [0604]: Intel Corporation 8 Series PCI Express Root Port 3 [8086:9c14] (rev e4)
Subsystem: Microsoft Corporation 8 Series PCI Express Root Port 3 [1414:9c14]
Kernel driver in use: pcieport
00:1f.0 ISA bridge [0601]: Intel Corporation 8 Series LPC Controller [8086:9c43] (rev 04)
Subsystem: Microsoft Corporation 8 Series LPC Controller [1414:9c43]
Kernel driver in use: lpc_ich
Kernel modules: lpc_ich
00:1f.2 SATA controller [0106]: Intel Corporation 8 Series SATA Controller 1 [AHCI mode] [8086:9c03] (rev 04)
Subsystem: Microsoft Corporation 8 Series SATA Controller 1 [AHCI mode] [1414:9c03]
Kernel driver in use: ahci
00:1f.3 SMBus [0c05]: Intel Corporation 8 Series SMBus Controller [8086:9c22] (rev 04)
Subsystem: Microsoft Corporation 8 Series SMBus Controller [1414:9c22]
Kernel driver in use: i801_smbus
Kernel modules: i2c_i801
01:00.0 Ethernet controller [0200]: Marvell Technology Group Ltd. 88W8897 [AVASTAR] 802.11ac Wireless [11ab:2b38]
Subsystem: SafeNet (wrong ID) 88W8897 [AVASTAR] 802.11ac Wireless [0001:045e]
Kernel driver in use: mwifiex_pcie
Kernel modules: mwifiex_pcie
|
There you go
Appreciate the help. |
|
Back to top |
|
|
logrusx Advocate
Joined: 22 Feb 2018 Posts: 2219
|
Posted: Sun Mar 17, 2024 4:43 pm Post subject: |
|
|
Post the output of aplay -L, note the capital L.
If you have some time you can see the example in man speaker-test.
For example, my relevant output was:
Code: | front:CARD=Generic,DEV=0
HD-Audio Generic, ALC287 Analog
Front output / input
|
and the relevant command was:
Code: | speaker-test -Dplug:front:Generic |
adding -c2 tested the other channel.
Best Regards,
Georgi |
|
Back to top |
|
|
nulltheliteralnothing n00b
Joined: 23 Feb 2024 Posts: 68
|
Posted: Sun Mar 17, 2024 9:52 pm Post subject: |
|
|
logrusx wrote: | Post the output of aplay -L, note the capital L.
If you have some time you can see the example in man speaker-test.
For example, my relevant output was:
Code: | front:CARD=Generic,DEV=0
HD-Audio Generic, ALC287 Analog
Front output / input
|
and the relevant command was:
Code: | speaker-test -Dplug:front:Generic |
adding -c2 tested the other channel.
Best Regards,
Georgi |
Hi,
Hopefully this helps.
Code: |
shinobi@thezengarden ~/.config $ aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
pulse
PulseAudio Sound Server
upmix
Plugin for channel upmix (4,6,8)
vdownmix
Plugin for channel downmix (stereo) with a simple spacialization
hdmi:CARD=HDMI,DEV=0
HDA Intel HDMI, HDMI 0
HDMI Audio Output
hdmi:CARD=HDMI,DEV=1
HDA Intel HDMI, HDMI 1
HDMI Audio Output
hdmi:CARD=HDMI,DEV=2
HDA Intel HDMI, HDMI 2
HDMI Audio Output
usbstream:CARD=HDMI
HDA Intel HDMI
USB Stream Output
default:CARD=PCH
HDA Intel PCH, ALC288 Analog
Default Audio Device
sysdefault:CARD=PCH
HDA Intel PCH, ALC288 Analog
Default Audio Device
front:CARD=PCH,DEV=0
HDA Intel PCH, ALC288 Analog
Front output / input
surround21:CARD=PCH,DEV=0
HDA Intel PCH, ALC288 Analog
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=PCH,DEV=0
HDA Intel PCH, ALC288 Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
HDA Intel PCH, ALC288 Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
HDA Intel PCH, ALC288 Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
HDA Intel PCH, ALC288 Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
HDA Intel PCH, ALC288 Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
usbstream:CARD=PCH
HDA Intel PCH
USB Stream Output
|
|
|
Back to top |
|
|
logrusx Advocate
Joined: 22 Feb 2018 Posts: 2219
|
Posted: Mon Mar 18, 2024 6:37 am Post subject: |
|
|
So your test command should be:
Code: | speaker-test -Dplug:front:PCH |
Just like the example in the man page I think.
But I see: Code: | pulse
PulseAudio Sound Server |
Which may be the culprit.
Give me the output of:
Code: | equery list media-sound/*
equery list media-video/* |
Also if there's something related to pulseaudio there, I want to see what emerge -pv has to say about it. Especially if it is pulseaudio-daemon. In such case I want you to check if you have a systemd unit for it too and if it's running.
Best Regards,
Georgi |
|
Back to top |
|
|
nulltheliteralnothing n00b
Joined: 23 Feb 2024 Posts: 68
|
Posted: Mon Mar 18, 2024 1:37 pm Post subject: |
|
|
logrusx wrote: | So your test command should be:
Code: | speaker-test -Dplug:front:PCH |
Just like the example in the man page I think.
But I see: Code: | pulse
PulseAudio Sound Server |
Which may be the culprit.
Give me the output of:
Code: | equery list media-sound/*
equery list media-video/* |
Also if there's something related to pulseaudio there, I want to see what emerge -pv has to say about it. Especially if it is pulseaudio-daemon. In such case I want you to check if you have a systemd unit for it too and if it's running.
Best Regards,
Georgi |
Hi Georgi,
Thanks for the support.
Code: |
shinobi@thezengarden ~ $ speaker-test -Dplug:front:PCH
speaker-test 1.2.10
Playback device is plug:front:PCH
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 64 to 1048576
Period size range from 32 to 524288
Using max buffer size 1048576
Periods = 4
was set period_size = 262144
was set buffer_size = 1048576
0 - Front Left
Time per period = 5.465036
0 - Front Left
Time per period = 5.467958
0 - Front Left
Time per period = 5.466332
0 - Front Left
Time per period = 5.465466
0 - Front Left
Time per period = 5.464776
0 - Front Left
Time per period = 5.465278
0 - Front Left
Time per period = 5.464770
0 - Front Left
Time per period = 5.464658
0 - Front Left
Time per period = 5.467507
0 - Front Left
Time per period = 5.467739
0 - Front Left
Time per period = 5.464580
0 - Front Left
^Z
[1]+ Stopped speaker-test -Dplug:front:PCH
|
Observations: 1 - I received sound. 2 - only tested 1 channel which was the left (not the right)
equery
Code: |
thezengarden /home/shinobi # equery list media-sound/*
* Searching for * in media-sound ...
[IP-] [ ] media-sound/alsa-utils-1.2.10-r1:0.9
[IP-] [ ] media-sound/cdparanoia-3.10.2-r7:0
[IP-] [ ] media-sound/lame-3.100-r3:0
[IP-] [ ] media-sound/mpg123-base-1.32.3:0
[IP-] [ ] media-sound/pulseaudio-daemon-17.0-r1:0
thezengarden /home/shinobi # equery list media-video/*
* Searching for * in media-video ...
[IP-] [ ] media-video/cheese-44.1:0/8
[IP-] [ ] media-video/ffmpeg-6.0.1-r2:0/58.60.60
[IP-] [ ] media-video/gnome-video-effects-0.6.0:0
[IP-] [ ] media-video/pipewire-1.0.3:0/0.4
[IP-] [ ] media-video/totem-43.0-r1:0
[IP-] [ ] media-video/wireplumber-0.4.17-r1:0/0.4
|
Systemd PulseAudio
Code: |
thezengarden /home/shinobi # systemctl status pulseaudio.service
Unit pulseaudio.service could not be found.
|
|
|
Back to top |
|
|
logrusx Advocate
Joined: 22 Feb 2018 Posts: 2219
|
Posted: Mon Mar 18, 2024 3:20 pm Post subject: |
|
|
OK, we're getting beyond my knowledge here, but I think pulesaudio-daemon might be running and preventing pipewire from opening the device. And I'm pretty sure it's like that because of:
Code: | pulse
PulseAudio Sound Server |
At least it's not a driver related issue, you have a functioning audio hardware.
Find out what pulls in pulseaudio-daemon and get rid of it, it should fix your pipewire issue. I think you just need to emerge --oneshot pulseaudio, which is not the real pulseaudio but libpulse which allows pulseaudio clients to get routed through pipewire, and then emerge -ca pulseaudio-daemon, this should work.
You can inspect what pulled in pulseaudio-daemon by
Code: | emerge -pvc pulseaudio-daemon |
If you find it difficult to figure out what's going on, paste the output here, maybe along with the output of emerge -pv pipewire.
Also, after struggling to find PA to pipewire migration advice I recalled it was a message in the ebuild, so I dug it out for you:
Quote: | >=pipewire-0.3.66 uses the 'pipewire' group to manage permissions
and limits needed to function smoothly:
1. Please make sure your user is in the 'pipewire' group for
the best experience with realtime scheduling (PAM limits behavior)!
You can add your account with:
usermod -aG pipewire <youruser>
2. For the best experience with fast user switching, it is recommended
that you remove your user from the 'audio' group unless you rely on the
audio group for device access control or ACLs.:
usermod -rG audio <youruser>
When switching from PulseAudio, you may need to disable PulseAudio:
systemctl --user disable pulseaudio.service pulseaudio.socket
To use PipeWire, the user units must be manually enabled
by running this command as each user you use for desktop activities:
systemctl --user enable pipewire.socket pipewire-pulse.socket
A reboot is recommended to avoid interferences from still running
PulseAudio daemon.
Both new users and those upgrading need to enable WirePlumber
for relevant users:
systemctl --user disable pipewire-media-session.service
systemctl --user --force enable wireplumber.service
Root user may replace --user with --global to change system default
configuration for all of the above commands.
|
Best Regards,
Georgi |
|
Back to top |
|
|
nulltheliteralnothing n00b
Joined: 23 Feb 2024 Posts: 68
|
Posted: Mon Mar 18, 2024 5:17 pm Post subject: |
|
|
logrusx wrote: | OK, we're getting beyond my knowledge here, but I think pulesaudio-daemon might be running and preventing pipewire from opening the device. And I'm pretty sure it's like that because of:
Code: | pulse
PulseAudio Sound Server |
At least it's not a driver related issue, you have a functioning audio hardware.
Find out what pulls in pulseaudio-daemon and get rid of it, it should fix your pipewire issue. I think you just need to emerge --oneshot pulseaudio, which is not the real pulseaudio but libpulse which allows pulseaudio clients to get routed through pipewire, and then emerge -ca pulseaudio-daemon, this should work.
You can inspect what pulled in pulseaudio-daemon by
Code: | emerge -pvc pulseaudio-daemon |
If you find it difficult to figure out what's going on, paste the output here, maybe along with the output of emerge -pv pipewire.
Also, after struggling to find PA to pipewire migration advice I recalled it was a message in the ebuild, so I dug it out for you:
Quote: | >=pipewire-0.3.66 uses the 'pipewire' group to manage permissions
and limits needed to function smoothly:
1. Please make sure your user is in the 'pipewire' group for
the best experience with realtime scheduling (PAM limits behavior)!
You can add your account with:
usermod -aG pipewire <youruser>
2. For the best experience with fast user switching, it is recommended
that you remove your user from the 'audio' group unless you rely on the
audio group for device access control or ACLs.:
usermod -rG audio <youruser>
When switching from PulseAudio, you may need to disable PulseAudio:
systemctl --user disable pulseaudio.service pulseaudio.socket
To use PipeWire, the user units must be manually enabled
by running this command as each user you use for desktop activities:
systemctl --user enable pipewire.socket pipewire-pulse.socket
A reboot is recommended to avoid interferences from still running
PulseAudio daemon.
Both new users and those upgrading need to enable WirePlumber
for relevant users:
systemctl --user disable pipewire-media-session.service
systemctl --user --force enable wireplumber.service
Root user may replace --user with --global to change system default
configuration for all of the above commands.
|
Best Regards,
Georgi |
Thank you, thank you.
Code: |
shinobi@thezengarden ~ $ emerge -pvc pulseaudio-daemon
Calculating dependencies... done!
media-sound/pulseaudio-daemon-17.0-r1 pulled in by:
media-libs/libpulse-17.0 requires media-sound/pulseaudio-daemon
>>> No packages selected for removal by depclean
Packages installed: 1053
Packages in world: 28
Packages in system: 49
Required packages: 1053
Number to remove: 0
|
execution of the commands:
Code: |
thezengarden /home/shinobi # emerge --oneshot pulseaudio
* IMPORTANT: 1 news items need reading for repository 'librewolf'.
* IMPORTANT: 19 news items need reading for repository 'gentoo'.
* Use eselect news read to view new items.
Calculating dependencies... done!
Dependency resolution took 2.25 s (backtrack: 0/20).
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) media-sound/pulseaudio-16.1::gentoo
>>> Unpacking source...
>>> Source unpacked in /var/tmp/portage/media-sound/pulseaudio-16.1/work
>>> Preparing source in /var/tmp/portage/media-sound/pulseaudio-16.1/work ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/media-sound/pulseaudio-16.1/work ...
* abi_x86_64.amd64: running multilib-minimal_abi_src_configure
>>> Source configured.
>>> Compiling source in /var/tmp/portage/media-sound/pulseaudio-16.1/work ...
* abi_x86_64.amd64: running multilib-minimal_abi_src_compile
>>> Source compiled.
>>> Test phase [not enabled]: media-sound/pulseaudio-16.1
>>> Install media-sound/pulseaudio-16.1 into /var/tmp/portage/media-sound/pulseaudio-16.1/image
* abi_x86_64.amd64: running multilib-minimal_abi_src_install
>>> Completed installing media-sound/pulseaudio-16.1 into /var/tmp/portage/media-sound/pulseaudio-16.1/image
* Final size of build directory: 8 KiB
* Final size of installed tree: 4 KiB
>>> Installing (1 of 1) media-sound/pulseaudio-16.1::gentoo
>>> Completed (1 of 1) media-sound/pulseaudio-16.1::gentoo
* GNU info directory index is up-to-date.
* IMPORTANT: 1 news items need reading for repository 'librewolf'.
* IMPORTANT: 19 news items need reading for repository 'gentoo'.
* Use eselect news read to view new items.
thezengarden /home/shinobi # emerge -ca pulseaudio-daemon
Calculating dependencies... done!
>>> No packages selected for removal by depclean
>>> To see reverse dependencies, use --verbose
|
and, finally,
Code: |
thezengarden /home/shinobi # usermod -aG pipewire shinobi
thezengarden /home/shinobi # usermod -rG audio shinobi
thezengarden /home/shinobi # systemctl --user disable pulseaudio.service pulseaudio.socket
Failed to connect to bus: Operation not permitted
thezengarden /home/shinobi # systemctl --user enable pipewire.socket piepwire-pulse.socket
Failed to connect to bus: Operation not permitted
thezengarden /home/shinobi # systemctl --global enable pipewire.socket piepwire-pulse.socket
Failed to enable unit, unit piepwire-pulse.socket does not exist.
thezengarden /home/shinobi # systemctl --global disable pulseaudio.service pulseaudio.socket
thezengarden /home/shinobi #
|
|
|
Back to top |
|
|
logrusx Advocate
Joined: 22 Feb 2018 Posts: 2219
|
Posted: Mon Mar 18, 2024 5:43 pm Post subject: |
|
|
I'm confused. I don't have pulseaudio-daemon, in the same time it's required by libpulse, which I have.
I checked the ebuild and RDEPEND confuses me even more:
Code: |
!<media-sound/pulseaudio-daemon-16.99.1
|
So I think that libpulse linked against pulseaudio-daemon just because it was installed.
Naturally I would get rid of it, but I don't know how, without using destructive commands I myself would run but hesitate writing them in a public support forum.
I'm also puzzled by:
Code: | thezengarden /home/shinobi # systemctl --user enable pipewire.socket piepwire-pulse.socket
Failed to connect to bus: Operation not permitted |
Also you shouldn't have run the --global equivalent.
Did you actually run the --user commands as root?
This is clearly for Portage & Programming where more eyes will see it and help.
Best Regards,
Georgi |
|
Back to top |
|
|
nulltheliteralnothing n00b
Joined: 23 Feb 2024 Posts: 68
|
Posted: Mon Mar 18, 2024 5:47 pm Post subject: |
|
|
logrusx wrote: | I'm confused. I don't have pulseaudio-daemon, in the same time it's required by libpulse, which I have.
I checked the ebuild and RDEPEND confuses me even more:
Code: |
!<media-sound/pulseaudio-daemon-16.99.1
|
So I think that libpulse linked against pulseaudio-daemon just because it was installed.
Naturally I would get rid of it, but I don't know how, without using destructive commands I myself would run but hesitate writing them in a public support forum.
I'm also puzzled by:
Code: | thezengarden /home/shinobi # systemctl --user enable pipewire.socket piepwire-pulse.socket
Failed to connect to bus: Operation not permitted |
Also you shouldn't have run the --global equivalent.
Did you actually run the --user commands as root?
This is clearly for Portage & Programming where more eyes will see it and help.
Best Regards,
Georgi |
Quoting the instructions:
Code: |
Root user may replace --user with --global to change system default
configuration for all of the above commands.
|
|
|
Back to top |
|
|
logrusx Advocate
Joined: 22 Feb 2018 Posts: 2219
|
Posted: Mon Mar 18, 2024 6:35 pm Post subject: |
|
|
nulltheliteralnothing wrote: |
Quoting the instructions:
Code: |
Root user may replace --user with --global to change system default
configuration for all of the above commands.
|
|
That doesn't mean you should do it. It says system defaults can be changed that way. You don't need to do that. Anyways, I'm trying to figure out why the errors occurred.
So you run the commands with --user as root or you didn't?
Best Regards,
Georgi |
|
Back to top |
|
|
nulltheliteralnothing n00b
Joined: 23 Feb 2024 Posts: 68
|
Posted: Mon Mar 18, 2024 6:46 pm Post subject: |
|
|
logrusx wrote: | nulltheliteralnothing wrote: |
Quoting the instructions:
Code: |
Root user may replace --user with --global to change system default
configuration for all of the above commands.
|
|
That doesn't mean you should do it. It says system defaults can be changed that way. You don't need to do that. Anyways, I'm trying to figure out why the errors occurred.
So you run the commands with --user as root or you didn't?
Best Regards,
Georgi |
I hear you.
What are the consequences? |
|
Back to top |
|
|
logrusx Advocate
Joined: 22 Feb 2018 Posts: 2219
|
Posted: Mon Mar 18, 2024 7:01 pm Post subject: |
|
|
nulltheliteralnothing wrote: | logrusx wrote: | nulltheliteralnothing wrote: |
Quoting the instructions:
Code: |
Root user may replace --user with --global to change system default
configuration for all of the above commands.
|
|
That doesn't mean you should do it. It says system defaults can be changed that way. You don't need to do that. Anyways, I'm trying to figure out why the errors occurred.
So you run the commands with --user as root or you didn't?
Best Regards,
Georgi |
I hear you.
What are the consequences? |
Well it's kind of funny. If you run them as root, the --user commands should have set the defaults for root. That's what --user param to systemctl does - changes for the particular user. However after running the --global, you set the defaults for all users, making the --user command for root redundant.
Anyways, I'm trying to find out if that was the reason they failed. You still haven't answered the question, were you logged in as root when you run those:
nulltheliteralnothing wrote: | Code: | thezengarden /home/shinobi # usermod -aG pipewire shinobi
thezengarden /home/shinobi # usermod -rG audio shinobi
thezengarden /home/shinobi # systemctl --user disable pulseaudio.service pulseaudio.socket
Failed to connect to bus: Operation not permitted
thezengarden /home/shinobi # systemctl --user enable pipewire.socket piepwire-pulse.socket
Failed to connect to bus: Operation not permitted
thezengarden /home/shinobi # systemctl --global enable pipewire.socket piepwire-pulse.socket
Failed to enable unit, unit piepwire-pulse.socket does not exist.
thezengarden /home/shinobi # systemctl --global disable pulseaudio.service pulseaudio.socket
thezengarden /home/shinobi # |
|
Best Regards,
Georgi |
|
Back to top |
|
|
|
|
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
|
|