Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 40

Thread: AO521 Battery Not Detected

  1. #21
    Join Date
    Sep 2010
    Location
    Burlington, VT
    Beans
    132
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: AO521 Battery Not Detected

    I just tried applying this patch to kernel linux-2.6.36.2

    I get this output from the command

    Code:
    patching file drivers/acpi/ec.c
    Hunk #1 succeeded at 731 (offset -50 lines).
    Hunk #2 succeeded at 746 (offset -50 lines).
    Hunk #3 succeeded at 761 with fuzz 1 (offset -49 lines).
    Hunk #4 succeeded at 785 (offset -48 lines).
    Hunk #5 FAILED at 871.
    1 out of 5 hunks FAILED -- saving rejects to file drivers/acpi/ec.c.rej
    Can anybody tell me how to manually apply the 5th hunk patch?

    Or if that is too complicated with this kernel can you suggest the most recent kernel this works with?

  2. #22
    Join Date
    Aug 2010
    Location
    Metro Detroit
    Beans
    19
    Distro
    Ubuntu Development Release

    Re: AO521 Battery Not Detected

    Quote Originally Posted by Hack.The.Pow. View Post
    I just tried applying this patch to kernel linux-2.6.36.2

    I get this output from the command

    Code:
    patching file drivers/acpi/ec.c
    Hunk #1 succeeded at 731 (offset -50 lines).
    Hunk #2 succeeded at 746 (offset -50 lines).
    Hunk #3 succeeded at 761 with fuzz 1 (offset -49 lines).
    Hunk #4 succeeded at 785 (offset -48 lines).
    Hunk #5 FAILED at 871.
    1 out of 5 hunks FAILED -- saving rejects to file drivers/acpi/ec.c.rej
    Can anybody tell me how to manually apply the 5th hunk patch?

    Or if that is too complicated with this kernel can you suggest the most recent kernel this works with?
    Using the latest ubuntu patched linux sources (linux-source-2.6.35) availible via
    Code:
    sudo apt-get install linux-source
    i managed the patch works with no problems.

    If you are using the kernel in the torvalds repository listed in the blog post. you have to make some modifications to the patch to get the final hunk to work. if you post the
    Code:
    ./drivers/acpi/ec.c.rej
    and the
    Code:
    ./drivers/acpi/ec.c
    file i will post another patch for people using that kernel source.

  3. #23
    Join Date
    Sep 2010
    Location
    Burlington, VT
    Beans
    132
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: AO521 Battery Not Detected

    Quote Originally Posted by KellyLSB View Post
    Using the latest ubuntu patched linux sources (linux-source-2.6.35) availible via
    Code:
    sudo apt-get install linux-source
    i managed the patch works with no problems.

    If you are using the kernel in the torvalds repository listed in the blog post. you have to make some modifications to the patch to get the final hunk to work. if you post the
    Code:
    ./drivers/acpi/ec.c.rej
    and the
    Code:
    ./drivers/acpi/ec.c
    file i will post another patch for people using that kernel source.
    Im using the kernel I downloaded from ftp://ftp.kernel.org/pub/linux/kernel/v2.6/

    Here are the files you wanted.

    Thanks for the help
    Attached Files Attached Files

  4. #24
    Join Date
    Aug 2010
    Location
    Metro Detroit
    Beans
    19
    Distro
    Ubuntu Development Release

    Smile Re: AO521 Battery Not Detected

    Ok this patch should do the trick... Im not used to writing patches so i cant guarentee if it will...

    if it doesnt heres the manually patched c file as well...
    the .rej file is not important so i did not re attach it.

    note: if you decide to run my patch file use a fresh kernel source!

    if you decide to use the attached c file just overwrite your ./drivers/acpi/ec.c file. with the file in the archive.

    best of luck.
    Attached Files Attached Files

  5. #25
    Join Date
    Sep 2010
    Location
    Burlington, VT
    Beans
    132
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: AO521 Battery Not Detected

    Wow thanks a ton man. I'll update soon to let you know if it worked

  6. #26
    Join Date
    Sep 2010
    Location
    Burlington, VT
    Beans
    132
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: AO521 Battery Not Detected

    SUCCESS!!!!!!

    ....well sort of.

    After I compiled and installed the kernel the battery module worked perfectly!!

    However on boot I recieved the following error message(Not exact message but pretty close)

    Code:
    Firmware bug: PCI MMConfig at (Mem 0xe0000000-0xe03fffff) not resolved in ACPI motherboard resources
    However it booted fine and everything seemed normal. Then when I went to install the proprietery ATI/AMD video Drivers I experienced some problems. Instead of just the video drivers being there, there was a ton of other ones such as mouse, ethernet, usb, etc. Some are activated and some are not. Whenever I try and activate one that isn't activated I get a message that the installation failed and to check /var/log/jockey.log for error messages. (file is attached in archive)

    Then when I try to install the video drivers I get the error message SystemError: installArchives() failed.

    I have also noticed that whenever I try and install(or uninstall) a package from the software center it tries to install fglrx as well and gives an error message that it failed to install(the package i intended to install actually did install). I get this error message.

    Code:
    Error! Bad return status for module build on kernel: 2.6.36.2 (i686)
    Consult the make.log in the build directory
    /var/lib/dkms/fglrx/8.723.1/build/ for more information.
    This file is also attached.

    If you can give me any help with it I'd be super appreciative.

    Thanks
    Attached Files Attached Files

  7. #27
    Join Date
    Aug 2010
    Location
    Metro Detroit
    Beans
    19
    Distro
    Ubuntu Development Release

    Re: AO521 Battery Not Detected

    Hmm im gonna guess its because you are compiling a un modded kernel. Try applying the orginal package to one of the ubuntu pre patched sources. You can download a ubuntu pre patched kernel source by running
    Code:
    sudo apt-get install linux-source
    The source package will then be downloaded to /usr/src

  8. #28
    Join Date
    Sep 2010
    Location
    Burlington, VT
    Beans
    132
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: AO521 Battery Not Detected

    Soooooo just an update.

    After trying to compile over 10+ kernels I've finally figured out a way to make it work.

    A couple of them compiled successfully but failed to load and froze on the startup screen. A couple failed to compile because of random error with the kernel. And some that did boot successfully for some reason made my netbook launcher screen disappear.

    After booting one of those last kernels made the launcher disappear on all other stock kernels as well I decided to reinstall.

    After I reinstalled and compiled yet another kernel the launcher disappeared again. So after a little investigation I discovered that for some reason it saved my xorg.conf as xorg.conf.old so i essentially had no xorg.conf. After I restored that everything seemed to be fine.

    So i just wanted to thank ya for your help. I'll give a link to this thread in my own thread which nobody replied too......

  9. #29
    Join Date
    Dec 2010
    Location
    Russia
    Beans
    5
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: AO521 Battery Not Detected

    Greetings, seem to me at me the head will burst
    That Mahlo that I communicate with you through a translator, and in Linux isn't strong.
    Has collected already many kernels, from them one more hasn't earned.
    The order of my actions:
    1. I load the last kernel under your link.
    2. I unpack it in
    Code:
    /usr/src/
    3. I copy your patch in a folder with a kernel
    Code:
    /usr/src/linux-source-2.6.35
    4.
    Code:
    patch -p1 < ./ao521-acpi.patch
    5.
    Code:
    make mrproper
    6.
    Code:
    cat /boot/config-`uname -r` > config.new
    7.
    Code:
    make oldconfig
    On the last kernel of questions ненастройки небыло, and here on 33 was nearby 15, I always answered Y or M/
    8.
    Code:
    make bzImage modules modules_install install
    9. update-grub
    10. reboot
    Last edited by stanlick; January 6th, 2011 at 07:31 PM.

  10. #30
    Join Date
    Dec 2010
    Location
    Russia
    Beans
    5
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Talking Re: AO521 Battery Not Detected

    Thank you for your help. I found a detailed description of the process on the Russian site. Made for the core 2.6.35! - works
    http://glotych.ru/kak-ustanovit-ubun...spire-one-521/

Page 3 of 4 FirstFirst 1234 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
  •