• help: disable all manner of sleep/suspend/hibernate - Debian 12

    From Michael Paoli@21:1/5 to All on Fri Nov 22 08:00:01 2024
    How do I disable all manner of sleep/suspend/hibernate on Debian 12?
    I really don't want it doing any sleep/suspend/hibernate (I'm okay with explicitly manually triggering it, but I don't even need that).

    Symptoms/issue/background:
    Was a non-issue on Debian 10 (sleep/hibernate would only occur if I
    manually explicitly triggered it).
    After upgrade: Debian 10-->11-->12, now it's a major problem.
    Seems to correlate to lid closure, but can't 100% confirm that (but has
    thus far never happened with the lid open and have been on Debian 12
    since 2024-05-14)
    seems it's intermittent, as far as I can tell - sometimes goes up to
    many days, perhaps a week or more without issue, other times the
    problem occurs multiple times per day, and sometimes in (well) under 15
    minutes of lid closure, perhaps as quickly as only a few minutes or
    less with lid closed (and sometimes seems to happen immediately upon
    lid closure).
    When it happens (symptoms, etc.);
    screen goes black/blanked and won't resume.
    all network activity ceases (very bad as this system also operates as
    server!)
    unable to resume with any kind of keyboard activity*
    seems to be a very deep form of sleep, the only things I can do at that
    point that at all gets it to respond:
    <Control><Alt><Delete> - which does a warm reboot
    power cycle it via power button - which does cold boot (no variations
    on length of press do anything else - just long press powers it
    down).
    remove power (and it goes down cold - laptop battery no longer holds
    charge and has been that way for many years now - cannot withstand so
    much as even a full second of power interruption).
    what it shows in the logs - about all I've been able to find is this:
    but without any more details as to what's triggering it or how:
    ACPI: PM: Preparing to enter system sleep state S3
    That's found in the /var/log/{kern.log,syslog}* files
    *haven't tried all manner of Magic SysRq keys, as I'm not aware any
    which would unblank the screen and/or resume from any manner of
    sleep/suspend/hibernate

    Things I've tried, and yet the problem persists:
    reviewed https://wiki.debian.org/Suspend
    X11:
    I'm not running Gnome nor KDE, no DE nor chooser/greeter or the like.
    $ ps axlwwww | perl -ne '/[Gg]nome|[Kk]DE/i || $.==1 and print $_;'
    F UID PID PPID PRI NI VSZ RSS WCHAN STAT TTY TIME COMMAND
    5 0 38 2 20 0 0 0 - S ?
    0:00 [kdevtmpfs]
    0 1003 7853 1 20 0 161640 9512 do_sys Sl ?
    0:00 /usr/libexec/at-spi2-registryd --use-gnome-session
    0 1003 7949 1 20 0 235576 8716 do_sys SLl ?
    0:00 /usr/bin/gnome-keyring-daemon --start --foreground
    --components=secrets
    I typically just fire up bare X and a WM (and the case for above):
    startx -- -retro &
    fvwm &
    Added to ~/.xinitrc
    xset dpms 0 0 0
    xset -dpms
    xset s default
    xset s noblank
    xset s off
    xset s noexpose
    xset s reset
    xset s 600 600
    And that now shows:
    $ xset q |
    sed -ne '
    /^Screen Saver:$/{N;N;p;d}
    /^DPMS (Energy Star):$/{N;N;N;p;q}
    '
    Screen Saver:
    prefer blanking: no allow exposures: no
    timeout: 600 cycle: 600
    Yet the problem persists.
    Was on systemd, did:
    # systemctl mask sleep.target suspend.target hibernate.target \
    hybrid-sleep.target
    Problem persists.
    /etc/systemd/{login,sleep}.conf* all files thereunder, lines other
    than blank/empty and comment lines:
    # ( t="$(/bin/echo -en '\011')" && cd /etc/systemd &&
    find {logind,sleep}.conf* -follow -type f ! -size 0 \
    -exec grep -a -e "^[$t ]*[^$t #]" \{\} /dev/null \;)
    logind.conf:[Login]
    logind.conf:HandleLidSwitch=ignore
    logind.conf:HandleLidSwitchExternalPower=ignore
    logind.conf:HandleLidSwitchDocked=ignore
    logind.conf.d/logind.conf:[Login]
    logind.conf.d/logind.conf:HandleLidSwitch=ignore
    logind.conf.d/logind.conf:HandleLidSwitchExternalPower=ignore
    logind.conf.dpkg-dist:[Login]
    sleep.conf:[Sleep]
    sleep.conf.d/nosuspend.conf:[Sleep]
    sleep.conf.d/nosuspend.conf:AllowSuspend=no
    sleep.conf.d/nosuspend.conf:AllowHibernation=no
    sleep.conf.d/nosuspend.conf:AllowSuspendThenHibernate=no
    sleep.conf.d/nosuspend.conf:AllowHybridSleep=no
    Earlier configuration from last of Debian 10 on 2024-05-13 before
    upgrading to Debian 11 and then Debian 12 (completed on
    2024-05-14):
    # (
    t="$(/bin/echo -en '\011')" &&
    xz=~root/tmp/10.13_to_11.9/etc,var_lib_dpkg,var_lib_apt_ &&
    xz="$xz"'extended_states.tar.xz' &&
    files=$(xz -d < $xz | tar -tf - etc/systemd |
    grep -a -F -e logind -e sleep | grep -v '\.dpkg-dist$') &&
    set -- $files && for f; do
    echo "$f:"
    xz -d < $xz | tar -O -xf - $f | grep -a -e "^[$t ]*[^$t #]"
    done
    )
    etc/systemd/sleep.conf:
    [Sleep]
    etc/systemd/logind.conf:
    [Login]
    HandleLidSwitch=ignore
    And through 2024-05-13 on Debian 10 (and even years before that and
    earlier Debian versions before that), that was sufficient to avoid
    any flavor of sleep/suspend/hibernate unless I manually commanded
    it, at least as far as I recall for any specific configuration I
    did regarding that (do have all the earlier /etc files if there's
    need to review, also listing of packages, from before each major
    version upgrade - per Debian's standard recommendations on things
    to specifically have backed up prior to major version upgrades).
    Also changed from systemd to sysvinit (installed: sysvinit-core,
    removed: systemd-sysv systemd):
    Problem stil persists:
    Initially, noticed one significant difference:
    closing lid system almost instantly went to (deep) sleep, but
    opening lid it resumed. Traced that to elogind configuration
    issue. Reconfigured elogind, restarted elogind, that behavior was
    then gone (closing lid no longer immediately put system to sleep),
    but the original problem still remains. elogind configuration:
    $ ( t="$(/bin/echo -en '\011')" && for f in $(
    find /etc/*elogin* -type f -print | sort); do echo "$f:"
    < "$f" grep -a -e "^[$t ]*[^$t #]"; done)
    /etc/elogind/login.conf.d/logind.conf:
    [Login]
    HandleSuspendKey=ignore
    HandleHibernateKey=ignore
    HandleLidSwitch=ignore
    HandleLidSwitchExternalPower=ignore
    HandleLidSwitchDocked=ignore
    PowerKeyIgnoreInhibited=yes
    SuspendKeyIgnoreInhibited=yes
    HibernateKeyIgnoreInhibited=yes
    [Sleep]
    AllowSuspend=no
    AllowHibernation=no
    AllowSuspendThenHibernate=no
    AllowHybridSleep=no
    AllowPowerOffInterrupts=yes
    BroadcastPowerOffInterrupts=no
    AllowSuspendInterrupts=yes
    BroadcastSuspendInterrupts=no
    SuspendState=
    HibernateState=
    HibernateMode=
    HybridSleepState=
    HybridSleepMode=
    /etc/elogind/logind.conf:
    [Login]
    RemoveIPC=no
    [Sleep]
    I also, earlier (a few weeks back or so), removed, to the extent
    feasible, most any and all
    power management / sleep / suspend / hibernate related packages that I
    could (mostly notwithstanding some reverse dependencies)

    Hardware:
    Dell Inc.
    Reg Model P10E
    Reg Type P10E001
    19.5V 12.3A
    JSD2 XXX
    DP/N 3HP1J A00
    SERVICE TAG FWRXDX1
    EXPRESS SERVICE CODE 34633559989
    Dell Precision M6600
    Modifications/changes on that hardware:
    Removed the HDD, replaced with SSD, added 2nd SSD, all years ago,
    one of the SSDs failed a few weeks ago, but long after start of the
    issue. Also years ago, doubled the RAM from 8GiB to 16 GiB. And as
    noted above, battery has been very dead a very long time (can't no
    longer even hold enough charge to keep the computer running for a full
    second).

    Next steps? In addition to asking for some help from the Debian wisdom,
    etc. (please, and thanks), I also plan to compare the packages that were installed on Debian 10 prior to upgrade to 11, to those presently
    installed on 12 - and see if from that I'm able to identify anything
    (and/or its configuration thereof) that may be problematic. I'll also
    continue to look at packages (adding, reconfiguring, and/or removing)
    that may solve the issue and/or help point to specific origin of the
    issue.

    Would love to get to the bottom of this and get this resolved. :-)
    And then I/you and/or others can add the additional relevant information
    to https://wiki.debian.org/Suspend
    Thanks!

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Richard Owlett@21:1/5 to Michael Paoli on Fri Nov 22 11:30:01 2024
    On 11/22/24 12:57 AM, Michael Paoli wrote:
    How do I disable all manner of sleep/suspend/hibernate on Debian 12?
    [snip very detailed of his environment/symptoms]

    I recently jumped from Debian 9(w/MATE) - 12(w/MATE) in one step.
    My Debian 9 settings can be traced back to Debian 6(w/Gnome).
    I don't recall what settings I ended up with.
    But I know what I have now is annoying.

    Michael mentioned https://wiki.debian.org/Suspend and I found https://wiki.debian.org/Hibernation .

    I, and other inexperienced users, need proper definitions of sleep/suspend/hibernate/etc to use those pages and solutions to be
    described here.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Michael Paoli@21:1/5 to rowlett@access.net on Fri Nov 22 13:10:01 2024
    Wikipedia has some pretty good materials, e.g.: https://en.wikipedia.org/wiki/ACPI#Power_states
    and see also:
    https://en.wikipedia.org/wiki/Sleep_mode https://en.wikipedia.org/wiki/Hibernation_(computing)
    In my case it's going to S3 (at least apparently from the log messages
    and observed behavior)
    when I don't at all want it to, and never successfully resuming from that.

    And thanks, I did also look over
    https://wiki.debian.org/Hibernation
    But alas, nothing there appears applicable to my issue/situation.

    Anyway, maybe at some point I'll update/that/those Debian wiki pages - including,
    e.g. (links to) relevant definition information. Perhaps after I get
    my issue resolved,
    so I'm less likely to need multiple iterations of edits/additions/changes/updates.

    On Fri, Nov 22, 2024 at 2:26 AM Richard Owlett <rowlett@access.net> wrote:
    On 11/22/24 12:57 AM, Michael Paoli wrote:
    How do I disable all manner of sleep/suspend/hibernate on Debian 12?
    Michael mentioned https://wiki.debian.org/Suspend and I found https://wiki.debian.org/Hibernation .
    I, and other inexperienced users, need proper definitions of sleep/suspend/hibernate/etc to use those pages and solutions to be
    described here.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From debian-user@howorth.org.uk@21:1/5 to Richard Owlett on Fri Nov 22 14:20:01 2024
    Richard Owlett <rowlett@access.net> wrote:

    Michael mentioned https://wiki.debian.org/Suspend and I found https://wiki.debian.org/Hibernation .

    I, and other inexperienced users, need proper definitions of sleep/suspend/hibernate/etc to use those pages and solutions to be
    described here.

    Definitions can be found at https://docs.kernel.org/admin-guide/pm/sleep-states.html

    Other pages that might be useful include https://wiki.archlinux.org/title/Power_management/Suspend_and_hibernate https://www.computernetworkingnotes.com/linux-tutorials/shutdown-reboot-suspend-and-hibernate-a-linux-system.html

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Michael Paoli@21:1/5 to manikulin@gmail.com on Fri Nov 22 18:00:01 2024
    Thanks, my responses in-line below
    (also restored some of the earlier that was removed from original,
    and included full original at tail end of this email):
    On Fri, Nov 22, 2024 at 5:02 AM Max Nikulin <manikulin@gmail.com> wrote:
    On 22/11/2024 13:57, Michael Paoli wrote:
    all network activity ceases (very bad as this system also operates as
    server!)
    seems to be a very deep form of sleep, the only things I can do at that
    point that at all gets it to respond:
    <Control><Alt><Delete> - which does a warm reboot
    Does not like suspend to RAM or suspend to disk (hibernate). It
    resembles graphics issues. Can you connect to this machine using ssh?
    It's way beyond graphic issues, can't ping, ssh, etc. - normally can
    ssh fine, runs web server, DNS server, etc. - all goes unresponsive.
    Try after reboot or power cycle as root
    Been through many reboots / power cycles - has not helped at all.
    journalctl -b -1 -e
    journalctl is right out presently
    Do still have those log files though,
    I'll see if I can find anything useful/informative in them
    (e.g. via other host(s) where I have journalctl available)
    Likewise I want to check more thoroughly the audit log files,
    see if I can find anything that's triggering the apparently S3 sleep.
    Also changed from systemd to sysvinit (installed: sysvinit-core,
    removed: systemd-sysv systemd):
    Problem still persists
    it may provide more details than /var/log/syslog files.
    And notice "IdleAction=" in logind.conf(5) for a case that it is really suspend.
    man page indicates IdleAction defaults to ignore:
    $ man 5 logind.conf | sed -ne '/IdleAction=$/{N;N;N;N;p;q}'
    IdleAction=
    Configures the action to take when the system is idle. Takes one of
    "ignore", "poweroff", "reboot", "halt", "kexec", "suspend",
    "hibernate", "hybrid-sleep", "suspend-then-hibernate", and "lock".
    Defaults to "ignore".
    $
    And from my earlier, all the non-default settings I have for login.conf:
    /etc/systemd/{login,sleep}.conf* all files thereunder, lines other
    than blank/empty and comment lines:
    # ( t="$(/bin/echo -en '\011')" && cd /etc/systemd &&
    find {logind,sleep}.conf* -follow -type f ! -size 0 \
    -exec grep -a -e "^[$t ]*[^$t #]" \{\} /dev/null \;)
    logind.conf:[Login]
    logind.conf:HandleLidSwitch=ignore
    logind.conf:HandleLidSwitchExternalPower=ignore
    logind.conf:HandleLidSwitchDocked=ignore
    logind.conf.d/logind.conf:[Login]
    logind.conf.d/logind.conf:HandleLidSwitch=ignore
    logind.conf.d/logind.conf:HandleLidSwitchExternalPower=ignore
    logind.conf.dpkg-dist:[Login]
    sleep.conf:[Sleep]
    sleep.conf.d/nosuspend.conf:[Sleep]
    sleep.conf.d/nosuspend.conf:AllowSuspend=no
    sleep.conf.d/nosuspend.conf:AllowHibernation=no
    sleep.conf.d/nosuspend.conf:AllowSuspendThenHibernate=no
    sleep.conf.d/nosuspend.conf:AllowHybridSleep=no
    Earlier configuration from last of Debian 10 on 2024-05-13 before
    upgrading to Debian 11 and then Debian 12 (completed on
    2024-05-14):
    # (
    t="$(/bin/echo -en '\011')" &&
    xz=~root/tmp/10.13_to_11.9/etc,var_lib_dpkg,var_lib_apt_ &&
    xz="$xz"'extended_states.tar.xz' &&
    files=$(xz -d < $xz | tar -tf - etc/systemd |
    grep -a -F -e logind -e sleep | grep -v '\.dpkg-dist$') &&
    set -- $files && for f; do
    echo "$f:"
    xz -d < $xz | tar -O -xf - $f | grep -a -e "^[$t ]*[^$t #]"
    done
    )
    etc/systemd/sleep.conf:
    [Sleep]
    etc/systemd/logind.conf:
    [Login]
    HandleLidSwitch=ignore
    And that very last bit above what I had on Debian 10
    (through 2024-05-13, which never had the problem),
    Started with same on Debian 12, but added lots more
    in attempts to stop any and all manner of
    sleep/suspend/hibernate.

    My full earlier:
    https://lists.debian.org/debian-user/2024/11/msg00590.html
    How do I disable all manner of sleep/suspend/hibernate on Debian 12?
    I really don't want it doing any sleep/suspend/hibernate (I'm okay with explicitly manually triggering it, but I don't even need that).

    Symptoms/issue/background:
    Was a non-issue on Debian 10 (sleep/hibernate would only occur if I
    manually explicitly triggered it).
    After upgrade: Debian 10-->11-->12, now it's a major problem.
    Seems to correlate to lid closure, but can't 100% confirm that (but has
    thus far never happened with the lid open and have been on Debian 12
    since 2024-05-14)
    seems it's intermittent, as far as I can tell - sometimes goes up to
    many days, perhaps a week or more without issue, other times the
    problem occurs multiple times per day, and sometimes in (well) under 15
    minutes of lid closure, perhaps as quickly as only a few minutes or
    less with lid closed (and sometimes seems to happen immediately upon
    lid closure).
    When it happens (symptoms, etc.);
    screen goes black/blanked and won't resume.
    all network activity ceases (very bad as this system also operates as
    server!)
    unable to resume with any kind of keyboard activity*
    seems to be a very deep form of sleep, the only things I can do at that
    point that at all gets it to respond:
    <Control><Alt><Delete> - which does a warm reboot
    power cycle it via power button - which does cold boot (no variations
    on length of press do anything else - just long press powers it
    down).
    remove power (and it goes down cold - laptop battery no longer holds
    charge and has been that way for many years now - cannot withstand so
    much as even a full second of power interruption).
    what it shows in the logs - about all I've been able to find is this:
    but without any more details as to what's triggering it or how:
    ACPI: PM: Preparing to enter system sleep state S3
    That's found in the /var/log/{kern.log,syslog}* files
    *haven't tried all manner of Magic SysRq keys, as I'm not aware any
    which would unblank the screen and/or resume from any manner of
    sleep/suspend/hibernate

    Things I've tried, and yet the problem persists:
    reviewed https://wiki.debian.org/Suspend
    X11:
    I'm not running Gnome nor KDE, no DE nor chooser/greeter or the like.
    $ ps axlwwww | perl -ne '/[Gg]nome|[Kk]DE/i || $.==1 and print $_;'
    F UID PID PPID PRI NI VSZ RSS WCHAN STAT TTY TIME COMMAND
    5 0 38 2 20 0 0 0 - S ?
    0:00 [kdevtmpfs]
    0 1003 7853 1 20 0 161640 9512 do_sys Sl ?
    0:00 /usr/libexec/at-spi2-registryd --use-gnome-session
    0 1003 7949 1 20 0 235576 8716 do_sys SLl ?
    0:00 /usr/bin/gnome-keyring-daemon --start --foreground
    --components=secrets
    I typically just fire up bare X and a WM (and the case for above):
    startx -- -retro &
    fvwm &
    Added to ~/.xinitrc
    xset dpms 0 0 0
    xset -dpms
    xset s default
    xset s noblank
    xset s off
    xset s noexpose
    xset s reset
    xset s 600 600
    And that now shows:
    $ xset q |
    sed -ne '
    /^Screen Saver:$/{N;N;p;d}
    /^DPMS (Energy Star):$/{N;N;N;p;q}
    '
    Screen Saver:
    prefer blanking: no allow exposures: no
    timeout: 600 cycle: 600
    Yet the problem persists.
    Was on systemd, did:
    # systemctl mask sleep.target suspend.target hibernate.target \
    hybrid-sleep.target
    Problem persists.
    /etc/systemd/{login,sleep}.conf* all files thereunder, lines other
    than blank/empty and comment lines:
    # ( t="$(/bin/echo -en '\011')" && cd /etc/systemd &&
    find {logind,sleep}.conf* -follow -type f ! -size 0 \
    -exec grep -a -e "^[$t ]*[^$t #]" \{\} /dev/null \;)
    logind.conf:[Login]
    logind.conf:HandleLidSwitch=ignore
    logind.conf:HandleLidSwitchExternalPower=ignore
    logind.conf:HandleLidSwitchDocked=ignore
    logind.conf.d/logind.conf:[Login]
    logind.conf.d/logind.conf:HandleLidSwitch=ignore
    logind.conf.d/logind.conf:HandleLidSwitchExternalPower=ignore
    logind.conf.dpkg-dist:[Login]
    sleep.conf:[Sleep]
    sleep.conf.d/nosuspend.conf:[Sleep]
    sleep.conf.d/nosuspend.conf:AllowSuspend=no
    sleep.conf.d/nosuspend.conf:AllowHibernation=no
    sleep.conf.d/nosuspend.conf:AllowSuspendThenHibernate=no
    sleep.conf.d/nosuspend.conf:AllowHybridSleep=no
    Earlier configuration from last of Debian 10 on 2024-05-13 before
    upgrading to Debian 11 and then Debian 12 (completed on
    2024-05-14):
    # (
    t="$(/bin/echo -en '\011')" &&
    xz=~root/tmp/10.13_to_11.9/etc,var_lib_dpkg,var_lib_apt_ &&
    xz="$xz"'extended_states.tar.xz' &&
    files=$(xz -d < $xz | tar -tf - etc/systemd |
    grep -a -F -e logind -e sleep | grep -v '\.dpkg-dist$') &&
    set -- $files && for f; do
    echo "$f:"
    xz -d < $xz | tar -O -xf - $f | grep -a -e "^[$t ]*[^$t #]"
    done
    )
    etc/systemd/sleep.conf:
    [Sleep]
    etc/systemd/logind.conf:
    [Login]
    HandleLidSwitch=ignore
    And through 2024-05-13 on Debian 10 (and even years before that and
    earlier Debian versions before that), that was sufficient to avoid
    any flavor of sleep/suspend/hibernate unless I manually commanded
    it, at least as far as I recall for any specific configuration I
    did regarding that (do have all the earlier /etc files if there's
    need to review, also listing of packages, from before each major
    version upgrade - per Debian's standard recommendations on things
    to specifically have backed up prior to major version upgrades).
    Also changed from systemd to sysvinit (installed: sysvinit-core,
    removed: systemd-sysv systemd):
    Problem still persists:
    Initially, noticed one significant difference:
    closing lid system almost instantly went to (deep) sleep, but
    opening lid it resumed. Traced that to elogind configuration
    issue. Reconfigured elogind, restarted elogind, that behavior was
    then gone (closing lid no longer immediately put system to sleep),
    but the original problem still remains. elogind configuration:
    $ ( t="$(/bin/echo -en '\011')" && for f in $(
    find /etc/*elogin* -type f -print | sort); do echo "$f:"
    < "$f" grep -a -e "^[$t ]*[^$t #]"; done)
    /etc/elogind/login.conf.d/logind.conf:
    [Login]
    HandleSuspendKey=ignore
    HandleHibernateKey=ignore
    HandleLidSwitch=ignore
    HandleLidSwitchExternalPower=ignore
    HandleLidSwitchDocked=ignore
    PowerKeyIgnoreInhibited=yes
    SuspendKeyIgnoreInhibited=yes
    HibernateKeyIgnoreInhibited=yes
    [Sleep]
    AllowSuspend=no
    AllowHibernation=no
    AllowSuspendThenHibernate=no
    AllowHybridSleep=no
    AllowPowerOffInterrupts=yes
    BroadcastPowerOffInterrupts=no
    AllowSuspendInterrupts=yes
    BroadcastSuspendInterrupts=no
    SuspendState=
    HibernateState=
    HibernateMode=
    HybridSleepState=
    HybridSleepMode=
    /etc/elogind/logind.conf:
    [Login]
    RemoveIPC=no
    [Sleep]
    I also, earlier (a few weeks back or so), removed, to the extent
    feasible, most any and all
    power management / sleep / suspend / hibernate related packages that I
    could (mostly notwithstanding some reverse dependencies)

    Hardware:
    Dell Inc.
    Reg Model P10E
    Reg Type P10E001
    19.5V 12.3A
    JSD2 XXX
    DP/N 3HP1J A00
    SERVICE TAG FWRXDX1
    EXPRESS SERVICE CODE 34633559989
    Dell Precision M6600
    Modifications/changes on that hardware:
    Removed the HDD, replaced with SSD, added 2nd SSD, all years ago,
    one of the SSDs failed a few weeks ago, but long after start of the
    issue. Also years ago, doubled the RAM from 8GiB to 16 GiB. And as
    noted above, battery has been very dead a very long time (can't no
    longer even hold enough charge to keep the computer running for a full
    second).

    Next steps? In addition to asking for some help from the Debian wisdom,
    etc. (please, and thanks), I also plan to compare the packages that were installed on Debian 10 prior to upgrade to 11, to those presently
    installed on 12 - and see if from that I'm able to identify anything
    (and/or its configuration thereof) that may be problematic. I'll also
    continue to look at packages (adding, reconfiguring, and/or removing)
    that may solve the issue and/or help point to specific origin of the
    issue.

    Would love to get to the bottom of this and get this resolved. :-)
    And then I/you and/or others can add the additional relevant information
    to https://wiki.debian.org/Suspend
    Thanks!

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Michael Paoli@21:1/5 to debian-user@howorth.org.uk on Fri Nov 22 18:20:01 2024
    Thanks.
    Still haven't found way to prevent
    sleep/hibernate/etc, but FYI:
    $ (cd /sys/power && grep . mem_sleep state)
    mem_sleep:s2idle [deep]
    state:freeze mem disk
    $

    On Fri, Nov 22, 2024 at 5:15 AM <debian-user@howorth.org.uk> wrote:
    Definitions can be found at https://docs.kernel.org/admin-guide/pm/sleep-states.html
    Other pages that might be useful include https://wiki.archlinux.org/title/Power_management/Suspend_and_hibernate https://www.computernetworkingnotes.com/linux-tutorials/shutdown-reboot-suspend-and-hibernate-a-linux-system.html

    My original:
    https://lists.debian.org/debian-user/2024/11/msg00590.html

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From David Wright@21:1/5 to Michael Paoli on Fri Nov 22 19:50:01 2024
    On Thu 21 Nov 2024 at 22:57:35 (-0800), Michael Paoli wrote:

    remove power (and it goes down cold - laptop battery no longer holds
    charge and has been that way for many years now - cannot withstand so
    much as even a full second of power interruption).

    Yes, I have three laptops like that. And after a period of
    non-connection/use, the BIOS settings on one of them were also
    lost, eg the date/time and administrative password.

    what it shows in the logs - about all I've been able to find is this:
    but without any more details as to what's triggering it or how:
    ACPI: PM: Preparing to enter system sleep state S3
    That's found in the /var/log/{kern.log,syslog}* files
    *haven't tried all manner of Magic SysRq keys, as I'm not aware any
    which would unblank the screen and/or resume from any manner of
    sleep/suspend/hibernate

    Have you checked the BIOS settings? Here for example is one PC's diary
    record of me reconfiguring its BIOS when I acquired the machine.

    Power Management

    AC Recovery Power Off
    Auto On Time disabled
    Auto On Time 13:58 (ie PM)
    Deep Sleep Control Enabled in S4 and S5 → Disabled
    Fan Control Override disabled
    USB Wake Support enabled → disabled
    Wake on LAN/WLAN disabled → LAN Only
    Block Sleep disabled → Block Sleep (S3 State)
    Intel(R) Smart Connect Technology disabled

    Cheers,
    David.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andrew M.A. Cater@21:1/5 to Richard Owlett on Sat Nov 23 00:40:01 2024
    On Fri, Nov 22, 2024 at 04:26:05AM -0600, Richard Owlett wrote:
    On 11/22/24 12:57 AM, Michael Paoli wrote:

    I recently jumped from Debian 9(w/MATE) - 12(w/MATE) in one step.
    My Debian 9 settings can be traced back to Debian 6(w/Gnome).
    I don't recall what settings I ended up with.
    But I know what I have now is annoying.


    Don't do that: there is no straightforward way to do this and the only
    way that is vaguely supported is to update from 9 -> 10 -> 11 -> 12.

    It is very likely that no-one can suport you unless they've done what
    you have.

    Michael mentioned https://wiki.debian.org/Suspend and I found https://wiki.debian.org/Hibernation .

    I, and other inexperienced users, need proper definitions of sleep/suspend/hibernate/etc to use those pages and solutions to be described here.



    All the very best,

    Andy Cater
    (amacater@debian.org)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Richard Owlett@21:1/5 to Andrew M.A. Cater on Sat Nov 23 09:50:01 2024
    On 11/22/24 5:33 PM, Andrew M.A. Cater wrote:
    On Fri, Nov 22, 2024 at 04:26:05AM -0600, Richard Owlett wrote:
    On 11/22/24 12:57 AM, Michael Paoli wrote:

    I recently jumped from Debian 9(w/MATE) - 12(w/MATE) in one step.
    My Debian 9 settings can be traced back to Debian 6(w/Gnome).
    I don't recall what settings I ended up with.
    But I know what I have now is annoying.


    Don't do that: there is no straightforward way to do this and the only
    way that is vaguely supported is to update from 9 -> 10 -> 11 -> 12.

    It is very likely that no-one can suport you unless they've done what
    you have.

    Michael mentioned https://wiki.debian.org/Suspend and I found
    https://wiki.debian.org/Hibernation .

    I, and other inexperienced users, need proper definitions of
    sleep/suspend/hibernate/etc to use those pages and solutions to be described >> here.



    You misinterpreted my post.

    I meant to convey that I have been using Debian since release 6.
    I liked my experience with Debian 9.

    I now have a machine with a clean initial install of Debian 12.
    I'm not happy with it's configuration.
    To find answers and pose intelligent questions I need to know
    definitions of sleep/suspend/hibernate/etc as used in the Debian
    sub-culture.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andrew M.A. Cater@21:1/5 to Richard Owlett on Sat Nov 23 14:00:01 2024
    On Sat, Nov 23, 2024 at 02:45:46AM -0600, Richard Owlett wrote:
    On 11/22/24 5:33 PM, Andrew M.A. Cater wrote:

    You misinterpreted my post.

    I meant to convey that I have been using Debian since release 6.
    I liked my experience with Debian 9.

    I now have a machine with a clean initial install of Debian 12.
    I'm not happy with it's configuration.
    To find answers and pose intelligent questions I need to know definitions of sleep/suspend/hibernate/etc as used in the Debian sub-culture.


    "As used in the Debian sub-culture" : it's as used by the
    * The firmware and chipset in your machine
    * The kernel interface
    * Whatever the tools are in your chosen GUI/desktop environment

    The first two are much more important - and largely common to all Linux distributions, though these may vary as to kernel version.

    There are threads around on "Windows suspend", "S3" and so on which relate largely to what the behaviour of physical hardware is when you perform an action and what is reported to the firmware and the kernel.
    (For example: What sleep state does your laptop go into when you shut the
    lid / does it ever truly shut down?)
    Some of these have changed in more recent laptops, not always for the better maybe.

    The last one is a matter of learning the tools to set the options in MATE
    these days, I presume.


    Can you be more specific as to the issue(s) you are seeing here?

    Is it making sense of observed behaviour that is not causing you a problem? [You want to find out what is actually going on but what you see is fine]

    Is it that you desire one outcome but you get another?
    [I want my hardware to save state and shutdown when I hit the power button
    but it just suspends / I want my laptop to suspend and resume when the lid
    is shut but it goes into a weird sleep state I don't understand.]

    Is it that you don't know where to set a desired option to get the behaviour you want?


    All the very best, as ever,

    Andy
    (amacater@debian.org)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)