ACPI sound problem

Bug #75434 reported by Patrick Day
6
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Fix Released
Undecided
Unassigned
linux-source-2.6.17 (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

The system is Ubuntu 6.10 Edgy Eft and it is installed on a Toshiba Satellite P100 MA5 laptop (model PSPA3C MA502C, system BIOS V2.40).

When booted normally the sound does not work through the on board speakers or headphone jack.

When booted with the kernel parameter acpi=off the sound works but the network does not. Of course with acpi=off, all ACPI functions vital for a laptop are lost.

Revision history for this message
Patrick Day (patrick-b-day) wrote :
description: updated
Revision history for this message
Patrick Day (patrick-b-day) wrote :
Revision history for this message
Patrick Day (patrick-b-day) wrote :
description: updated
description: updated
Revision history for this message
Luca Falavigna (dktrkranz) wrote :

Thank you for your bug report.
I suppose you run kernel 2.6.17 if you are using Edgy. Can you confirm it?

Revision history for this message
Patrick Day (patrick-b-day) wrote :

As you suspected I'm running kernel 2.6.17. Here's my uname output.

Revision history for this message
Patrick Day (patrick-b-day) wrote :

Chris B. has posted notes on the tlinux-users mailing list which can be found here:

http://linux.toshiba-dme.co.jp/ML/tlinux-users/8200/8277.html

It appears that my laptop has a buggy DSDT. I've included my dsdt.dsl file and the results of trying to compile it with the Intel ASL compiler (iasl).

Revision history for this message
Patrick Day (patrick-b-day) wrote :
Revision history for this message
Patrick Day (patrick-b-day) wrote :
Revision history for this message
Patrick Day (patrick-b-day) wrote : Re: [Bug 75434] Re: ACPI sound problem

Hello Luca,

I've updated the bug report in launchpad. My laptop has a buggy DSDT.
There's a few ways to fix this. One which could be included in future
Ubuntu releases would be nice. I'll be working on this over the next
week.

Cheers,
-Pat.

On 12/18/06, Luca Falavigna <email address hidden> wrote:
> Thank you for your bug report.
> I suppose you run kernel 2.6.17 if you are using Edgy. Can you confirm it?
>
> --
> ACPI sound problem
> https://launchpad.net/bugs/75434
>

description: updated
Revision history for this message
Patrick Day (patrick-b-day) wrote : Re: ACPI sound problem - FIXED

I now have sound and ACPI working after following the instructions at http://www.gentoo-wiki.com/HOWTO_Fix_Common_ACPI_Problems and http://forums.gentoo.org/viewtopic-p-3774561.html#3774561

I've included a patch that can be applied against my dsdt.dsl above. The sources I used were linux-source-2.6.17 (from the Ubuntu 6.10) and alsa-driver-1.0.14rc1 ( from the ALSA web site). The kernel config was based on Ubuntu 6.10's /boot/config-2.6.17-10-generic. I've included a patch that shows the differences.

The problem is solved in the interim but I'd like to see the fixes migrate into future Ubuntu releases so that others that are less technical won't have to go through this process. Of course it's up to the maintainers to decide to close the bug and leave things as they are. :-)

Revision history for this message
Patrick Day (patrick-b-day) wrote :
Revision history for this message
Patrick Day (patrick-b-day) wrote :

Please let me know if anything else is needed to allow migration of the fixes into future Ubuntu releases.

Revision history for this message
Matthew Garrett (mjg59) wrote :

We can't ship modified DSDTs. Given the lack of ACPI errors in your dmesg, I'm not convinced that's the problem, in any case. Your reports are slightly unclear - does the new acpi code on its own result in working sound?

Revision history for this message
Patrick Day (patrick-b-day) wrote : Re: [Bug 75434] Re: ACPI sound problem

I'll try just using the modified kernel (i.e. without the newest ALSA
driver) and see if that works on it's own. I have read indications
elsewhere that it won't but I will confirm. I'm willing to try out any
ideas you have as an alternate way of solving the problem.

Although I don't have any ACPI errors in dmesg the only way I found to
get sound to work (and break the network functionality at the same
time) was to use the acpi=off kernel parameter. I did try an array of
other kernel parameters (e.g. pci=...) none of which worked. I could
go through and document the different combinations I tried all without
success.

Also, let me know what else needs clarifying and I'll provide more
detailed explanations.

On 12/21/06, Matthew Garrett <email address hidden> wrote:
> We can't ship modified DSDTs. Given the lack of ACPI errors in your
> dmesg, I'm not convinced that's the problem, in any case. Your reports
> are slightly unclear - does the new acpi code on its own result in
> working sound?
>
> --
> ACPI sound problem
> https://launchpad.net/bugs/75434
>

Revision history for this message
Patrick Day (patrick-b-day) wrote :

I've got sound to work with the Ubuntu 6.10 2.6.17-10-generic kernel by doing the following:

1) Copying my "fixed" dsdt.aml to /etc/initramfs-tools/DSDT.aml
2) Running mkinitramfs as below:

sudo mkinitramfs -o /boot/initrd.img-2.6.17-10-generic-fixed-dsdt

3) Rebooting and instruct grub to use the above initrd rather than the stock 2.6.17-10-generic initrd.

So my modified dsdt.dsl works on it's own. As Matthew G. noted in a above comment I don't I don't have any ACPI errors in my dmesg, so I reexamined my dsdt.dsl and found what I believe to be the problem. Below is the DSDT routine that checks the OS version:

        Method (_INI, 0, NotSerialized)
        {
            If (DTSE)
            {
                TRAP (0x47)
            }

            Store (0x07D0, OSYS)
            If (CondRefOf (_OSI, Local0))
            {
                If (_OSI ("Linux"))
                {
                    Store (0x03E8, OSYS)
                }
                Else
                {
                    Store (0x07D1, OSYS)
                    If (_OSI ("Windows 2001 SP2"))
                    {
                        Store (0x07D2, OSYS)
                    }

                    If (_OSI ("Windows 2001.1"))
                    {
                        Store (0x07D3, OSYS)
                    }

                    If (_OSI ("Windows 2001.1 SP1"))
                    {
                        Store (0x07D4, OSYS)
                    }

                    If (_OSI ("Windows 2006"))
                    {
                        Store (0x07D6, OSYS)
                    }

                    If (LAnd (MPEN, LEqual (OSYS, 0x07D1)))
                    {
                        TRAP (0x3D)
                    }
                }
            }
        }

Note that if _OSI returns true for "Linux" the routine doesn't check to see what other ACPI interfaces are supported by the operating system. Checking elsewhere for the usage of OSYS in the dsdt.dsl reveals that much AML code is not executed when OSYS=0x03E8 (Linux).

In my "fixed" dsdt.dsl the above routine is reduced to setting OSYS to the corresponding "Windows 2006" value. Here it is:

        Method (_INI, 0, NotSerialized)
        {
            If (DTSE)
            {
                TRAP (0x47)
            }

            Store (0x07D6, OSYS)
        }

A patch for enhancing the "acpi_osi=" kernel parameter to fix this problem was presented here http://marc.theaimsgroup.com/?l=linux-acpi&m=115563247228643&w=2 . It was rejected here, http://marc.theaimsgroup.com/?l=linux-acpi&m=115925608232609&w=2 .

Revision history for this message
Patrick Day (patrick-b-day) wrote : ACPI problem also reported on the Kernel Bug Tracker

I've created a bug report on the Kernel Bug Tracker as I don't believe the ACPI problems are Ubuntu specific. The bug report can be found here, http://bugzilla.kernel.org/show_bug.cgi?id=7787

Revision history for this message
Brian Murray (brian-murray) wrote :

I am assigning this bug to the 'ubuntu-kernel-team' per their bug policy. For future reference you can learn more about their bug policy at https://wiki.ubuntu.com/KernelTeamBugPolicies .

Changed in linux-source-2.6.17:
assignee: nobody → ubuntu-kernel-team
Revision history for this message
Sergio Zanchetta (primes2h) wrote :

The 18 month support period for Edgy Eft 6.10 has reached it's end of life. As a result, we are closing the linux-source-2.6.17 Edgy Eft kernel task.

Changed in linux-source-2.6.17:
status: Confirmed → Invalid
Revision history for this message
Sergio Zanchetta (primes2h) wrote :

Hardy Heron 8.04 was recently released. It would be helpful if you could test the new release and verify if this is still an issue - http://www.ubuntu.com/getubuntu/download . You should be able to test your bug using the LiveCD. Please let us know your results. Thanks.

Changed in linux:
status: New → Incomplete
Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

The Ubuntu Kernel Team is planning to move to the 2.6.27 kernel for the upcoming Intrepid Ibex 8.10 release. As a result, the kernel team would appreciate it if you could please test this newer 2.6.27 Ubuntu kernel. There are one of two ways you should be able to test:

1) If you are comfortable installing packages on your own, the linux-image-2.6.27-* package is currently available for you to install and test.

--or--

2) The upcoming Alpha5 for Intrepid Ibex 8.10 will contain this newer 2.6.27 Ubuntu kernel. Alpha5 is set to be released Thursday Sept 4. Please watch http://www.ubuntu.com/testing for Alpha5 to be announced. You should then be able to test via a LiveCD.

Please let us know immediately if this newer 2.6.27 kernel resolves the bug reported here or if the issue remains. More importantly, please open a new bug report for each new bug/regression introduced by the 2.6.27 kernel and tag the bug report with 'linux-2.6.27'. Also, please specifically note if the issue does or does not appear in the 2.6.26 kernel. Thanks again, we really appreicate your help and feedback.

Revision history for this message
Patrick Day (patrick-b-day) wrote : Re: [Bug 75434] Re: ACPI sound problem

I tested Ubuntu 8.10 alpha 5 with the Livecd. Sound does work now with the
default boot. There was some strangeness with playbacks but I doubt that's a
kernel issue. I'm haven't upgraded to Ubuntu 8.10 yet so I can't say if the
issue exists in 2.6.26.

On Thu, Aug 28, 2008 at 11:16 PM, Leann Ogasawara <email address hidden> wrote:

> The Ubuntu Kernel Team is planning to move to the 2.6.27 kernel for the
> upcoming Intrepid Ibex 8.10 release. As a result, the kernel team would
> appreciate it if you could please test this newer 2.6.27 Ubuntu kernel.
> There are one of two ways you should be able to test:
>
> 1) If you are comfortable installing packages on your own, the linux-
> image-2.6.27-* package is currently available for you to install and
> test.
>
> --or--
>
> 2) The upcoming Alpha5 for Intrepid Ibex 8.10 will contain this newer
> 2.6.27 Ubuntu kernel. Alpha5 is set to be released Thursday Sept 4.
> Please watch http://www.ubuntu.com/testing for Alpha5 to be announced.
> You should then be able to test via a LiveCD.
>
> Please let us know immediately if this newer 2.6.27 kernel resolves the
> bug reported here or if the issue remains. More importantly, please
> open a new bug report for each new bug/regression introduced by the
> 2.6.27 kernel and tag the bug report with 'linux-2.6.27'. Also, please
> specifically note if the issue does or does not appear in the 2.6.26
> kernel. Thanks again, we really appreicate your help and feedback.
>
> ** Tags added: cft-2.6.27
>
> --
> ACPI sound problem
> https://bugs.launchpad.net/bugs/75434
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
Leann Ogasawara (leannogasawara) wrote :

Based on Patrick's last comment I'm marking this "Fix Released" for Intrepid. Thanks.

Changed in linux:
status: Incomplete → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote : Kernel team bugs

Per a decision made by the Ubuntu Kernel Team, bugs will longer be assigned to the ubuntu-kernel-team in Launchpad as part of the bug triage process. The ubuntu-kernel-team is being unassigned from this bug report. Refer to https://wiki.ubuntu.com/KernelTeamBugPolicies for more information. Thanks.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.