[SOLVED] Moksha DE - How to disable menu items "System-Suspend" and "System-Hibernate"?
BodhiThis forum is for the discussion of Bodhi Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
The system doesn't return from the sleeping mode. This is not Bodhi only issue. Windows has the same behaviour.
And existing menu items are eventually pressed...
It is not possible for a common user. There is no feature to disable it. You have to get rid it from the code, recompile and install. Honestly, I don't know any desktop where you can disable it.
So try not to pressing it I don't know which items you use but try to use Power off button for shutting system down instead of going through the menu.
Stefan
EDIT: pressing the last item "system" in the main menu will bring GUI with buttons for items which are also in the menu. Maybe more suitable for you...
Last edited by the_waiter; 04-22-2019 at 02:14 PM.
Random idea. In my experience, I don't really use the start menu on a daily basis, only when I need settings or an app I don't use regularly, as my daily use apps I have on the ibar and my occasionally used apps are in my favorites menu, and I shutdown from the shutdown shelf icon.
If you were in my position and wanted to get rid of them from the shelf power button (not the menu), you could make your own shutdown button and put it on the ibar, link it to shutdown now command...
Then you could even take the start menu off the shelf.
(Of course, someone could still suspend/hibernate with a mouse even after all that, by pulling up start menu from blank desktop click...)
Seems better to just not click it! But - maybe there is a way to make it non-functional without messing with source... I'm only guessing here, but maybe there is a bin that is called when you select hibernate or suspend. Maybe you could just delete that bin, then you'd probably get an error message, but at least wouldn't get into the state you're trying to avoid - on my athlon if I try to hibernate it hangs forever until I power cycle, and it'll boot slower saying something about attempting to resume or something for a while bewfore it gives up, so if my kids were doing it accidentally or something I might try something like that...
The most preferable way with polkit rules doesn't work for me. The sample file contains action "org.freedesktop.upower.suspend", but Bodhi doesn't have one:
Good info r0bur, that's probably a lot better idea than deleting /usr/sbin/pm-suspend and /usr/sbin/pm-hibernate as I was implying! I'm going to apply your solution on my athlon since they don't function that machine anyway.
Just curious how you figured it out, as you were the original one with the question in the first place... not important tho.
After reading this thread, I took upon myself to edit sysactions.conf according to instructions and
can say that it works exactly as claimed. I have no real need for hibernate or suspend, either. And if I should
discover a need in future, (unlikely) I can always reverse the edits in the file. Simple effective solution!
Thanks so much for the info.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.