LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 03-24-2019, 03:11 PM   #1
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,499
Blog Entries: 2

Rep: Reputation: 68
how to add hibernate option to KDE menu ?


Hi there !

Both "pm-hibernate" and "systemctl hibernate" works great on my machine but I didn't have a hibernate option in KDE menu, only "Suspend", "Reboot" and "Power off".

So, Googling returned a instruction to put the following content to "/etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla":

Code:
[Re-enable hibernate by default in upower]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=yes

[Re-enable hibernate by default in logind]
Identity=unix-user:*
Action=org.freedesktop.login1.hibernate;org.freedesktop.login1.handle-hibernate-key;org.freedesktop.login1;org.freedesktop.login1.hibernate-multiple-sessions;org.freedesktop.login1.hibernate-ignore-inhibit
Indeed, now I have a "Hibernate" option along "Suspend/reboot/poweroff" but that menu entry does not hibernate.
Instead, looks like it simply poweroff the machine, although as I already mentioned, "sudo pm-hibernate" and "sudo systemctl hibernate" works just as expected.

I am running Ubuntu 18.10 (KUbuntu/KDE Plasma).

PS1: I founded a more updated procedure here but with the same results.
PS2: I just tried the GNOME DE and on GNOME hibernate works as expected. Kinda. I didn't find a menu entry to hibernate, but in Configuration/Power I change the default behavior for the power button to Hibernate. Than, pressing the power button less than 2 s, successfully hibernate the machine. So I think it is a KDE issue only.

Last edited by marozsas; 03-25-2019 at 03:38 PM.
 
Old 03-25-2019, 03:47 PM   #2
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
If you were following the instructions at https://fossbytes.com/enable-disable...tu-power-menu/ , you are a missing a final ResultActive=yes from com.ubuntu.enable-hibernate.pkla.
 
  


Reply

Tags
hibernate, kde plasma, menu



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Hibernate one distro, de-hibernate another Ulysses_ Linux - Software 8 12-28-2010 09:34 AM
13.1 Beta1 :: KDE SC 4.4.3 :: pm-hibernate works, KDE hibernate just locks the screen zordrak Slackware 7 05-12-2010 03:55 AM
cli hibernate works but gnome panel hibernate fails BCarey Linux - Desktop 1 06-08-2007 10:21 AM
gnome: add hibernate to log out menu slowly Linux - Software 0 06-06-2005 10:23 PM
i want to add a new option to right-click menu list of a file in KDE kulkedar Linux - General 2 04-03-2005 08:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 04:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration