[SOLVED]Custom DSDT not loading - OEM battery doesn't work - Sony Vaio

EDITING ORIGINAL POST TO POST SOLUTION so I don't do a massive bump
Installed windows and ran the BIOS flasher that came with the battery. Didn't work until I changed a line in the plaintext configuration file (config.ini or something) it comes with. Changed "Capacity: 20" to "Capacity: -10". This changed the battery charge requirement from 20% to negative ten percent (any negative number will do), allowing the program to run and flash the BIOS. Didn't realize I could do that, but it fixed  the problem 100%.
#### BEGIN ORIGINAL POST: ################################
Hey guys,
I'm a bit of a linux noob, but I've spent many hours this week trying to fix this issue on my own and have learned a lot about making custom kernels, hardware stuff, ACPI, and ABS. However, nothing I've done has worked and I've hit a wall. For reference, I'm on a Sony Vaio VGN-FZ4000 with linux-3.0 base kernel, gnome3/gdm. The battery is made in china and doesn't list a manufacturer, just model number BPS8, 52000mAh.
[Backstory]
So I recently got an OEM battery to replace the broken original, which hasn't worked since before I installed arch (though it worked with an Arch install I did a couple years ago). When I first plugged it in, the gnome battery symbol popped up listing the battery at 0% with an exclamation icon. I unplugged from AC power and the laptop still ran, but the battery monitor just said it was at 0% and 'Estimating' remaining time. I figured this was a glitch with gnome or just because it was this battery's first cycle so I let it run down until it hard-crashed. Then I plugged back into AC and tried to turn on the computer, but it wouldn't do anything until I removed the battery.
Looking into the problem I discovered this was due to the ACPI firmware table DSDT being compiled for Windows, which has, shall we say, fewer restrictions on sanity than the Intel ASL compiler used for UNIX systems. Sure enough I extracted /sys/firmware/acpi/tables/DSDT to find that its section about the battery contained the entry 'Zero' for Battery Technology, which translates to "non-rechargeable", rather than 'One', which makes it chargeable. acpitool confirmed this; my system thought the battery was non-rechargeable and was constantly discharging it. Needless to say I've only been putting it in temporarily to test solutions since.
[/backstory]
[tl;dr] DSDT firmware contains malformed battery description, now I can't get my system to run with a custom DSDT. [/tl;dr]
Attempted solutions:
[1]
Extract, modify, recompile DSDT and include it with the kernel compilation .config options
CONIFG_ACPI_CUSTOM_DSDT=y
CONFIG_ACPI_CUSTOM_DSDT_FILE="/usr/src/custom_dsdt.hex
CONIFG_STANDALONE=n
as suggested here, a page linked to by the arch wiki page on DSDT.
I followed the instructions but no matter what this has generated errors during the kernel compilation, sometimes due to every line containing unexpected \231 (or other numbers) characters, sometimes finding some error in the DSDT file and then claiming that the driver it was compiling (ol.c somewhere in the drivers/acpi section I believe) had references to undefined functions all over the place. I CANNOT compile with a custom DSDT specified.
[2]
Place recompiled DSDT in /lib/initcpio/custom.dsdt and add 'dsdt' to the HOOKS in mkinitcpio (and rebuild the initramfs-linux-*.img, of course). Another version of this included recompiling the kernel with CONFIG_STANDALONE disabled.
In neither of these situations has the running DSDT ever been anything but the BIOS-supplied one and not once has the battery shown any different behavior.
acpitool and $ cat /proc/acpi/battery/BAT0/info have consistently claimed the information specified in the BIOS-supplied DSDT; the battery is non-rechargeable and is discharging at an unknown rate. Sometimes acpi will even report that the battery has zero capacity.
The arch wiki does say mkinitcpio doesn't support the dsdt hook as of 2.6.30, but [1] didn't work either and mkinitcpio -H dsdt still told me to try this so I did.
[3]
The final solution I have tried has been to do [2] but to recompile the kernel with the legacy support for battery and ac adapter stuff disabled. I tried this because it was suggested in the kernel.log;
Sep  13 11:51:03 localhost kernel: [   11.740059] ACPI: Deprecated procfs I/F for AC is loaded, please retry with CONFIG_ACPI_PROCFS_POWER cleared
Sep  13 11:51:03 localhost kernel: [   11.753434] ACPI: AC Adapter [ADP1] (on-line)
The corresponding line now reads
ACPI: AC Adapter [ADP1] (on-line)
(The same goes for the battery BAT0)
but all this does is remove the battery/ and adp1/ folders from /proc/acpi/ and break acpitool functionality. The log still doesn't mention the dsdt hook, either.
[4]
The old way to do this was to use the acpi-dsdt-initrd-patch-* patch, but that hasn't been updated for modern kernels, presumably because of the new "functionality" from mkiniticpio. The current kernel .config doesn't include any options for ACPI initrd/initramfs support or reading a DSDT from initramfs, which is the functionality provided by this patch.
This covers all the methods I've been able to find on the internet and I'm at a loss for what to do. Am I doing something wrong in [1]? Under what conditions will the compiler fail/succeed with a CONFIG_ACPI_CUSTOM_DSDT_FILE?
When I recompile I fix the 'Zero' definition and a couple compiler errors and warnings. The errors come from section length definitions, which read as 0x00000000 rather than the appropriate max-min value so I fix those, and the warnings come from _T_* methods belonging to the compiler, so I refactor the code to remove the initial underscores. The last warning comes from an isolated And statement that's within brackets (compiler complains it doesn't do anything), but if I remove that the compiler fails hard.
Thanks to anyone who's read this far.  Please let me know if you have any ideas how to get my system to use a customized DSDT.
Last edited by paraffin (2011-09-29 23:20:30)

Thanks for the offer, Radioactive man However, I'm actually compiling a customized kernel with the linux-ck and -sony patches, so your packages won't help. (The custom kernel works fine and I've tested this battery behavior on the the regular, -ck, and -sony kernels as well)
Anyway, so I tried another compile with
CONFIG_PREVENT_FIRMWARE_BUILD=n in addition to the options listed in [1] and that time it compiled.
Unfortunately it still didn't load the DSDT!
I did catch a quick little error message that turned up in kernel.log though;
/var/log/kernel.log:Sep 15 11:50:24 localhost kernel: [    0.925780] acerhdf: unknown (unsupported) BIOS version Sony Corporation/VGN-FZ4000E/R2110J7, please report, aborting!
acerhdf is a fan controller module for the Aspire One, and perhaps I left that in the kernel config and it's preventing the custom DSDT from loading, even though the acerhdf module never gets loaded itself, nor is it in my rc.conf or anything else... If that was the cause of all this, I'm gonna be angry...
Anyway, this message does not appear with my latest kernel build because I took off the custom DSDT option, hoping to be able to use ACPI_CUSTOM_METHOD=y, which supposedly allows one to inject a custom AML method into a debug fs. It wouldn't have worked anyway, as it doesn't let you modify Device sections, but even with a dummy method insertion it didn't give my root modification privileges as it was supposed to...
Will try recompiling AGAIN with this CONFIG_ACERHDF=n (it's simply 'not set' in my current .config), while also enabling the custom kernel etc. If this doesn't work I have no idea what I'll do.
Anyway, thanks for your help and time:

Similar Messages

  • My ipod touch is not syncing, itunes store won't load, and icloud doesn't work!!!!!

    My ipod touch is not syncing, itunes store won't load, and icloud doesn't work!!!!!

    Try the standard fixes:
    - Reset. Nothing is lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Restore from backup
    - Restore to factory defaults/new iPod

  • MacBook Pro turns on but will not load. Battery will power up and charge. The PRAM second start up seems to work, but the Apple timer continues add-infinitum. There is also a disc in the laptop so I can't load re-load software OS 10.6.1. How do I resolv

    MacBook Pro turns on but will not load. Battery will power up and charge. The PRAM second start up seems to work, but the Apple timer continues add-infinitum. There is also a disc in the laptop so I can't load re-load software OS 10.6.1. How do I resolve this problem?

    Try booting in Safe Mode by holding your Shift key down when booting. Also, try holding the eject key down when booting to eject the DVD. If you plug a mouse in and hold the clicker down when booting, that should eject the DVD.   
    17" 2.2GHz i7 Quad-Core MacBook Pro  8G RAM  750G HD + OCZ Vertex 3 SSD Boot HD 
    Got problems with your Apple iDevice-like iPhone, iPad or iPod touch? Try Troubleshooting 101

  • 9800 new battery doesn't work

    hello
    I bought a new battery for my torch, cause the old one draines very quickly. so the new battery doesn't work, it has an X and the OS doesn't load. I've reinstaled 3 times the OS so it's not this problem. also I've charged the battery 1 day, with blackberry original charger.
    I've tried every step I found on forums but with nou luck
    any help please..
    the battery it's new, it's the same as the original one, I don't know if it's original 100% but it's the same as the one I had before.

    BrownSugar13 wrote:
    I have been having the exact same problem.  I replaced my battery and it still drains really quickly; 3 hours after a full charge and no use and the battery's drained.
    I would also appreciate any advice.....
    Hi and Welcome to the Community!
    I recommend that you attempt to boot into Safe Mode:
    KB17877 How to start a BlackBerry smartphone in Safe Mode
    It may take you multiple attempts to get the ESC key sequence (press/release/hold) correct, so be patient. When successfully into Safe Mode, see what happens.
    If the behavior ceases, then think carefully...what happened just before this behavior started? A new app? An update? A Theme? Something else? Think carefully as the smallest change could be causal...and attempt to undo whatever that was.
    If the behavior continues in Safe Mode, then you should investigate more harsh remedies...WIPE, OS Reload, OS Update, BBSAK Wipe/Reload, "Bare Bones" diagnostic reload process, etc.
    Good luck and let us know!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • I still am having problems with Aperture not loading,  It just refuses to work, and I get the message saying it has encountered a problem, and I may need to re-install which I have done dozens of times. The fix mentioned on an earlier post wont work as it

    I still am having problems with Aperture not loading,  It just refuses to work, and I get the message saying it has encountered a problem, and I may need to re-install which I have done dozens of times. The fix mentioned on an earlier post doesn't work as it is for Ver 10.6.6 and I am running 10.6.7

    Do you have Final Cut installed on your machine?
    If so, you may want to look at this article: http://support.apple.com/kb/TS3528
    Let us know if that helps.

  • I've bought an app called WhatsApp but I was not told that app doesn't work for ipod. So I would like to know how to turn back and get my money back.

    I've bought an app called WhatsApp but I was not told that app doesn't work for ipod. So I would like to know how to turn back and get my money back.

    Did you fail to look at the requirements before purchasing?
    All sales are final.  You can try contacting itunes support and asking for an exception

  • I have a MacBook Pro bought in dec 2009. Currently has mountain lion osx installed. Worked like a dream until today. Randomly froze, so I restarted it. To find I got a grey screen. It wouldn't start. Also note my DVD drive doesn't work, but mountain lion

    I have a MacBook Pro bought in dec 2009. Currently has mountain lion osx installed. Worked like a dream until today. Randomly froze, so I restarted it. To find I got a grey screen. It wouldn't start. Also note my DVD drive doesn't work, but mountain lion was installed via App Store anyway.
    So here's what I done so far:
    tried resetting PRAM - No success
    Done disk utility. Disk verified with no errors. I even re formatted disk. - no success starting.
    Tried re installing mountain lion via download . It froze halfway installing -no success.
    Tried backing up a time machine backup from my USB hard drive. It froze at 1% - no success
    Tried booting from safe mode - no success
    Tried the command line boot - no success.
    Please someone help!

    Sounds like the hard dre has left the building, Died, in the Sh*tter, Gone to the hard drive resting place in the sky.
    Buy a new drive connect it to the system with a SATA to USB adapter and see if you can install Mt Lion on that drive connected externally. If you can then the drive inside your system has failed.
    Oh Wait!!!! You have the 2009 model. They are known for bad drive to logic board cables. So it may not be the drive itself but the cable going from the drive to the logic board. Do the same as above then if the system runs OK with the new drive connected externally install it in the system and see if it boots. If it does you are good to go. If it doesn't then it is more then likely the cable that hs failed.
    I would suggest you also SAVE a copy of that download of Mt Lion and create a USB install drive from it using Lion Disk Maker, once you get your system up and running.

  • X-fi Extreme Gamers not in IRQ list, doesn't work at all.

    9X-fi Extreme Gamers not in IRQ list, doesn't work at all.O Lo mates,
    my specs:
    Intel C2D E8500
    Gigabyte GA-EP45-DS3R
    Club3D ATi 4870 52MB
    2GB OCZ
    2 WD Raptors connected to onboard raid controller
    X-Fi in PCI slot
    my problem:
    The X-fi isn't working as it should. It's not getting detected in bios / POST so it can ofcourse not be working in any OS (currently running Win7 7068
    I used to own a AMD 2500 / Asus A7N8X-E deluxe, and it used to work, but when I upgraded to a C2D E6600 / DFI Infinity it only showed up 3 times in my IRQ list / OS. This ofcourse is to blame to Creative, because they dont care about the PCI standard and didn't implement IRQ resource sharing in the Extreme Gamer card. After upgrading to my current setup (listed above) it's still not working at all, even though I tried disabling all onboard devices I dont use, and manually mapped IRQ channels to the PCI ports so they wouldnt share.
    The X-fi is fine, I recently put it in another pc with another brand motherboard, and it was detected instantly. Guess the guy who owns that pc had some luck with his motherboard don't feeling the need to share IRQ's at that particulair moment... its like Russian roulette.
    Is there anything i can do to get the soundcard to work even though it doesn't implement the PCI standards and therefore in my opinion failed as a soundcard and as a brand as a whole?
    Greats,
    eXistenZ
    Message Edited by existenZNL on 06-24-2009 02:34 PMMessage Edited by existenZNL on 06-24-2009 02:35 [email protected]

    = Hey mate:
    Havent seen your exact bios, but if you have a setting in it, called? reset [color="#000080" size="3">Extended System Configuration Data.
    Then that might shuffle your bios, per se and then let that card be redetected. I used to use that on my systems when swapping one single part in order to get all the IRQs to shuffle around again, and give one to my card. Do you remember when the magic number to give to your Creative card was IRQ 5, DMA Low of , DMA High of 5, address of 220 and port of 330? Well that is how I used to get my system to shuffle my printer ports and modems in order to bump that sound card to get the correct addresses. Also check to see if the edges of your sound card are blackened. Wipe them with your fingers and see if there is an ashy burned residue. This will tell you if that card has been electrically damaged, or oily/dirty. Also the backlplates on some sound cards are slightly bent and your sound card will fit into its slot, but not all the way. A hair off and that card will be picked by your system every couple of boots.
    Try this and let me know how it goes for you.

  • Hi there, i have a ipod nano general 7, just used one year. Now can't charge battery. When charging, the icon shows full power, but disconnect it. It becomes dark, no power. Why, the battery doesn't work ?

    I've a ipod nano general 7, I've just used it one year. Now, I can't charge the battery. When charging, the icon shows full power. But when I disconnect, the ipod becomes dark, no power is keeped. Why, the battery doesn't work ? the life of my ipod's battery is too short ? 

    Howdy tamsg,
    Welcome to Apple Support Communities.
    The article linked below provides a lot of great troubleshooting tips that can help you resolve the issue with your iPod nano charging or displaying a blank black screen.
    iPod nano (7th generation): Hardware troubleshooting - Apple Support
    So long,
    -Jason

  • Iphone 5s doesn't start and I can not load my battery.

    Hello!
    Yesterday I got my new iPhone, all worked and I hadn`t any problem.
    But now the battery is empty and I can not start the iPhone.
    When I tries to load the battery I just see a battery ( empty and red) on the screen.
    Even if I load my iPhone more than some hours, the screen doesn't change.
    Any idea how I can load my iPhone?
    Regards
    Simon

    iphone é igual a loteria, tem que ter muita sorte para nao ter defeito, o meu ta com o mesmo problema, foi comprado em Miami, mandei de volta e eles analisaram e falaram que nao tinha nenhum problema, to aqui com essa meerda na mao tendo raiva o dia todo, passa horas no carregador e quando vou usar aparece a bateria vermelha sem carga. to só esperando voltar em Miami pra quebrar essa merda dentro da loja Apple, e comprar um nokia isso sim é que telefone !! IPHONE DEVERIA MUDAR DE NOME PARA    SHITFONE

  • Custom fonts not loading while Edge Animation inside an iFrame

    Hi can someone help me with this strange problem? Custom fonts, specifically, Typekit fonts I used in my Edge Animate animation is not loading IE 11 when the animation is inside an iFrame. If you view the animation HTML directly on the browser, the fonts load perfectly fine.
    Here is an example where the animation is inside an iFrame and part of a webpage where fonts are not loaded when using IE11.
    http://www.pandaequipment.com/test/contact.html
    and here is the HTML file directly where fonts and loaded fine in IE 11
    http://www.pandaequipment.com/test/edgeanimate_assets/myhero/Assets/myhero.html
    All the other browsers I tested don't have this problem.
    Can someone tell me some ways to fix this in IE?

    Hi Keith,
    I'm sorry that you ran into trouble with this.  I also saw this issue when I tested your site in Chrome on OS X 10.9, although the fonts worked on reload because they were then cached in the browser.
    I suspect the the issue is in the "src" attribute on the iframe:
    iframe allowtransparency="true" frameborder="0" scrolling="no" src="edgeanimate_assets/myhero/Assets/myhero.html"
    Would you try changing the src to a full path, and see if the fonts load into the iframe?
    iframe allowtransparency="true" frameborder="0" scrolling="no" src="http://www.pandaequipment.com/test/edgeanimate_assets/myhero/Assets/myhero.html"
    Background:  Typekit gets the domain name from the browser referrer and uses it to check that the site matches the listing on your kit.  This is one of the security layers to make sure someone can't steal your Typekit fonts and use them on their own site.  When loading fonts into an iframe, the iframe referrer needs to match as well.
    If the iframe referrer doesn't match or is blank, the behavior is browser-specific.  Some browsers will use the referrer of the parent page and so the fonts load, while others don't apply the fonts at all.
    Setting the iframe src to the full URL should ensure that a referrer is sent, and may fix this issue.
    Please give that a try, and let me know how it goes!  Thank you,
    -- liz

  • Safari 6 intermittently not loading images or doesn't load pages.

    Not sure if anyone else is having any issues like this. Safari doesn't load pages at all or pictures just do not load at all. It seems like if I restart my browser and try to go to the page again I can get pages to load but not always. Its not the Internet speed or the speed of my computer. I'm thinking it might be an issue with the Virus Scanner that I'm using??? Avast. Any Ideas????

    I had the same problem until today and I hope this helps.  I'm always emptying the caches and probably in a hurry I did not noticed that instead of emptying the caches I went a little bit farther and hit the disable images button.  So, go to Develop Menu and make sure that disable images is uncheked.

  • [solved] TV card not loaded after upgrade to kmod

    After the upgrade to mkinitcpio and kmod replacing module-init-tools, my TV card (Hauppauge WinTV Nova-S) is not loaded.
    Downgrading mkinitcpio and re-installing module-init-tools and regenerating my initramfs and all is well.
    Is there any extra setup needed with kmod? There are no man files in the kmod package so I'm at a loss what to do.
    Incase it helps, here are (maybe not all) the modules related to my tv card when downgraded:
    -->lsmod | grep dvb
    cx88_dvb 23415 39
    cx88_vp3054_i2c 1932 1 cx88_dvb
    videobuf_dvb 4794 1 cx88_dvb
    dvb_core 92868 2 cx88_dvb,videobuf_dvb
    cx8802 13121 1 cx88_dvb
    cx88xx 73365 4 cx88_dvb,cx88_alsa,cx8800,cx8802
    videobuf_dma_sg 7936 5 cx88_dvb,cx88_alsa,cx8800,cx8802,cx88xx
    videobuf_core 15879 5 videobuf_dvb,cx8800,cx8802,cx88xx,videobuf_dma_sg
    i2c_core 20492 15 isl6421,cx24123,wm8775,cx88_dvb,cx88_vp3054_i2c,cx8800,cx88xx,tveeprom,v4l2_common,videodev,i2c_piix4,nouveau,drm_kms_helper,drm,i2c_algo_bit
    Last edited by fastfret79 (2012-01-10 22:29:35)

    Yes - initramfs regenerated after each upgrade and downgrade.
    Forgot to mention I was also suffering from the 'Filename too long' FS#27862 and your updated kmod in that bug's comments fixed that. I'm guessing that my issue is unrelated.
    With both kmod packages, initramfs complains that /etc/modprobe.d/modprobe.conf doesn't exist, but I've never added anything in there anyway and the kmod package doesn't contain that file.
    Last edited by fastfret79 (2012-01-10 11:53:07)

  • [Solved] Menu Editor not loading.

    I installed py solitaire, it didn't show up in the list.  I tried to open up the menu editor, and that will not load either.  I have fam and alacarte installed, and I am not sure what is wrong.  Any help would be greatly appreciated.
    Edit:  alacarte will not run as a normal user, only as root.  Is this normal?
    Last edited by perlluver (2008-02-24 21:45:37)

    perlluver wrote:
    I installed py solitaire, it didn't show up in the list.  I tried to open up the menu editor, and that will not load either.  I have fam and alacarte installed, and I am not sure what is wrong.  Any help would be greatly appreciated.
    Edit:  alacarte will not run as a normal user, only as root.  Is this normal?
    Ok I ran menu editor from the terminal and I got this message:
    ** (gmenu-simple-editor:7417): WARNING **: Failed to add monitor on '/home/perlluver/.config/menus/applications.menu': Permission denied
    ** (gmenu-simple-editor:7417): WARNING **: Failed to add monitor on '/home/perlluver/.config/menus/applications-merged': Permission denied
    ** (gmenu-simple-editor:7417): WARNING **: Failed to add monitor on '/home/perlluver/.config/menus/settings.menu': Permission denied
    ** (gmenu-simple-editor:7417): WARNING **: Failed to add monitor on '/home/perlluver/.config/menus/settings-merged': Permission denied
    ** (gmenu-simple-editor:7417): WARNING **: Failed to add monitor on '/home/perlluver/.config/menus/preferences-merged': Permission denied

  • [SOLVED] Module r8169 not loading on boot, can load afterwards...

    I am trying to get the network (r8169) to load, currently it doesn't get detected and putting it in MODULES array doesn't do anything (I don't think anything works in MODULES array for me).
    Was using 2.6.39 kernel, moved to 3.0.0; same problem.
    Once the computer has booted I can easily' sudo modprobe r8169 && sudo dhcpcd eth0' no problems.
    Any ideas on how to get it to work? Thanks in advance.
    Last edited by beaverusiv (2011-08-03 08:48:44)

    Yeah, why on earth are they auto gen'd? I used archboot to install, you?
    Okay, I'll rm them and reboot now.
    I also have a /etc/modprobe.d/framebuffer_blacklist.conf:
    blacklist aty128fb
    blacklist atyfb
    blacklist cirrusfb
    blacklist cyber2000fb
    blacklist kyrofb
    blacklist neofb
    blacklist nvidiafb
    blacklist pm2fb
    blacklist radeonfb
    blacklist rivafb
    blacklist s3fb
    blacklist savagefb
    blacklist sisfb
    blacklist sstfb
    blacklist tdfxfb
    blacklist tridentfb
    blacklist udlfb
    blacklist uvesafb
    blacklist viafb
    blacklist vmlfb
    blacklist vt8623fb
    Do I need to worry about that? I'm currently using Intel G41 915 integrated.
    Last edited by beaverusiv (2011-08-03 08:43:49)

Maybe you are looking for