This forum is dedicated to advanced help and support :
Ask here your questions about advanced usage of Mageia. For example you may post here all your questions about network and automated installs, complex server configurations, kernel tuning, creating your own Mageia mirrors, and all tasks likely to be touchy even for skilled users.
by meomai » Feb 19th, '14, 15:13
in MGA3 I used to run with swap turned off ("swapoff -a" in /etc/rc.d/rc.local) and was able to hibernate (suspend to disk) from the Kde menu - i.e. leave->hibernate. I have a script in place at /usr/lib/systemd/system-sleep which takes care of enabling/disabling swap before/after hibernating
After upgrading to MGA4 Hibernate is missing from the leave menu. If I leave swap enabled Hibernate is shown in the menu. So there must be a check somewhere whether or not swap is available.
Where do I have to look? And how do I "force" the menu to show Hibernate
N.B. systemctl hibernate (as root) works just fine
-
meomai
-
- Posts: 6
- Joined: Feb 19th, '14, 15:00
by doktor5000 » Feb 19th, '14, 22:35
Any particular reason why you disable swap during boot?
-

doktor5000
-
- Posts: 18018
- Joined: Jun 4th, '11, 10:10
- Location: Leipzig, Germany
-
by meomai » Feb 20th, '14, 09:56
Other than not wanting to use swap? NO.
Before I just needed swap partition to be present in fstab else the KDE menu wouldn't show "Hibernate"- Obviously this has changed. The question is how I can bypass the test.
-
meomai
-
- Posts: 6
- Joined: Feb 19th, '14, 15:00
by doktor5000 » Feb 21st, '14, 01:27
Why not use something less hackish and keep swap enabled but set vm.swappiness to 0?
Then swap will not be used unless system is really low on memory, and KDE would show hibernate option.
-

doktor5000
-
- Posts: 18018
- Joined: Jun 4th, '11, 10:10
- Location: Leipzig, Germany
-
by meomai » Feb 21st, '14, 14:05
Yeah meanwhile i did that as a temp measure. Only after I resumed from disk free now shows
Swap: 8385888 368604 8017284
So the kernel doesn't care too much about vm.swappiness. Thats why (before) I used the solution of disabling swap and only enabling it for hibernation.
I guess I have to keep on looking for where KDE decides to (not) show "Hibernate" in the menu
-
meomai
-
- Posts: 6
- Joined: Feb 19th, '14, 15:00
Return to Advanced support
Who is online
Users browsing this forum: No registered users and 1 guest