[Solved] Mageia 5 doesn't hibernate and sleep

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

[Solved] Mageia 5 doesn't hibernate and sleep

Postby lightblue » Sep 30th, '15, 20:05

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
Last edited by lightblue on Oct 8th, '15, 13:14, edited 1 time in total.
User avatar
lightblue
 
Posts: 45
Joined: Jun 10th, '14, 20:52

Re: Mageia 5 doesn't hibernate and sleep

Postby doktor5000 » Oct 1st, '15, 01:41

Hi, what desktop environment and what Mageia installation medium did you use?
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18059
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Mageia 5 doesn't hibernate and sleep

Postby lightblue » Oct 1st, '15, 10:25

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
User avatar
lightblue
 
Posts: 45
Joined: Jun 10th, '14, 20:52

Re: Mageia 5 doesn't hibernate and sleep

Postby doktor5000 » Oct 1st, '15, 19:28

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
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18059
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Mageia 5 doesn't hibernate and sleep

Postby lightblue » Oct 2nd, '15, 15:04

Hi Doktor,
Thanks for the reply :)

doktor5000 wrote: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 ... ?

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
User avatar
lightblue
 
Posts: 45
Joined: Jun 10th, '14, 20:52

Re: Mageia 5 doesn't hibernate and sleep

Postby lightblue » Oct 5th, '15, 15:21

is there any way to change Nvidia driver with nouveau?
i think nouveau is an opensource one,
maybe that fix the problem.
User avatar
lightblue
 
Posts: 45
Joined: Jun 10th, '14, 20:52

Re: Mageia 5 doesn't hibernate and sleep

Postby doktor5000 » Oct 5th, '15, 16:35

Sure, run drakx11 and select Xorg => nouveau under "Graphics card" : http://doc.mageia.org/mcc/5/en/content/XFdrake.html
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18059
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Mageia 5 doesn't hibernate and sleep

Postby lightblue » Oct 6th, '15, 23:15

doktor5000 wrote:Sure, run drakx11 and select Xorg => nouveau under "Graphics card" : http://doc.mageia.org/mcc/5/en/content/XFdrake.html


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 :o
User avatar
lightblue
 
Posts: 45
Joined: Jun 10th, '14, 20:52

Re: Mageia 5 doesn't hibernate and sleep

Postby lightblue » Oct 6th, '15, 23:16

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
User avatar
lightblue
 
Posts: 45
Joined: Jun 10th, '14, 20:52

Re: Mageia 5 doesn't hibernate and sleep

Postby doktor5000 » Oct 6th, '15, 23:31

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.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18059
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Mageia 5 doesn't hibernate and sleep

Postby lightblue » Oct 8th, '15, 13:13

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
User avatar
lightblue
 
Posts: 45
Joined: Jun 10th, '14, 20:52

Re: [Solved] Mageia 5 doesn't hibernate and sleep

Postby doktor5000 » Oct 8th, '15, 17:27

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.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18059
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: [Solved] Mageia 5 doesn't hibernate and sleep

Postby lightblue » Oct 10th, '15, 11:07

;)
Yes, that's strange,
i dunno why, but when the firefox is open, it won't into hibernation or sleep.
:?
Last edited by doktor5000 on Oct 10th, '15, 11:18, edited 1 time in total.
Reason: removed fullquote
User avatar
lightblue
 
Posts: 45
Joined: Jun 10th, '14, 20:52


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest