Page 1 of 1
[Solved] Mageia 5 doesn't hibernate and sleep

Posted:
Sep 30th, '15, 20:05
by lightblue
Hi everybody,
I'm going to use Mageia 5.
My main problem is that it doesn't hibernate (if i press hibernate key from application launcher, it does nothing except requiring to enter my PassWord again- like when i lock my PC.)
sleep either doesn't do anything, or when it goes to sleep, immediately wakes up and show a black screen.
I think the problem is because of my VGA Driver, cuz, for example, if i go to tty2 by pressing Ctrl+Alt+F2, when I come back to tty1 by pressing Ctrl+Alt+F1, i again only see a black screen.
My desktop spec:
Mageia 5,
Cpu: intel dual core,
vga: nVidia 450 gtx,
HDD: SSD 120GB,
Ram: 8GB
Thanks
Re: Mageia 5 doesn't hibernate and sleep

Posted:
Oct 1st, '15, 01:41
by doktor5000
Hi, what desktop environment and what Mageia installation medium did you use?
Re: Mageia 5 doesn't hibernate and sleep

Posted:
Oct 1st, '15, 10:25
by lightblue
doktor5000 wrote:Hi, what desktop environment and what Mageia installation medium did you use?
Hi doctor,
i'm using KDE and by Mageia installation, if i got it right, i used USB and UEFI. (did you mean that?, sorry if i got it wrong).
Thanks
Re: Mageia 5 doesn't hibernate and sleep

Posted:
Oct 1st, '15, 19:28
by doktor5000
No, I meant which of the download options did you choose from
https://www.mageia.org/downloads/ ?
One of the live CD/DVDs or the free DVD ... ?
Anyways, please show the output of the following commands, run as normal user:
- Code: Select all
ps -ef|grep -v grep|grep polkit
cat /run/systemd/users/$(id -u)
pkcheck --action-id org.freedesktop.login1.suspend --process $$
systemd-inhibit --list
pkexec whoami
For the last command, you should be asked for your root password in a popup - please enter it.
And as root, please try the following and describe the results here, or past the output you get here
- Code: Select all
systemctl suspend
systemctl hibernate
Please also try as normal user the following:
- Code: Select all
qdbus org.kde.Solid.PowerManagement /org/freedesktop/PowerManagement Suspend
Re: Mageia 5 doesn't hibernate and sleep

Posted:
Oct 2nd, '15, 15:04
by lightblue
Hi Doktor,
Thanks for the reply

No, classic installation x64.
doktor5000 wrote:Anyways, please show the output of the following commands, run as normal user:
- Code: Select all
ps -ef|grep -v grep|grep polkit
cat /run/systemd/users/$(id -u)
pkcheck --action-id org.freedesktop.login1.suspend --process $$
systemd-inhibit --list
pkexec whoami
For the last command, you should be asked for your root password in a popup - please enter it.
- Code: Select all
[lightblue@localhost ~]$ ps -ef|grep -v grep|grep polkit
polkitd 3576 1 0 15:23 ? 00:00:00 /usr/lib/polkit-1/polkitd --no-debug
lightblue 3848 1 0 15:23 ? 00:00:00 /usr/lib64/kde4/libexec/polkit-kde-authentication-agent-1
[lightblue@localhost ~]$ cat /run/systemd/users/$(id -u)
# This is private data. Do not parse.
NAME=lightblue
STATE=active
RUNTIME=/run/user/1000
SERVICE=user@1000.service
SLICE=user-1000.slice
DISPLAY=c1
REALTIME=1443786795375805
MONOTONIC=98250753
SESSIONS=c1
SEATS=seat0
ACTIVE_SESSIONS=c1
ONLINE_SESSIONS=c1
ACTIVE_SEATS=seat0
ONLINE_SEATS=seat0
[lightblue@localhost ~]$ pkcheck --action-id org.freedesktop.login1.suspend --process $$
[lightblue@localhost ~]$ systemd-inhibit --list
Who: PowerDevil (UID 1000/lightblue, PID 3561/kded4)
What: handle-power-key:handle-suspend-key:handle-hibernate-key:handle-lid-switch
Why: KDE handles power events
Mode: block
Who: Telepathy (UID 1000/lightblue, PID 3716/mission-control)
What: shutdown:sleep
Why: Disconnecting IM accounts before suspend/shutdown...
Mode: delay
2 inhibitors listed.
[lightblue@localhost ~]$ pkexec whoami
root
doktor5000 wrote:And as root, please try the following and describe the results here, or past the output you get here
- Code: Select all
systemctl suspend
systemctl hibernate
"systemctl suspend" put pc on sleep and immediately it turned on
"systemctl hibernate" put pc on hibernate, but i turned my pc on, it took a lot to got booted and again i didn't have any screen and had to do hard reset.
doktor5000 wrote:Please also try as normal user the following:
- Code: Select all
qdbus org.kde.Solid.PowerManagement /org/freedesktop/PowerManagement Suspend
this one put pc on sleep and immediately it turned on, but again i didn't have any screen, but i have mouse cursor and i did ctrl+alt + backspace
thanks
Re: Mageia 5 doesn't hibernate and sleep

Posted:
Oct 5th, '15, 15:21
by lightblue
is there any way to change Nvidia driver with nouveau?
i think nouveau is an opensource one,
maybe that fix the problem.
Re: Mageia 5 doesn't hibernate and sleep

Posted:
Oct 5th, '15, 16:35
by doktor5000
Sure, run drakx11 and select Xorg => nouveau under "Graphics card" :
http://doc.mageia.org/mcc/5/en/content/XFdrake.html
Re: Mageia 5 doesn't hibernate and sleep

Posted:
Oct 6th, '15, 23:15
by lightblue
Thanks doktor for your reply,
Actually i did that and moved to nouveau, but it made things worse, thus I revert it to Nvidia again,
but this time i set my resolution (it was automatic) and maybe made some small changes (which i don't remember exactly). and finally it got solved and now magically both Hibernation and Sleep work.
However, I don't know how and why

Re: Mageia 5 doesn't hibernate and sleep

Posted:
Oct 6th, '15, 23:16
by lightblue
I'd like to thank you again,
and ask you whether we should title this thread as "SOLVED" or not?
and what would be the solution? is it changing the resolutions?
Thanks
Re: Mageia 5 doesn't hibernate and sleep

Posted:
Oct 6th, '15, 23:31
by doktor5000
lightblue wrote:and ask you whether we should title this thread as "SOLVED" or not?
and what would be the solution? is it changing the resolutions?
Yes, and I have no clue what fixed it on your box.
Re: Mageia 5 doesn't hibernate and sleep

Posted:
Oct 8th, '15, 13:13
by lightblue
Thanks Doktor,
Can i ask you why some programs like FireFox prevent Mageia goes to sleep or Hibernation? and how can i change that?
for example, i have to close firefox to go to hibernation or sleep, otherwise, either it won't go sleeping or hibernating, or my system gets turned on immediately after going to such states.
Thanks
Re: [Solved] Mageia 5 doesn't hibernate and sleep

Posted:
Oct 8th, '15, 17:27
by doktor5000
You can ask but I have no idea. Firefox doesn't prevent suspending here, and I've not heard of such an issue before.
Maybe some video or sound is playing so the session is still considered active but that shouldn't be a problem.
Re: [Solved] Mageia 5 doesn't hibernate and sleep

Posted:
Oct 10th, '15, 11:07
by lightblue
Yes, that's strange,
i dunno why, but when the firefox is open, it won't into hibernation or sleep.
