Laptop starts when adapter is plugged in

I found some similar threads,but my problem is little different.
I have a Acer 5735 laptop,and using it with patched kernel (now 3.0.8)  due to this bug :https://bugs.archlinux.org/task/17821
This is patch that must be used to be able to run any Linux os,if not there is number of problems,like lags,unable to watch video and biggest of all - no booting until battery is pulled of for 10-20 seconds.
Index: linux-2.6/drivers/acpi/ec.c
===================================================================
--- linux-2.6.orig/drivers/acpi/ec.c
+++ linux-2.6/drivers/acpi/ec.c
@@ -223,6 +223,7 @@ static int ec_poll(struct acpi_ec *ec)
if (ec_transaction_done(ec))
return 0;
} else {
+ msleep(1);
if (wait_event_timeout(ec->wait,
ec_transaction_done(ec),
msecs_to_jiffies(1)))
@@ -230,8 +231,8 @@ static int ec_poll(struct acpi_ec *ec)
advance_transaction(ec, acpi_ec_read_status(ec));
} while (time_before(jiffies, delay));
- if (acpi_ec_read_status(ec) & ACPI_EC_FLAG_IBF)
- break;
+// if (acpi_ec_read_status(ec) & ACPI_EC_FLAG_IBF)
+// break;
pr_debug(PREFIX "controller reset, restart transaction\n");
spin_lock_irqsave(&ec->curr_lock, flags);
start_transaction(ec);
@@ -268,6 +269,15 @@ static int ec_check_ibf0(struct acpi_ec
return (status & ACPI_EC_FLAG_IBF) == 0;
+/* try to clean input buffer with burst_disable transaction */
+static int acpi_ec_clean_buffer(struct acpi_ec *ec)
+{
+ struct transaction t = {.command = ACPI_EC_BURST_DISABLE,
+ .wdata = NULL, .rdata = NULL,
+ .wlen = 0, .rlen = 0};
+ return acpi_ec_transaction_unlocked(ec, &t);
+}
+
static int ec_wait_ibf0(struct acpi_ec *ec)
unsigned long delay = jiffies + msecs_to_jiffies(ec_delay);
@@ -276,7 +286,7 @@ static int ec_wait_ibf0(struct acpi_ec *
if (wait_event_timeout(ec->wait, ec_check_ibf0(ec),
msecs_to_jiffies(1)))
return 0;
- return -ETIME;
+ return acpi_ec_clean_buffer(ec);
static int acpi_ec_transaction(struct acpi_ec *ec, struct transaction *t)
In most cases laptop  runs fine,but when battery is drained to a critical level,and turned off - when I plug-in adapter laptop just starts,and lid is closed.
I use kde,system is updated,acpi-cpufreq module is loaded,and kde power manager is handling performance (on adapter),and powersave (on battery) governors,guess there is no problem there,and have no other problems  with laptop.   
There is one strange thing:when that happens bluetooth button is turned on,but stays off otherwise.
Can somebody explain whats is happening here?
Not that this is a big problem,but if can be solved....
Edit : Just remembered - sometimes instead shutdown laptop restarts
Last edited by dare023 (2011-12-16 05:29:14)

Sorry for double posting,but this is getting totally random,and it is very annoying.
Almost every time I turn laptop off and plug in power adapter laptop boots ,no matter that lid is closed.
Any suggestions?

Similar Messages

  • Adobe Bridge Auto-Start when Flash Card plugged in

    If this is the wrong forum, my appoligies....
    I am using Adobe Photoshop CS2 with Max OS X 10.4.8 on a PowerBook. When I plug in a flash card reader (with a card) than Adobe Bridge automatically starts and this is not what I want - I just want to open the Finder.
    I have searched through all the preferences I can think of and can't find anything relavent.
    I have had Photoshop Elements and Adobe Lightroom installed at various times but they are all currently uninstalled.
    This is a real aggrivation. Can anyone shed any light on the problem?
    Thanks
    Bill Plunkett

    In that case, try going to your user>library>Application Support>Adobe>bridge folder and move Adobe Bridge Opener Preferences.xml to the trash. Does that help? (Don't empty the trash, because if it doesn't do anything, you might as well put it back again.)
    EDIT meant to say Application Support rather than preferences

  • HT204370 I downloaded an HD movie onto my laptop from i-tunes.  It plays fine on my laptop, but when I plug in my HD projector, the movie quits.  When I unplug the projector, the movie starts again. I have never had a problem with projecting an itunes mov

    I downloaded an HD movie onto my laptop from i-tunes.  It plays fine on my laptop, but when I plug in my HD projector, the movie quits.  When I unplug the projector, the movie starts again. I have never had a problem with projecting an itunes movie before this. Someone told me that i-tunes changed something so that movies can no longer be projected.  We have a home theatre and have watched movies this way quite regularly, so it would be a drag if Apple will prevent us from doing this in the future. 

    I don’t know about projection, but I’m unable to watch HD content in iTunes because my Apple 30-inch Cinema Display is not HDCP-compliant (which is part of an HD copy-protection scheme).
    The other movies you’ve projected, were they HD as well? If not, it could be the same problem: your projector is not HDCP-compliant.

  • Laptop only starts if adapter plugged in

    Hi I have a Presario CQ56 Notebook PC which will not start unless the adapter is plugged in. Once it's on if I pull the adapter out, it will shut down. Further when I switch it on sometimes it will hang/freeze on the Compaq logo and not start at all. Do  i need a new battery? If so where can I buy an original battery from? Many thanks Nemo

    Since this is a consistant  and repeatable issue, take it in to your nearest Apple store genius bar for evaluation.  If you are still under warranty, they should fix the problem.
    Ciao.

  • Satellite 1800-814 does not start if AC adapter is plugged in

    Hello,
    I've got a problem with my 3 year old 1800-814.
    It all began with sudden Windows crashes. Sometimes it ran smooth, sometimes it just hung up. So I decided to reinstall the notebook. My Problem is when it is plugged into pressing the power on button does not start the laptop. Just the green light is on nothing else happens. Sometimes it starts after a wait of 3 or 5 secs. On battery it starts every time. What can I do? Defect hardware or just dust somewhere?
    Thanks,
    Jens Grieger

    Hi,
    If you have a voltage tester test the AC adapter and see if it has the right current voltage, which is written on the adapter. If it does, plug the adapter into the portable and move it around, see if the light turns on and off while you are moving the ac plug(near where it plugs in to the computer, to see if it is a loose ac harness inside the computer). Does the computer randomly turn off if you have the battery removed? Or do you notice that it suddenly switches to battery power and back to AC adapter while the adapter is plugged in? Could be the adapter. Check that first. If that is good, then check the adapter plug(located on the back of the computer, where the adapter plugs in) to see if it is loose. If you find that it is loose, you can take it to an Authorised Service Provider and have them fix it. I hope this helps.

  • Why does my macbook only turn on when the power adapter is plugged in?

    The battery life says its at 73% and climbing but whenever I unplug my power adapter the mac automatically shuts down and if I try to turn on the macbook without my power adapter plugged in, it wont turn on. How do I make it go back to where I can turn the mac on without it being plugged in? Thank you for your help!

    I would try two things the first being resetting the System Management Controller:
    1) If the computer is on, turn it off.
    2) Disconnect the AC Adapter and remove the computer's battery.
    3) Press and hold down the power button for 5 seconds and then release the button.
    4) Reconnect the battery and AC Adapter.
    5) Press the Power button to restart the computer.
    If that doesn't work I would recalibrate the battery.
    To calibrate the battery:
    1) Plug in the MagSafe power adapter and fully charge the MacBook or MacBook Pro battery until the light on the MagSafe connector changes to green and the Battery icon in the menu bar indicates that the battery is fully charged.
    2) Allow the battery to rest in the fully charged state for two hours or longer. You may use your computer during this time as long as the power adapter is plugged in.
    3) Disconnect the power adapter with the computer on and start using it with battery power. When the battery's charge gets low, you’ll see the low battery warning dialog on the screen.
    4) Continue to keep your computer turned on until it goes to sleep. Save your work and close all applications when the battery's charge gets low and before the computer goes to sleep.
    5) Turn off the computer or allow it to sleep for five hours or longer.
    6) Reconnect the power adapter and leave it connected until the battery is fully charged. You may use your computer during this time.

  • Battery is not charging when adapter has been plugged in

    my macbook is not charging eventho i plug in the power adapter.i can still on my macbook only when the adapter is plug in..n on the top right corner where they show the battery sign is showing a 'x' in my battery icon..if i take the adapter away,my whole macbook will just shut down. whats goin on?

    I agree. I think what I will be doing is shutting the computer totally off when I'm not using it because the bottom seems to get way too warm.(when I get the new battery, that is) I called and they are sending me a new one at least.
    This has happened now to me for the second time. My
    MacBook will bi 1 this May. I had this happen for
    the first time in Dec. The store replaced my battery.
    It wouldn't take a charge. Now lastnight I had to
    replace my mag charger due to at the mag connection
    the wire was damaged and heating up so much that it
    started melting. When I plugged in the new mag
    supply the X appeared (In the About this Mac under
    Power: Battery Installed: No). In my I did the 3
    suggested "fixes" and the lovely X is still there.
    I guess it is time to go back to the store for yet
    another battery. This is very crazy. Something
    should be looked at on these batteries.

  • I recently got a iPad camera connection kit hoping to directly download my photos from the memory card for my camera, a Sony Cybershot. When I put my memory card in the adapter and plug it in to the iPad nothing happens. What am I doing wrong?

    I recently purchased an iPad camera connection kit hoping to directly download pictures from my camera to my iPad. When I put my memory card into the adapter and plug it in to my iPad nothing happens.  My camera is a Sony Cybershot and the memory card is a Sony memory stick PRO duo 512 mb.  I don't think I am doing anything incorrect.  Is my camera/memory card incompatible with this adapter?

    The Camera Connection Kit works with SD cards, not Memory Sticks.
    Maybe you can find an MS to SD adapter, or use the USB connection with the USB cable that came with the camera.

  • Basically my laptop had all my music from my iPod on it however I now have a new laptop and when i plug in my iPod my music wont come up. How do I get my music library back onto my laptop?

    Basically my laptop had all my music from my iPod on it however I now have a new laptop and when i plug in my iPod my music wont come up. How do I get my music library back onto my laptop?

    See Recover your iTunes library from your iPod or iOS device.
    tt2

  • ITunes does not start when I plug in my iphone after I upgraded to Lion?

    iTunes does not start when I plug in my iphone after I upgraded to Lion? It worked fine prior to upgrading.

    http://support.apple.com/kb/TS1538

  • ITunes does not start when iPhone plugs in

    my itune does not start when I plug my iphone or ipad in , this stater with lion install

    Please see here if it helps:
    https://discussions.apple.com/message/15705708#15705708
    Regards, Michael

  • Stop WMP10 from starting when I plug in Zen Visio

    When I plug in my Zen Vision M, Windows Media Player 0 starts up and starts synchronizing. I want a totally different program to come up -- or NO PROGRAM AT ALL!?I can't find a way to do this with the zen. I went into WMP settings and said don't synchronize. It ignores me. I tried going to windows explorer and changing device properties, but that tab is not available.

    OK, under Windows Media Player, SYNC SETTINGS, I found a menu that allows me to change syncing from automatic to manual. So now the syncing doesn't occur when I plug in the device. But Windows Media Player 0 STILL opens, and I don't want it to. I'd rather have nothing open, or else a program of my choosing. Just to be clear, here's a copy of my post at experts exchange:?*****When I plug in my Zen Vision M, Windows Media Player 0 opens. (For technical reasons I need to use WMP version 0, NOT or beyond.)
    I want a totally different program to come up -- or NO PROGRAM AT ALL! -- when I plug in the zen player.
    I can't find a way to do this with the zen. ?I went into WMP settings and said don't synchronize, which worked. ?But when I go into the device properties, there's no menu for choosing which program opens with the device. You don't get the usual menus under windows explorer. ?
    In fact, the only way I can get to a device properties menu at all is to plug in the device, and then go to Zen Media Explorer (which is a shortcut / device under Windows Explorer). The device appears there as a sub-folder, and has a properties menu. But again, this menu doesn't allow for choosing which programs run when the device is plugged in.
    I found a check box that said "show zen in windows explorer as portable device". I checked this and restarted explorer. But all the menus / choices for this are the same as for the above "Zen Media Explorer"
    Likewise I looked under Dev Mgr properties -- there's a properties menu, but no where to choose which program runs when device is plugged in.
    *****Message Edited by dgrrr on -06-2007:4 AM

  • Lightroom starting when I plug in a USB stick

    Hi all;
    How can I prevent Lightroom starting when I plug in a USB stick?
    I cannot fins any solution in the Win 7 settings.
    Thanks
    Maarten

    Lightroom preferences (General panel). You'll find an option labeled 'Show import dialog when memory card is detected' . Remove the checkmark.

  • Why does CS6 automatically start when i plug in my Canon Eos camera and how do I stop it

    Why does CS6 automatically start when i plug in my Canon Eos camera and how do I stop it from doing so?

    Autostart is controlled by your operating system. check the relevant system control panel or right-click the drive letter of your memory card to change these options in teh properties.
    Mylenium

  • I have a 2009 MacBook Pro. Does anyone else have issues with their laptop having problems starting when shut off or restarting when asleep since installing Yosemite?

    I have a 2009 MacBook Pro which I have upgraded a few things on. I have updated to Yosemite and am having problems with getting my laptop to come out of sleep mode, and to start when shut off. Any ideas of what this might be or how to correct it? Is this more probably a hardware issue or software?

    Try these in order testing your system after each to see if it's back to normal:
    1. a. Resetting your Mac's PRAM and NVRAM
        b. Intel-based Macs: Resetting the System Management Controller (SMC)
    2. Restart the computer in Safe Mode, then restart again, normally. If this doesn't help, then:
    Boot to the Recovery HD: Restart the computer and after the chime press and hold down the COMMAND and R keys until the Utilities menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    3. Repair the Hard Drive and Permissions: Upon startup select Disk Utility from the Utilities menu. Repair the Hard Drive and Permissions as follows.
    When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the main menu. Select Restart from the Apple menu.
    4. Reinstall Yosemite: Reboot from the Recovery HD. Select Reinstall OS X from the Utilities menu, and click on the Continue button.
    Download and install the 10.10.1 update.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible
                because it is three times faster than wireless.
    5. Reinstall Yosemite from Scratch:
    Be sure you backup your files to an external drive or second internal drive because the following procedure will remove everything from the hard drive.
    How to Clean Install OS X Yosemite
    Note: You will need an active Internet connection. I suggest using Ethernet if possible
                because it is three times faster than wireless.

Maybe you are looking for

  • How to put a printer in the print option

    I have an epson airport  with AirPrint capabilities...sometimes the printer option is available, other times it says select...and no options are available...annoying!  Any ideas what I can do?

  • How To: On Form Submit move to Next Tab with Spry Tabbed Panels

    I've got a page set up with 3 different forms in three different panels. When the form in Panel one is submitted, I need the form in panel two to open up. When form two is submitted, I panel three to open. I've made sure that the following is located

  • DataProvider in Linechart from Button

    Hi again, I have a code that gets the data from a combobox and assigns it as a dataprovider in a linechart component. Actionscript: private function dgClick(item:Object):void{ linechart1.dataProvider = item; linechart1.visible = true; The Combobox: (

  • Fatal Internal Error: "Memory Manager.cpp", line 547

    Hello, I am using LV 2009 and I am also getting an error as follows: ======================================================= Fatal Internal Error: "Memory Manager.cpp", line 547 LabVIEW version 9.0.1  You will lose any unsaved work. For assistance in

  • Reworking Photoshop layer renaming script for Illustrator

    The Photoshop scripting guru Paul R over at RetouchPro has created a really cool script to batch rename and number selected Photoshop layers. I haven't found anything similar on the Illustrator side. He's given permission for me to post it here in my