shiftux

updated

1 year ago

S

shiftux

1 Rookie

9 Posts

2

65067

November 10th, 2020 02:00

XPS 13 9310, Ubuntu, deep sleep missing

My computer drains a lot of battery when in sleep mode.

I've tried following the steps outlined in this bug report, tried the diagnosis layed out in this question and disabled the "sign of life" options in the BIOS as described here.

I confirmed my system sleeps in the `s2idle` state. Which I suspect is the problem.

$ sudo journalctl | grep "PM: suspend" | tail -2
May 13 18:41:00 mex kernel: PM: suspend entry (s2idle)
May 13 20:52:36 mex kernel: PM: suspend exit

However I have 2 issues when trying to follow the above guides: Firstly my `/sys/power/mem_sleep` file does not contain a `deep` option:

sudo cat /sys/power/mem_sleep
[s2idle]

And secondly I can't seem to edit the file to add a `deep` option:

$ echo deep | sudo tee /sys/power/mem_sleep
deep
tee: /sys/power/mem_sleep: Invalid argument
$ sudo sh -c 'echo deep > /sys/power/mem_sleep'
sh: 1: echo: echo: I/O error

Not being able to close the lid and have the laptop suspend is very annoying. Any help on this would be greatly appreciated.

OS: Ubuntu 20.04, 5.8.0-26-generic / Hardware: Dell XPS 13 9310

  • DELL-Chris M

    Community Manager

    56891 Posts

    232143 Points

    21963

    0

    Posted October 19th, 2021 06:00

    The S3 deep sleep mode is not available on the 2020 XPS 13 9310. This is by design and will nto change. When using a Dell Ubuntu 20.04 LTS image, the battery discharge issue was resolved with kernel update to 5.8. However, there will be some amount of battery discharge due to the Connected / Modern Standby feature. If there are any issues with battery draining with the Dell Ubuntu Ubuntu 20.04 LTS image, click GHN (Get Help Now) on the right to start a case.

    (edited)


    DELL-Chris M (old account)

    #IWork4Dell

  • DELL-Cares

    Moderator

    27815 Posts

    652 Points

    23504

    0

    Posted November 10th, 2020 10:00

    Thank you! We have received the required details. We will work towards a resolution. In the meantime, you may also receive assistance or suggestions from the community members.


    #IWork4Dell

    For all non-technical issues that require your private data, we must communicate via a private Direct Message
    Dell Partner GEM Program
    , Out of Warranty Support Options, BIS (Bureau of Indian Standards) certificate, Get a copy of your Dell invoice

  • rohmishra

    1 Rookie

    1 Message

    23491

    3

    Posted November 11th, 2020 08:00

    Dell has removed deep sleep support on newer machines afaik. I have the inspiron 14 7405 and am stuck with s2sleep as well. Battery drain is really bad with it too.

  • rjl-csun

    1 Rookie

    24 Posts

    23494

    1

    Posted November 11th, 2020 08:00

    I have the identical situation. What do I need to do to be kept in the loop when a resolution is found?

  • bulletmark

    1 Rookie

    49 Posts

    23465

    0

    Posted November 11th, 2020 16:00

    I had the same problem running Arch Linux on my XPS 13 9300 model but it has been fixed since I added the `mem_sleep_default=deep` boot option. I also have both "sign of life" options and TPM disabled in the BIOS.

  • rjl-csun

    1 Rookie

    24 Posts

    23460

    0

    Posted November 11th, 2020 18:00

    That is encouraging news. Any guesses as to how to add the `mem_sleep_default=deep` boot option in Ubuntu 20.04? Google has not been very friendly to me in this case. 

    Thanks!

  • bulletmark

    1 Rookie

    49 Posts

    23419

    0

    Posted November 11th, 2020 20:00

    Depends on your boot-loader. I use systemd-boot but you are probably using grub, so read https://wiki.ubuntu.com/Kernel/KernelBootParameters or similar.

  • shiftux

    1 Rookie

    9 Posts

    23395

    1

    Posted November 12th, 2020 01:00

    Thanks for all the insights. and sorry to see that so many others share the pain...
    I've learned from this thread here that this actually is a firmware issue. where dell chose to not include deep sleep in this computer's firmware. if so i would find that very disappointing, i can't think of a single reason why anyone would appreciate a default battery drain on his suspended laptop. i'm not sure i would have purchased the device if i had known...

    @bulletmark If indeed it is a firmware issue, then i doubt the boot option would help. or am i wrong?
    also: before you set the boot option, did file `/sys/power/mem_sleep` contain a `deep` option which was just not selected or did it only contain the `s2idle` option? I would assume deep was present, but not selected, so your file would have looked something like this: 

    sudo cat /sys/power/mem_sleep
    [s2idle] deep

      

  • bulletmark

    1 Rookie

    49 Posts

    23382

    0

    Posted November 12th, 2020 03:00

    Yes, after booting without the `mem_sleep_default=deep` kernel option:

     

    sudo cat /sys/power/mem_sleep
    [s2idle] deep

     

    Booting with the that option:

     

    sudo cat /sys/power/mem_sleep
    s2idle [deep]

     

  • shiftux

    1 Rookie

    9 Posts

    18283

    0

    Posted November 12th, 2020 06:00

    yes, that's the difference. 

    my file only displays 1 option: 

    sudo cat /sys/power/mem_sleep
    [s2idle]

    this is what the new firmware apparently is lacking...

    FYI the link i described in the intro text gives alternatives to changing the boot menu