Page 1 of 22 12311 ... LastLast
Results 1 to 10 of 219

Thread: ALSA Upgrade Script Redux

  1. #1
    Join Date
    Jun 2007
    Beans
    14,783

    ALSA Upgrade Script Redux

    WARNING: The ALSA script was useful back in the day, but it is now more dangerous than helpful for a majority of users, and there are usually better methods of upgrading. USE AT YOUR OWN RISK.

    DISCLAIMER: Don't use this script unless you know what it's really doing (building vanilla ALSA from source and installing it over the older, Ubuntu-patched version on your system). Do not PM me for support as your request will go to the great bit bucket in the sky. Please do not post irrelevant support requests in this thread because the old thread had about 99% support requests and 1% people actually helping/contributing (start your own thread in Hardware or Multimedia forum). Finally, do not blame me for any problems this causes (it would be far better to find a properly packaged ALSA than using this hack). I (and hopefully others) will do our best to help you, but ultimately, if it breaks, you keep the pieces.
    Ok, here's the new ALSA upgrade script for ALSA 1.0.25. The script is not in line with Debian/Ubuntu rules for package handling. It just overwrites existing files. You won't see any changes on the ALSA package-ids within Synaptic!

    The script recognizes severe problems during the installation and will stop automatically. It shouldn't mess up your setup.
    If the script stops with an error-message nothing should have been touched!
    In the worst case scenario the -r restore option restores your old system status as good as possible. It'll reinstall kernel, kernel-headers and Alsa related packages.

    Ubuntu upgrades/updates might overwrite your Alsa installation once in a while (e.g. Major upgrades, kernel-upgrades or ALSA-package upgrades).
    You just need to rerun the upgrade-script using the -i option in this case (if you still have the compiled sources on the disk).

    Short Alsa-Upgrade script install instructions:

    0. before you begin, close all package managers (Synaptic, Muon, Software Center, etc.)
    1. download the script and save it somewhere
    2. cd <your-download-dir>
    3. tar xzvf AlsaUpgrade-1.0.25-3.tar.gz
    4. chmod +x AlsaUpgrade-1.0.25-3.sh
    5. sudo ./AlsaUpgrade-1.0.25-3.sh -d
    6. sudo ./AlsaUpgrade-1.0.25-3.sh -c
    7. sudo ./AlsaUpgrade-1.0.25-3.sh -i
    8. sudo shutdown -r 0

    Logging: I recommend to log all the upgrade steps, e.g.

    script -a -c "./AlsaUpgrade-1.0.25-3.sh -d" /tmp/Alsa_1.0.25-1_upgrade_download.log

    You'll find a log file /tmp/Alsa_1.0.25-3_upgrade_download.log as soon as the script is finished.
    You need to run this procedure for every single step. Choose whatever logfile names.

    Test and Troubleshooting

    After reboot you can type:

    cat /proc/asound/version

    This will let you know if you're running the new version.

    The easiest and most reliable test to verify if Alsa is working is "aplay" - the Alsa player application. If aplay won't work -- nothing else will work. Make sure that all your channels are unmuted and volume is up!

    To get ALSA apps mixed in through pulseaudio, you need to add the bolded line to /usr/share/alsa/alsa.conf
    Code:
    @hooks [
            {
                    func load
                    files [
                            "/usr/share/alsa/pulse.conf"
                            "/etc/asound.conf"
                            "~/.asoundrc"
                    ]
                    errors false
            }
    ]
    Attached Files Attached Files
    Last edited by oldos2er; February 23rd, 2013 at 01:21 AM. Reason: added script out-of-date warning

  2. #2
    Join Date
    May 2006
    Beans
    5

    Re: ALSA Upgrade Script Redux

    Update script sounds really great. The only bad thing to me is that both the old one and the new one are failing on the compilation step for Lucid (in which XBMCLive is built on).

    Thanks for assuming the maintenance of the script!

    Regards,

    DiabboVerdde

  3. #3
    Join Date
    Jun 2007
    Beans
    14,783

    Re: ALSA Upgrade Script Redux

    Can you post error output? I tested it on a Maverick Virtualbox install and had no issues.

  4. #4
    Join Date
    Nov 2006
    Location
    Sweden
    Beans
    2,594
    Distro
    Ubuntu Development Release

    Re: ALSA Upgrade Script Redux

    With Natty it only gives me a "Dummy Output" within Sound Prefs, also with pavucontrol... I also killed PA if something was wrong with that.

    The script runs just fine.'

    EDIT
    plun@plun-laptop:~$ aplay -l
    aplay: device_list:240: no soundcards found
    Something must be wrong with the isntalll
    Last edited by plun; February 5th, 2011 at 12:44 AM.

  5. #5
    Join Date
    Jun 2007
    Beans
    14,783

    Re: ALSA Upgrade Script Redux

    Sigh.. I hope natty adopts alsa 1.0.24 and makes this script unnecessary. I have a spare install of natty. I will test it there when I have more caffeine and less alcohol flowing through me. Thanks for the heads up.

  6. #6
    Join Date
    Nov 2006
    Location
    Sweden
    Beans
    2,594
    Distro
    Ubuntu Development Release

    Re: ALSA Upgrade Script Redux

    Hehe...

    Well, I ran the script again with no luck

    The alsa-info script gives this:

    http://paste.ubuntu.com/562974/

    dmesg gives unknown symbols.....

    Code:
    plun@plun-laptop:~/Desktop$ lspci -v | grep -i audio
    00:1b.0 Audio device: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio (rev 06)
    02:00.1 Audio device: nVidia Corporation High Definition Audio Controller (rev a1)

    EDIT

    Restarted with Ubuntus 2.6.38 kernel and it works....

    alsa-info:

    http://paste.ubuntu.com/562977/



    EDIT AGAIN

    No the driver version seems to be 1.0.23 with this.....

    Reinstalled 2.6.38-RC3 (Ubuntu Mainline) but it gave the same output as earlier.... all Ubuntu kernels works but with the 1.0.23 driver loaded.


    --
    Last edited by plun; February 5th, 2011 at 10:59 AM.

  7. #7
    Join Date
    Feb 2011
    Beans
    1

    Re: ALSA Upgrade Script Redux

    No luck with Ubuntu 10.10 (dmesg unknown symbols) and also...

    Revert script is not working correctly on Ubuntu 10.10 with 2.6.35-25-generic x86_64 kernel.
    After a little research I discovered directory /lib/modules/2.6.35-25-generic/kernel/sound/modules/ which doesn't belong to any package. After removing it my old stereo (-_-) sound is working again.

  8. #8
    Join Date
    Nov 2006
    Location
    Sweden
    Beans
    2,594
    Distro
    Ubuntu Development Release

    Re: ALSA Upgrade Script Redux

    Quote Originally Posted by genail View Post
    No luck with Ubuntu 10.10 (dmesg unknown symbols) and also...

    Revert script is not working correctly on Ubuntu 10.10 with 2.6.35-25-generic x86_64 kernel.
    After a little research I discovered directory /lib/modules/2.6.35-25-generic/kernel/sound/modules/ which doesn't belong to any package. After removing it my old stereo (-_-) sound is working again.
    I manually uninstalled from the source and then reinstalled all alsa-packages and the kernel (image and headers)

    Back with 1.0.23 without any issues.

    Also checked this mailing-list but its "over my head"

    http://mailman.alsa-project.org/pipe...ry/thread.html

    Lets see when Temüjin wakes up..... when he feels better !
    Last edited by plun; February 7th, 2011 at 07:51 PM.

  9. #9
    Join Date
    Nov 2006
    Location
    Sweden
    Beans
    2,594
    Distro
    Ubuntu Development Release

    Re: ALSA Upgrade Script Redux

    New compile after some readings......

    I changed to --with-oss=no (line 327 in the script)

    Natty also got a new kernel yesterday (2.6.38-2)

    Now it works !!

    http://paste.ubuntu.com/563989/


    EDIT

    One finding, I cannot control my Firefox audio stream... neither with sound prefs or pavucontrol,
    ~.pulse removed, pulseaudio also killed for a test.

    Firefox streams just works with my internal speakers and I normally change to my bluetooth output.



    --
    Last edited by plun; February 7th, 2011 at 07:55 PM.

  10. #10
    Join Date
    Sep 2007
    Beans
    40

    Re: ALSA Upgrade Script Redux

    Quote Originally Posted by plun View Post
    New compile after some readings......

    I changed to --with-oss=no (line 327 in the script)

    Natty also got a new kernel yesterday (2.6.38-2)

    Now it works !!

    http://paste.ubuntu.com/563989/


    EDIT

    One finding, I cannot control my Firefox audio stream... neither with sound prefs or pavucontrol,
    ~.pulse removed, pulseaudio also killed for a test.

    Firefox streams just works with my internal speakers and I normally change to my bluetooth output.



    --
    With that modification, it also works on Maverick.
    Many thanks.
    EDIT:Just in case, after update, run "alsaconf".In my case, got the card recognized after rebooting, and FF and system sound were working, but media players didn't (that was fixed with alsaconf, then gstreamer-properties)
    Last edited by GonzalitoUY; February 7th, 2011 at 08:20 PM.

Page 1 of 22 12311 ... LastLast

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
  •