Так или иначе я не могу справиться, так приостановите мою Поверхность. Я попробовал, это ступает в ответ monty47 на Ubuntu 18.04 - Dell XPS13 9370 больше не приостанавливает на крышке близко:
cat /sys/power/mem_sleep
[s2idle]
Любая попытка записать, что файл с sudo бросает ошибку.
Я обновил GRUB:
cat /etc/default/grub
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'
GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash mem_sleep_default=deep"
GRUB_CMDLINE_LINUX=""
# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"
# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
Но тем не менее это не приостановит мадам. journalctl
шоу:
Dez 14 13:03:31 msf kernel: PM: suspend entry (s2idle)
Dez 14 13:03:33 msf kernel: PM: suspend exit
Я смог к
, изменяя менеджера по оформлению на lightdm, работая:
sudo apt install lightdm
и выбирающий lightdm или если lightdm уже установлен
sudo dpkg-reconfigure gdm3
и выбор lightdm
, Включают резюме
sudo blkid | grep swap
sudo -H gedit /etc/initramfs-tools/conf.d/resume
и добавляют
RESUME=UUID=<<UUID of swap partition>>
отредактированный/etc/default/grub
sudo -H gedit /etc/default/grub
и добавили UUID к серии
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=UUID=<UUID of swap partition>"
, пример
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=UUID=4b1c58e1-5bc5-4bce-a64e-e195cb38d01f"
Выполнение
sudo -H gedit /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla
вставка копии следующее содержание:
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=yes
[Re-enable hibernate by default in logind]
Identity=unix-user:*
Action=org.freedesktop.login1.hibernate;org.freedesktop.login1.handle-hibernate-key;org.freedesktop.login1;org.freedesktop.login1.hibernate-multiple-sessions;org.freedesktop.login1.hibernate-ignore-inhibit
ResultActive=yes
[Enable hibernate to be run via cron]
Identity=unix-user:*
Action=org.freedesktop.login1.hibernate;org.freedesktop.login1.hibernate-multiple-sessions
ResultAny=yes```
, Чтобы отключить Зимуйте: измените да на не в последних сериях каждого входа.
sudo depmod -a
sudo update-initramfs -u```
и перезагрузка