Results 1 to 2 of 2

Thread: Samsung n120, 2.1 sound How to activate the center speaker

  1. #1
    Join Date
    Feb 2007
    Location
    Amsterdam
    Beans
    39
    Distro
    Ubuntu 10.04 Lucid Lynx

    Samsung n120, 2.1 sound How to activate the center speaker

    I bought a Samsung n120 netbook and was curious about the 2.1 channel sound. Out of the box with Ubuntu Netbook Remix the 3rd speaker (which is the screen itself) does not function. With the addition of an alsa ~/.asoundrc file to my home directory everything works now like a dream and my Samsung n120 sounds great!

    So the steps to get your 3rd speaker working are as follows
    1. in alsamixer set the front setting to full volume
    2. create an .asoundrc file as follows (I've put in extra comments to make it easy to follow
    3. put the .asoundrc file in your home directory


    1st and explaination of the code piece by piece

    # give your setting a name I choose two point one
    pcm.twopointone {

    # tell alsa what we want to do... route the sound
    type route

    # copy the default surround 4.1 setting
    slave.pcm surround41

    #tell alsa how many channels to use 2.1 is 3
    slave.channels 3

    #play the sound for the Front Left .0 to play through the Front Left speaker .0 at full volume 1
    ttable.0.0 1

    #play the sound for the Front Right .1 to play through the Front Right Speaker .1 at full volume 1
    ttable.1.1 1

    #play the sound for Front Left .0 to play through the center speaker .4 at half volume 0.5
    ttable.0.4 0.5

    #play the sound for the Front Right speaker .1 through the center speaker .4 at half volume 0.5
    ttable.1.4 0.5

    # you can choose to comment the above two lines and uncomment the next line which will give you
    #play the subwoofer sound LFE .5 through the center speaker .4 at full volume 1
    ## ttable.5.4 1
    }

    and now for the code to copy and paste into your own ~/.asoundrc file.
    Most people will not have an ~/.asoundrc file you will have to create an empty file and insert the following code

    Code:
    #alsa config for the Samsung n120 2.1 speakers
    pcm.twopointone {
       type route
       slave.pcm surround41
       slave.channels 3
       ttable.0.0 1
       ttable.1.1 1
       ttable.0.4 0.5
       ttable.1.4 0.5
    # uncomment next line to route LFE.5 to center.4
    ##     ttable.5.4 1
    }
    Experiences flowing into dreams, into experiences.

  2. #2
    Join Date
    Apr 2006
    Beans
    88
    Distro
    Ubuntu Development Release

    Re: Samsung n120, 2.1 sound How to activate the center speaker

    hey.. i just bought the same.. n u r mistaken about the 3rd speaker.. it is on the bottom near the touchpad, to the left... it works in windows, but i have not had any success in making it honk in ubuntu.. think u can help me out?
    Oneiric+Unity 3.0.0-12

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •