Bug 30182 - provide desktop icons for suspend and hibernate
Summary: provide desktop icons for suspend and hibernate
Status: RESOLVED INVALID
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 8
Hardware: All Linux
Priority: Normal enhancement
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-17 17:24 CET by Elmar Stellnberger
Modified: 2022-03-20 20:51 CET (History)
2 users (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments
suspend.tar - all the necessary files (here with path /home/shell) (60.00 KB, application/x-tar)
2022-03-17 17:25 CET, Elmar Stellnberger
Details
log out menu xfce (131.07 KB, image/png)
2022-03-17 18:36 CET, sturmvogel
Details
power setting XFCE (82.40 KB, image/png)
2022-03-17 18:48 CET, sturmvogel
Details
session setting XFCE (95.79 KB, image/png)
2022-03-17 18:49 CET, sturmvogel
Details
menu starter -> propertys (115.78 KB, image/png)
2022-03-17 19:17 CET, sturmvogel
Details
xfce4 Power manager settings. (77.11 KB, image/png)
2022-03-17 21:39 CET, Dave Hodgins
Details

Description Elmar Stellnberger 2022-03-17 17:24:12 CET
It is not only an annoyance if you can not suspend or hibernate your machine, it wastes precious energy. For console users today you don´t have more to do than to enter "systemctl suspend" or "systemctl hibernate" or hybrid-sleep/suspend-then-hibernate. However many new Linux users don´t know and that is why I wanna have these default targets in /usr/share/applications as .desktop. See for my attachement on how these files can look like. Even for console-affine users it gets some way tedious having to type that all the way while some nice iconed desktop buttons are a real pleasure. For Xfce you simply have to add a starter type suspend and get the desktop links displayed to select them. I have included notes about the origin and license of the used icons in origin.msg. The -i is necessary when you have more than on vtXX open.
Comment 1 Elmar Stellnberger 2022-03-17 17:25:02 CET
Created attachment 13180 [details]
suspend.tar - all the necessary files (here with path /home/shell)
Comment 2 Elmar Stellnberger 2022-03-17 17:26:17 CET
I will post this report, not for developers but for users who search for suspend/standby/hibernate issues: https://bugs.mageia.org/show_bug.cgi?id=30180
Comment 3 sturmvogel 2022-03-17 18:36:40 CET
Created attachment 13181 [details]
log out menu xfce

Why don't you just use the functions provided by your desktop environment? Here the example from XFCE. For Plasma and Gnome similar stuff exists. You only need to go to settings and enable them.
Comment 4 sturmvogel 2022-03-17 18:37:45 CET
Tending to close this bug report INVALID.
Comment 5 Elmar Stellnberger 2022-03-17 18:39:53 CET
I don´t find where that is.
Comment 6 Elmar Stellnberger 2022-03-17 18:41:36 CET
There is always a logout and shutdwon button, also under Mate, but no suspend, hibernate, suspend-hybrid and suspend-then-hibernate.
Comment 7 Elmar Stellnberger 2022-03-17 18:43:48 CET
At best there should be an own desktop folder where these links belong like Powermanagement (in addition to Education, Internet, etc.). Then there would be something that would be available for all desktop environments in the same place even without any configuration.
Comment 8 Elmar Stellnberger 2022-03-17 18:44:22 CET
You could also drag from that desktop folder into your click start bar.
Comment 9 sturmvogel 2022-03-17 18:48:50 CET
Created attachment 13182 [details]
power setting XFCE

Each desktop environment has it's own design philosphy. So it won't happen to have "one-for-all" 

BTW it's not that hard to find the settings in XFCE.
Comment 10 sturmvogel 2022-03-17 18:49:12 CET
Created attachment 13183 [details]
session setting XFCE
Comment 11 Elmar Stellnberger 2022-03-17 18:57:46 CET
I know xfce4-settings-manager and  I have searched it now three times but I can not find anything to enable suspend and hibernate buttons.
Comment 12 Elmar Stellnberger 2022-03-17 18:58:36 CET
settings-editor
Comment 13 Elmar Stellnberger 2022-03-17 18:59:41 CET
Yes show hibernate and show suspend are checked but it does not display that.
Comment 14 Dave Hodgins 2022-03-17 19:04:36 CET
In xfce4, right click on the menu icon and select Properties.
Select the Commands tab, and enable the wanted commands (restart, shut down,
suspend, hibernate, logout).
The icons are then present at the top of the menu.

In mate, select system, then shutdown. The suspend/hibernate/restart/cancel/
shutdown buttons are then shown in a dialog with a timeout.

Closing as invalid as this is standard desktop environment settings, not a Mageia
bug.

Note there must be a large enough swap available for hibernate to be used.

CC: (none) => davidwhodgins

Comment 15 Elmar Stellnberger 2022-03-17 19:04:53 CET
I have kept installing Xfce with many different distributions, many different versions over years, but no suspend and hibernate buttens where never there as far as I remember back.
Comment 16 Elmar Stellnberger 2022-03-17 19:06:24 CET
I can click on the menu starter, right click, select properties but there is only one page and no command tab.
Comment 17 sturmvogel 2022-03-17 19:17:39 CET
Created attachment 13184 [details]
menu starter -> propertys

Make sure you have task-xfce and some additional packages according your need installed.
Comment 18 sturmvogel 2022-03-17 19:26:14 CET
(In reply to Dave Hodgins from comment #14)
> Closing as invalid as this is standard desktop environment settings, not a
> Mageia bug.

Resolution: (none) => INVALID
Status: NEW => RESOLVED

Comment 19 Dave Hodgins 2022-03-17 20:55:55 CET
(In reply to Elmar Stellnberger from comment #16)
> I can click on the menu starter, right click, select properties but there is
> only one page and no command tab.

Right click on the Mageia menu icon, don't left click on it first.

The commands are part of the xfce4-session package which is required by
task-xfce4-minimal.
Comment 20 Dave Hodgins 2022-03-17 20:56:43 CET
I'm using the default Wisker Menu, if that matters.
Comment 21 Elmar Stellnberger 2022-03-17 21:02:33 CET
task-xfce-4.14-2.mga8 is installed and yes I have right-clicked.

Resolution: INVALID => (none)
Status: RESOLVED => REOPENED

Comment 22 Dave Hodgins 2022-03-17 21:39:57 CET
Created attachment 13185 [details]
xfce4 Power manager settings.

Check your power manager settings, as per this attachment.
Comment 23 sturmvogel 2022-03-17 21:46:39 CET
This is the setting which i already showed in comment 9.

I did an additional test installation of XFCE in in VB. Completely stripped down installation, not more then XFCE ticked. All the shown functionalitys and menus are available by default. So this bug report is still invalid and his user settings or his installation itself is borked.
Comment 24 sturmvogel 2022-03-17 21:55:00 CET
Is xfce4-whiskermenu-plugin installed? Because if this is not installed, this is the only case where i can recreate something like comment 16. Only one page. But without any pictures from Elmar we only can guess what he is meaning or doing.
Comment 25 Lewis Smith 2022-03-18 09:56:05 CET
This bug is superfluous, we are all (Mageia side) agreed.
For confirmation, I have just done tests with the following 7 desktops, and they all, in their different ways, offer hibernate & sleep/suspend out-of-the-box. I have no recollection of fiddling anything, but may have added to some Systrays.

- CINNAMON menu 'switch off' icon ->
Suspend|Hibernate|Restart|Shutdown
- GNOME Leave-Poweroff/Logout ->
Suspend|Restart|PowerOff [NO Hibernate, desktop PC]
- LXDE menu Logout & Systray 'leave' icon ->
Shutdown|Reboot|Suspend|Hibernate|...
- LxQt menu Leave ->
Hibernate|Reboot|Shutdown|Suspend|...
- MATE Ctl/Alt/Del & menu System-Shutdown ->
Suspend|Hibernate|Restart|Shutdown
- PLASMA Ctl/Alt/Del & Systray 'leave' icon & menu Power/Session & menu Logut icon & menu Restart icon & menu Shutdown icon ->
Sleep|Hibernate|Restart|Shutdown|...
- XFCE Ctl/Alt/Del & menu Logout icon ->
Restart|Shutdown|Suspend|Hibernate|Hybrid Sleep|...

Elmar, please leave this bug closed. It still remains available for comments.

CC: (none) => lewyssmith
Resolution: (none) => INVALID
Status: REOPENED => RESOLVED

Comment 26 Elmar Stellnberger 2022-03-18 16:02:59 CET
  Well, in deed you can enable suspend and hibernate if you have the Whisker menu rather than the normal application menu. To my mind it would be good to have an option for suspend, hibernate, hybrid-suspend and suspend-then-hibernate also for users who prefer the traditional menu. Besides this I wanna ask if suspend or at least hibernate should not be enabled by default because most users won´t search in right click and sub-menus to enable suspend. If it is not there by default users new to Linux will believe that it is not supported. On an old machine where suspend may not work the user can still disable it by hand. - reopening once more  for this comment to be at your consideration -

Resolution: INVALID => (none)
Status: RESOLVED => REOPENED

Comment 27 sturmvogel 2022-03-18 16:26:47 CET
See provided comments.

(In reply to Lewis Smith from comment #25)
> Elmar, please leave this bug closed. It still remains available for comments.

Resolution: (none) => INVALID
Status: REOPENED => RESOLVED

Comment 28 sturmvogel 2022-03-18 16:31:37 CET
If you don't like the way how XFCE has designed this, create an upstream request at XFCE bugtracker. Mageia won't change anything because each DE provides these basic functions.
These functions  are provided by all desktop environments for at least a decade or two (if not even more).
Comment 29 sturmvogel 2022-03-18 16:56:22 CET
(In reply to Elmar Stellnberger from comment #26)
> ...if you have the Whisker menu rather than the normal application menu.... If  > it is not there by default users new to Linux will believe that it is not 
> supported. 

NO! If you have a fresh installation of MGA8 XFCE, Whisker menu and all it's options are the standard. So my guess was completely right:

(In reply to sturmvogel from comment #23)
> ...his (Elmars) user settings or his (Elmars) installation itself is borked....

That means you disabled/borked/manipulated a standard setting of Mageia XFCE yourself, can't remember that you did and now complain about it.
Comment 30 Lewis Smith 2022-03-20 20:20:02 CET
Agreeing with the essence of your previous comment:

(In reply to Elmar Stellnberger from comment #26)
>   Well, in deed you can enable suspend and hibernate if you have the Whisker
> menu rather than the normal application menu
I do not know what you mean by this. My test in comment 25 was with 'standard' configurations from the Classic ISO install. I have not specifically added Whisker menu anywhere.

> To my mind it would be good to
> have an option for suspend, hibernate, hybrid-suspend and
> suspend-then-hibernate also for users who prefer the traditional menu.
I imagine this is what I have.

> Besides this I wanna ask if suspend or at least hibernate should not be
> enabled by default because most users won´t search in right click and
> sub-menus to enable suspend.
I did not mess with right-clicking anything.
Comment 31 Elmar Stellnberger 2022-03-20 20:42:38 CET
Whisker menu is now what you get by default after install. It is the Windows 10 like menu. However I prefer the traditional menu which you can get by configuring your menu bar and selecting "add"->"application menu" under "objects" (and possibly delete for the Whisker menu). The issue I am experiencing is that there is no suspend/hibernate support with the traditional menu and that is why I wanted to ask you to include a few shortcuts for suspend & hibernate under /usr/share/applications which can then be enabled by "add"->"starter" and by typing something like "suspend" to get the right item viewed. The new items will remain invisible until you enable them explicitly like this and thus they will not garble any menu. They should be ready to user under any desktop environment.
Comment 32 sturmvogel 2022-03-20 20:51:19 CET
This is nothing what Mageia can or will change. If you want something like this you have to ask at the respeective Bugzilla of your desktop environment. And users that change a environment in a way that it differs completely from the standard setting, should be able to to something like this on their own.

Note You need to log in before you can comment on or make changes to this bug.