6

I've got a problem booting. Ubuntu 16.04 on my Dell E6520 laptop boots normally when plugged in. However, when booting on battery power it shuts down entirely. Sometimes it makes it as far as the Ubuntu loading screen, but then stops and the laptop shuts off entirely.

I tried searching and found this results for a Lenovo Y560, though I'm not really knowledgeable about kernels so I'm not sure if a similar fix would be relevant for a Dell.

What can I do to boot while on battery power? Thanks.

Updates

I've also tried booting from USB and recovery mode while on battery power, both failed.

I've also noticed when I boot from AC power, then unplug the battery, sometimes the system shuts off on its own, but only after I do something.

Reproduction steps:


Shutdown at login screen issue

  1. Boot from AC power
  2. Wait for login screen
  3. At login screen, unplug AC power
  4. Type password and click login
  5. Immediately after clicking login, the laptop shuts down

I set a timer and waited 10 minutes after step 3 to see if the battery was the issue, but it only shuts down if I take an action, in this case clicking the login button.


Shutdown using Chrome on battery power

  1. Boot using AC power
  2. Wait for login screen
  3. Type password and click login (still from AC power)
  4. Wait for desktop to load, then disconnect AC power
  5. Open Chrome
  6. Type http://www.google.com in the address bar
  7. Click Go or press CTRL+Enter, and the laptop immediately shuts down

I left the laptop powered on at step 5, thinking maybe it was a battery issue. It ran for almost 3 hours until the battery was completely drained.


It seems the laptop only shuts down when on battery power after some type of user action, or during boot from battery power.

I'm stumped, any thoughts on what the cause is?

ak_
  • 61
  • Does the power issue appear in Windows as well? Or only Linux? Chances are that Linux power handling isn't as efficient and your battery is old meaning it doesn't have a full charge (which could cause this) – Thomas Ward Jun 07 '16 at 23:42
  • @ThomasW. its a rebuild - so no windows. The battery is brand new, and charges fine and runs for hours as long as I've booted with it plugged in. – ak_ Jun 08 '16 at 03:02
  • That sounds like an odd hardware problem rather than a Linux issue then. – Thomas Ward Jun 08 '16 at 10:46
  • @ThomasW. I don't think so, since it makes it to the ubuntu loading screen. It did not happen when it used to boot from Windows (that hard drive died about a week ago). – ak_ Jun 08 '16 at 13:20
  • @AdamKonieska, Could you try pressing Shift key while booting, so grub menu appear leave it there for a minute (see if shutdown by itself). Another test, try booting to recovery mode. If possible to try Live USB boot using Ubuntu16.04 & Ubuntu14.04? – user.dz Jun 09 '16 at 20:10
  • 1
    @Sneetsher actually the grub menu comes up on its own. If I choose Ubuntu it makes it to the loading screen then shuts off. – ak_ Jun 10 '16 at 04:18
  • 1
    @Sneetsher I just tried booting from USB, which also failed. – ak_ Jun 10 '16 at 04:23
  • 1
    @Sneetsher sorry for the delay, recovery mode also fails. It begins to load then shuts off. – ak_ Jun 10 '16 at 20:22
  • it would definitely help to have this system boot another OS whilst running on battery to compare with. – Amias Jun 15 '16 at 11:19
  • @Amias it would, but unfortunately I don't have another OS handy to test with. I added some details to the question that I found while testing out the battery. I'm stumped, any thoughts on what would cause that type of issue? – ak_ Jun 15 '16 at 13:32
  • Try passing acpi=off to linux from GRUB menu. If the issue doesn't reproduce in this mode, you'll at least know that it's Linux ACPI support which is broken. – Ruslan Jun 15 '16 at 13:52
  • Have you tried the latest mainline kernel? See https://wiki.ubuntu.com/Kernel/MainlineBuilds – Robie Basak Jun 16 '16 at 09:42
  • were you able to resolve this issue? I recently had similar issue and am looking for a fix. My Ubuntu 18.04 machine drops battery charge from 80%+ to 0% in an instant and turns laptop off. With windows it works fine, the battery is brand new which I bought just because of this problem which turns out is a problem with Linux somehow! – usamazf Jan 02 '20 at 08:51

3 Answers3

0

You can add this line

dis_ucode_ldr

into your grub file /etc/default/grub as a root user of course.

This allows booting after a bad microcode update and fixes the non-booting issue when you are not on AC Power. I've seen this issue a lot of times on some Dell computers on Ubuntu.

Dubu
  • 919
johary
  • 1
  • You should add what this line does and how it could help with the problem. – Dubu Sep 08 '20 at 18:31
  • This allow booting after a bad microcode update and fix the non-booting issue when you are not on AC Power. I've see this issue a lot of time on some dell computer on Ubuntu – johary Sep 10 '20 at 18:38
0

I've been facing a similar problem with Ubuntu Mate 20.04 recently and after a couple of days and countless attempts to find the solution (adding dis_ucode_ldr in grub did not help) finally discovered a simple one that has worked for me.

Try editing grub adding the nomodeset option in the line GRUB_CMDLINE_LINUX_DEFAULT (if present), so that it reads as follows:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset"

Hope that might help someone as well.

More details on nomodeset here: What does `nomodeset` do

Eliah Kagan
  • 117,780
Ariari
  • 1
0

I had the same issue on a Lenovo G50-45, the fix for this was so simple it made it complicated.

Go to 'System Settings' in Ubuntu, go to 'power' and change the option below "On Battery Power" so they are the same as the options below "When plugged in".

Let me know how you get on! :)

  • Thanks, its definitely not that. The power settings are the same for both. I don't see what affect that would have on booting. – ak_ Jun 10 '16 at 04:20
  • If they are the same, then I'm not sure. I will have a look round to see if I can find anything. If I remember rightly, for myself it was set to Suspend when left for 5 minutes but only on battery power and by changing it to not suspend (The same as with power cable connected) I fixed the problem.

    I don't know why it was doing that, it wasn't even on the loading screen for a minute before either crashing or turning off.

    – proprocastinator Jun 10 '16 at 15:22
  • Just thought of something actually, I used to support Dell laptops in a previous role and often used to get battery calibration issues. Normally battery calibration issues just cause problems with laptops turning off without any warning.

    We used to support Dell D620s and D630s, so they might not have it now. They did have a calibration tool in the BIOS.

    Just in case you don't know, what it does is scans the chip in the battery and gets an accurate reading of battery life and resynchronizes the system.

    – proprocastinator Jun 10 '16 at 15:32
  • If there is no tool to do that in the BIOS, someone here might be able to suggest a good program for the job.

    As I have not had to do this on linux as of yet.

    – proprocastinator Jun 10 '16 at 15:35