Page 1 of 1

Suspend command keyboard shortcut

Posted: Mon Sep 04, 2023 4:47 am
by PaulR
I've had a keyboard shortcut set up (on the [Pause] key) for years and find it really useful. When I updated to MX21 I couldn't remember the command so copied this from somewhere (maybe here on the forum) but I seem to recall it was slightly different in previous versions

sudo pm-suspend

For some reason it's become temperamental and sometimes freezes the entire machine instead of going to suspend. I haven't changed any hardware or made any major system changes. Is this the right command to use?

TIA

Paul
PS I don't understand why that command has ever worked given that it never asks for a password!


Code: Select all

System:    Kernel: 6.1.0-10mx-ahs-amd64 [6.1.38-1~mx21+1] x86_64 bits: 64 compiler: gcc v: 10.2.1 
           parameters: BOOT_IMAGE=/boot/vmlinuz-6.1.0-10mx-ahs-amd64 root=UUID=<filter> ro quiet 
           splash 
           Desktop: Xfce 4.18.1 tk: Gtk 3.24.24 info: xfce4-panel wm: xfwm 4.18.0 vt: 7 
           dm: LightDM 1.26.0 Distro: MX-21.3_ahs_x64 Wildflower April 9  2022 
           base: Debian GNU/Linux 11 (bullseye) 
Machine:   Type: Desktop Mobo: ASRock model: B450M-HDV R4.0 serial: <filter> 
           UEFI-[Legacy]: American Megatrends v: P3.20 date: 07/31/2019 
CPU:       Info: 6-Core model: AMD Ryzen 5 2600 bits: 64 type: MT MCP arch: Zen+ family: 17 (23) 
           model-id: 8 stepping: 2 microcode: 800820D cache: L2: 3 MiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 81433 
           Speed: 1411 MHz min/max: 1550/3400 MHz boost: enabled Core speeds (MHz): 1: 1411 
           2: 1472 3: 1550 4: 1550 5: 2355 6: 1550 7: 1550 8: 1550 9: 1550 10: 1550 11: 1550 
           12: 1550 
           Vulnerabilities: Type: itlb_multihit status: Not affected 
           Type: l1tf status: Not affected 
           Type: mds status: Not affected 
           Type: meltdown status: Not affected 
           Type: mmio_stale_data status: Not affected 
           Type: retbleed mitigation: untrained return thunk; SMT vulnerable 
           Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl 
           Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization 
           Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, STIBP: disabled, RSB 
           filling, PBRSB-eIBRS: Not affected 
           Type: srbds status: Not affected 
           Type: tsx_async_abort status: Not affected 
Graphics:  Device-1: AMD Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] vendor: XFX Pine 
           driver: amdgpu v: kernel bus-ID: 08:00.0 chip-ID: 1002:67df class-ID: 0300 
           Display: x11 server: X.Org 1.20.14 compositor: xfwm4 v: 4.18.0 driver: 
           loaded: amdgpu,ati unloaded: fbdev,modesetting,vesa display-ID: :0.0 screens: 1 
           Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.0x11.2") 
           s-diag: 582mm (22.9") 
           Monitor-1: HDMI-A-0 res: 1920x1080 hz: 60 dpi: 102 size: 477x268mm (18.8x10.6") 
           diag: 547mm (21.5") 
           OpenGL: 
           renderer: AMD Radeon RX 570 Series (polaris10 LLVM 14.0.5 DRM 3.49 6.1.0-10mx-ahs-amd64) 
           v: 4.6 Mesa 22.0.5 direct render: Yes 
Audio:     Device-1: AMD Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590] vendor: XFX Pine 
           driver: snd_hda_intel v: kernel bus-ID: 08:00.1 chip-ID: 1002:aaf0 class-ID: 0403 
           Device-2: AMD Family 17h HD Audio vendor: ASRock driver: snd_hda_intel v: kernel 
           bus-ID: 0a:00.3 chip-ID: 1022:1457 class-ID: 0403 
           Device-3: Texas Instruments PCM2902 Audio Codec type: USB 
           driver: hid-generic,snd-usb-audio,usbhid bus-ID: 1-8:3 chip-ID: 08bb:2902 
           class-ID: 0300 
           Sound Server-1: ALSA v: k6.1.0-10mx-ahs-amd64 running: yes 
           Sound Server-2: JACK v: 1.9.21 running: no 
           Sound Server-3: PulseAudio v: 14.2 running: yes 
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: ASRock 
           driver: r8169 v: kernel port: f000 bus-ID: 07:00.0 chip-ID: 10ec:8168 class-ID: 0200 
           IF: eth0 state: up speed: 100 Mbps duplex: full mac: <filter> 
Drives:    Local Storage: total: 465.76 GiB used: 237.88 GiB (51.1%) 
           SMART Message: Unable to run smartctl. Root privileges required. 
           ID-1: /dev/sda maj-min: 8:0 vendor: Western Digital model: WDS500G2B0B-00YS70 
           size: 465.76 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s type: SSD 
           serial: <filter> rev: 40WD scheme: MBR 
Partition: ID-1: / raw-size: 457.75 GiB size: 449.5 GiB (98.20%) used: 237.88 GiB (52.9%) fs: ext4 
           dev: /dev/sda1 maj-min: 8:1 
Swap:      Kernel: swappiness: 15 (default 60) cache-pressure: 100 (default) 
           ID-1: swap-1 type: partition size: 8 GiB used: 0 KiB (0.0%) priority: -2 dev: /dev/sda2 
           maj-min: 8:2 
Sensors:   Message: No sensor data found. Is lm-sensors configured? 
Repos:     Packages: 2994 note: see --pkg apt: 2982 lib: 1656 flatpak: 12 
           No active apt repos in: /etc/apt/sources.list 
           Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list 
           1: deb http://deb.debian.org/debian bullseye-updates main contrib non-free
           Active apt repos in: /etc/apt/sources.list.d/debian.list 
           1: deb http://deb.debian.org/debian bullseye main contrib non-free
           2: deb http://security.debian.org/debian-security bullseye-security main contrib non-free
           Active apt repos in: /etc/apt/sources.list.d/google-earth-pro.list 
           1: deb [arch=amd64] http://dl.google.com/linux/earth/deb/ stable main
           Active apt repos in: /etc/apt/sources.list.d/mx.list 
           1: deb http://mxlinux.mirrors.uk2.net/packages/mx/repo/ bullseye main non-free
           2: deb http://mxlinux.mirrors.uk2.net/packages/mx/repo/ bullseye ahs
Info:      Processes: 366 Uptime: 37m wakeups: 8 Memory: 15.54 GiB used: 1.21 GiB (7.8%) 
           Init: SysVinit v: 2.96 runlevel: 5 default: 5 tool: systemctl Compilers: gcc: 10.2.1 
           alt: 10 Client: shell wrapper v: 5.1.4-release inxi: 3.3.06 
Boot Mode: BIOS (legacy, CSM, MBR)

Re: Suspend command keyboard shortcut

Posted: Mon Sep 04, 2023 5:35 am
by Charlie Brown
Yes, that's the correct command, and it suspends without locking the screen.

You can also try:

Code: Select all

xfce4-session-logout --suspend
But, since normally pm-suspend works almost always:

Just install the 6.4 kernel with 2 clicks and try with that, cause that solved another suspend issue on mine, the problem may be due to 6.1

Also, to lock the screen at the same time: install suckless-tools and apply the command as:

Code: Select all

slock sudo pm-suspend
viewtopic.php?p=669514#p669514

viewtopic.php?p=705347#p705347


I,too do that on all machines. Simple, fast.

Re: Suspend command keyboard shortcut

Posted: Mon Sep 04, 2023 7:32 am
by PaulR
Charlie Brown wrote: Mon Sep 04, 2023 5:35 am Yes, that's the correct command, and it suspends without locking the screen.
Yes, that's why I've always used it.

I'll give your suggestion re the kernel a try but it might take a while to see if that fixes the issue as it's an intermittent problem.

Thanks for the help!

Re: Suspend command keyboard shortcut

Posted: Mon Sep 04, 2023 10:40 am
by Charlie Brown
Meanwhile, since you say it's "intermittent" and for it's a desktop it won't be difficult, also nothing to lose:

Take the rams out, then re-seat. This solved such freezings many times even when memtest showed everything was fine, especially those unknown/random ones ...

Re: Suspend command keyboard shortcut

Posted: Tue Sep 05, 2023 2:42 am
by PaulR
Charlie Brown wrote: Mon Sep 04, 2023 10:40 am Meanwhile, since you say it's "intermittent" and for it's a desktop it won't be difficult, also nothing to lose:

Take the rams out, then re-seat. This solved such freezings many times even when memtest showed everything was fine, especially those unknown/random ones ...

I installed the 6.4 kernel and all worked well for the first four or five suspends but it just did the same thing again. I did notice that touching the power button brought up the log out dialog but the mouse and keyboard are inoperative so clearly the system is still working in some form, it's just the input that's being ignored.

I don't think badly seated RAM is the problem as my system is really stable otherwise, this suspend issue is the only thing that causes a freeze or necessitates a reboot. But thanks for the suggestion, I'll keep it in mind if nothing else works, meantime I'll try the alternative command!

Re: Suspend command keyboard shortcut

Posted: Tue Sep 05, 2023 7:16 am
by Charlie Brown
MX-21 doesn't have it ootb, but in case you had manually installed xfce4-screensaver , just purge it (no matter it was disabled/enabled).

Re: Suspend command keyboard shortcut

Posted: Tue Sep 05, 2023 3:24 pm
by PaulR
Charlie Brown wrote: Tue Sep 05, 2023 7:16 am MX-21 doesn't have it ootb, but in case you had manually installed xfce4-screensaver , just purge it (no matter it was disabled/enabled).
No, I don't use screensavers. I've been using

Code: Select all

xfce4-session-logout --suspend
all day and it's worked without issue so far... fingers crossed!

Re: Suspend command keyboard shortcut

Posted: Tue Sep 05, 2023 3:40 pm
by Charlie Brown
... the weird thing is that this one also uses pm-suspend eventually, just a longer script: "if .. fi .. if .. fi, else ... blahblah .. pm-suspend .." :)

Re: Suspend command keyboard shortcut

Posted: Fri Sep 08, 2023 9:05 am
by PaulR
Charlie Brown wrote: Tue Sep 05, 2023 3:40 pm ... the weird thing is that this one also uses pm-suspend eventually, just a longer script: "if .. fi .. if .. fi, else ... blahblah .. pm-suspend .." :)
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:

Code: Select all

xfce4-session-logout --suspend
Thanks Charlie Brown!

Re: Suspend command keyboard shortcut

Posted: Fri Sep 08, 2023 9:14 am
by Jerry3904
BTW: in MX-23 Fluxbox, the command is visible in Settings > Configure > Menus > Main

Code: Select all

sudo 'pm-suspend'

Re: Suspend command keyboard shortcut

Posted: Mon Sep 11, 2023 2:59 am
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

Re: Suspend command keyboard shortcut

Posted: Mon Sep 11, 2023 7:22 am
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...

Re: Suspend command keyboard shortcut

Posted: Mon Sep 11, 2023 12:25 pm
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!).

Re: Suspend command keyboard shortcut

Posted: Mon Sep 11, 2023 3:18 pm
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 :)

Re: Suspend command keyboard shortcut

Posted: Mon Sep 11, 2023 3:25 pm
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'

Re: Suspend command keyboard shortcut

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

Re: Suspend command keyboard shortcut

Posted: Mon Sep 11, 2023 3:28 pm
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'

Re: Suspend command keyboard shortcut

Posted: Mon Sep 11, 2023 3:33 pm
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)

Re: Suspend command keyboard shortcut

Posted: Tue Sep 12, 2023 9:21 am
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!

Re: Suspend command keyboard shortcut

Posted: Tue Sep 12, 2023 9:22 am
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.

Re: Suspend command keyboard shortcut

Posted: Tue Sep 12, 2023 9:25 am
by PaulR
PaulR wrote: Tue Sep 12, 2023 9:21 am
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!
Hmm, for some reason that doesn't work when the command is bound to a shortcut key. I'll try the other suggestion... sudo 'pm-suspend'

Re: Suspend command keyboard shortcut

Posted: Tue Sep 12, 2023 1:33 pm
by siamhie
@PaulR I'm not sure why it's not working for you. I created a shortcut on a new MX-23 XFCE install and it works.

suspend.png

Re: Suspend command keyboard shortcut

Posted: Tue Sep 12, 2023 1:34 pm
by Charlie Brown
I guess you're using either a wireless or a usb keyboard (I wish you could try with an older PS/2 connection).

At least out of curiosity (and it may be a good feedback for devs) you can try all of these when booted with systemd , and especially

Code: Select all

systemctl suspend
there.

Re: Suspend command keyboard shortcut

Posted: Tue Sep 12, 2023 1:39 pm
by Charlie Brown
... You can even try:

Code: Select all

sudo pm-hibernate

Code: Select all

sudo pm-suspend-hybrid
(the hybrid one does them together: either to ram and to disk)

Re: Suspend command keyboard shortcut

Posted: Thu Sep 14, 2023 2:33 am
by PaulR
@siamhie It's always worked ok in the past, just this last few weeks it's been acting up.
@Charlie Brown It's a USB keyboard, I've been using the same one for maybe 3 or 4 years.

It worked faultlessly all day yesterday using

Code: Select all

sudo 'pm-suspend'
but first time I tried it today the problem recurred - mouse cursor frozen and keyboard inoperable. The power button brought up the log out dialog but I couldn't choose any of the options so it was a case of holding in the power button to turn off.

I've decided to change tack: I've removed the shortcut and will use the power button to suspend instead... I just need to get used to that after years of pressing the [Pause] key!

Re: Suspend command keyboard shortcut

Posted: Thu Sep 14, 2023 11:20 am
by siamhie
PaulR wrote: Thu Sep 14, 2023 2:33 am @siamhie It's always worked ok in the past, just this last few weeks it's been acting up.

It worked faultlessly all day yesterday using

Code: Select all

sudo 'pm-suspend'
but first time I tried it today the problem recurred - mouse cursor frozen and keyboard inoperable. The power button brought up the log out dialog but I couldn't choose any of the options so it was a case of holding in the power button to turn off.

@PaulR Try this. Create another user account (MX User Manager) and see if you can replicate the issue.

Re: Suspend command keyboard shortcut

Posted: Fri Sep 15, 2023 3:28 am
by PaulR
siamhie wrote: Thu Sep 14, 2023 11:20 am @PaulR Try this. Create another user account (MX User Manager) and see if you can replicate the issue.
Thanks for the suggestion but it isn't really practical; since the problem is intermittent I'd have to be logged in as that user for possibly a day or more at a time to see if it recurs and I have stuff to do in my usual account.

Re: Suspend command keyboard shortcut

Posted: Sun Sep 17, 2023 5:01 am
by PaulR
Using the power button for suspend has worked for three days without fault. However, I just pressed it, the screen blanked then came back on after a short pause and the mouse and keyboard were inoperable. Maybe I should try MX23.

Re: Suspend command keyboard shortcut

Posted: Sun Sep 17, 2023 5:49 am
by Charlie Brown
Nothing to lose to try post #4 and it takes just a few minutes since it's a desktop (though the problem is just when suspending). Of course the rest is up to you.

Re: Suspend command keyboard shortcut

Posted: Tue Sep 19, 2023 10:17 am
by PaulR
Charlie Brown wrote: Sun Sep 17, 2023 5:49 am Nothing to lose to try post #4 and it takes just a few minutes since it's a desktop (though the problem is just when suspending). Of course the rest is up to you.
Checked this, all seems ok.

I've switched to a wireless mouse rather than the USB one I was using. Now when I press the power button to suspend, the screen blanks for a very short time then comes back on as per post #28. However, the wireless mouse continues to work but the keyboard is inoperable - very confusing. I wonder if it's possible to suspend from a live USB so I could try MX23 or some other distro to see what happens...?

Re: Suspend command keyboard shortcut

Posted: Tue Sep 19, 2023 11:28 am
by PaulR
Just tried using a Linux Mint live USB I had lying around. Choosing 'Suspend' from the shutdown menu works as it should and when waking the system the (wireless) mouse and keyboard work as expected. I tried it about half a dozen times with no issues. I don't know how Mint suspends the system, I should have tried 'sudo pm-suspend' but didn't, will try later.

Re: Suspend command keyboard shortcut  [Solved]

Posted: Tue Sep 19, 2023 1:28 pm
by Charlie Brown
PaulR wrote: Tue Sep 19, 2023 10:17 am... I wonder if it's possible to suspend from a live USB ...
Of course, you can try everything there, meanwhile wireless mouse is probably keeping it awake (retaining from suspend). On MX (the installed one) I would boot once with systemd and try systemctl suspend .

The difference (with Mint) may be due to kernels: you may also try Liquorix kernels from MXPI.

Re: Suspend command keyboard shortcut

Posted: Tue Sep 19, 2023 3:55 pm
by PaulR
Charlie Brown wrote: Tue Sep 19, 2023 1:28 pm Of course, you can try everything there, meanwhile wireless mouse is probably keeping it awake (retaining from suspend). On MX (the installed one) I would boot once with systemd and try systemctl suspend .
Thanks again. I've only just started using the wireless mouse today so that's not the problem. I'll try booting with systemd as you suggest, see what that does.

Re: Suspend command keyboard shortcut

Posted: Wed Sep 20, 2023 3:27 am
by PaulR
Booted with systemd and tried suspend maybe 15 times, using either 'systemctl suspend' in a terminal or the power button. Both work properly ie the computer suspends and the mouse and keyboard work when it wakes. I also noticed that boot time is significantly quicker.

Is there a downside to using systemd from an 'end user' perspective? I've read a tiny bit about the systemd controversy and I don't have an ideological standpoint, I just want my computer to work properly which it has for the last three years using MX Linux. I might update to MX23 and try it with the default boot system, if that doesn't work switch it to systemd.

Re: Suspend command keyboard shortcut

Posted: Wed Sep 20, 2023 4:57 am
by Charlie Brown
You can even make it default (as you might already know) : MX Boot Options => "Boot to" ..select any kernel you like with systemd option.

Just, there's no systemd on live session, so the only con may be using your snapshots ..

Re: Suspend command keyboard shortcut

Posted: Wed Sep 20, 2023 6:06 am
by PaulR
Charlie Brown wrote: Wed Sep 20, 2023 4:57 am You can even make it default (as you might already know) : MX Boot Options => "Boot to" ..select any kernel you like with systemd option.

Just, there's no systemd on live session, so the only con may be using your snapshots ..
Thanks again, I think I can mark this solved now (fingers crossed!).

Re: Suspend command keyboard shortcut

Posted: Wed Sep 20, 2023 11:07 am
by PaulR
@Charlie Brown Just for info, I installed MX 23 and the same issue pertains unless I use systemd.

Re: Suspend command keyboard shortcut

Posted: Wed Sep 20, 2023 1:23 pm
by Charlie Brown
Thank you for the feedback.

Can you just try 2 suspends with systemd ?

One with either the menu/button or with:

Code: Select all

xfce4-session-logout --suspend
and the other with sudo pm-suspend.

(These may be useful for devs).

Say, these also work perfectly on systemd, then it's completely due to init.


(Meanwhile, did you try on live session? Just out of curiosity)

Re: Suspend command keyboard shortcut

Posted: Wed Sep 20, 2023 3:39 pm
by PaulR
I can confirm both of those work properly. I have systemd set as default for boot now and back to using my hotkey :D. I didn't try suspend on the MX23 live USB I'm afraid.

Re: Suspend command keyboard shortcut

Posted: Wed Sep 20, 2023 3:49 pm
by Charlie Brown
Ok, thank you for trying and the feedback :)