[Xrdp-devel] OpenSuSE 13.x, Pulseaudio 4.0, and pa source/sink

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Xrdp-devel] OpenSuSE 13.x, Pulseaudio 4.0, and pa source/sink

camerajunkie
Hello all,

Having some issues building Pulseaudio, everything seems to be installed fine, but I cannot for the life of me figure out why Pulseaudio will not start.

By running - 

pulseaudio --verbose

I was able to find this - 

user@linux-ioch:/usr/bin> pulseaudio --verbose
I: [pulseaudio] main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operation not permitted
I: [pulseaudio] main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Operation not permitted
I: [pulseaudio] core-util.c: Successfully gained nice level -11.
I: [pulseaudio] main.c: This is PulseAudio 4.0-270-g9490a-rebootstrapped
I: [pulseaudio] main.c: Page size is 4096 bytes
I: [pulseaudio] main.c: Machine ID is 61035b9c40c24e91a8e5231547864574.
I: [pulseaudio] main.c: Session ID is 2.
I: [pulseaudio] main.c: Using runtime directory /run/user/1000/pulse.
I: [pulseaudio] main.c: Using state directory /home/xuser/.config/pulse.
I: [pulseaudio] main.c: Using modules directory /usr/lib64/pulse-4.0/modules.
I: [pulseaudio] main.c: Running in system mode: no
W: [pulseaudio] pid.c: Stale PID file, overwriting.
I: [pulseaudio] main.c: Dude, your kernel stinks! The chef's recommendation today is Linux with high-resolution timers enabled!
I: [pulseaudio] cpu-x86.c: CPU flags: CMOV MMX SSE SSE2 SSE3 SSSE3 SSE4_1 SSE4_2 
I: [pulseaudio] svolume_mmx.c: Initialising MMX optimized volume functions.
I: [pulseaudio] remap_mmx.c: Initialising MMX optimized remappers.
I: [pulseaudio] svolume_sse.c: Initialising SSE2 optimized volume functions.
I: [pulseaudio] remap_sse.c: Initialising SSE2 optimized remappers.
I: [pulseaudio] sconv_sse.c: Initialising SSE2 optimized conversions.
I: [pulseaudio] svolume_orc.c: Initialising ORC optimized volume functions.
I: [pulseaudio] module.c: Loaded "module-augment-properties" (index: #0; argument: "").
I: [pulseaudio] sink.c: Created sink 0 "xrdp-sink" with sample spec s16le 2ch 44100Hz and channel map front-left,front-right
I: [pulseaudio] sink.c:     device.description = "xrdp sink"
I: [pulseaudio] sink.c:     device.class = "abstract"
I: [pulseaudio] sink.c:     device.icon_name = "audio-card"
I: [pulseaudio] source.c: Created source 0 "xrdp-sink.monitor" with sample spec s16le 2ch 44100Hz and channel map front-left,front-right
I: [pulseaudio] source.c:     device.description = "Monitor of xrdp sink"
I: [pulseaudio] source.c:     device.class = "monitor"
I: [pulseaudio] source.c:     device.icon_name = "audio-input-microphone"
E: [pulseaudio] sink.c: Assertion 's->asyncmsgq' failed at pulsecore/sink.c:586, function pa_sink_put(). Aborting.
Aborted
user@linux-ioch:/usr/bin> 

I tried looking at my timers and they are set to - 

1000000 nsecs

ran the following command to see if I had any issues with High Resolution Timers - 

cat /proc/timer-list

Timer List Version: v0.7
HRTIMER_MAX_CLOCK_BASES: 4
now at 686264088689 nsecs
cpu: 0
 clock 0:
  .base:       0000000000000000
  .index:      0
  .resolution: 1000000 nsecs
  .get_time:   ktime_get
  .offset:     0 nsecs

I also attempted to run

start-pulseaudio-x11

which returned this - 

user@linux-ioch:~/git/neutrinolabs/xrdp/sesman/chansrv/pulse> start-pulseaudio-x11
E: [pulseaudio] main.c: Daemon startup failed.

I tried using pavucontrol to see if there was a connection to Pulse, but realized that if I can't find a PID, pavucontrol
will not be able to find a pulse session.

Any advice or tips are welcome!

Regards, 
Eben



------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
xrdp-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/xrdp-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Xrdp-devel] OpenSuSE 13.x, Pulseaudio 4.0, and pa source/sink

camerajunkie
Hello all,

Did some more research, and ran this - 

#root
/usr/sbin/alsa-info.sh

output from generated report - 

upload=true&script=true&cardinfo=
!!################################
!!ALSA Information Script v 0.4.63
!!################################
!!Script ran on: Tue Jun  3 20:09:19 UTC 2014

!!Linux Distribution
!!------------------
Welcome to openSUSE 13.1 "Bottle" - Kernel \r (\l). openSUSE 13.1 (x86_64) # /etc/SuSE-release is deprecated and will be removed in the future, use /etc/os-release instead NAME=openSUSE PRETTY_NAME="openSUSE 13.1 (Bottle) (x86_64)" ID=opensuse CPE_NAME="cpe:/o:opensuse:opensuse:13.1" BUG_REPORT_URL="https://bugs.opensuse.org" HOME_URL="https://opensuse.org/" ID_LIKE="suse"

!!DMI Information
!!---------------
Manufacturer:      Microsoft Corporation
Product Name:      Virtual Machine
Product Version:   7.0
Firmware Version:  090006 

!!Kernel Information
!!------------------
Kernel release:    3.11.10-11-desktop
Operating System:  GNU/Linux
Architecture:      x86_64
Processor:         x86_64
SMP Enabled:       Yes

!!ALSA Version
!!------------
Driver version:     k3.11.10-11-desktop
Library version:    1.0.27.2
Utilities version:  1.0.27.2

!!Loaded ALSA modules
!!-------------------
snd_dummy

!!Sound Servers on this system
!!----------------------------
Pulseaudio:
      Installed - Yes (/usr/bin/pulseaudio)
      Running - No
ESound Daemon:
      Installed - Yes (/usr/bin/esd)
      Running - No
Jack:
      Installed - Yes (/usr/bin/jackd)
      Running - No

!!Soundcards recognised by ALSA
!!-----------------------------
 0 [Dummy          ]: Dummy - Dummy
                      Dummy 1

!!PCI Soundcards installed in the system
!!--------------------------------------


!!Advanced information - PCI Vendor/Device/Subsystem ID's
!!-------------------------------------------------------


!!Loaded sound module options
!!---------------------------
!!Module: snd_dummy
enable : Y,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N,N
fake_buffer : Y
hrtimer : Y
id : (null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)
index : -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
model : (null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)
pcm_devs : 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
pcm_substreams : 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8

!!ALSA Device nodes
!!-----------------
crw-rw----+ 1 root audio 116,  4 Jun  3 16:01 /dev/snd/controlC0
crw-rw----+ 1 root audio 116,  3 Jun  3 16:01 /dev/snd/pcmC0D0c
crw-rw----+ 1 root audio 116,  2 Jun  3 16:01 /dev/snd/pcmC0D0p
crw-rw----  1 root audio 116,  1 Jun  3  2014 /dev/snd/seq
crw-rw----+ 1 root audio 116, 33 Jun  3 16:01 /dev/snd/timer
/dev/snd/by-path:
total 0
drwxr-xr-x 2 root root  60 Jun  3 16:01 .
drwxr-xr-x 3 root root 160 Jun  3 16:01 ..
lrwxrwxrwx 1 root root  12 Jun  3 16:01 platform-snd_dummy.0 -> ../controlC0

!!ALSA configuration files
!!------------------------
!!System wide config file (/etc/asound.conf)
pcm.pulse {
type pulse
}
ctl.pulse {
type pulse
}
pcm.!default {
type pulse
}
ctl.!default {
type pulse
}

!!Aplay/Arecord output
!!--------------------
APLAY
**** List of PLAYBACK Hardware Devices ****
card 0: Dummy [Dummy], device 0: Dummy PCM [Dummy PCM]
  Subdevices: 8/8
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
  Subdevice #7: subdevice #7
ARECORD
**** List of CAPTURE Hardware Devices ****
card 0: Dummy [Dummy], device 0: Dummy PCM [Dummy PCM]
  Subdevices: 8/8
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
  Subdevice #7: subdevice #7
!!Amixer output
!!-------------
!!-------Mixer controls for card 0 [Dummy]
Card hw:0 'Dummy'/'Dummy 1'
  Mixer name : 'Dummy Mixer'
  Components : ''
  Controls      : 11
  Simple ctrls  : 6
Simple mixer control 'Master',0
  Capabilities: volume cswitch
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: -50 - 100
  Front Left: 75 [83%] [-7.50dB] Capture [off]
  Front Right: 75 [83%] [-7.50dB] Capture [off]
Simple mixer control 'Synth',0
  Capabilities: volume cswitch
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: -50 - 100
  Front Left: 0 [33%] [-30.00dB] Capture [off]
  Front Right: 0 [33%] [-30.00dB] Capture [off]
Simple mixer control 'Line',0
  Capabilities: volume cswitch
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: -50 - 100
  Front Left: 0 [33%] [-30.00dB] Capture [off]
  Front Right: 0 [33%] [-30.00dB] Capture [off]
Simple mixer control 'CD',0
  Capabilities: volume cswitch
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: -50 - 100
  Front Left: 0 [33%] [-30.00dB] Capture [off]
  Front Right: 0 [33%] [-30.00dB] Capture [off]
Simple mixer control 'Mic',0
  Capabilities: volume cswitch
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: -50 - 100
  Front Left: 0 [33%] [-30.00dB] Capture [off]
  Front Right: 0 [33%] [-30.00dB] Capture [off]
Simple mixer control 'External I/O Box',0
  Capabilities: enum
  Items: 'None' 'CD Player'
  Item0: 'CD Player'

!!Alsactl output
!!--------------
--startcollapse--
state.Dummy {
control.1 {
iface MIXER
name 'Master Volume'
value.0 75
value.1 75
comment {
access 'read write'
type INTEGER
count 2
range '-50 - 100'
dbmin -4500
dbmax 0
dbvalue.0 -750
dbvalue.1 -750
}
}
control.2 {
iface MIXER
name 'Master Capture Switch'
value.0 false
value.1 false
comment {
access 'read write'
type BOOLEAN
count 2
}
}
control.3 {
iface MIXER
name 'Synth Volume'
value.0 0
value.1 0
comment {
access 'read write'
type INTEGER
count 2
range '-50 - 100'
dbmin -4500
dbmax 0
dbvalue.0 -3000
dbvalue.1 -3000
}
}
control.4 {
iface MIXER
name 'Synth Capture Switch'
value.0 false
value.1 false
comment {
access 'read write'
type BOOLEAN
count 2
}
}
control.5 {
iface MIXER
name 'Line Volume'
value.0 0
value.1 0
comment {
access 'read write'
type INTEGER
count 2
range '-50 - 100'
dbmin -4500
dbmax 0
dbvalue.0 -3000
dbvalue.1 -3000
}
}
control.6 {
iface MIXER
name 'Line Capture Switch'
value.0 false
value.1 false
comment {
access 'read write'
type BOOLEAN
count 2
}
}
control.7 {
iface MIXER
name 'Mic Volume'
value.0 0
value.1 0
comment {
access 'read write'
type INTEGER
count 2
range '-50 - 100'
dbmin -4500
dbmax 0
dbvalue.0 -3000
dbvalue.1 -3000
}
}
control.8 {
iface MIXER
name 'Mic Capture Switch'
value.0 false
value.1 false
comment {
access 'read write'
type BOOLEAN
count 2
}
}
control.9 {
iface MIXER
name 'CD Volume'
value.0 0
value.1 0
comment {
access 'read write'
type INTEGER
count 2
range '-50 - 100'
dbmin -4500
dbmax 0
dbvalue.0 -3000
dbvalue.1 -3000
}
}
control.10 {
iface MIXER
name 'CD Capture Switch'
value.0 false
value.1 false
comment {
access 'read write'
type BOOLEAN
count 2
}
}
control.11 {
iface MIXER
name 'External I/O Box'
value 'CD Player'
comment {
access 'read write'
type ENUMERATED
count 1
item.0 None
item.1 'CD Player'
}
}
}
--endcollapse--

!!All Loaded Modules
!!------------------
Module
snd_dummy
snd_pcm
snd_timer
snd
soundcore
snd_page_alloc
fuse
af_packet
joydev
crc32_pclmul
sr_mod
cdrom
crc32c_intel
ata_generic
hv_utils
i2c_piix4
serio_raw
ghash_clmulni_intel
floppy
ata_piix
hid_hyperv
pcspkr
aesni_intel
ablk_helper
cryptd
lrw
gf128mul
button
glue_helper
aes_x86_64
mperf
sg
dm_mod
autofs4
hv_netvsc
hyperv_keyboard
hv_storvsc
hyperv_fb
hv_vmbus
processor
thermal_sys
scsi_dh_hp_sw
scsi_dh_rdac
scsi_dh_alua
scsi_dh_emc
scsi_dh

!!ALSA/HDA dmesg
!!--------------

Any tips or advice welcome. Double-checked my packages so far and rebuilt xrdp/pulseaudio

I'm running openSuSE 13.1 x64.

I copied the -

modules-xrdp-sink.so
modules-xrdp-source.so

to /usr/lib64/pulse-4.0/modules and created /etc/asound.conf, then modified /etc/pulse/default.pa

to look like this - 

.nofail
.fail
load-module module-augment-properties
load-module module-xrdp-sink
load-module module-native-protocol-unix

Regards,
Eben


On Tue, Jun 3, 2014 at 2:52 PM, Eben Yep <[hidden email]> wrote:
Hello all,

Having some issues building Pulseaudio, everything seems to be installed fine, but I cannot for the life of me figure out why Pulseaudio will not start.

By running - 

pulseaudio --verbose

I was able to find this - 

user@linux-ioch:/usr/bin> pulseaudio --verbose
I: [pulseaudio] main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operation not permitted
I: [pulseaudio] main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Operation not permitted
I: [pulseaudio] core-util.c: Successfully gained nice level -11.
I: [pulseaudio] main.c: This is PulseAudio 4.0-270-g9490a-rebootstrapped
I: [pulseaudio] main.c: Page size is 4096 bytes
I: [pulseaudio] main.c: Machine ID is 61035b9c40c24e91a8e5231547864574.
I: [pulseaudio] main.c: Session ID is 2.
I: [pulseaudio] main.c: Using runtime directory /run/user/1000/pulse.
I: [pulseaudio] main.c: Using state directory /home/xuser/.config/pulse.
I: [pulseaudio] main.c: Using modules directory /usr/lib64/pulse-4.0/modules.
I: [pulseaudio] main.c: Running in system mode: no
W: [pulseaudio] pid.c: Stale PID file, overwriting.
I: [pulseaudio] main.c: Dude, your kernel stinks! The chef's recommendation today is Linux with high-resolution timers enabled!
I: [pulseaudio] cpu-x86.c: CPU flags: CMOV MMX SSE SSE2 SSE3 SSSE3 SSE4_1 SSE4_2 
I: [pulseaudio] svolume_mmx.c: Initialising MMX optimized volume functions.
I: [pulseaudio] remap_mmx.c: Initialising MMX optimized remappers.
I: [pulseaudio] svolume_sse.c: Initialising SSE2 optimized volume functions.
I: [pulseaudio] remap_sse.c: Initialising SSE2 optimized remappers.
I: [pulseaudio] sconv_sse.c: Initialising SSE2 optimized conversions.
I: [pulseaudio] svolume_orc.c: Initialising ORC optimized volume functions.
I: [pulseaudio] module.c: Loaded "module-augment-properties" (index: #0; argument: "").
I: [pulseaudio] sink.c: Created sink 0 "xrdp-sink" with sample spec s16le 2ch 44100Hz and channel map front-left,front-right
I: [pulseaudio] sink.c:     device.description = "xrdp sink"
I: [pulseaudio] sink.c:     device.class = "abstract"
I: [pulseaudio] sink.c:     device.icon_name = "audio-card"
I: [pulseaudio] source.c: Created source 0 "xrdp-sink.monitor" with sample spec s16le 2ch 44100Hz and channel map front-left,front-right
I: [pulseaudio] source.c:     device.description = "Monitor of xrdp sink"
I: [pulseaudio] source.c:     device.class = "monitor"
I: [pulseaudio] source.c:     device.icon_name = "audio-input-microphone"
E: [pulseaudio] sink.c: Assertion 's->asyncmsgq' failed at pulsecore/sink.c:586, function pa_sink_put(). Aborting.
Aborted
user@linux-ioch:/usr/bin> 

I tried looking at my timers and they are set to - 

1000000 nsecs

ran the following command to see if I had any issues with High Resolution Timers - 

cat /proc/timer-list

Timer List Version: v0.7
HRTIMER_MAX_CLOCK_BASES: 4
now at 686264088689 nsecs
cpu: 0
 clock 0:
  .base:       0000000000000000
  .index:      0
  .resolution: 1000000 nsecs
  .get_time:   ktime_get
  .offset:     0 nsecs

I also attempted to run

start-pulseaudio-x11

which returned this - 

user@linux-ioch:~/git/neutrinolabs/xrdp/sesman/chansrv/pulse> start-pulseaudio-x11
E: [pulseaudio] main.c: Daemon startup failed.

I tried using pavucontrol to see if there was a connection to Pulse, but realized that if I can't find a PID, pavucontrol
will not be able to find a pulse session.

Any advice or tips are welcome!

Regards, 
Eben





--

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
xrdp-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/xrdp-devel
Loading...