Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Multimedia
  • Search

Headphones Yes / Notebook Speakers No

Help with creation, editing, or playback of sounds, images, or video. Amarok, audacious, mplayer, grip, cdparanoia and anything else that makes a sound or plays a video.
Post Reply
Advanced search
6 posts • Page 1 of 1
Author
Message
67comet
Apprentice
Apprentice
User avatar
Posts: 262
Joined: Fri Oct 29, 2004 9:48 pm
Location: Ogden, UT
Contact:
Contact 67comet
Website

Headphones Yes / Notebook Speakers No

  • Quote

Post by 67comet » Mon Jun 26, 2006 11:58 am

Seems I did something a few days ago, but haven't a clue what it was.

My earphones work great on my notebook (HP dv4000) but the internal laptop speakers don't work anymore.

I've ran alsaconf with no help (it actually didn't do anything, couldn't find much etc) ...
I've checked alsamixer with no help and nothing is muted and all volumes are most of the way up.

I checked my kernel and nothing changed there.

Help?

Thanks,
Justin

P.S. I also fired up in "that other OS" and it works as advertised.
A Pile of Code (basically dead).
Personal Site (basically useless).
Top
GetCool
Guru
Guru
User avatar
Posts: 324
Joined: Sun Nov 23, 2003 12:51 am
Location: Madison, Wisconsin

  • Quote

Post by GetCool » Tue Jun 27, 2006 12:57 am

Hi,

I've been in this same boat quite a few times, where something audio-related works just fine in the "other OS" but not in Linux.

Since you mention that none of your channels are muted, it sounds to me like the output just isn't being directed to the right place. Please post the contents of /etc/asound.conf, if it exists. If it doesn't exist, we may need to create one to get it working.

Also, it might help to have some info about your hardware. Post the output of the following command as well:

Code: Select all

# aplay -l
By the way, don't run alsaconf. It won't do much unless you have your ALSA components built as modules (and I would recommend not building anything ALSA-related as a module).
Top
67comet
Apprentice
Apprentice
User avatar
Posts: 262
Joined: Fri Oct 29, 2004 9:48 pm
Location: Ogden, UT
Contact:
Contact 67comet
Website

  • Quote

Post by 67comet » Thu Jun 29, 2006 11:03 am

Here is my aplay -l:

Code: Select all

lappy justin # aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: ICH6 [Intel ICH6], device 0: Intel ICH [Intel ICH6]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: ICH6 [Intel ICH6], device 4: Intel ICH - IEC958 [Intel ICH6 - IEC958]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Modem [Intel ICH6 Modem], device 0: Intel ICH - Modem [Intel ICH6 Modem - Modem]
  Subdevices: 1/1
  Subdevice #0: subdevice #0


And it doesn't appear that there is an /etc/asound.conf. How can I go about rebuilding that bugger? (I'm assuming it existed at one time since it worked until I did who knows what).

Thank you,
Justin

*edit* .. My alsa stuff is compiled along with my kernel .. Not emerged .. */edit*
A Pile of Code (basically dead).
Personal Site (basically useless).
Top
67comet
Apprentice
Apprentice
User avatar
Posts: 262
Joined: Fri Oct 29, 2004 9:48 pm
Location: Ogden, UT
Contact:
Contact 67comet
Website

  • Quote

Post by 67comet » Mon Jul 10, 2006 3:38 am

Any ideas? It's still not playing nice on it's internal speakers. It plays fine on it's headphone jack however.

Justin
A Pile of Code (basically dead).
Personal Site (basically useless).
Top
idella4
Retired Dev
Retired Dev
User avatar
Posts: 1600
Joined: Fri Jun 09, 2006 11:29 am
Location: Australia, Perth

  • Quote

Post by idella4 » Mon Jul 10, 2006 8:08 am

67comet,

I am in a similar boat at the moment, just a little further along.

The /etc/asound.conf is not a standard file, but one that can be used to do the job.
In other words the alsa script 'looks' in a couple of places for config files, and that's one.
The settings will be currently coming from /etc/modules.conf and /etc/modules.d/alsa.

alsaconf should achieve a bit more than nothing, otherwise that implies something out of place at a more fundamental level.

Have you read through the alsa guide in the gentoo docs?
idella4@aus
Top
GetCool
Guru
Guru
User avatar
Posts: 324
Joined: Sun Nov 23, 2003 12:51 am
Location: Madison, Wisconsin

  • Quote

Post by GetCool » Sun Jul 23, 2006 3:20 am

67comet wrote:Any ideas? It's still not playing nice on it's internal speakers. It plays fine on it's headphone jack however.
Hi,

Sorry I haven't followed up on my initial response.

If you look at your output of the "aplay -l" command, you can see a list of all the devices that ALSA recognizes. The nomenclature for identifying one of these devices is hw:X,Y, where X is the card number, and Y is the device number. As such, from your output, it looks like you have three devices:

Code: Select all

card 0: ICH6 [Intel ICH6], device 0: Intel ICH [Intel ICH6]
card 0: ICH6 [Intel ICH6], device 4: Intel ICH - IEC958 [Intel ICH6 - IEC958]
card 1: Modem [Intel ICH6 Modem], device 0: Intel ICH - Modem [Intel ICH6 Modem - Modem]
...with the ALSA identifiers hw:0,0, hw:0,4, and hw:1,0, respectively.

ALSA playback automatically uses hw:0,0 by default, and hw:1,0 is a modem, which you don't care about in this context. That leaves hw:0,4, which could possibly be the device identifier of the laptop speakers.

So, what you can do to find out is create an /etc/asound.conf file with the following contents:

Code: Select all

pcm.!default {
  type plug
  slave {
    pcm "hw:0,4"
  }
}
...and restart ALSA:

Code: Select all

# /etc/init.d/alsasound restart
See if that enables the speakers. Assuming this works, it may, however, disable headphone jack output. If you want to keep both outputs functional and be able to select which one you want, you can make an asound.conf like this:

Code: Select all

pcm.!default {
  type plug
  slave {
    pcm "hw:0,4"
  }
}

pcm.!headphones {
  type plug
  slave {
    pcm "hw:0,0"
  }
}
...and then when you want to use the headphones instead of the speakers, reference the ALSA device "headphones" in your playback application; for example:

Code: Select all

aplay -D headphones file.mp3
Note that many popular media players, such as xmms and mplayer, allow you to select an ALSA device through their GUI interface.

Hope that helps.
Top
Post Reply

6 posts • Page 1 of 1

Return to “Multimedia”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic