Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).


  Search this Thread
Old 07-20-2009, 04:19 PM   #1
Registered: Feb 2003
Location: Heddon on-the-wall, northumberland, england
Distribution: Ubuntu
Posts: 323

Rep: Reputation: 34
Exclamation (Macbook) Sound almost on par with OS X, need help with Headphones

Ever since I put any GNU/Linux on this macbook (2,1) the sound hasn't been as good on speakers as OS X or Windows, the problem it turned out was that the bass speaker was actually the right rear speaker, so anything on the left was just tinny, whilest the right channel had a fuller sound.

I decided to take action, to make things easier, I removed pulseaudio:

sudo apt-get remove pulseaudio
and edited my .asoundconf to the following:

# ALSA library configuration file

# Include settings that are under the control of asoundconf(1).
# (To disable these settings, comment out this line.)

pcm.!default plug:monobass
ctl.!default {
  type hw
  card ICH7

pcm.snd_card {
     type hw
     card 0 # change to your cards number or name

# 6 channel dmix:
pcm.dmix6 {
     type dmix
        ipc_key 1024
        ipc_key_add_uid false # let multiple users share
        ipc_perm 0660 # IPC permissions (octal, default 0600)
        slave {
                pcm snd_card # see below
                rate 48000
                channels 4 
                period_time 0
                period_size 1024 # try 2048 against skipping
                buffer_time 0
                buffer_size 5120 # in case of problems reduce this
                                 # in case of skipping, try increasing

pcm.monobass {
       type route;
       slave.pcm dmix6 
  slave.channels 4 
  ttable.0.0 1
  ttable.1.1 1
  ttable.0.3 1 # copy front left to rear right
  ttable.1.3 1 # copy front right to rear right
  ttable.4.3 1 # copy center to rear right

  ttable.2.0 1
  ttable.3.1 1
  ttable.4.0 1
  ttable.4.1 1
  ttable.6.0 1
  ttable.7.1 1

As you can see, the left, centre (yeah, I spelt it with US English in the config) and right channels are all sent to the right rear speaker, and now sound is great on speakers!

The down side is, now the headphones are producing nothing in the left, and the mono mix in the right (basically doing what the rear speakers are doing)

Anyone have any ideas how to make the headphone channel map to the front left and right mixes?

Old 08-07-2009, 09:36 AM   #2
Registered: Feb 2003
Location: Heddon on-the-wall, northumberland, england
Distribution: Ubuntu
Posts: 323

Original Poster
Rep: Reputation: 34


alsa, headphone, macbook, sound

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
sound but no headphones flury Linux - Laptop and Netbook 1 05-29-2007 11:28 AM
Back Panel - No Sound, Headphones - Sound GNewbie Ubuntu 2 03-19-2007 11:15 PM
No sound from headphones:( in 6.10 sagar.1986 Ubuntu 6 02-18-2007 07:27 PM
Sound from speakers not from headphones crimsontide Linux - Hardware 2 12-21-2006 08:55 AM
problem with headphones sound cofee Linux - Hardware 1 12-03-2006 04:28 PM > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 09:47 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration