发新帖

How to enable hibernate in Deepin?

darlei000 / 2017-9-3 13:19
浏览: 4007 / 回复: 13
查看: 4007|回复: 13

How to enable hibernate in Deepin?

[复制链接]
收藏
跳转到指定楼层
How do I enable such a function?

7

主题

237

帖子

1721

积分

-rw-rw-r--

Rank: 5Rank: 5

积分
1721
oscararg 发表于 2017-9-3 17:01:56 | 显示全部楼层
sudo apt install kshutdown or search for it on Deepin Store. sudo apt install gnome-pie will help too.

0

主题

3

帖子

10

积分

-r--------

Rank: 1

积分
10
tset-noitamotua 发表于 2017-10-23 22:23:22 | 显示全部楼层
Hi, thanks for suggesting KShutdown. Looks promising. But it does not offer an event like "close lid" or "lid closed".  There is the option "when selected aplication exits". Any idea which application exits when a notebook's lid is closed?

0

主题

3

帖子

10

积分

-r--------

Rank: 1

积分
10
tset-noitamotua 发表于 2017-10-23 23:36:10 | 显示全部楼层
KShutdown seems not to work properly on Deepin. It tries to shot down but after 1 or 2 seconds I am boack on my lock screen :(

7

主题

237

帖子

1721

积分

-rw-rw-r--

Rank: 5Rank: 5

积分
1721
oscararg 发表于 2017-10-24 04:44:01 | 显示全部楼层
Strange to say it works perfectly for me, I can even suspend or hibernate with keyboard buttons or the case ones.
I've made some research anyways. To hibernate you need to have a swap partition of the same memory (or at least 50% of what your ram has), use Gparted to see if you have swap and create one if you don't have it.
Check your BIOS too, if it has a "enable or disable sleep mode", even some of them has things like "sleep by keyboard, power on by keyboard or mouse, etc".
There is a command to hibernate too... systemctl hibernate but, you need swap, and as I see, Deepin doesn't create a swap partition when installed, only the system and grub one.

13

主题

29

帖子

190

积分

-r--------

Rank: 1

积分
190
pludimas 发表于 2017-11-5 03:33:48 | 显示全部楼层
How I automatically go to hibernate my notebook when the battery at 7%?

38

主题

811

帖子

3419

积分

lr--------

积分
3419
melodyzou 发表于 2017-11-7 17:32:14 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
欢迎来到深度科技社区!


发帖求助前,请先阅读:深度操作系统新手指引(FAQ)

13

主题

29

帖子

190

积分

-r--------

Rank: 1

积分
190
pludimas 发表于 2017-11-8 02:22:29 | 显示全部楼层
systemctl hibernate switch me to login screen. sudo pm-hibernate and sudo s2disk work fine. I dont need to hibernate manually. I need go to hibernate automaticaly at battery critical level, like in Windows. This is dont work in Deepin. I cant enable hibernation menu in "turn off" turnoff interface.

3

主题

62

帖子

911

积分

-rw-r--r--

Rank: 4

积分
911
meda 发表于 2017-11-8 04:45:45 | 显示全部楼层
Edited by meda at 2017-11-8 04:47

me to I use hibernate most of all I dont shutdown system couple days, it must be better hibernate on power.  Beside I dont use swap partition because There are 16 GB RAM

  1. sudo systemctl hibernate
  2. Failed to hibernate system via logind: Sleep verb not supported
复制代码


I guess Elementary OS support hibernate on th RAM

主题

帖子

0

积分

-r--------

Rank: 1

积分
0
torquenstain 发表于 2017-12-17 05:22:54 | 显示全部楼层
I was able to just make hibernation work on my laptop like this:

1) created swap partition
2) run
  1. sudo fdisk -l
复制代码
to check swap partition (which was /dev/nvme0n1p5 in my case)
3) open /etc/default/grub
4) find GRUB_CMDLINE_LINUX_DEFAULT= line - these are the option added to the regular boot menu choices
5) add the resume=/dev/sda6 option to the list (with correct swap partition path) like this:
Before:
  1. GRUB_CMDLINE_LINUX_DEFAULT="splash quiet nouveau.modeset=0"
复制代码

After:
  1. GRUB_CMDLINE_LINUX_DEFAULT="splash quiet nouveau.modeset=0 resume=/dev/nvme0n1p5"
复制代码

6) save file
7) run
  1. sudo update-grub2
复制代码

and that's it! :)

now I can hibernate Deepin by the
  1. systemctl hibernate
复制代码
command

I hope someone will find this helpful :)

7

主题

237

帖子

1721

积分

-rw-rw-r--

Rank: 5Rank: 5

积分
1721
oscararg 发表于 2017-12-17 22:13:38 | 显示全部楼层
meda replied at 2017-11-7 17:45
me to I use hibernate most of all I dont shutdown system couple days, it must be better hibernate on ...

If you installed Elementary without doing a modified installation, it automatically creates a swap partition. Check it using Gparted.

3

主题

62

帖子

911

积分

-rw-r--r--

Rank: 4

积分
911
meda 发表于 2017-12-18 00:11:19 | 显示全部楼层
I dont remember this may be you are right @oscararg

51

主题

335

帖子

1933

积分

-rw-rw-r--

Rank: 5Rank: 5

积分
1933
sarojpoudel33 发表于 2017-12-19 09:21:34 | 显示全部楼层

Dee

Edited by sarojpoudel33 at 2017-12-19 09:34

Deepin Will Automatically Suspend all programe while it reach 5% battery.  There is no option for Hibernate in Deepin so you can Save Battery While Inactivity. Go To Power management and make 1 min for  Monitor will suspend after 1 Minute.         -  From Nepal

Bugs Finder and Suggester on Deepin OS.
Deepin Nepal Facebook Page :- Deepin Nepal

13

主题

29

帖子

190

积分

-r--------

Rank: 1

积分
190
pludimas 发表于 2017-12-20 19:56:41 | 显示全部楼层
Hibernation is BIG problem in all linux distribution. If I not plug AC cable at critical battery level, Deepin (and other) simply turnoff pc with data lost. :(
I can hybernate OS manually, but i dont know how hibernate system automatically at 5% battery level for example. May be developers fix this or enable hibernation settings.
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回列表 返回版块 返回顶部