Я использую DELL Inspiron 1525.
Я установил крышку в спящий режим. После пробуждения все мои ранее открытые процессы были закрыты, и мне показывали пустой рабочий стол.
Какие-нибудь известные решения для этого?
Спасибо.
Возможно, вы страдаете от этой проблемы . Решение, предоставленное в комментариях, работает для меня (также Inspiron 1525) до сих пор.
Решение из erny (erevilla) :
* Create a file /etc/pm/sleep.d/50_custom with the following content:
--8<-- cut --8<-- cut --8<-- cut --8<-- cut --8<-- cut --8<-- cut --8<--
#!/bin/sh
# Action script to shutdown modules before suspending.
# before a hibernate
#
# Copyright: Copyright (c) 2009 Ernesto Revilla
# License: GPL-2
#
PATH=/sbin:/usr/sbin:/bin:/usr/bin
case "${1}" in
suspend|suspend_hybrid|hibernate)
rmmod uvcvideo
rmmod usbhid
rmmod psmouse
;;
resume|thaw)
modprobe uvcvideo
modprobe usbhid
modprobe psmouse
;;
esac
--8<-- cut --8<-- cut --8<-- cut --8<-- cut --8<-- cut --8<-- cut --8<--
Теперь необходимо сделать исполняемый скрипт:
sudo chmod +x /etc/pm/sleep.d/50_custom