The officially official Devuan Forum!

You are not logged in.

#1 2017-05-14 19:35:50

afuerst
Member
Registered: 2017-05-14
Posts: 15

MATE Desktop - Suspend and Hibernate buttons missing

I started to upgrade my systems from Debian Jessie to Devuan Jessie. The migration process wasn't as smooth as I hoped. In the first step, it looked well, every system had different issues but they all looked simple. On one system, I couldn't get rid of systemd (which is of course the main reason to switch smile ), on two other systems I was missing the "Shut Down..."-menu from the MATE-System menu.
I solved all issues by purging most of the packages (all containing "mate", "gnome", "pol.*kit", "xserver" and "xorg") and reinstalling them.
This way I could solve all issues, but I am still missing the buttons "Suspend" and "Hibernate" in the Shutdown-window.
By executing the command

dbus-send --system --print-reply --dest="org.freedesktop.UPower" /org/freedesktop/UPower org.freedesktop.UPower.Suspend

I verified suspend is working.
Does anyone have a solution to this?

Last edited by afuerst (2017-05-14 19:36:22)

Offline

#2 2017-05-14 21:52:01

AntoFox
Member
Registered: 2016-12-03
Posts: 6

Re: MATE Desktop - Suspend and Hibernate buttons missing

hi
what version of mate and upower you use?
some problems can be caused by packages not upgraded to systemd-free version

puts this code in your terminal:

dpkg-query -L upower

and

 mate-bout 

and show us the results

Offline

#3 2017-05-15 18:12:39

afuerst
Member
Registered: 2017-05-14
Posts: 15

Re: MATE Desktop - Suspend and Hibernate buttons missing

Here are the results:

$ dpkg-query -L upower
/.
/lib
/lib/udev
/lib/udev/rules.d
/lib/udev/rules.d/95-upower-battery-recall-lenovo.rules
/lib/udev/rules.d/95-upower-battery-recall-fujitsu.rules
/lib/udev/rules.d/95-upower-csr.rules
/lib/udev/rules.d/95-upower-battery-recall-toshiba.rules
/lib/udev/rules.d/95-upower-battery-recall-gateway.rules
/lib/udev/rules.d/95-upower-battery-recall-ibm.rules
/lib/udev/rules.d/95-upower-battery-recall-dell.rules
/lib/udev/rules.d/95-upower-hid.rules
/lib/udev/rules.d/95-upower-wup.rules
/usr
/usr/share
/usr/share/doc
/usr/share/doc/upower
/usr/share/doc/upower/changelog.Debian.gz
/usr/share/doc/upower/copyright
/usr/share/doc/upower/NEWS.gz
/usr/share/doc/upower/AUTHORS
/usr/share/doc/upower/TODO.Debian
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/upower.1.gz
/usr/share/man/man7
/usr/share/man/man7/UPower.7.gz
/usr/share/man/man8
/usr/share/man/man8/upowerd.8.gz
/usr/share/dbus-1
/usr/share/dbus-1/interfaces
/usr/share/dbus-1/interfaces/org.freedesktop.UPower.KbdBacklight.xml
/usr/share/dbus-1/interfaces/org.freedesktop.UPower.QoS.xml
/usr/share/dbus-1/interfaces/org.freedesktop.UPower.xml
/usr/share/dbus-1/interfaces/org.freedesktop.UPower.Wakeups.xml
/usr/share/dbus-1/interfaces/org.freedesktop.UPower.Device.xml
/usr/share/dbus-1/system-services
/usr/share/dbus-1/system-services/org.freedesktop.UPower.service
/usr/share/polkit-1
/usr/share/polkit-1/actions
/usr/share/polkit-1/actions/org.freedesktop.upower.policy
/usr/share/polkit-1/actions/org.freedesktop.upower.qos.policy
/usr/share/locale
/usr/share/locale/fr
/usr/share/locale/fr/LC_MESSAGES
/usr/share/locale/fr/LC_MESSAGES/upower.mo
/usr/share/locale/it
/usr/share/locale/it/LC_MESSAGES
/usr/share/locale/it/LC_MESSAGES/upower.mo
/usr/share/locale/pl
/usr/share/locale/pl/LC_MESSAGES
/usr/share/locale/pl/LC_MESSAGES/upower.mo
/usr/share/locale/sv
/usr/share/locale/sv/LC_MESSAGES
/usr/share/locale/sv/LC_MESSAGES/upower.mo
/usr/lib
/usr/lib/upower
/usr/lib/upower/upowerd
/usr/bin
/usr/bin/upower
/var
/var/lib
/var/lib/upower
/etc
/etc/UPower
/etc/UPower/UPower.conf
/etc/dbus-1
/etc/dbus-1/system.d
/etc/dbus-1/system.d/org.freedesktop.UPower.conf

and

$ dpkg-query -L mate-bout
dpkg-query: package 'mate-bout' is not installed

What is "mate-bout"? I can't find it neither as a package nor as a file in any package (I used debian package search on contents - this doesn't exist for devuan yet afaik).
upower seems to be updated:

$ apt-show-versions upower
upower:amd64/jessie 1:0.9.23-2+devuan1.2 uptodate

Offline

#4 2017-05-15 19:33:53

greenjeans
Member
Registered: 2017-04-07
Posts: 355
Website

Re: MATE Desktop - Suspend and Hibernate buttons missing

afuerst wrote:

What is "mate-bout"? I can't find it neither as a package nor as a file in any package (I used debian package search on contents - this doesn't exist for devuan yet afaik).

typo, Antofox meant to say :

mate-about

https://sourceforge.net/projects/vuu-do/
Vuu-do GNU/Linux, minimal 64 and 32 bit Devuan-based openbox and mate systems to build on, maximal versions if you prefer your linux fully-loaded.

Please donate to support Devuan and init freedom! https://devuan.org/os/donate

Offline

#5 2017-05-15 20:01:31

afuerst
Member
Registered: 2017-05-14
Posts: 15

Re: MATE Desktop - Suspend and Hibernate buttons missing

mate-about pops up a window with:

MATE Desktop Environment 1.8.1
MATE is a Free, usable, stable, accessible desktop environment for the Unix-like family of operating systems.
Copyright © 1997-2011 GNOME developers
Copyright © 2011 Perberos
Copyright © 2012-2014 MATE developers
http://www.mate-desktop.org/

And a "Credits" and a "Close" button.
I checked the installed version:

$ apt-show-versions mate-desktop
mate-desktop:amd64/jessie 1.8.1+dfsg1-3+deb8u1 uptodate

Offline

#6 2017-05-15 20:06:11

AntoFox
Member
Registered: 2016-12-03
Posts: 6

Re: MATE Desktop - Suspend and Hibernate buttons missing

mate-about open a window like this: mate-1.14.png

Last edited by AntoFox (2017-05-15 20:07:46)

Offline

#7 2017-05-15 20:08:03

afuerst
Member
Registered: 2017-05-14
Posts: 15

Re: MATE Desktop - Suspend and Hibernate buttons missing

@AntoFox: Exactly this was what I was trying to describe without a screenshot smile

Offline

#8 2017-05-15 20:10:08

greenjeans
Member
Registered: 2017-04-07
Posts: 355
Website

Re: MATE Desktop - Suspend and Hibernate buttons missing

AntoFox wrote:

mate-about open a window like this: http://hezeh.org/img/mate-1.14.png

Did you get the mate 1.14 from ascii or backports? Still on 1.8 in jessie...


https://sourceforge.net/projects/vuu-do/
Vuu-do GNU/Linux, minimal 64 and 32 bit Devuan-based openbox and mate systems to build on, maximal versions if you prefer your linux fully-loaded.

Please donate to support Devuan and init freedom! https://devuan.org/os/donate

Offline

#9 2017-05-15 21:33:19

greenjeans
Member
Registered: 2017-04-07
Posts: 355
Website

Re: MATE Desktop - Suspend and Hibernate buttons missing

Afuerst: This has been a bug on and off for literally years, apparently there is an on-again off-again issue with upower and mate-power-manager.

I also have a post in the issues section about the other bug this causes, failure to properly poll battery status and wrong systray icons as a result.

Devuan is using an OLD version of upower, maybe a conflict with systemd is preventing use of a newer version. Newer upower has dropped support of hibernation among other things, but since this old-as-hell version doesn't work either, not sure what to do at this point.

XFCE had some issues with it too, but looks like they changed the code in their power manager, which is what Mate should do too.

https://bugs.launchpad.net/ubuntu/+sour … ug/1419321

https://bugs.archlinux.org/task/40031

https://github.com/mate-desktop/mate-po … issues/104

https://bugzilla.xfce.org/show_bug.cgi?id=10811


https://sourceforge.net/projects/vuu-do/
Vuu-do GNU/Linux, minimal 64 and 32 bit Devuan-based openbox and mate systems to build on, maximal versions if you prefer your linux fully-loaded.

Please donate to support Devuan and init freedom! https://devuan.org/os/donate

Offline

#10 2017-05-16 10:16:48

AntoFox
Member
Registered: 2016-12-03
Posts: 6

Re: MATE Desktop - Suspend and Hibernate buttons missing

I believe mrgreenjeans has clarified everything

@mrgreenjeans I built mate 1.14* directly for devuan jessie, for ascii I have rebuild 1.16* 
@Afuerst some users have also problem with the icon battery, with mate 1.14 this small problem are solved


*mate 1.14 and 1.16 are available from an external repository (hezeh.org)

Last edited by AntoFox (2017-05-16 17:18:30)

Offline

#11 2017-05-16 16:32:24

afuerst
Member
Registered: 2017-05-14
Posts: 15

Re: MATE Desktop - Suspend and Hibernate buttons missing

greenjeans wrote:

Afuerst: This has been a bug on and off for literally years, apparently there is an on-again off-again issue with upower and mate-power-manager.

I wasn't aware of this fact - I am using MATE nearly since it is available and never had the problem.

AntoFox wrote:

some users have also problem with the icon battery, with mate 1.14 this small problem are solved

I also have the issue with the battery icon, but I resolved this by hiding the icon from power-management and putting "Battery Charge Monitor" instead. Does MATE 1.14 solve only the battery issue or also the Suspend/Hibernate issue?
If not: does someone know a workaround? I'm using Linux on all my machines and they are in use by the whole family. They won't care about technical stuff, they just close the lid and expect the system to suspend. On the main laptop I still have Debian jessie installed (suspend working there) and not even having a workaround is a showstopper for migrating to Devuan sad

Offline

#12 2017-05-16 17:01:54

golinux
Administrator
Registered: 2016-11-25
Posts: 647

Re: MATE Desktop - Suspend and Hibernate buttons missing

The showstopper is Mate not Devuan.  wink

Offline

#13 2017-05-16 17:41:27

AntoFox
Member
Registered: 2016-12-03
Posts: 6

Re: MATE Desktop - Suspend and Hibernate buttons missing

only battery icon ,  as far as I know thereisn't no workaround for Suspend/Hibernat button

just my opinion but is not showstopper, and the bug came from upower

Offline

#14 2017-05-16 18:29:31

afuerst
Member
Registered: 2017-05-14
Posts: 15

Re: MATE Desktop - Suspend and Hibernate buttons missing

golinux wrote:

The showstopper is Mate not Devuan.  wink

I don't want to fingerpoint anyone (you could also argument Debian is the showstopper because of making systemd the default init system) - I just need a solution so I can migrate the main laptop to Devuan. AFAIK I have to switch to Devuan as long as I am using jessie, there won't be a migration path from stretch (and I have a feeling why this would be too much effort).

Offline

#15 2017-05-16 19:41:26

greenjeans
Member
Registered: 2017-04-07
Posts: 355
Website

Re: MATE Desktop - Suspend and Hibernate buttons missing

afuerst wrote:
golinux wrote:

The showstopper is Mate not Devuan.  wink

I don't want to fingerpoint anyone (you could also argument Debian is the showstopper because of making systemd the default init system) - I just need a solution so I can migrate the main laptop to Devuan. AFAIK I have to switch to Devuan as long as I am using jessie, there won't be a migration path from stretch (and I have a feeling why this would be too much effort).

I'm actually working on that right now, as i'm building a mate mini at the moment.

First part of workaround: Uninstall mate-power-manager and mate-power-manager-common.  Install xfce4-power-manager and it's dependencies, make sure you have libupower-glib3 installed before you try to install xfce-power-manager, it's a dependency but for some reason may not be tagged as such.

Everything works in xfce power manager for me except for : options when I close lid of laptop

Other than that, everything else works, suspend, hibernate, what to do when power button is pushed etc.

For the second part i'm trying to figure out how to substitute a command in the main mate menu, the package "obsession" normally used for Openbox shutdown, also works in mate and offers suspend and hibernate and all other shutdown options you'd expect. I can click the obsession-logout file in /usr/bin/ and it pops up the shutdown menu just fine, just need to make it work in the main mate menu. (Obviously you can stick a .desktop file in the menu somewhere or in the panel and use it in the meantime, I just want to integrate it in to a mate install fully).

Last edited by greenjeans (2017-05-16 20:55:17)


https://sourceforge.net/projects/vuu-do/
Vuu-do GNU/Linux, minimal 64 and 32 bit Devuan-based openbox and mate systems to build on, maximal versions if you prefer your linux fully-loaded.

Please donate to support Devuan and init freedom! https://devuan.org/os/donate

Offline

#16 2017-05-16 20:45:07

afuerst
Member
Registered: 2017-05-14
Posts: 15

Re: MATE Desktop - Suspend and Hibernate buttons missing

greenjeans wrote:

I'm actually working on that right now, as i'm building a mate mini at the moment.

Thanks for the great news. I followed the instructions (if someone else tries to follow: the package is named "xfce4-power-manager") and I have the XFCE Power Manager in my Preferences Menu available. As you have mentioned: the "close lid" stuff is unresolved (I already thought about a cron job checking the lid status every minute and sending the dbus if it is closed smile )

Offline

#17 2017-05-17 19:16:41

greenjeans
Member
Registered: 2017-04-07
Posts: 355
Website

Re: MATE Desktop - Suspend and Hibernate buttons missing

Obsession works pretty good for this, I added some custom keyboard-shortcuts and added them to the conky display on my system so they are always handy.

/usr/bin/obsession-exit -s  (suspend)
                                  -H  (hibernate)
                                  -r   (reboot)
                                  -p  (power-off/shutdown)


https://sourceforge.net/projects/vuu-do/
Vuu-do GNU/Linux, minimal 64 and 32 bit Devuan-based openbox and mate systems to build on, maximal versions if you prefer your linux fully-loaded.

Please donate to support Devuan and init freedom! https://devuan.org/os/donate

Offline

#18 2017-05-17 19:46:39

GNUser
Member
Registered: 2017-03-16
Posts: 150

Re: MATE Desktop - Suspend and Hibernate buttons missing

@afuerst: I also use MATE and was missing the Suspend option in the shutdown dialog. I don't use Hibernate.

Also, if I press Alt + F4 and there are no windows left to close, I like the shutdown dialog to show up (I guess this is a leftover expectation from my Windows days). I was able to solve all problems by installing yad, xdotool, and wmctrl and "rolling my own" with these two scripts:

#!/bin/bash
# Put this script somewhere in your path. Name it altF4
activename_id="`xdotool getactivewindow getwindowname`_`xdotool getactivewindow`"
if [[ "$activename_id" = x-caja-desktop* || "$activename_id" = "_" ]]; then
	my-power-dialog
	while true; do # waiting for dialog to exist before activating it
		shutdowndialogid=$(wmctrl -lx | fgrep 'Power options' | awk '{print $1}')
		[ -n "$shutdowndialogid" ] && break
	done
	xdotool windowactivate $shutdowndialogid
else
	wmctrl -c :ACTIVE:
fi
#!/bin/bash
# Put this script somewhere in your PATH. Name it my-shutdown-dialog
yad --width 100 --height 50 --title "Power options" --on-top --center \
    --button=Shutdown:1 \
    --button=Restart:2 \
    --button=Suspend:3 \
    --button=Cancel:0 

case $? in
    1)	sudo shutdown -h now ;;
    2) 	sudo shutdown -r now ;;
    3) 	sudo pm-suspend ;;
    0)	exit 0 ;;
esac

Once the scripts are in one's PATH and executable, just map the Alt + F4 keyboard shortcut to the altF4 script. BTW, the yad package is not in Devuan stable's repo, but I use the one from Debian testing without any issues (https://packages.debian.org/search?keyw … ection=all).

Hope some of this is useful.

P.S. Instead of having the stock shutdown button on my MATE panel, I have a "Custom Application Launcher" that runs my-shutdown-dialog.

Last edited by GNUser (2017-05-17 19:55:25)

Offline

#19 2017-05-17 19:52:59

afuerst
Member
Registered: 2017-05-14
Posts: 15

Re: MATE Desktop - Suspend and Hibernate buttons missing

greenjeans wrote:

Obsession works pretty good for this, I added some custom keyboard-shortcuts and added them to the conky display on my system so they are always handy.

I assume this is an option to initiate the suspend? More beautiful than sending the dbus-command, but still this would need a regularly running cronjob (which I would prefer to avoid).

GNUser wrote:

I also use MATE and was missing the Suspend option in the shutdown dialog. I don't use Hibernate.

Thanks, this looks also nice - but the main issue is the "lid-is-closed". My family will never initiate suspend manually - they even don't know what it is smile. For them it's as simple as "lid closed = off", "lid open = on".

Offline

#20 2017-05-17 20:20:54

GNUser
Member
Registered: 2017-03-16
Posts: 150

Re: MATE Desktop - Suspend and Hibernate buttons missing

@afuerst: Haha, I know what you mean. My wife is still on Debian Jessie MATE and has the same expectation (lid closed = "off").

Since I prefer nothing to happen when my lid is closed, I didn't even realize that this option is currently missing from Devuan+MATE. Indeed, in mate-power-preferences I cannot find the option to suspend when lid is closed.

Your cronjob idea would work. This would be the job to run every few seconds:

grep closed /proc/acpi/button/lid/LID/state && pm-suspend

Offline

#21 2017-05-17 20:26:58

greenjeans
Member
Registered: 2017-04-07
Posts: 355
Website

Re: MATE Desktop - Suspend and Hibernate buttons missing

afuerst wrote:

I assume this is an option to initiate the suspend? More beautiful than sending the dbus-command, but still this would need a regularly running cronjob (which I would prefer to avoid).

I should have been clearer, this doesn't address the laptop-close-lid issue in xfce4-power-manager.

It's just an option for adding simple quick suspend/hibernate/reboot/shutdown (on-demand) options via keyboard shortcuts, and the conky display which I use anyway is just a good place to have them visible for easy reference.


https://sourceforge.net/projects/vuu-do/
Vuu-do GNU/Linux, minimal 64 and 32 bit Devuan-based openbox and mate systems to build on, maximal versions if you prefer your linux fully-loaded.

Please donate to support Devuan and init freedom! https://devuan.org/os/donate

Offline

#22 2017-05-17 20:34:23

greenjeans
Member
Registered: 2017-04-07
Posts: 355
Website

Re: MATE Desktop - Suspend and Hibernate buttons missing

GNUser wrote:

@afuerst: Haha, I know what you mean. My wife is still on Debian Jessie MATE and has the same expectation (lid closed = "off").

Since I prefer nothing to happen when my lid is closed, I didn't even realize that this option is currently missing from Devuan+MATE. Indeed, in mate-power-preferences I cannot find the option to suspend when lid is closed.

See i'm the same way when it comes to suspend and hibernate, have never used either one in my life, so wasn't aware of the options disappearing in mate-power-manager and the shutdown dialog.

I do remember seeing issues with both going back a long time ago.

As i'm watching Mate develop (or not) i'm starting to see options for configuration and such go bye-bye just like they did in gnome 2 the last couple years as they were destroying it to make way for that gnome 3 junk.

Not real stoked going forward like that, doesn't seem in keeping with 'nix philosophy. I took a peak at 1.16. in ascii and options for custom colors for a given theme via the gui is gone apparently. You can still edit the theme itself directly I guess, but that seems like a crappy thing to do to new users who like to experiment with colors, it was a good feature.


https://sourceforge.net/projects/vuu-do/
Vuu-do GNU/Linux, minimal 64 and 32 bit Devuan-based openbox and mate systems to build on, maximal versions if you prefer your linux fully-loaded.

Please donate to support Devuan and init freedom! https://devuan.org/os/donate

Offline

#23 2017-05-17 21:22:03

GNUser
Member
Registered: 2017-03-16
Posts: 150

Re: MATE Desktop - Suspend and Hibernate buttons missing

greenjeans wrote:

starting to see options for configuration and such go bye-bye

I've also noticed that trend, with things being more dumbed-down and less configurable in MATE as time passes. I also took a peek at the latest MATE versions, which have migrated to gtk3, and was upset that text previews in caja's icons no longer seem to work, for instance.

MATE is still my go-to DE for the time being, however, as I find it to be the most usable out of the box. XFCE is a close second but, after getting used to MATE, XFCE feels a bit rough (e.g., several custom patches required in xfdesktop and thunar in order to get basic features that caja provides by default).

Change for change's sake is bad enough. Change for change's sake plus lost functionality is even worse. But I'll stop my rambling before we get too off-topic.

Offline

#24 2017-05-17 21:52:21

greenjeans
Member
Registered: 2017-04-07
Posts: 355
Website

Re: MATE Desktop - Suspend and Hibernate buttons missing

well now i've got a real doozy going because of all this, lol.

I have set a bunch of custom keybindings in the new mate build as I mentioned above, and they work fine, as long as you left-click the mouse on the empty desktop in between trying to use them.

It's not like that on my other mate install, so i know it's not mate that's broken. It's not like that on the openbox Vuu-do build that I used as a base for this build either.

If you have any windows open at all, the keyboard shortcuts all work fine no matter how many times you use the keypress-combos, but as soon as you close all windows, you will again need to left-click on the desktop before you can use one, and in between every attempt at using them.

Some package or such i'm missing maybe, as I built this mate a piece at a time with just base packages, no meta-packages or tasks.

Seems like it won't re-focus on the desktop after you use and close a keyboard-shortcut or a window.

arrgh, literally the last thing I have to fix before running what should be a nice Vuu-do-mate edition alpha iso, but it's been all day and part of last night and i'm still stuck. sad


https://sourceforge.net/projects/vuu-do/
Vuu-do GNU/Linux, minimal 64 and 32 bit Devuan-based openbox and mate systems to build on, maximal versions if you prefer your linux fully-loaded.

Please donate to support Devuan and init freedom! https://devuan.org/os/donate

Offline

#25 2017-05-17 22:55:09

GNUser
Member
Registered: 2017-03-16
Posts: 150

Re: MATE Desktop - Suspend and Hibernate buttons missing

@greenjeans: At this point we've hijacked this thread smile Nevertheless, I think I can help with your issue because I'm also a keyboard guy...

I have a ton of custom keybindings and they're essential to how I use my computer. I use xbindkeys instead of MATE's builtin "Keyboard Shortcuts" because I like to keep my keybindings in alphabetical order in a text file that I can easily edit (namely ~/.xbindkeysrc). With xbindkeys all my keybindings work in Devuan MATE, even if desktop is empty. I never have to click anywhere.

Just install xbindkeys, make sure that it autostarts (it should automatically take care of this for you--take a peek in Startup Applications after installing xbindkeys), and create ~/.xbindkeysrc with your keybindings. Here's a snippet from my ~/.xbindkeysrc to give you the idea (Mod4 is my GNU key, formerly known as Windows key):

"mate-terminal"
  Mod4+t

"thunderbird"
  Control+Alt+t

Any time you update the file, xbindkeys needs to be restarted in order for changes to take effect. Enjoy!

Offline

Board footer