Skip to content

Instantly share code, notes, and snippets.

@sitano
Last active February 25, 2022 09:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sitano/b12f4710eb3445aa993ed7782b88a3b5 to your computer and use it in GitHub Desktop.
Save sitano/b12f4710eb3445aa993ed7782b88a3b5 to your computer and use it in GitHub Desktop.
X1 Carbon Linux suspend fixes
$ cat /etc/systemd/logind.conf
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
#
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See logind.conf(5) for details.
[Login]
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
#HandlePowerKey=poweroff
HandleSuspendKey=suspend
HandleHibernateKey=suspend
HandleLidSwitch=suspend
#HandleLidSwitchExternalPower=suspend
HandleLidSwitchDocked=suspend
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
LidSwitchIgnoreInhibited=no
#HoldoffTimeoutSec=30s
#IdleAction=ignore
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RemoveIPC=yes
#InhibitorsMax=8192
#SessionsMax=8192
+
GRUB_CMDLINE_LINUX="intel_idle.max_cstate=1" в /etc/defaults/grub
+
Set BIOS Sleep Mode to "S3 linux"
@sitano
Copy link
Author

sitano commented Feb 25, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment