You are not logged in.

#26 2016-11-21 21:27:15

remus
Member
Registered: 2015-11-03
Posts: 33

Re: How can I disable the "Suspend" button on my keyboard?

Trilby wrote:

However, to be 100% sure, Remus, if you could post the content of your logind.conf file here that would help.

Sure, here it is:

#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation; either version 2.1 of the License, or
#  (at your option) any later version.
#
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See logind.conf(5) for details.

[Login]
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
HandlePowerKey=poweroff
HandleSuspendKey=ignore
HandleHibernateKey=ignore
HandleLidSwitch=ignore
#HandleLidSwitchDocked=ignore
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=yes
#HoldoffTimeoutSec=30s
#IdleAction=ignore
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RemoveIPC=yes
#InhibitorsMax=8192
#SessionsMax=8192
#UserTasksMax=33%

Thanks a lot once again for your continued help here!
I'll try xfce and see what it does there.

Last edited by remus (2016-11-21 21:27:57)

Offline

#27 2016-11-21 22:01:57

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,523
Website

Re: How can I disable the "Suspend" button on my keyboard?

Thanks, all's well there.  That seems to conclusively rule out logind being the culprit.  So I'd second your conclusion of post #13 that this is a Gnome issue.  Unfortunately I'm completely unable to help gnome-specific stuff.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#28 2016-11-24 18:41:39

remus
Member
Registered: 2015-11-03
Posts: 33

Re: How can I disable the "Suspend" button on my keyboard?

Just tried out logging in with an Xfce session instead of (normal) Gnome. There, the key didn't do anything – one point more for Gnome-specific, I guess. (I didn't change the display manager or anything else this time – just installed Xfce and then selected it in the session menu.)

Offline

#29 2018-05-03 13:35:02

paulodiovani
Member
Registered: 2017-09-19
Posts: 1

Re: How can I disable the "Suspend" button on my keyboard?

You can disable suspend system-wide with polkit: https://wiki.archlinux.org/index.php/Po … _hibernate

I still don't know how to do it only for gnome or only for suspend button.

Offline

#30 2018-05-03 14:34:26

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,657

Re: How can I disable the "Suspend" button on my keyboard?

Thanks for sharing, though as this thread is 2 years old, the same assumptions might no longer apply.

https://wiki.archlinux.org/index.php/Co … bumping.22

Closing.

Reopened on remus' request.

Last edited by V1del (2018-05-04 11:17:58)

Offline

#31 2018-05-04 11:22:04

remus
Member
Registered: 2015-11-03
Posts: 33

Re: How can I disable the "Suspend" button on my keyboard?

paulodiovani wrote:

You can disable suspend system-wide with polkit: https://wiki.archlinux.org/index.php/Po … _hibernate

I still don't know how to do it only for gnome or only for suspend button.

Wow, thanks!
It's not exactly what I asked for, but since I don't want to use Suspend/Hibernate anyways, this is still a perfect solution for me!
So, thanks a lot!

And thanks, V1del, for re-opening!

Offline

Board footer

Powered by FluxBB