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.
Hi Community, I am old (71) but spent over 40 years in IT, some of it in UNIX admin I retired over 10 years ago having started in IT in 1968 on a mainframe that cost the government between 5 and 10 million pounds which would be outperformed many times by my Windows phone.
I need a simple step by step method to use my Logitech usb speakers in Linux I would be very grateful.....
Cheers Keith Tomlinson
You are going to have to supply more information than that, like what distribution of linux you are using and if you are using a desktop manager such as gnome, kde, etc.
Personally I'd first check dmesg to see what got inserted for the speakers themselves.
1. Plug in your speakers.
2. Open System Settings > Sound (or 'pavucontrol' from a terminal or application menu)
3. In pavucontrol, select Playback tab
4. Set playback to the USB device
Done.
As r3sistance says, though, knowing what distribution and your desktop is probably more useful than, say, your history with mainframes :-)
Depending on what desktop environment you are running. There should be a speaker icon on the taskbar. Just like on Windows. No? You should be able to turn up the volume that way also. Logitech usb speakers are plug and play in linux. just like windows.
Firstly, make sure your usb device is plugged in before you boot up the computer. Then try the sound, using youtube or whatever.
If you can't hear anything, don't worry: a few distros come with the sound turned off (yes, really!) Look in your menu for a sound control, hardware control, or a configuration centre (I can't say where, because it depends on what you installed). If the sound is set to mute, un-mute and try again.
If that has no effect, the sound tool should have options like "hardware", or "input" and "output" where you can select the device. Select "usb" and "analog output".
If that doesn't work, then there's a little more to do. If your desktop is KDE, you may find that the sound configuration works for KDE's own programs but not for Firefox or Chrome, for example.
First, find the tool in the menu for managing users and groups. Run that and join the "audio" group. That's only needed on a few distros, but it won't do any harm to join if it isn't.
Now look in the folder /etc/modprobe.d/ for something like alsa-base.conf. Search that file for a line like "options snd-usb-audio index=-2". If it's there (and I've seen it occur twice, so check carefully) delete it. Then reboot the computer and see it the problem has gone.
If not, try the command "aplay -l". If it includes something like
card 1: Device [USB Audio Device], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
then sound is going to whatever is listed as Card 0. Create a file in your home directory called ".asoundrc" containing
defaults.pcm.card 1
defaults.pcm.device 0
defaults.ctl.card 1
and log out and in again.
If you still have no sound, find the names of the sound modules in the kernel with
$ cat /proc/asound/modules
If the module for the device you want (like snd_usb_audio) is not there, look in /lib/modules/[Linux version number]/kernel/sound/ to see if you’ve got it. If you haven’t, you need to get it from your distro: it must be compiled for the version of the kernel that you’re using. If you have it, then it wasn’t loaded, probably because it’s faulty.
If you’ve got the module loaded, you can try blocking the modules for unwanted devices from loading. Look in /etc/modprobe.d/ for something like blacklist.conf
Edit it, adding lines like
blacklist snd_cmipci
for each unwanted module. Then remove .asoundrc and reboot. In one case I heard of, the devices were sometimes being recognised in a different order when the computer was booted, so .asoundrc would give the wrong number: this fixed the problem.
Last edited by DavidMcCann; 03-03-2017 at 11:44 AM.
The above for alsa natively. The rough equivalent to -D hw:1,3 for speaker-test, aplay, and other players / test tools. Where ,3 is often the HDMI out. Adjust to needs based on the contents of /proc/asound/cards, or the more verbose output of other things. With -D hw:0,0 being the default out in the absence of a .asoundrc file.
If you're running one of those fancy desktops, you probably have something akin to a menu item ... Menu -> System -> Settings -> Audio -> ..and 15 layers later.. something that "might" work, and break again on tomorrows update. Or a 16px x 16px speaker icon on the bar which looks like little more than a spec of dust on a 4K display.
Hi Community, I am old (71) but spent over 40 years in IT, some of it in UNIX admin I retired over 10 years ago having started in IT in 1968 on a mainframe that cost the government between 5 and 10 million pounds which would be outperformed many times by my Windows phone.
I need a simple step by step method to use my Logitech usb speakers in Linux I would be very grateful.....
Cheers Keith Tomlinson
Hi again, I accept the comment re: my short history, it was really an attempt to introduce myself to the community and say hello.
The distro I am using is : Mint 18 Cinnamon and the desktop seems to be KDE.......cheers Keith
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.