Suspend command keyboard shortcut  [Solved]

Help for Current Versions of MX
When asking for help, use Quick System Info from MX Tools. It will be properly formatted using the following steps.
1. Click on Quick System Info in MX Tools
2. Right click in your post and paste.
Message
Author
PaulR
Posts: 155
Joined: Tue Jan 21, 2020 4:27 am

Re: Suspend command keyboard shortcut

#11 Post by PaulR »

Just marked this unsolved as after four days of faultless operation it now seems that every time I try to suspend using:

Code: Select all

xfce4-session-logout --suspend
bound to the [Pause] key, the system hangs.

According to /var/log/apt/history.log, these are the updates since it was working properly - are any of these likely to be the culprit for the sudden change?

Code: Select all

Start-Date: 2023-09-06  07:20:40
Commandline: apt --verbose-versions --assume-yes full-upgrade
Requested-By: paul (1000)
Upgrade: libmagic-mgc:amd64 (1:5.39-3, 1:5.39-3+deb11u1), libaom0:amd64 (1.0.0.errata1-3, 1.0.0.errata1-3+deb11u1), libaom0:i386 (1.0.0.errata1-3, 1.0.0.errata1-3+deb11u1), libmagic1:amd64 (1:5.39-3, 1:5.39-3+deb11u1), file:amd64 (1:5.39-3, 1:5.39-3+deb11u1), mx-goodies:amd64 (23.07.02, 23.08.01), quick-system-info-gui:amd64 (23.08.01, 23.09.01), linux-libc-dev:amd64 (6.4.11-1~mx21ahs, 6.4.13-1~mx21ahs)
End-Date: 2023-09-06  07:20:45

Start-Date: 2023-09-08  08:56:45
Commandline: apt --verbose-versions --assume-yes full-upgrade
Requested-By: paul (1000)
Install: mx-service-manager:amd64 (23.9, automatic)
Upgrade: lo-main-helper:amd64 (23.07.05mx21, 23.07.06mx21), mx-packageinstaller-pkglist:amd64 (23.07.05mx21, 23.07.06mx21), mx-apps:amd64 (23.01.03mx21, 23.01.04mx21)
End-Date: 2023-09-08  08:56:49

Start-Date: 2023-09-09  08:04:32
Commandline: apt --verbose-versions --assume-yes full-upgrade
Requested-By: paul (1000)
Upgrade: mx-service-manager:amd64 (23.9, 23.9.02)
End-Date: 2023-09-09  08:04:34

Start-Date: 2023-09-10  06:50:38
Commandline: apt --verbose-versions --assume-yes full-upgrade
Requested-By: paul (1000)
Upgrade: mx-comfort-themes:amd64 (21.10.02, 23.09.02)
End-Date: 2023-09-10  06:50:40

TIA

Paul

Charlie Brown

Re: Suspend command keyboard shortcut

#12 Post by Charlie Brown »

PaulR wrote: Mon Sep 11, 2023 2:59 am... are any of these likely to be the culprit for the sudden change?..
Just "maybe":

Start-Date: 2023-09-08 08:56:45
Install: mx-service-manager:amd64 (23.9, automatic)

Start-Date: 2023-09-09 08:04:32
Upgrade: mx-service-manager:amd64 (23.9, 23.9.02)


And this was also on Sep 08
PaulR wrote: Fri Sep 08, 2023 9:05 am... Well I've no no issues in the last three days, during which the PC has probably been suspended 20 to 30 times so I'm marking the following command as the solution...

PaulR
Posts: 155
Joined: Tue Jan 21, 2020 4:27 am

Re: Suspend command keyboard shortcut

#13 Post by PaulR »

Charlie Brown wrote: Mon Sep 11, 2023 7:22 am
PaulR wrote: Mon Sep 11, 2023 2:59 am... are any of these likely to be the culprit for the sudden change?..
Just "maybe":
Thanks. Can anything be done to test it, maybe rolling back to a previous version of that package (I have to admit I don't know how to do that!).

Charlie Brown

Re: Suspend command keyboard shortcut

#14 Post by Charlie Brown »

It's easy to install the previous version, but in changelog there seems to be nothing related that could cause an issue:

Code: Select all

mx-service-manager (23.9.02) mx; urgency=medium

  * Add alias for smbd/samba to make it easier to search
  * List systemd services with 'systemctl list-units' command instead of 'services'

 -- Adrian <adrian@mxlinux.org>  Fri, 08 Sep 2023 12:03:50 -0400

mx-service-manager (23.9.01) mx; urgency=medium

  * Add it to mx-tools
  * Improve sysvinit detection

 -- Adrian <adrian@mxlinux.org>  Fri, 08 Sep 2023 08:23:42 -0400

mx-service-manager (23.9) mx; urgency=medium

  * First official release with latest translations

 -- Adrian <adrian@mxlinux.org>  Tue, 05 Sep 2023 09:07:58 -0400

mx-service-manager (0.23.8) mx; urgency=medium

  * Initial release

 -- Adrian <adrian@mxlinux.org>  Sat, 26 Aug 2023 20:55:12 -0400

In the meantime, this is a new ( and a cool ) tool/package that was not existing ootb. We could try just removing but this time it'll cause mx-apps to be removed, too = disaster :)

User avatar
siamhie
Global Moderator
Posts: 3831
Joined: Fri Aug 20, 2021 5:45 pm

Re: Suspend command keyboard shortcut

#15 Post by siamhie »

MX Service Manager is to manage services that run at boot time.


Try this for a keyboard shortcut.

Code: Select all

sudo 'pm-suspend'
This is my Fluxbox . There are many others like it, but this one is mine. My Fluxbox is my best friend. It is my life.
I must master it as I must master my life. Without me, my Fluxbox is useless. Without my Fluxbox, I am useless.

Charlie Brown

Re: Suspend command keyboard shortcut

#16 Post by Charlie Brown »

Have you read the thread ? :)

User avatar
siamhie
Global Moderator
Posts: 3831
Joined: Fri Aug 20, 2021 5:45 pm

Re: Suspend command keyboard shortcut

#17 Post by siamhie »

Charlie Brown wrote: Mon Sep 11, 2023 3:26 pm Have you read the thread ? :)

I did and you posted issues with sudo pm-suspend. I'm asking you to try it with single quotes.

Code: Select all

sudo 'pm-suspend'
This is my Fluxbox . There are many others like it, but this one is mine. My Fluxbox is my best friend. It is my life.
I must master it as I must master my life. Without me, my Fluxbox is useless. Without my Fluxbox, I am useless.

Charlie Brown

Re: Suspend command keyboard shortcut

#18 Post by Charlie Brown »

You can try this first in a terminal, in case of success change your hotkey etc..

Code: Select all

sudo sh -c 'echo mem > /sys/power/state'
(We can also combine it with screen locker, later if you like)

PaulR
Posts: 155
Joined: Tue Jan 21, 2020 4:27 am

Re: Suspend command keyboard shortcut

#19 Post by PaulR »

Charlie Brown wrote: Mon Sep 11, 2023 3:33 pm You can try this first in a terminal, in case of success change your hotkey etc..

Code: Select all

sudo sh -c 'echo mem > /sys/power/state'
That suspends the system instantly but I can only wake it up using the power button, the keyboard is 'dead'. I wouldn't mind that though provided it works consistently. I'll hook it up to the hotkey and see how it goes.

Thanks again Charlie Brown!

PaulR
Posts: 155
Joined: Tue Jan 21, 2020 4:27 am

Re: Suspend command keyboard shortcut

#20 Post by PaulR »

siamhie wrote: Mon Sep 11, 2023 3:25 pm MX Service Manager is to manage services that run at boot time.


Try this for a keyboard shortcut.

Code: Select all

sudo 'pm-suspend'
Thank you, I'll make a note of that in case the other suggestion above doesn't work.

Post Reply

Return to “MX Help”