You are not logged in.

#1 2012-03-04 09:58:23

brandnew
Member
Registered: 2012-03-04
Posts: 4

[UPDATE] Adding patch to arch kernel to fix aspm

Hi there, i've got a problem with power regression, so i decided to give a try to this patch. I downloaded a diff modified PKGBUILD, compiled kernel & installed it. And still i got this output

dmesg | grep -i aspm

[    0.237481] pci 0000:06:00.0: disabling ASPM on pre-1.1 PCIe device.  You can enable it with 'pcie_aspm=force'
[    0.239541] ACPI _OSC control for PCIe not granted, disabling ASPM

And my battery dies like in 15 minutes.

So my steps are:

  • download linux 3.2.8 PKGBUILD & archlinux patches with ABS,

  • add diff as aspm-fix.patch to the PKGBUILD directory,

  • add patch to PKGBUILD via

    patch -p1 -i "${srcdir}/aspm-fix.patch"
  • run makepkg command

  • answer yes to the last patch:

    patching file drivers/acpi/pci_root.c
    Reversed (or previously applied) patch detected!  Assume -R? [n] y
    patching file drivers/pci/pci-acpi.c
    Reversed (or previously applied) patch detected!  Assume -R? [n] y
    patching file drivers/pci/pcie/aspm.c
    Reversed (or previously applied) patch detected!  Assume -R? [n] y
    patching file include/linux/pci-aspm.h
    Reversed (or previously applied) patch detected!  Assume -R? [n] y
    patch unexpectedly ends in middle of line
  • install compiled kernel

So the question is "what i'm doing wrong?" (old question)
Excuse me i forgot about kernel configuration can somebody help me with it's configuration?

Last edited by brandnew (2012-03-04 12:04:18)

Offline

#2 2012-03-04 10:25:49

Pierre
Developer
From: Bonn
Registered: 2004-07-05
Posts: 1,967
Website

Re: [UPDATE] Adding patch to arch kernel to fix aspm

Don't bother with software; if your battery dies after 15 minutes it's just broken.

Offline

#3 2012-03-04 10:50:35

brandnew
Member
Registered: 2012-03-04
Posts: 4

Re: [UPDATE] Adding patch to arch kernel to fix aspm

Thank you for your reply. Yes i admit it could be broken already, but i've noticed that it's all started from kernel 2.6.28 or kernel 3.0 on arch with kde. Then i switched to ubuntu 11.10 just to try out unity and battery had different life time. could it be that it became broken after long use of these kernels? And i'm still in interest about patch, i used correct patch command? I think something went wrong because of questions during patch. I just wish to know about this software problem before i'll buy new battery.

Offline

#4 2012-03-04 12:08:48

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: [UPDATE] Adding patch to arch kernel to fix aspm

Your command is correct, the patch output hints at code in the patch already being found in the code that it should be applied to. That usually means that patch was already (partially) merged upstream.

Does the bootloader parameter help any, as the first error message suggests?


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#5 2012-03-04 13:07:46

brandnew
Member
Registered: 2012-03-04
Posts: 4

Re: [UPDATE] Adding patch to arch kernel to fix aspm

Yes i've tried to add this parameter and i got this message:

[    0.000000] PCIe ASPM is forcibly enabled
[    0.245573] ACPI _OSC control for PCIe not granted, disabling ASPM

Also i forgot to mention about temperature. If use pcie_aspm=force parameter or kernel with this patch my lowest temperature with just plasma-desktop running is about 50 degrees and without just 39-41 degrees

And i want ask is there a way i must configure kernel after patch to get things working?

Last edited by brandnew (2012-03-04 13:09:26)

Offline

Board footer

Powered by FluxBB