PDA

View Full Version : [SOLVED] AO521 Battery Not Detected



KellyLSB
August 22nd, 2010, 06:49 AM
EDIT: Found the solution (on page 2 or click here http://ubuntuforums.org/showthread.php?p=10126099#post10126099 )

Hola peoples

Just managed to get Ubuntu UNR 10.04 on my AO521 Netbook and it works amazingly (im starting to wonder why i have been dissing ubuntu [been a fedora user for years]) this has been by far the best linux build i have ever used so let me first start by saying. I'm sorry to anyone who has ever heard me diss ubuntu this truly is an amazing distribution.

Now down to the dirty.

By battery is not detected by the system. It works if i unplug the machine it stays on. but it is not giving out any data on its percentage. in fact it doesnt even have a battery tab in the power managment its almost as if it doesnt know there is a battery.

anyone have any ideas. its something i can deal with if i have to but it would be nice to have a battery power profile.

peter_b
August 23rd, 2010, 10:06 PM
Hello,

How did you manage to install ubuntu 10.04 on an AO521?

I tried it myself and it does not seem to work.
I tried to put the os on an usb memory stick.
The installation itself was successful and the syetm boots, but as soon as i try to use the mouse or keyboard the system blocks.
The mouse cursor disappears and it is not possible to enter something w. the keyboard.

Did you have the same and how were you able to fix this?

KellyLSB
August 23rd, 2010, 11:36 PM
I used unetbootin to put the i386 ubuntu netbooks remit on a sdcard. I then used the WUBI application from Windows. Once I restarted it completed installation. It booted normally. The only thing that doesn't work is the battery status, and the Ethernet port. However I heard the Ethernet port has a kernel module somewhere or has one coming out soon.

thedud
August 25th, 2010, 08:54 AM
I have had two of these netbooks so far. The first one is actually doing the same exact thing with the battery status. That one died completely after about 3 weeks and I RMAed it then received this one.

I'm not sure if ACER has changed their hardware in the netbooks or what, but I now have the same issue as the latter of you two. IE my keyboard and mouse are not working. I have tried several other distros and haven't had any luck with them so far.

The main issue is that they must be using some type of newer hardware that isnt' yet supported by the linux kernel.

I hope they fix this soon because it runs really nicely with Xubuntu on it.
If either of you find a fix let me know and I'll do the same.

Oh yeah the battery status DOES work on the latest netbook just not the touchpad and keyboard. You may hook up a usb mouse and keyboard to do things if you need to.

KellyLSB
August 25th, 2010, 05:01 PM
I'm not sure if ACER has changed their hardware in the netbooks or what, but I now have the same issue as the latter of you two. IE my keyboard and mouse are not working. I have tried several other distros and haven't had any luck with them so far.

The main issue is that they must be using some type of newer hardware that isnt' yet supported by the linux kernel.

I hope they fix this soon because it runs really nicely with Xubuntu on it.
If either of you find a fix let me know and I'll do the same.

Well i got ubuntu running on mine. i had issues with installing the regular versions but i just install the Netbook Remix with the WUBI installer on the windows start included with windows and it installed fine. im just missing battery status and microphone...

DoktorFuchs
October 2nd, 2010, 08:53 PM
I know this may be abit old, but the information's still relevant.

If you're having the lockup issue, it's actually related to the video driver. If you pass the nomodeset option to the livecd/usb/whatever, you'll disable the Kernel Mode Setting that ubuntu started using. This is how i solved that issue, though the current beta/rc (10.10) seems to have fixed this somehow...

In other news, the battery is still not detected, but this is a kernel issue apparently as i've tried gentoo with the unstable branch and I'm still getting the same issue.:(

KellyLSB
October 4th, 2010, 09:09 PM
The ubuntu netbook remix also works as i said above.

Bit of a shame about the battery though.

jbluzb86
October 21st, 2010, 10:11 AM
I would like ask if the ubuntu 10.10 resolved the problem in installation for ao521 acer aspire one; i have bios 1.03

KellyLSB
October 21st, 2010, 12:37 PM
I actually found that the rc installed for 10.10 but the release wont install.

jbluzb86
October 21st, 2010, 04:41 PM
I have solved my problem with 10.4 distro install; but i have problem installing 10.10; is it worth it? any suggestions

KellyLSB
October 21st, 2010, 05:50 PM
i been really enjoying the RC of it.
the network card works thats a huge plus.

im still trying to figure out how to install the release now also realize i have all 64bit operating systems on this computer.

also just random stupid question
ok i installed the RC of 10.10 now that 10.10 is out will it upgrade to automatically or do i need to fresh install?

mrehorst
October 23rd, 2010, 04:30 PM
I loaded 10.10 netbook remix on my AO521 using a USB flash drive. It went in easily and booted reliably. It did not recognize the bluetooth hardware, mic did not work, camera refresh was only about 2-3 fps, did not recognize the battery, and closing the lid did not suspend/hibernate. Touchpad works with 1 finger but goes nutz if you put two fingers on it. I did not mess with it long enough to test the keyboard suspend/hibernate, and I have no way to test the hdmi out. Wired and wireless g networking worked fine without any messing around. I ultimately decided I'd wait for someone to iron out the bugs and uninstalled using the bootitng utility.

BTW, this 2 GB memory module works fine in my AO521:
http://www.newegg.com/Product/Product.aspx?Item=N82E16820231214&Tpk=F3-10666CL9S-2GBSQ

KellyLSB
November 11th, 2010, 05:46 PM
Well i just install 11.04 Natty 64-bit Alpha over the distribution upgrade. and the headphone port works now! and most graphics glitches went away! battery still isnt showing up. sad day :( but it seems to be running much better. i also like the new themeing.

KellyLSB
November 17th, 2010, 05:38 AM
SOLUTION TO BATTERY NOT SHOWING!

and a couple months later i found the solution (patch attached, and patching instructions below)
https://bugzilla.kernel.org/show_bug.cgi?id=19602

how to build your own kernel on ubuntu
http://blog.gnu-designs.com/building-custom-kernels-for-ubuntu

after you have downloaded the kernel source of your preference
extract the attached file into the "linux-?" (kernel source) folder then run

patch -p1 < ./ao521-acpi.patch
Note: if the patching errors read the error then look in the source files where it is erroring. It may be possible to patch it by hand if the kernel source your using may have changed since this patch was made. (When I installed i had to modify one of the files manually a bit.)

Then compile the kernel and install (make sure you dont uninstall any other kernels in case this one crashes or refuses to boot! i will not take responsibility for bricked installs!)

stanlick
December 23rd, 2010, 05:15 PM
SOLUTION TO BATTERY NOT SHOWING!

and a couple months later i found the solution (patch attached, and patching instructions below)
https://bugzilla.kernel.org/show_bug.cgi?id=19602


Greetings, unfortunately I badly understand in LINUX, therefore I ask you to help.
After abortive attempt to launch a kernel 2.6.33 by your example, I began to suspect wrong adjustment of a configuration.
I ask you to give me a file of a configuration for a kernel - .config .
My computer: AO521-12Dcc Ubuntu 10.10 Kernel 2.6.33
Thanks.

KellyLSB
December 23rd, 2010, 07:10 PM
to get the config just copy your current one via

cat /boot/config-`uname -r` > config.new


i also know there is a line of code that changed since i uploaded this in the file the patch patches so you will have to go in and manually update the patch... i plan on updating this thread when i get around to recompiling my own kernel again. i been really busy lately though and havent had the time.

stanlick
December 24th, 2010, 08:50 AM
The matter is that at me the working version of a kernel 2.6.35-24. And I should work with a configuration of a kernel 2.6.35, I use it for 2.6.33 :(

KellyLSB
December 24th, 2010, 03:09 PM
Ok those last two posts did not make any sense.

stanlick
December 29th, 2010, 04:20 PM
I have done some abortive attempts to collect a kernel with a patch for ACPI :(
The kernel after compilation doesn't boot.
- There is a possibility to collect a ready packet.deb???

KellyLSB
December 29th, 2010, 04:25 PM
The patch need to be modified a bit. For the latest kernel update.

Hack.The.Pow.
December 31st, 2010, 02:03 AM
I just tried applying this patch to kernel linux-2.6.36.2

I get this output from the command


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?

KellyLSB
December 31st, 2010, 04:24 AM
I just tried applying this patch to kernel linux-2.6.36.2

I get this output from the command


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

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
./drivers/acpi/ec.c.rej and the
./drivers/acpi/ec.c file i will post another patch for people using that kernel source.

Hack.The.Pow.
December 31st, 2010, 05:24 AM
Using the latest ubuntu patched linux sources (linux-source-2.6.35) availible via

sudo apt-get install linux-sourcei 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
./drivers/acpi/ec.c.rej and the
./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

KellyLSB
December 31st, 2010, 05:38 AM
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.

Hack.The.Pow.
December 31st, 2010, 05:42 AM
Wow thanks a ton man. I'll update soon to let you know if it worked

Hack.The.Pow.
January 1st, 2011, 01:03 AM
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)


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.


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

KellyLSB
January 1st, 2011, 01:37 AM
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

sudo apt-get install linux-source
The source package will then be downloaded to /usr/src

Hack.The.Pow.
January 5th, 2011, 02:20 AM
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......

stanlick
January 6th, 2011, 07:22 PM
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
/usr/src/
3. I copy your patch in a folder with a kernel
/usr/src/linux-source-2.6.35
4.
patch -p1 < ./ao521-acpi.patch5.
make mrproper6.
cat /boot/config-`uname -r` > config.new7.
make oldconfigOn the last kernel of questions ненастройки небыло, and here on 33 was nearby 15, I always answered Y or M/
8.
make bzImage modules modules_install install9. update-grub
10. reboot
:confused:

stanlick
January 9th, 2011, 01:37 PM
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-ubuntu-10-10-na-acer-aspire-one-521/

KellyLSB
February 14th, 2011, 03:07 PM
Hey peoples was searching, and i found a headphone port fix, and he claims hes got a way to fix bluetooth too. but i havent tried...

http://ubuntuforums.org/showthread.php?t=1621437

kuld
May 10th, 2011, 02:43 PM
Hi all!
what about 11.04 and 2.6.38 kernel?
does patch work?

KellyLSB
May 10th, 2011, 02:44 PM
I made it work once. but i have not since tried again.

Bah-Ripple-Phi
July 23rd, 2011, 01:20 PM
Hi all!
what about 11.04 and 2.6.38 kernel?
does patch work?

This patch, which i found at http://glotych.ru/ustanovka-ubuntu-11-04-na-acer-aspire-one-521/ will work for 2.6.38

caledvwlch
August 7th, 2011, 06:04 AM
Alright, I am attempting to follow the directions given at http://glotych.ru/kak-ustanovit-ubuntu-10-10-na-acer-aspire-one-521/ as close as I can.
However, once I get to the part where I enter
sudo apt-get build-dep --no-install-recommends linux-image-$(uname -r)in the terminal I get:

Reading package lists... Done
Building dependency tree
Reading state information... Done
Picking 'linux' as source package instead of 'linux-image-2.6.35-22-generic'
E: Unable to find a source package for linuxI figure this must have something to do with the source.list file, but I'm not sure what to add to it.
Any help would be appreciated :)

dadopap
September 6th, 2011, 03:54 PM
I have recompiled the Kernel for 11.04 64 bit, everything works perfectly!

thanks folks!

Since it takes time to do I decided to upload it. You can find it at:

http://www.megaupload.com/?d=3A2ZZL30

you have to bunzip and untar it and then install both deb packages doing:



tar xvfj linux-2.6.38-x64-acpipatched_ao521.tar.bz2

sudo dpkg -i linux-image-2.6.38.8-dpap_2.6.38.8-dpap-10.00.Custom_amd64.deb

sudo dpkg -i linux-headers-2.6.38.8-dpap_2.6.38.8-dpap-10.00.Custom_amd64.deb

Spackotus
October 31st, 2011, 01:22 PM
I got tired of Windows on this netbook so I got Ubuntu...
After some research I installed the graphic driver, but I still have no idea, how to fix the "Battery Not Detected" problem!
I have the newest Kernel.

Can someone help me because I am a new Ubuntu user!

kuld
January 26th, 2012, 09:48 AM
does anybody use 11.10 and kernel 3.0.XX with AO521?
battery not detected :(
old patch don't resolve this problem :(

melT4
February 4th, 2012, 04:46 AM
Can't help you. But I confirm it's also doesn't work for me. (Ubuntu 11.10 or Lubuntu 11.10).

djk1o
February 28th, 2012, 09:56 PM
i had the same problem, BUT i have the solution!!!
please read here: ubuntu 11.10 on ao521 (http://djk1o.blogspot.com/2012/02/number-two.html)