# Cannot change \`mem\_sleep\`

**URL:** <https://forum.endeavouros.com/t/cannot-change-mem-sleep/51518>\
**Category:** Kernel, boot, graphics & hardware\
**Created:** [February 25, 2024, 10:53am UTC](https://forum.endeavouros.com/t/cannot-change-mem-sleep/51518 "2024-02-25T10:53:13Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![lew](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/l/8e7dd6/32.png) [@lew](https://forum.endeavouros.com/u/lew)\
**Post date:** [February 25, 2024, 10:53am UTC](https://forum.endeavouros.com/t/cannot-change-mem-sleep/51518/1 "2024-02-25T10:53:13Z")

</div>

I am trying to get my laptop to use suspend to ram instead of suspend to idle. It should be possible, since when I `cat /sys/power/mem_sleep` it returns `[s2idle] deep`.  
I should be able to change it by writing `deep` to the file, i.e. with `echo deep | sudo tee -a /sys/power/mem_sleep`, but this seems to have no effect.  
(See [kernel.org](https://www.kernel.org/doc/html/latest/admin-guide/pm/sleep-states.html), also this did work on another laptop that is also running endeavour.)

I’m running endeavour (obviously) with the i3 pre-configured version.  
I’m not aware of any other programs that might be controlling this setting.

```auto
$ uname -r                                                                                                                                                                                                                  
6.7.5-arch1-1

```

I should note that it’s a razer laptop (blade 18), which seems to not have the best hardware support for linux.

Any ideas what’s going on or how I can fix it?

---

<div class="post-metadata">

**Author:** ![lew](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/l/8e7dd6/32.png) [@lew](https://forum.endeavouros.com/u/lew)\
**Post date:** [March 12, 2024, 8:12am UTC](https://forum.endeavouros.com/t/cannot-change-mem-sleep/51518/2 "2024-03-12T08:12:45Z")

</div>

I just (16 days later) tried again it worked, insofar as the change in `/sys/power/mem_sleep` did take effect (haven’t tried whether it really draws less power during sleep).  
I had not taken any specific action, so this was either fixed by rebooting or updating (unlike since I’m still on the same kernel release).

---

<div class="post-metadata">

**Author:** ![linuxislife](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/linuxislife/32/91372_2.png) [@linuxislife](https://forum.endeavouros.com/u/linuxislife)\
**Post date:** [March 12, 2024, 10:51am UTC](https://forum.endeavouros.com/t/cannot-change-mem-sleep/51518/3 "2024-03-12T10:51:12Z")

</div>

> [@lew](#):
>
> `echo deep | sudo tee -a /sys/power/mem_slee`

does that survive a reboot though ? (i.e., isn’t the setting reverted on next reboot?)

---

<div class="post-metadata">

**Author:** ![lew](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/l/8e7dd6/32.png) [@lew](https://forum.endeavouros.com/u/lew)\
**Post date:** [March 12, 2024, 2:43pm UTC](https://forum.endeavouros.com/t/cannot-change-mem-sleep/51518/4 "2024-03-12T14:43:33Z")

</div>

Sadly it is reset ☹

Any ideas on how to make this permanent?

---

<div class="post-metadata">

**Author:** ![linuxislife](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/linuxislife/32/91372_2.png) [@linuxislife](https://forum.endeavouros.com/u/linuxislife)\
**Post date:** [March 12, 2024, 5:23pm UTC](https://forum.endeavouros.com/t/cannot-change-mem-sleep/51518/5 "2024-03-12T17:23:59Z")

</div>

As per the [wiki](https://wiki.archlinux.org/title/Power_management/Suspend_and_hibernate#Changing_suspend_method)

> you can make the change permanent with the `mem_sleep_default=deep` [kernel parameter](https://wiki.archlinux.org/title/Kernel_parameter).

I assume it should be sufficient.

---

<div class="post-metadata">

**Author:** ![system](https://forum.endeavouros.com/uploads/default/original/2X/9/9ea52f9fd5ef8e609e593c362d61a36295f48be8.png) [@system](https://forum.endeavouros.com/u/system)\
**Post date:** [March 14, 2024, 5:24pm UTC](https://forum.endeavouros.com/t/cannot-change-mem-sleep/51518/6 "2024-03-14T17:24:09Z")

</div>

Closed on March 14, 2024, 5:24pm UTC

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
