Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
When I first started this thread the headphones were not appearing in lsusb. But then after the dmesg suggested by somedude they started appearing:
lsusb:
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 0d8c:0001 C-Media Electronics, Inc. Audio Device
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Yes I did alsa restart. In sound>preferences I've tried setting everything to alsa and also setting everything to C-media usb audio but unfortunately still no joy. I don't have pulse audio. The headphones were a cheap pair bought from Maplins, Yoga EM-178. They are 'call-centre' style with a mic as well. The headset is a standard pair with a jack, which you then plug through a usb dongle.
1] When you modified alsa.conf to use your USB device instead of the 0 [NVidia ]: HDA-Intel - HDA NVidia0 [NVidia ]: HDA-Intel - HDA NVidia and restarted alsa, nothing should have come out of your speakers (which are connected to your on-board sound device), only your headphones. Maybe you need to double-check this all again?
2] There's little on the www about your device: Bus 002 Device 002: ID 0d8c:0001 C-Media Electronics, Inc. Audio Device, which either means it "just works" or there aren't many people using it.
3] Do your headphones work with anything else (eg any music player) ?
4] I hope you don't still have my script (even modified) running from rc.local, because if that is failing somehow it may be restoring your original setup for sound device 0 at the next boot.
So, trim things back to the bare minimum, and change one thing at a time. Test. Re-test.
Well I didn't have pulse audio when I wrote that, or at least it wasn't installed properly with all the plugins. Only yesterday had the pulseaudio shortcut appeared in the tool bar.
Your posts did help: over the weekend I managed to get the testing 'beep' through the headphones for the first time after re-typing the codes in terminal, then after a bit more tweaking I got them to work with media players. But I still had a problem with Flash sound. Then I saw the post I linked above, installed all the plugins he recommended, and managed to get pulseaudio to switch to the usb.
Hello, I would like to ask whether anyone can think of a similar approach for a more recent Yoga 5.1 USB Audio Connector.
As with the last person, it also seems to be a C-Media card. I am running standard 64 12.04 Ubuntu.
Code:
cat /proc/asound/cards
0 [PCH ]: HDA-Intel - HDA Intel PCH
HDA Intel PCH at 0xf7600000 irq 53
1 [Device ]: USB-Audio - USB Sound Device
C-Media INC. USB Sound Device at usb-0000:00:1a.0-1.2, full speed
The last person said that it eventually started to work for him. I am not sure how that happened, but it has not worked for me, and there seems to be a few differences to alsa but I really do not know enough to act upon that.
Added on edit: I can go into alsamixer and switch between devices from and to my USB device. Here the USB device only has two control bars: "PCM" and "Loudness". I can change "PCM", but "Loudness" is locked on 0. I don't know if that's relevant (I am afraid I don't really understand alsa) but a zero hanging over "Loudness" seemed worth mentioning.
Also, referring to a comment to the previous poster, I still get volume through speakers despite having switched to 1 on conf file and despite alsamixer opening onto the USB mixer on default - so the music still plays through the speakers and changing PCM has no effect upon that either way.
Further edit: Referring to edit above, I can stop the speakers by altering: defaults.pcm.device to 1. But this does not make the USB play.
I don't spend as much time here on LQ as I used to, and I was about to recommend that you start a new thread rather than resurrect this old one (long threads don't tend to get read by people who have not subscribed to them).
I did a quick search (ubuntu c-media electronics inc. audio adapter) and would suggest that you try the suggestions in this link
Follow the recommendations in that post, and you should be good to go.
Please let us (though probably only me, see above) know how you get on.
I tried the additional suggestion on that forum regarding altering:
Code:
options snd-usb-audio index=-2
in:
Code:
/etc/modprobe.d/alsa-base.conf
I tried a few different values as per suggestions by posters there, but it did not work.
In particular, my alsamixer has a PCM adjuster and a Loudness adjuster, with no bar and values 00.
One thing perhaps, I can only reload/restart by using:
One thing perhaps, I can only reload/restart by using:
Code:
sudo /sbin/alsa force-reload
or:
Code:
sudo /sbin/alsa reload
rather than:
Code:
/etc/init.d/alsa-utils restart
and so on, as these do not work for me.
alsa does not seem to feature in recent ubuntu distributions - it's all pulseaudio now, and I do not pretend to understand that, but it seems to work, for me, for now.
Ubuntu seem to be moving to a systemd way of booting, rather than the traditional "system V" /etc/init.d/* scripts way of doing things so /etc/init.d/alsa-utils restart will no longer work.
One of the reasons LQ does not like to resurrect old threads (like this one) is that linux is dynamic, and changes all the time.
This thread is three years old and linux has moved on, fast.
So, please, be bold, and start a new thread here on LQ with your problem. I expect it will be answered by someone more up to date than I am.
I will look into pulseaudio. And thank you for the explanation regarding systemd, and I kind of see your point on linux' development already from a very brief read up.
I had started a new thread, shortly before you got back to me, but I hedged it very much in terms of this one (which as you say was not wise).
I will give pulseaudio a quick go, and then post up an account of my steps, etc., when I almost inevitably get stuck!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.