You are not logged in.

#1 2018-10-04 11:56:05

firekage
Member
From: Eastern Europe, Poland
Registered: 2013-06-30
Posts: 617

[SOLVED] Sound settings - no sound card detection under Phonon

Hi!

I would like to ask for your help. I've been curious all the time about sound settings in Arch. I know Alsa wiki and Pulseaudio wiki regarding Arch linux, but i cant found the answer and solution.



Under

KDE>settings>multimedia

i should have sound card to choose from. I don't have any. I tried to telete Alsa, Pulse, config files and start from a scratch. I have only something under this thab when i create ~/.asoundrc with apprioprate content. Right now i have

defaults.pcm.card 1
defaults.pcm.device 3
defaults.ctl.card 1

and thats is why in KDE>settings>multimedia i see nvidia GK208 sound card.

Could somebody tell me why? I have second machine with Arch, i havent created any config files and i can enter KDE>settings>multimedia and choose sound cards while on my desktop i cant. Only with ~/.asoundrc in Phonon i see one sound devices while i have right now three:

-intel
-X1 dac
-nvidia

[firekage@7500_uATX ~]$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC892 Analog [ALC892 Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 1: ALC892 Digital [ALC892 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: DAC [X1S USB DAC], device 0: USB Audio [USB Audio]
  Subdevices: 0/1
  Subdevice #0: subdevice #0

What i do wrong? Either no cards at all, or greyed out, or with ~/.asoundrc only one visible and present while on different machines i see all of them, could change it and so on. Also, without ~/.asoundrc i had no sound with apps like Opera webcrowser.

[firekage@7500_uATX ~]$ pacmd list-sinks
1 sink(s) available.
  * index: 0
        name: <alsa_output.dmix>
        driver: <module-alsa-sink.c>
        flags: HARDWARE DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
        state: SUSPENDED
        suspend cause: IDLE
        priority: 9030
        volume: front-left: 47186 /  72% / -8,56 dB,   front-right: 47186 /  72% / -8,56 dB
                balance 0,00
        base volume: 65536 / 100% / 0,00 dB
        volume steps: 65537
        muted: no
        current latency: 0,00 ms
        max request: 0 KiB
        max rewind: 0 KiB
        monitor source: 0
        sample spec: s32le 2 k 48000 Hz
        channel map: front-left,front-right
                     Stereo
        used by: 0
        linked by: 0
        configured latency: 0,00 ms; range is 0,50 .. 341,33 ms
        module: 5
        properties:
                alsa.resolution_bits = "32"
                device.api = "alsa"
                device.class = "sound"
                alsa.class = "generic"
                alsa.subclass = "generic-mix"
                alsa.name = "HDMI 0"
                alsa.id = "HDMI 0"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                alsa.device = "3"
                alsa.card = "1"
                alsa.card_name = "HDA NVidia"
                alsa.long_card_name = "HDA NVidia at 0xdf080000 irq 17"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:01:00.1"
                sysfs.path = "/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1"
                device.bus = "pci"
                device.vendor.id = "10de"
                device.vendor.name = "NVIDIA Corporation"
                device.product.id = "0e0f"
                device.product.name = "GK208 HDMI/DP Audio Controller"
                device.string = "dmix"
                device.buffering.buffer_size = "131072"
                device.buffering.fragment_size = "8192"
                device.access_mode = "mmap+timer"
                device.description = "GK208 HDMI/DP Audio Controller"
                device.icon_name = "audio-card-pci"

Last edited by firekage (2018-10-11 13:57:36)

Offline

#2 2018-10-04 12:15:31

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,657

Re: [SOLVED] Sound settings - no sound card detection under Phonon

Sounds like incorrect backend selection within phonon. That could have a plethora of causes, how do you start KDE? What's your output for

sudo fuser -v /dev/snd/*
loginctl show-session $XDG_SESSION_ID

Last edited by V1del (2018-10-04 12:15:51)

Offline

#3 2018-10-04 13:09:18

firekage
Member
From: Eastern Europe, Poland
Registered: 2013-06-30
Posts: 617

Re: [SOLVED] Sound settings - no sound card detection under Phonon

1.

sudo fuser -v /dev/snd/*

Nothing was given by terminal. Nothing was shown.

2.

loginctl show-session $XDG_SESSON_ID

Here it is:


EnableWallMessages=no
NAutoVTs=6
KillUserProcesses=yes
RebootToFirmwareSetup=no
IdleHint=no
IdleSinceHint=0
IdleSinceHintMonotonic=0
BlockInhibited=handle-power-key:handle-suspend-key:handle-hibernate-key:handle-lid-switch
DelayInhibited=shutdown:sleep
InhibitDelayMaxUSec=5s
HandlePowerKey=poweroff
HandleSuspendKey=suspend
HandleHibernateKey=hibernate
HandleLidSwitch=suspend
HandleLidSwitchDocked=ignore
HoldoffTimeoutUSec=10s
IdleAction=ignore
IdleActionUSec=30min
PreparingForShutdown=no
PreparingForSleep=no
Docked=no
RemoveIPC=yes
RuntimeDirectorySize=1678491648
InhibitorsMax=8192
NCurrentInhibitors=6
SessionsMax=8192
NCurrentSessions=1
[firekage@7500_uATX ~]$ 

How do i start KDE? I log into sddm greeter, using plasma.

BTW - i created new user, logged and i saw 3 sound card under new user. So, in fact, that is correct. Something is wrong with my user accound and user account settings. This instance is used often, updated often,

Last edited by firekage (2018-10-04 13:24:51)

Offline

#4 2018-10-04 13:39:25

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,657

Re: [SOLVED] Sound settings - no sound card detection under Phonon

Ah whoops, correct command should be

loginctl show-session $XDG_SESSION_ID

however it looks like you might have session problems on your main user, what are the outputs of

printenv | grep DBUS
systemctl --user status pulseaudio
ps -ef | grep pulse
journalctl -b

are you using dbus-launch anywhere in your startup files or similar?

Offline

#5 2018-10-04 13:58:11

firekage
Member
From: Eastern Europe, Poland
Registered: 2013-06-30
Posts: 617

Re: [SOLVED] Sound settings - no sound card detection under Phonon

loginctl show-session $XDG_SESSION_ID

output:

Id=11
User=1000
Name=firekage
Timestamp=Thu 2018-10-04 15:16:37 CEST
TimestampMonotonic=5955910028
VTNr=1
Seat=seat0
Display=:0
Remote=no
Service=sddm
Desktop=KDE
Scope=session-11.scope
Leader=23570
Audit=11
Type=x11
Class=user
Active=yes
State=active
IdleHint=no
IdleSinceHint=0
IdleSinceHintMonotonic=0
LockedHint=no
[firekage@7500_uATX ~]$ 

1.

[firekage@7500_uATX ~]$ printenv | grep DBUS
KONSOLE_DBUS_SESSION=/Sessions/1
KONSOLE_DBUS_SERVICE=:1.39
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
[firekage@7500_uATX ~]$ 

2/

[firekage@7500_uATX ~]$ systemctl --user status pulseaudio
● pulseaudio.service - Sound Service
   Loaded: loaded (/usr/lib/systemd/user/pulseaudio.service; disabled; vendor preset: enabled)
   Active: active (running) since Thu 2018-10-04 15:16:41 CEST; 37min ago
 Main PID: 23819 (pulseaudio)
   CGroup: /user.slice/user-1000.slice/user@1000.service/pulseaudio.service
           └─23819 /usr/bin/pulseaudio --daemonize=no

paź 04 15:16:39 7500_uATX systemd[23572]: Starting Sound Service...
paź 04 15:16:41 7500_uATX pulseaudio[23819]: E: [pulseaudio] module.c: Failed to load module "module-alsa-source" (argument: "device=dsnoop"): initialization failed.
paź 04 15:16:41 7500_uATX systemd[23572]: Started Sound Service.
[firekage@7500_uATX ~]$ 

3.

[firekage@7500_uATX ~]$ ps -ef | grep pulse
firekage  2616 23974  0 15:54 pts/1    00:00:00 grep pulse
linfanu+ 23294 23116  0 15:15 ?        00:00:00 /usr/bin/pulseaudio --daemonize=no
linfanu+ 23465 23294  0 15:15 ?        00:00:00 /usr/lib/pulse/gsettings-helper
firekage 23819 23572  0 15:16 ?        00:00:05 /usr/bin/pulseaudio --daemonize=no

4.

 https://ptpb.pw/9bPl

Does anybody have a suggestion?

Last edited by firekage (2018-10-05 10:58:20)

Offline

#6 2018-10-06 15:40:57

firekage
Member
From: Eastern Europe, Poland
Registered: 2013-06-30
Posts: 617

Re: [SOLVED] Sound settings - no sound card detection under Phonon

No ideas? Than something different - it is safe to delete .config folder in /home? I will lose only user settings but everything else will be there?

Offline

#7 2018-10-06 23:34:18

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,657

Re: [SOLVED] Sound settings - no sound card detection under Phonon

Hmm wait im only just seeing this, what kind of sink is that? Post your pulse config. Looks like you manually define ALSA sinks, which will break pulse card detection if done improperly. Why did you do this what did you try to fix? What's the output of

pulseaudio --dump-conf

Last edited by V1del (2018-10-06 23:35:26)

Offline

#8 2018-10-07 10:57:45

firekage
Member
From: Eastern Europe, Poland
Registered: 2013-06-30
Posts: 617

Re: [SOLVED] Sound settings - no sound card detection under Phonon

1.

pulseaudio --dump-conf

here is output

[firekage@7500_uATX ~]$ pulseaudio --dump-conf
### Odczytano z pliku konfiguracji: /home/firekage/.config/pulse//daemon.conf ###
daemonize = no
fail = yes
high-priority = yes
nice-level = -11
realtime-scheduling = yes
realtime-priority = 5
allow-module-loading = yes
allow-exit = yes
use-pid-file = yes
system-instance = no
local-server-type = user
cpu-limit = no
enable-shm = yes
flat-volumes = no
lock-memory = no
exit-idle-time = 20
scache-idle-time = 20
dl-search-path = /usr/lib/pulse-12.2/modules
default-script-file = /etc/pulse/default.pa
load-default-script-file = yes
log-target = 
log-level = notice
resample-method = auto
avoid-resampling = yes
enable-remixing = yes
remixing-use-all-sink-channels = yes
enable-lfe-remixing = no
lfe-crossover-freq = 0
default-sample-format = s16le
default-sample-rate = 44100
alternate-sample-rate = 48000
default-sample-channels = 2
default-channel-map = front-left,front-right
default-fragments = 4
default-fragment-size-msec = 25
enable-deferred-volume = yes
deferred-volume-safety-margin-usec = 8000
deferred-volume-extra-delay-usec = 0
shm-size-bytes = 0
log-meta = no
log-time = no
log-backtrace = 0
rlimit-fsize = -1
rlimit-data = -1
rlimit-stack = -1
rlimit-core = -1
rlimit-rss = -1
rlimit-as = -1
rlimit-nproc = -1
rlimit-nofile = 256
rlimit-memlock = -1
rlimit-locks = -1
rlimit-sigpending = -1
rlimit-msgqueue = -1
rlimit-nice = 31
rlimit-rtprio = 9
rlimit-rttime = 200000
[firekage@7500_uATX ~]$ 

next is daemon.conf

daemon.conf

output of it:

[firekage@7500_uATX pulse]$ cat daemon.conf 
# This file is part of PulseAudio.
#
# PulseAudio is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# PulseAudio is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.

## Configuration file for the PulseAudio daemon. See pulse-daemon.conf(5) for
## more information. Default values are commented out.  Use either ; or # for
## commenting.

; daemonize = no
; fail = yes
; allow-module-loading = yes
; allow-exit = yes
; use-pid-file = yes
; system-instance = no
; local-server-type = user
; enable-shm = yes
; enable-memfd = yes
; shm-size-bytes = 0 # setting this 0 will use the system-default, usually 64 MiB
; lock-memory = no
; cpu-limit = no

; high-priority = yes
; nice-level = -11

; realtime-scheduling = yes
; realtime-priority = 5

; exit-idle-time = 20
; scache-idle-time = 20

; dl-search-path = (depends on architecture)

; load-default-script-file = yes
; default-script-file = /etc/pulse/default.pa

; log-target = auto
; log-level = notice
; log-meta = no
; log-time = no
; log-backtrace = 0

; resample-method = speex-float-1
; avoid-resampling = false
; enable-remixing = yes
; remixing-use-all-sink-channels = yes
; enable-lfe-remixing = no
; lfe-crossover-freq = 0

flat-volumes = no
; flat-volumes = yes

; rlimit-fsize = -1
; rlimit-data = -1
; rlimit-stack = -1
; rlimit-core = -1
; rlimit-as = -1
; rlimit-rss = -1
; rlimit-nproc = -1
; rlimit-nofile = 256
; rlimit-memlock = -1
; rlimit-locks = -1
; rlimit-sigpending = -1
; rlimit-msgqueue = -1
; rlimit-nice = 31
; rlimit-rtprio = 9
; rlimit-rttime = 200000

; default-sample-format = s16le
; default-sample-rate = 44100
; alternate-sample-rate = 48000
; default-sample-channels = 2
; default-channel-map = front-left,front-right

; default-fragments = 4
; default-fragment-size-msec = 25

; enable-deferred-volume = yes
; deferred-volume-safety-margin-usec = 8000
; deferred-volume-extra-delay-usec = 0
[firekage@7500_uATX pulse]$ 

and next one is default.pa

default.pa

here is output:

[firekage@7500_uATX pulse]$ cat default.pa 
#!/usr/bin/pulseaudio -nF
#
# This file is part of PulseAudio.
#
# PulseAudio is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# PulseAudio is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.

# This startup script is used only if PulseAudio is started per-user
# (i.e. not in system mode)

.fail

### Automatically restore the volume of streams and devices
load-module module-device-restore
load-module module-stream-restore
load-module module-card-restore

### Automatically augment property information from .desktop files
### stored in /usr/share/application
load-module module-augment-properties

### Should be after module-*-restore but before module-*-detect
load-module module-switch-on-port-available

### Load audio drivers statically
### (it's probably better to not load these drivers manually, but instead
### use module-udev-detect -- see below -- for doing this automatically)
#load-module module-alsa-sink
#load-module module-alsa-source device=hw:1,0
#load-module module-oss device="/dev/dsp" sink_name=output source_name=input
#load-module module-oss-mmap device="/dev/dsp" sink_name=output source_name=input
#load-module module-null-sink
#load-module module-pipe-sink

### Automatically load driver modules depending on the hardware available
.ifexists module-udev-detect.so
load-module module-udev-detect
.else
### Use the static hardware detection module (for systems that lack udev support)
load-module module-detect
.endif

### Automatically connect sink and source if JACK server is present
.ifexists module-jackdbus-detect.so
.nofail
load-module module-jackdbus-detect channels=2
.fail
.endif

### Automatically load driver modules for Bluetooth hardware
.ifexists module-bluetooth-policy.so
load-module module-bluetooth-policy
.endif

.ifexists module-bluetooth-discover.so
load-module module-bluetooth-discover
.endif

### Load several protocols
load-module module-dbus-protocol
.ifexists module-esound-protocol-unix.so
load-module module-esound-protocol-unix
.endif
load-module module-native-protocol-unix

### Network access (may be configured with paprefs, so leave this commented
### here if you plan to use paprefs)
#load-module module-esound-protocol-tcp
#load-module module-native-protocol-tcp
#load-module module-zeroconf-publish

### Load the RTP receiver module (also configured via paprefs, see above)
#load-module module-rtp-recv

### Load the RTP sender module (also configured via paprefs, see above)
#load-module module-null-sink sink_name=rtp format=s16be channels=2 rate=44100 sink_properties="device.description='RTP Multicast Sink'"
#load-module module-rtp-send source=rtp.monitor

### Load additional modules from GSettings. This can be configured with the paprefs tool.
### Please keep in mind that the modules configured by paprefs might conflict with manually
### loaded modules.
.ifexists module-gsettings.so
.nofail
load-module module-gsettings
.fail
.endif


### Automatically restore the default sink/source when changed by the user
### during runtime
### NOTE: This should be loaded as early as possible so that subsequent modules
### that look up the default sink/source get the right value
load-module module-default-device-restore

### Automatically move streams to the default sink if the sink they are
### connected to dies, similar for sources
load-module module-rescue-streams

### Make sure we always have a sink around, even if it is a null sink.
load-module module-always-sink

### Honour intended role device property
load-module module-intended-roles

### Automatically suspend sinks/sources that become idle for too long
load-module module-suspend-on-idle

### If autoexit on idle is enabled we want to make sure we only quit
### when no local session needs us anymore.
.ifexists module-console-kit.so
load-module module-console-kit
.endif
.ifexists module-systemd-login.so
load-module module-systemd-login
.endif

### Enable positioned event sounds
load-module module-position-event-sounds

### Cork music/video streams when a phone stream is active
load-module module-role-cork

### Modules to allow autoloading of filters (such as echo cancellation)
### on demand. module-filter-heuristics tries to determine what filters
### make sense, and module-filter-apply does the heavy-lifting of
### loading modules and rerouting streams.
load-module module-filter-heuristics
load-module module-filter-apply

### Make some devices default
#set-default-sink output
#set-default-source input
[firekage@7500_uATX pulse]$ 

and the last one, system-pa

system-pa

output:

[firekage@7500_uATX pulse]$ cat system.pa 
#!/usr/bin/pulseaudio -nF
#
# This file is part of PulseAudio.
#
# PulseAudio is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# PulseAudio is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.

# This startup script is used only if PulseAudio is started in system
# mode.

### Automatically restore the volume of streams and devices
load-module module-device-restore
load-module module-stream-restore
load-module module-card-restore

### Automatically load driver modules depending on the hardware available
.ifexists module-udev-detect.so
load-module module-udev-detect
.else
### Use the static hardware detection module (for systems that lack udev/hal support)
load-module module-detect
.endif

### Load several protocols
.ifexists module-esound-protocol-unix.so
load-module module-esound-protocol-unix
.endif
load-module module-native-protocol-unix

### Automatically restore the default sink/source when changed by the user
### during runtime
### NOTE: This should be loaded as early as possible so that subsequent modules
### that look up the default sink/source get the right value
load-module module-default-device-restore

### Automatically move streams to the default sink if the sink they are
### connected to dies, similar for sources
load-module module-rescue-streams

### Make sure we always have a sink around, even if it is a null sink.
load-module module-always-sink

### Automatically suspend sinks/sources that become idle for too long
load-module module-suspend-on-idle

### Enable positioned event sounds
load-module module-position-event-sounds
[firekage@7500_uATX pulse]$ 

You asked my why i did that. I did not. I deleted all in /etc/pulse, along with pulse, along with alsa and reinstalled it again. Stille, the same, no sound card detection in phonon. I have to have .asoundrc config file because without that there is no sound in webbrowser and system

[firekage@7500_uATX pulse]$ cat ~/.asoundrc
defaults.pcm.card 1
defaults.pcm.device 3
defaults.ctl.card 1

[firekage@7500_uATX pulse]$ 

Last edited by firekage (2018-10-07 11:00:43)

Offline

#9 2018-10-11 13:56:55

firekage
Member
From: Eastern Europe, Poland
Registered: 2013-06-30
Posts: 617

Re: [SOLVED] Sound settings - no sound card detection under Phonon

I solved it myself. Anyway, thanks.

1. Delete ~/.configure/pulse
2. Rename or delete ~/.asoundrc
3. After reboot i saw in paprefs and pavucontrol that my GK208 sound chip from nvidia was detected. But there was problem. No sound after reboots not in system but in opera, for an example.
4. Put these lines in /etc/pulse/default.pa

set-default-source alsa_output.pci-0000_01_00.1.hdmi-stereo.monitor
set-default-sink alsa_output.pci-0000_01_00.1.hdmi-stereo

Now Phonon sees my sound card from K>settings>multimedia, i can choose hdmi output and there is sound after reboots with opera and other apps.

Last edited by firekage (2018-10-11 13:57:09)

Offline

#10 2018-10-11 14:30:08

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,657

Re: [SOLVED] Sound settings - no sound card detection under Phonon

Install pulseaudio-alsa that will make ALSA applications redirect to pulse, while retaining the configurability of pulseaudio.

Offline

Board footer

Powered by FluxBB