WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Live TC 7.2. on usb stick and macbook: no sound  (Read 15479 times)

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: Live TC 7.2. on usb stick and macbook: no sound
« Reply #30 on: December 24, 2016, 05:41:25 AM »
Quote
@ juanito  Maybe we could ask alsa startup file to create this?  Would save folks a huge headache
just a thought
...After that the user can adjust the various settings to their liking and use "sudo alsactl store" after alsa has been set up and add /usr/local/etc/alsa/asound.state to their backup.
I hear you, but with my hardware as an example, the "sudo alsactl store" has no effect on the IEC958 / SPDIF controls, therefore I have these commands set to run in ~/X.d/alsa 
I was suggesting a simple unmute wouldn't hurt if run from the Startup file, might save much confusion..
Code: [Select]
amixer set "Master" unmute
though I prefer
Code: [Select]
echo "amixer set \"Master\" unmute" >> ~/.X.d/alsa

Quote
@coreplayer2 - maybe you could check if alsa-config un-mutes your hardware?
I have both in onboot
Code: [Select]
alsa-config.tcz
Alsa.tcz
and graphics tcz (loaded via Nvidia) there is no unmuting of any alsa controls, though I should try manually loading these extensions in order.
By default alsa reports this:
Code: [Select]
~$ cat /proc/asound/cards
 0 [AK5370         ]: USB-Audio - AK5370
                      AKM AK5370 at usb-0000:00:14.0-14, full speed
 1 [NVidia         ]: HDA-Intel - HDA NVidia
                      HDA NVidia at 0xf7080000 irq 17
 2 [PCH            ]: HDA-Intel - HDA Intel PCH
                      HDA Intel PCH at 0xf7330000 irq 31
device 0 is a USB microphone which obviously can't output audio and NVidia device is an unplugged HDMI out, so I configure devices manually
Code: [Select]
# /etc/modprobe.conf: Modprobe config file.
#
options snd-hda-intel index=0
options snd-hda-NVidia index=1
options snd-usb-audio index=2
to get this on each boot
Code: [Select]
~$ cat /proc/asound/cards
 0 [PCH            ]: HDA-Intel - HDA Intel PCH
                      HDA Intel PCH at 0xf7330000 irq 31
 1 [NVidia         ]: HDA-Intel - HDA NVidia
                      HDA NVidia at 0xf7080000 irq 17
 2 [AK5370         ]: USB-Audio - AK5370
                      AKM AK5370 at usb-0000:00:14.0-14, full speed
then this in ~/.X.d/alsa
Code: [Select]
amixer -c 0 cset name='IEC958 Default PCM Playback Switch' on
amixer -c 1 cset name='IEC958 Playback Switch' on
amixer set "Master" 80 unmute
Obviously using the SPDIF pass-through, I don't need to set "Master" 80 unmute (is just there for a reminder).

« Last Edit: December 24, 2016, 05:47:40 AM by coreplayer2 »

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14848
Re: Live TC 7.2. on usb stick and macbook: no sound
« Reply #31 on: December 24, 2016, 05:55:20 AM »
though I should try manually loading these extensions in order.

It would be good if you could try this  :)

Offline nitram

  • Hero Member
  • *****
  • Posts: 1054
Re: Live TC 7.2. on usb stick and macbook: no sound
« Reply #32 on: December 24, 2016, 04:48:10 PM »
@Frank69 - Also try unmuting and turning up PCM, on my system i don't get sound with this muted.

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: Live TC 7.2. on usb stick and macbook: no sound
« Reply #33 on: December 25, 2016, 12:58:45 AM »
though I should try manually loading these extensions in order.

It would be good if you could try this  :)
Ok tried this :) and the results were good but not perfect.
Code: [Select]
$ tce-load -i graphics-KERNEL     (Loaded via Nvidia drivers)
$ tce-load -i alsa-config     (loaded next manually)
$ tce-load -i alsa      (loaded last manually)


results in correct detection of devices
Code: [Select]
tc@box:~$ cat /proc/asound/cards
 0 [PCH            ]: HDA-Intel - HDA Intel PCH
                      HDA Intel PCH at 0xf7330000 irq 32
 1 [NVidia         ]: HDA-Intel - HDA NVidia
                      HDA NVidia at 0xf7080000 irq 17
 2 [AK5370         ]: USB-Audio - AK5370
                      AKM AK5370 at usb-0000:00:14.0-14, full speed
tc@box:~$

Master volume unmuted and set at approx. 50%
SPDIF #2 (listed as default) unmuted
SPDIF #1 muted and of course is the connection in use.  After a manual unmute and we have 6channel audio out to receiver. 

So a partial success
:|

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14848
Re: Live TC 7.2. on usb stick and macbook: no sound
« Reply #34 on: December 25, 2016, 04:17:16 AM »
If I load graphics-KERNEL and then alsa (i.e. I don't load alsa-config), I get this:
Code: [Select]
$ amixer set "Master" 80 unmute
amixer: Unable to find simple control 'Master',0

I guess this is because the analogue sound is not the default and hdmi is not connected.

As mentioned earlier, if I load alsa-config before alsa, then the master volume is un-muted automatically.

Maybe we could wait for tc-8.x alsa and see what happens with that?

Frank69

  • Guest
Re: Live TC 7.2. on usb stick and macbook: no sound
« Reply #35 on: December 25, 2016, 05:17:44 AM »
@ coreplayer 2:41
if i only use alsa-config.tcz and alsa.tcz

In /mnt/sdb1/tce/onboot.lst
alsa-config.tcz
alsa.tcz

tc@box:~$ cat /proc/asound/cards
 1 [PCH            ]: HDA-Intel - HDA Intel PCH
                      HDA Intel PCH at 0xb0a14000 irq 52

tc@box:~$ amixer
amixer: Mixer attach default error: No such file or directory

tc@box:~$ alsamixer
cannot open mixer: No such file or directory
tc@box:~$

@ nitran 01:48
I again installed graphics-KERNEL.tcz, alsa-config.tcz and alsa.tcz

In /mnt/sdb1/tce/onboot.lst
graphics-4.2.9-tinycore.tcz
alsa-config.tcz
alsa.tcz

tc@box:~$ cat /proc/asound/cards
 0 [HDMI           ]: HDA-Intel - HDA Intel HDMI
                      HDA Intel HDMI at 0xb0a10000 irq 54
 1 [PCH            ]: HDA-Intel - HDA Intel PCH
                      HDA Intel PCH at 0xb0a14000 irq 53

tc@box:~$ amixer
Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'IEC958',1
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'IEC958',2
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]

tc@box:~$ alsamixer
Alsa mixer works

I tried the Master setting to unmute
tc@box:~$ amixer set "Master" 80 unmute
amixer: Unable to find simple control 'Master',0

If I use alsamixer (F6) I can raise the master volume
I can not set the PDIF settings

Finally, I tried the audio output

tc@box:~$ speaker-test
speaker-test 1.1.0
Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
ALSA lib pcm_dmix.c:1029:(snd_pcm_dmix_open) unable to open slave
Playback open error: -2,No such file or directory
   
speaker-test -Ddefault:1 -c2 -t wav -l1
No audio

A mac uses Thunderbolt 3. That I have connected to my TV (HDMI).
I get a picture but no sound through hdmi
If it is not possible to play audio I will wait alsa on TC-8.x
I want to thank you for your help


Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14848
Re: Live TC 7.2. on usb stick and macbook: no sound
« Reply #36 on: December 25, 2016, 05:30:33 AM »
Your situation is pretty much the same as my laptop.

One further thing you could try is to mute the headphone output - I needed to do this to get sound from the speakers with tc-6.x, but I don't need to do this  with tc-7.x.

I'm pretty sure that you would manage to get sound with pulseaudio, but that's one more level of complexity/bloat...

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: Live TC 7.2. on usb stick and macbook: no sound
« Reply #37 on: December 25, 2016, 11:43:38 AM »
Indeed similar and pulse audio works great too.  However, using pulse audio requires a config file to specify hardware to use by default at each boot.  I really like slick PAVControl but it needs pulse audio.   There is one anomaly with pulse audio, whenever I use pulseaudio there exists a one or two second delay in opening Firefox browser menu's.  Additionally as found in my case Alsa doesn't appear to support automatic configuration of two SPDIF hardware ports.  So,  I've reverted to using Alsa with two config files to guarantee the correct hardware is used and unmuted at every system boot no matter which extension is loaded first

« Last Edit: December 25, 2016, 11:46:29 AM by coreplayer2 »

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: Live TC 7.2. on usb stick and macbook: no sound
« Reply #38 on: December 25, 2016, 03:47:18 PM »
Ooops, Sorry juanito I didn't see the post you were referring too

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: Live TC 7.2. on usb stick and macbook: no sound
« Reply #39 on: December 25, 2016, 03:53:03 PM »
@ Frank69

Juanito is right about pulse audio.  I'd install pavcontrol and pulse audio (follow pulse audio info file instructions closely). 
Using pavcontrol it's an easy graphical process to redirect audio streams to any output.  Once you know which configuration works on your setup you'll be able to configure Alsa to work for you

Frank69

  • Guest
Re: Live TC 7.2. on usb stick and macbook: no sound
« Reply #40 on: December 25, 2016, 05:24:59 PM »
Thanks coreplayer2. I'm going to try this.









Frank69

  • Guest
Re: Live TC 7.2. on usb stick and macbook: no sound
« Reply #41 on: December 26, 2016, 04:51:09 AM »
SOLVED I can play audio.

There are a some bugs and the settings are not saved, but pulse audo works.
For any readers with the same problem:
- I have installed pavcontrol.tcz from the application browser
- Pulsaudio is automatically installed
- Goto pulsaudio.tcz in te application browser
- On the right site are the instructions how to configure pulsaudio
Thanks to Juanito and coreplayer2

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: Live TC 7.2. on usb stick and macbook: no sound
« Reply #42 on: December 26, 2016, 12:15:34 PM »
Glad you have sound working now.

There is a method to configure pavcontrol and pulse audio to use the correct device on reboots.  However unless you simply like the volume control provided in pavcontrol to adjust the audio stream I would use the information regarding which device and output is used to setup alsa.

meanwhile, to make pulse audio persistent across reboots please post the full output of
Code: [Select]
pacmd list-cards
Note if the output is large, then use code tags to make it easier to read

Frank69

  • Guest
Re: Live TC 7.2. on usb stick and macbook: no sound
« Reply #43 on: December 26, 2016, 04:54:54 PM »
The requested printout is only visible after I watched a YouTube video. For that you get an error (No PulseAudio daemon running, or not running as session daemon).
Code: [Select]
tc@box:~$ pacmd list-cards
Welcome to PulseAudio! Use "help" for usage information.
>>> 1 card(s) available.
    index: 0
name: <alsa_card.pci-0000_00_1b.0>
driver: <module-alsa-card.c>
owner module: 5
properties:
alsa.card = "1"
alsa.card_name = "HDA Intel PCH"
alsa.long_card_name = "HDA Intel PCH at 0xb0a14000 irq 52"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-0000:00:1b.0"
sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card1"
device.bus = "pci"
device.vendor.id = "8086"
device.form_factor = "internal"
device.string = "1"
device.description = "Built-in Audio"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
profiles:
input:analog-stereo: Analog Stereo Input (priority 60, available: unknown)
output:analog-stereo: Analog Stereo Output (priority 6000, available: unknown)
output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (priority 6060, available: unknown)
off: Off (priority 0, available: unknown)
active profile: <output:analog-stereo+input:analog-stereo>
sinks:
alsa_output.pci-0000_00_1b.0.analog-stereo/#0: Built-in Audio Analog Stereo
sources:
alsa_output.pci-0000_00_1b.0.analog-stereo.monitor/#0: Monitor of Built-in Audio Analog Stereo
alsa_input.pci-0000_00_1b.0.analog-stereo/#1: Built-in Audio Analog Stereo
ports:
analog-input: Analog Input (priority 10000, latency offset 0 usec, available: unknown)
properties:

analog-input-microphone: Microphone (priority 8700, latency offset 0 usec, available: unknown)
properties:
device.icon_name = "audio-input-microphone"
analog-output-speaker: Speakers (priority 10000, latency offset 0 usec, available: unknown)
properties:
device.icon_name = "audio-speakers"
analog-output-headphones: Headphones (priority 9000, latency offset 0 usec, available: no)
properties:
device.icon_name = "audio-headphones"


Frank69

  • Guest
Re: Live TC 7.2. on usb stick and macbook: no sound
« Reply #44 on: December 29, 2016, 11:02:56 AM »
I've succeeded to save the pavcontrol settings.

First you need to unmute the audio and set the volume in pavcontrol.
Save the setting
Code: [Select]
sudo alsactl store
Ensure that this file is backed up on exit TC
Code: [Select]
nano /opt/.filetool.lst
Put at the bottom
Code: [Select]
usr/local/etc/alsa/asound.state
Make sure the settings are put back on boot
Code: [Select]
sudo nano /opt/bootlocal.sh
Put at the bottom
Code: [Select]
alsactl restore