Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
wiki:alsa_part2 [2012/10/13 19:34] – [Switching sound devices at boot] title aus9wiki:alsa_part2 [2018/10/04 20:22] (current) – [Other web resources and credits] aus9
Line 1: Line 1:
-=====bootlocal.sh tweaks - Part four -other options=====+=====bootlocal.sh tweaks - other options=====
  
 In this section, I assume you have blacklisted your sound module. In this section, I assume you have blacklisted your sound module.
Line 38: Line 38:
 add line to /opt/.filetool.lst add line to /opt/.filetool.lst
 ^opt/alsa^  ^opt/alsa^ 
- or 
-<code> 
-sudo echo -e '\nopt/alsa' >> /opt/.filetool.lst 
-</code> 
 **Note** we drop the first / for each file in filetool.lst. **Note** we drop the first / for each file in filetool.lst.
  
Line 51: Line 47:
 Add extra line to filetool.lst Add extra line to filetool.lst
 ^usr/local/etc/asound.state^ ^usr/local/etc/asound.state^
-or + 
-<code> +Next add the following line to bootlocal.sh 
-sudo echo -e '\nusr/local/etc/asound.state' >> /opt/.filetool.lst +^/usr/local/sbin/alsactl restore^
-</code> +
-The alsasound script will restore mixer levels as it searches for the above file.+
  
 **alsaconf users**\\ **alsaconf users**\\
 Add extra line Add extra line
 ^etc/modprobe.conf^ ^etc/modprobe.conf^
-or 
-<code> 
-sudo echo -e '\netc/modprobe.conf' >> /opt/.filetool.lst 
-</code>  
  
-**sound device model changed to fix up controls or options...users**\\+**sound device model changed to fix up controls or options**\\
 Best not to use "default" mixer pathway, instead use an unique pathway to save borking your mixer levels. Best not to use "default" mixer pathway, instead use an unique pathway to save borking your mixer levels.
 <code> <code>
Line 74: Line 64:
 First use root powers to edit /opt/bootlocal.sh First use root powers to edit /opt/bootlocal.sh
 <code> <code>
-echo -e '\n/usr/local/sbin/alsactl -f /home/tc/mysound.state restore' >> /opt/bootlocal.sh+sudo echo -e '\n/usr/local/sbin/alsactl -f /home/tc/mysound.state restore' >> /opt/bootlocal.sh
 </code> </code>
 There is no need to add the home file mysound.state to filetool.lst as it goes into mydata.tgz on shutdown or reboot. There is no need to add the home file mysound.state to filetool.lst as it goes into mydata.tgz on shutdown or reboot.
Line 84: Line 74:
 Need to know what their bootloader is, and use root powers to edit that config file.\\ Need to know what their bootloader is, and use root powers to edit that config file.\\
 Typically, the file is likely to be under /boot folder and /boot is outside the rootfs (the unpacked core.gz). boot folder is often at same partition as the tce folder but its not necessary that it is. Typically, the file is likely to be under /boot folder and /boot is outside the rootfs (the unpacked core.gz). boot folder is often at same partition as the tce folder but its not necessary that it is.
 +
 +**/home/tc/.asoundrc users **\\
 +This file is backed up to mydata.tgz so no further action need for it. Be aware that you may have changed mixer levels.
 =====Persistence - LIVE TEST and CHECKLIST===== =====Persistence - LIVE TEST and CHECKLIST=====
 Some users may like to test that their saved mixer level files are good before reboot? Try Some users may like to test that their saved mixer level files are good before reboot? Try
Line 126: Line 119:
  
 Note: if you needed to adjust mixer levels or mutings you may need to revisit persistence Note: if you needed to adjust mixer levels or mutings you may need to revisit persistence
 +
 =====alsamixer===== =====alsamixer=====
-open a terminal and run command+You may need to use alsamixer, if you need to change your inputs. This is because I found alsamixergui unable to unmute (make active) my mic input. If you want to learn alsamixer, make as many changes as you like but remember not to save them with the alsactl command. That is the power and convenience of the TinyCore design to get you back to a pristine state or a saved state. 
 + 
 +Open a terminal and run command
 <code> <code>
 alsamixer alsamixer
Line 139: Line 135:
 The above help is not helpful for microphone or capture devices, these input devices need the SPACE BAR to activate or de-active. The default seems to be de-active. The above help is not helpful for microphone or capture devices, these input devices need the SPACE BAR to activate or de-active. The default seems to be de-active.
  
-So I have made up a new image that might help newbies? 
  
-{{http://oi49.tinypic.com/2mplf9s.jpg?450x500}}+I have hidden the mic sections below as most users tend not to use mics.
  
 =====Choose sound devices at boot===== =====Choose sound devices at boot=====
Line 188: Line 183:
  
 **Part 2 - CREATE NEW BOOTLOADER ENTRIES**\\ **Part 2 - CREATE NEW BOOTLOADER ENTRIES**\\
-Ok you may need to revisit blacklist section link 66666666 
- 
 We blacklist all sound modules. While editting, we create 2 entries one for each sound device. So your bootloader config editted with root powers becomes\\ We blacklist all sound modules. While editting, we create 2 entries one for each sound device. So your bootloader config editted with root powers becomes\\
  
Line 259: Line 252:
  
 =====Normal microphones===== =====Normal microphones=====
 +
 +Check how many inputs you have, in case you did not know, or suspect broken hardware wtih
 +<code>
 +arecord -l
 +
 +(my example) I have front and rear mics in a tower
 +**** List of CAPTURE Hardware Devices ****
 +card 0: Intel [HDA Intel], device 0: STAC92xx Analog [STAC92xx Analog]
 +  Subdevices: 2/2
 +  Subdevice #0: subdevice #0
 +  Subdevice #1: subdevice #1
 +</code>
 +
 +If you want to use command mode those are renamed as hw:0,0,0 and hw:0,1,1
 +
 +Now lets explain that.\\
 +first number is the card index number\\
 +second number is subdevice\\
 +third is sub-component
  
 If you have  normal 3.55 mm orange colour connector microphone, you may still need to do some tweaking.\\ If you have  normal 3.55 mm orange colour connector microphone, you may still need to do some tweaking.\\
Line 268: Line 280:
 and I have 2 sliders and 2 settings in my alsamixer. and I have 2 sliders and 2 settings in my alsamixer.
  
-{{http://i53.tinypic.com/jhznz7.jpg?300x150}}+image to be updated later
  
 In above image, I have paired slider 1 with setting one and slider 2  with setting 2 so it reads\\ In above image, I have paired slider 1 with setting one and slider 2  with setting 2 so it reads\\
Line 274: Line 286:
 ...the second capture device is zeroed for back mic with dmux set to zero. ...the second capture device is zeroed for back mic with dmux set to zero.
  
-**How to activate your mic**\\ +=====How to activate your mic===== 
-If your alsamixer mic control does not dispaly the word CAPTURE above the bottom capture control, then press the **SPACE BAR** in alsamixer to unmute or activate the mic. Next, use the page up or down or arrow up or down to set the volume levels. So if active, you must see 2 "capture" mentions on the same control.+If your alsamixer mic control does not dispaly the word CAPTURE above the bottom capture control, then press the **SPACE BAR** in alsamixer to unmute or activate the mic. Next, use the page up or down or arrow up or down to set the volume levels. 
  
 TIP, distortion is more likely at max volume try somewhere between 80-90% and consider doing record and playbacks to confirm.  TIP, distortion is more likely at max volume try somewhere between 80-90% and consider doing record and playbacks to confirm. 
  
-{{http://i54.tinypic.com/1zmm8as.jpg?400x300}}+{{wiki:mic.jpg}} 
 + 
 +The mux setting is like a kind of mic amplifier and I suggest you do not use it unless with volumes maxed etc, you can not hear sufficient volume. Note when raised mux is more likely to  lead to distortion. 
 + 
 +If your alsamixer image has a slider and one named digital then you have an advantage over most sliders. The non-digital slider can be volume zero but kept active, and your mic volume is controlled by the digital slider.
  
-The mux setting is like kind of mic amplifier and I suggest you do not use it unless with volumes maxed etcyou can not +TIP 
-hear sufficient volume.\\ +If you have headset mic and ear pieces use that to avoid getting speaker feedback through your mic. 
-Note when raised .....mux....can lead to distortion.+=====Volume guidelines===== 
 +As a general rulenever set volume for inputs at 100%The amplifier called mux for my card only allows 0,50 or 100 amplificationAnd 50 and 100 cause too much distortion to even my ears to bear.
  
 =====  How to change setting for mic ===== =====  How to change setting for mic =====
Line 322: Line 339:
 Depending on whether you are using skype or video recording, you may need to save a backup of your mixer levels for that webcam. For problems with microphones see Forums, e.g. http://forum.tinycorelinux.net/index.php?topic=2083.msg16436#msg16436 Depending on whether you are using skype or video recording, you may need to save a backup of your mixer levels for that webcam. For problems with microphones see Forums, e.g. http://forum.tinycorelinux.net/index.php?topic=2083.msg16436#msg16436
  
 +=====Modems=====
 +If you happen to have a modem supported by alsa, then you may find some settings for it in alsamixer, showing as a distinct sound device, e.g. Off-hook and Caller ID.
  
 =====Other web resources and credits===== =====Other web resources and credits=====
  
 TC maintainers for OSS and Alsa TC maintainers for OSS and Alsa
-  * -Jason W, Juanito, Curaga+  * Jason W, Juanito, Curaga 
 +  * Moderator Rich for setup guide
  
  
Print/export
QR Code
QR Code wiki:alsa_part2 (generated for current page)