Closed robotjsorg closed 11 months ago
Editting /etc/asound.conf
per the docs helped some: https://www.alsa-project.org/main/index.php/Setting_the_default_device
Also, change card profiles if required, for example:
pactl set-card-profile 0 output:hdmi-stereo-extra1
pactl set-card-profile 2 output:analog-stereo
It should look like:
$ cat /proc/asound/cards
0 [tegrahda ]: tegra-hda - tegra-hda
tegra-hda at 0x3518000 irq 400
1 [tegrasndt186ref]: tegra-snd-t186r - tegra-snd-t186ref-mobile-rt565x
tegra-snd-t186ref-mobile-rt565x
2 [C920 ]: USB-Audio - HD Pro Webcam C920
HD Pro Webcam C920 at usb-3530000.xhci-2, high speed
$ cat /etc/asound.conf
defaults.pcm.card 1
defaults.ctl.card 1
$ pacmd list-cards | grep active
active profile: <output:hdmi-stereo-extra1>
active profile: <input:analog-stereo>
active profile: <output:analog-stereo>
Then reboot.
Per above comment, here is output:
$ roslaunch jetson_beats beats_by_jetson.launch
... logging to /home/nvidia/.ros/log/3d6e1a3e-343d-11e8-867d-00044b8d1ccf/roslaunch-oakyildiz-tx2-2166.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.
started roslaunch server http://10.0.1.16:39364/
SUMMARY
========
PARAMETERS
* /bass_drum/out: True
* /detector/source: live
* /log_level: 2
* /predictor/mode: live
* /predictor/prediction: True
* /rosdistro: kinetic
* /rosversion: 1.12.12
NODES
/
bass_drum (drummer/whiplash.py)
detector (beat_makers/beat_detector.py)
predictor (master_of_beats/beat_predictor.py)
auto-starting new master
process[master]: started with pid [2176]
ROS_MASTER_URI=http://10.0.1.16:11311
setting /run_id to 3d6e1a3e-343d-11e8-867d-00044b8d1ccf
process[rosout-1]: started with pid [2189]
started core service [/rosout]
process[detector-2]: started with pid [2196]
process[predictor-3]: started with pid [2207]
process[bass_drum-4]: started with pid [2208]
(-7, 1, 0)
(-6, 1, 0)
(-5, 1, 0)
(-4, 1, 0)
(-3, 1, 0)
(-2, 1, 0)
(-1, 1, 0)
(0, 1, 0)
[INFO] [1522429827.701892]: Player is live
(1, 1, 0)
(2, 1, 0)
Invalid MIT-MAGIC-COOKIE-1 keyxcb_connection_has_error() returned true
(3, 1, 0)
(4, 1, 0)
('T', 0.01)
(5, 1, 0)
(6, 1, 0)
ALSA lib pcm_dmix.c:1029:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.USB-Audio.pcm.hdmi.0:CARD=2,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4771:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM hdmi
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.USB-Audio.pcm.hdmi.0:CARD=2,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4771:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM hdmi
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
Invalid MIT-MAGIC-COOKIE-1 keyxcb_connection_has_error() returned true
Invalid MIT-MAGIC-COOKIE-1 keyxcb_connection_has_error() returned true
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for 4294967295, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for 4294967295, skipping unlock
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for 4294967295, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for 4294967295, skipping unlock
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for 4294967295, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for 4294967295, skipping unlock
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for 4294967295, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for 4294967295, skipping unlock
ALSA lib pcm_dmix.c:1029:(snd_pcm_dmix_open) unable to open slave
Invalid MIT-MAGIC-COOKIE-1 keyxcb_connection_has_error() returned true
Invalid MIT-MAGIC-COOKIE-1 keyxcb_connection_has_error() returned true
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for 4294967295, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for 4294967295, skipping unlock
Tapping to the live input
Invalid MIT-MAGIC-COOKIE-1 keyxcb_connection_has_error() returned true
1
1522429828.7
2.69526600838
2
1522429831.39
0.691565990448
3
0.556802749634
0.703622102737
4
0.534280538559
0.980355978012
5
0.775833368301
0.77107000351
6
0.51752948761
0.767880916595
7
0.475786924362
1.17464613914
8
0.844158172607
0.769817829132
9
0.3805975914
0.800928115845
10
0.373216867447
0.752696037292
11
0.284938335419
0.739835977554
12
0.234443426132
0.770895957947
13
0.228511810303
0.752614021301
14
0.171684980392
1.05718994141
15
0.438630104065
0.759571075439
16
0.0881519317627
0.801833868027
17
0.0924360752106
0.760389089584
18
0.0108995437622
0.769649982452
19
-0.0178589820862
0.817943096161
20
-0.00804829597473
(0.754763841629
69.0, ' bpm')
(5, 0, 1)
(4, 0, 1)
(3, 0, 1)
(2, 0, 1)
(1, 0, 1)
(0, 0, 1)
(-1, 0, 1)
(-2, 0, 1)
(-3, 0, 1)
(-4, 0, 1)
(-5, 0, 1)
(-6, 0, 1)
(-7, 0, 1)
(-8, 0, 1)
(-9, 0, 1)
(-8, 1, 0)
(-7, 1, 0)
(-6, 1, 0)
(-5, 1, 0)
(-4, 1, 0)
(-3, 1, 0)
(-2, 1, 0)
(-1, 1, 0)
(0, 1, 0)
(1, 1, 0)
(2, 1, 0)
(3, 1, 0)
(4, 1, 0)
(5, 1, 0)
(6, 1, 0)
21
-0.112124681473
0.755089044571
22
0.605226039886
0.80177116394
23
-0.00584673881531
0.769114971161
24
-0.044013261795
0.803664922714
25
0.756376981735
0.769541978836
26
-0.0380263328552
0.769812107086
27
-0.0376799106598
0.801087856293
28
-0.0065004825592
0.758793115616
29
-0.0301175117493
0.770864009857
30
-0.0174953937531
0.778016805649
31
-0.00883936882019
0.769763231277
32
0.759657859802
0.81808590889
33
0.0284674167633
0.770586013794
34
-0.0213921070099
0.753460884094
35
-0.0394155979156
0.751904964447
36
-0.0257852077484
0.770649194717
37
-0.00665760040283
0.770545959473
38
-0.00520157814026
0.48367190361
(78.0, ' bpm')
(5, 0, 1)
(4, 0, 1)
(3, 0, 1)
(2, 0, 1)
(1, 0, 1)
(0, 0, 1)
(-1, 0, 1)
(-2, 0, 1)
(-3, 0, 1)
(-4, 0, 1)
(-5, 0, 1)
(-6, 0, 1)
(-7, 0, 1)
(-8, 0, 1)
(-9, 0, 1)
(-8, 1, 0)
(-7, 1, 0)
(-6, 1, 0)
(-5, 1, 0)
(-4, 1, 0)
(-3, 1, 0)
(-2, 1, 0)
(-1, 1, 0)
(0, 1, 0)
(1, 1, 0)
(2, 1, 0)
(3, 1, 0)
(4, 1, 0)
(5, 1, 0)
(6, 1, 0)
39
-0.292583465576
0.771029949188
40
0.492745399475
0.754821062088
41
-0.00478982925415
0.736680984497
42
-0.022932767868
0.768986940384
43
0.0102934837341
0.771357059479
44
0.0143029689789
0.771000146866
45
0.0138339996338
0.737660884857
46
-0.017872095108
0.497147083282
47
0.480869054794
0.769374847412
It looks like everything is working, except HDMI is not disabled. This has been good progress to document the steps. I'll plug in a keyboard and monitor and try disabling it that way.
I logged in with monitor and manually turned off HDMI audio output. I am still getting this error: ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.tegra-hda.pcm.front.0:CARD=0'
.
It overwrote /etc/asound.conf
, so I had to sudo vim
it again.
I will reboot and try again.
Looks like a TX2 sound card error in beat_makers > beat_detector.py.