VectorLinux
August 29, 2014, 07:58:13 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: [1]
  Print  
Author Topic: 20110912 vDefsound-0.10.0 [VL7.0]  (Read 1604 times)
stretchedthin
Administrator
Vectorian
*****
Posts: 3780


WWW
« on: September 12, 2011, 06:21:56 pm »

stretchedthin has built a new Vdefsound package for VectorLinux 7.0.
vDefsound seeks to be a solution for those of us with usb webcams or other usb devices that a sometimes mistakenly picked up as the default sound card at start-up.

This is a simple script with a Yad front end. It installs to run at start up and it checks /proc/asound/modules to see if a usb device has been made
the default sound card.  If this tests true then in offers a gui interface for the user to change the selected default soundcard to one that works.
If it does not detect a usb device as the default sound device it does nothing.
You can start it from the accessories menu, but that should not be necessary.
   
      
   
Code:
vDefsound: vDefsound (Allows for user choice of default sound card)
vDefsound: Program installs to run at start up. If a usb device is choosen as the
vDefsound: default sound card by the system. It will detect it and offer the user
vDefsound: the choice of switchin to another sound card as default.
vDefsound: Simple bash script with yad as front end.
vDefsound:
vDefsound:
vDefsound:
vDefsound: License: GPLv3
vDefsound: Authors: Ken Coulton
vDefsound: Website: www.opensourcebistro.com
   
   After testing this package please stop back here and let us know how it works for you.  Really, it would be nice to know that it works for someone else and not just me.  Smiley
   
« Last Edit: September 12, 2011, 06:50:38 pm by stretchedthin » Logged

Vectorlinux screencasts and  tutorials can be found at....
http://www.opensourcebistro.com/blog1
http://www.youtube.com/user/vid4ken?feature=mhee
sledgehammer
Vectorian
****
Posts: 1421



« Reply #1 on: February 18, 2013, 11:28:12 am »

Well,  I suppose it works as I have it loaded and as it does nothing, being, I understand, what it is supposed to not do if the usb card is not first.

My problem, perhaps related to this thread, is that I can't figure out how to have VL 7 load my usb soundcard first. 

Headacher said, back in 2007:

Quote
So, to make sure the right soundcard is default, we have to make sure the other one becomes card 1 when the module for it is loaded. This can be done by adding 1 simple line to /etc/modprobe.d/sound:

However, when I go to modprobe.d/sound it says that it is generated by alsaconf and "Do Not Edit."

Any thoughts or suggestions are appreciated.  On my system, Twinkle and Linphone play well through my usb headset. However, youtube and all the online videos play through my onboard speakers.  Seems not to matter what I to do alsamixer.  The headset is silent.

My goal is to have the headset on and the friggin onboard speakers off.

Logged

VL7.0 xfce4 Samsung RF511
The Headacher
Louder than you
Global Moderator
Vectorian
*****
Posts: 1545


I like the bass to go BOOM!


WWW
« Reply #2 on: February 18, 2013, 02:54:35 pm »

Sledgehammer:

It's quite likely that some things have changed in those past 5 years  Grin. I'm currently in the process of moving, so my USB soundcard is already hidden deep in some box. I should have some time to look at this next week, perhaps update the HOWTO if necessary.

Here's some temporary "solutions" you could try:
- On my computer, it's usually the USB device that gets to be device 0 if it's already connected during boot. Is your headset connected during boot? I must admit though, I haven't really tried that on very recent versions, I'm still using VL 6 (and earlier for my music install).
- you could try blacklisting the module for your onboard sound if you don't want to use it at all anymore.

I'll see if I can find out something later, or perhaps someone else is in the know of a solution already.
Logged

Most music on my soundcloud page was arranged in programs running on VL.
sledgehammer
Vectorian
****
Posts: 1421



« Reply #3 on: February 23, 2013, 11:13:04 pm »

Not sure I know how to blacklist a module.  And booting without the usb headphones plugged in doesn't work (i.e. youtube plays through onboard speakers and not usb headset).  I tried a couple of other things, which also did not work.  What might work would be if I could find an editable version of the file which designates the onboard speakers as 0 and the usb speakers as 1.  I could then just change their order.  But I can't find an editable version of that file.

What would be nice, great even, would be if stretchedthin could get vDefsound to also operate when the onboard speakers are loaded first, as happens in my machine.  Those who, like me, can't figure out how to get the usb headphones to load first (actually, alsamixer.conf doesn't even recognize the headset) could then use vDefsound to turn off the onboard speakers and turn on the usb speakers.



Logged

VL7.0 xfce4 Samsung RF511
The Headacher
Louder than you
Global Moderator
Vectorian
*****
Posts: 1545


I like the bass to go BOOM!


WWW
« Reply #4 on: February 24, 2013, 04:03:17 am »

Quote
Not sure I know how to blacklist a module.

You'd edit the file /etc/modprobe.d/blacklist.conf and add a blacklist entry for your onboard sound.
Logged

Most music on my soundcloud page was arranged in programs running on VL.
sledgehammer
Vectorian
****
Posts: 1421



« Reply #5 on: February 24, 2013, 02:36:24 pm »

The Headacher,

Would you mind taking a look and telling me which module to blacklist in order to turn off my onboard speakers?

Quote
vector:/~
johwhi:$ lsmod
Module                  Size  Used by
snd_usb_audio          63588  3
snd_usbmidi_lib        13362  1 snd_usb_audio
snd_rawmidi            13181  1 snd_usbmidi_lib
fuse                   51559  3
i915                  296914  2
drm_kms_helper         18228  1 i915
drm                   128651  3 i915,drm_kms_helper
i2c_algo_bit            3718  1 i915
xt_tcpudp               1734  12
xt_state                 867  1
iptable_mangle          1100  0
nf_nat_irc               966  0
nf_conntrack_irc        2399  1 nf_nat_irc
nf_nat_ftp              1148  0
nf_conntrack_ftp        4113  1 nf_nat_ftp
iptable_nat             2900  0
nf_nat                 10655  3 nf_nat_irc,nf_nat_ftp,iptable_nat
nf_conntrack_ipv4       8132  4 iptable_nat,nf_nat
nf_conntrack           37076  8 xt_state,nf_nat_irc,nf_conntrack_irc,nf_nat_ftp,nf_conntrack_ftp,iptable_nat,nf_nat,nf_conntrack_ipv4
nf_defrag_ipv4           931  1 nf_conntrack_ipv4
iptable_filter          1020  1
ip_tables               7949  3 iptable_mangle,iptable_nat,iptable_filter
x_tables                9772  6 xt_tcpudp,xt_state,iptable_mangle,iptable_nat,iptable_filter,ip_tables
snd_seq_dummy           1035  0
snd_seq_oss            21907  0
snd_seq_midi_event      3924  1 snd_seq_oss
snd_seq                36499  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_seq_device          3853  4 snd_rawmidi,snd_seq_dummy,snd_seq_oss,snd_seq
snd_pcm_oss            28741  0
snd_mixer_oss          10545  2 snd_pcm_oss
speedstep_lib           2558  0
acpi_cpufreq            4677  1
freq_table              1763  1 acpi_cpufreq
mperf                    937  1 acpi_cpufreq
snd_hda_codec_hdmi     17445  1
snd_hda_codec_realtek   201951  1
snd_hda_intel          16321  4
snd_hda_codec          51458  3 snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel
iwlagn                143565  0
uvcvideo               48352  0
joydev                  7017  0
videodev               55338  1 uvcvideo
evdev                   6626  24
mac80211              160102  1 iwlagn
r8169                  31046  0
intel_agp               8014  1 i915
snd_hwdep               4128  2 snd_usb_audio,snd_hda_codec
snd_pcm                48666  5 snd_usb_audio,snd_pcm_oss,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec
i2c_i801                6330  0
snd_timer              12858  2 snd_seq,snd_pcm
snd                    36298  27 snd_usb_audio,snd_usbmidi_lib,snd_rawmidi,snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_hda_codec_hdmi,snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_timer
intel_gtt               9727  3 i915,intel_agp
i2c_core               13898  6 i915,drm_kms_helper,drm,i2c_algo_bit,videodev,i2c_i801
mii                     2883  1 r8169
cfg80211              110051  2 iwlagn,mac80211
soundcore               3736  2 snd
video                   9731  1 i915
processor              21842  1 acpi_cpufreq
thermal                 6450  0
fan                     1850  0
agpgart                19211  3 drm,intel_agp,intel_gtt
mxm_wmi                 1053  0
wmi                     6295  1 mxm_wmi
thermal_sys             9985  4 video,processor,fan,thermal
snd_page_alloc          5143  2 snd_hda_intel,snd_pcm
rfkill                 10898  1 cfg80211
battery                 8607  0
button                  3510  1 i915
hwmon                   1093  1 thermal_sys
rtc_cmos                6673  0
ac                      2477  0
sg                     18020  0
mei                    23148  0
vector:/~
Logged

VL7.0 xfce4 Samsung RF511
The Headacher
Louder than you
Global Moderator
Vectorian
*****
Posts: 1545


I like the bass to go BOOM!


WWW
« Reply #6 on: February 25, 2013, 01:17:39 am »

I'll be glad to! Your onboard card uses the snd_hda_intel module.

Keep in mind that blacklisting should only prevent auto loading of the modules. If there's a script somewhere explicitly loading the module it would still be loaded.

PS. I may have been a little optimistic saying I would have time for a better look at the problem/Howto this week. Everything is still rather chaotic after moving.
Logged

Most music on my soundcloud page was arranged in programs running on VL.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!