Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Jan 2025 05:14:38 +0000
From:      Graham Perrin <grahamperrin@gmail.com>
To:        FreeBSD-CURRENT <freebsd-current@freebsd.org>
Cc:        FreeBSD wireless <freebsd-wireless@freebsd.org>
Subject:   OS resume occasionally troublesome, again, since main-n274579-50c1e179b584 (2025-01-05)
Message-ID:  <d723d912-c02b-4852-867b-c6f4cac8070a@gmail.com>

next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------5ftMzaOHfQsGZG9yQ30f3iY5
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit

FreeBSD 15.0-CURRENT using pkgbase, not built from source.

Beginning around the end of July 2024: wake from sleep was troublesome, 
for around three months.

Then good, close to 99% reliable, for around two months. (At the end of 
October: someone helped me to correct a script that was intended to take 
offline, before sleep, ZFS L2ARC devices (USB memory sticks). I assumed 
that the previously poor script, which I had used since long before 
troubles began in July/August, was an aggravating factor.)

----

I suspect that troubles began again around 5th January 2025. A handful 
of failures.

With debug.acpi.resume_beep=1:

- when wake fails, there's darkness and an endless beep, so
   I press and hold the power button to force off the computer.

 From recent archives of /var/log/messages:

…
Jan  6 20:28:52 mowa219-gjp4-zbook-freebsd acpi[55201]: suspend at 
20250106 20:28:52
…
Jan  7 03:56:10 mowa219-gjp4-zbook-freebsd kernel: ---<<BOOT>>---
…

– with no reboot between the suspend and the BOOT. That was probably the 
first of the recent handful of failures.

nvidia-driver-470, if that's relevant. HP ZBook 17 G2, nearly always 
docked with one or two displays on DisplayPort.


The script that (a) takes three L2ARC devices offline, and (b) exports a 
pool 'Transcend' that's on a mobile hard disk drive:

grahamperrin:~ % head -n 1 /usr/local/sbin/suspend.sh ; grep -v \# 
/usr/local/sbin/suspend.sh | uniq
#!/bin/sh

zpool offline -t august gpt/cache1-august &
zpool offline -t august gpt/cache2-august &
zpool offline -t august gpt/cache3-august &

while mount | grep -q Transcend ; do
    zpool export Transcend
    sleep 5
done

grahamperrin:~ %


/etc/rc.suspend includes this line:

/usr/local/sbin/suspend.sh


See also: today's 
<https://lists.freebsd.org/archives/freebsd-wireless/2025-January/002709.html>, 


> iwm(4) occasionally troublesome since main-n274579-50c1e179b584 
> (2025-01-05)

--------------5ftMzaOHfQsGZG9yQ30f3iY5
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit

<!DOCTYPE html>
<html data-lt-installed="true">
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body style="padding-bottom: 1px;">
    <p><font face="monospace">FreeBSD 15.0-CURRENT using pkgbase, not
        built from source.</font></p>
    <p><font face="monospace">Beginning around the end of July 2024:
        wake from sleep was troublesome, for around three months. </font></p>
    <p><font face="monospace">Then good, close to 99% reliable, for
        around two months. (At the end of October: someone helped me to
        correct a script that was intended to take offline, before
        sleep, ZFS L2ARC devices (USB memory sticks). I assumed that the
        previously poor script, which I had used since long before
        troubles began in July/August, was an aggravating factor.)<br>
      </font></p>
    <p><font face="monospace">----</font></p>
    <p><font face="monospace">I suspect that troubles began again around
        5th January 2025. A handful of failures. <br>
      </font></p>
    <p><font face="monospace">With debug.acpi.resume_beep=1: </font></p>
    <p><font face="monospace">- when wake fails, there's darkness and an
        endless beep, so <br>
          I press and hold the power button to force off the computer.<br>
      </font></p>
    <p><font face="monospace">From recent archives of
        /var/log/messages: </font></p>
    <p><font face="monospace">…<br>
        Jan  6 20:28:52 mowa219-gjp4-zbook-freebsd acpi[55201]: suspend
        at 20250106 20:28:52<br>
      </font><font face="monospace">…</font><br>
      <font face="monospace">Jan  7 03:56:10 mowa219-gjp4-zbook-freebsd
        kernel: ---&lt;&lt;BOOT&gt;&gt;---<br>
      </font><font face="monospace">…</font></p>
    <p><font face="monospace">– with no reboot between the suspend and
        the BOOT. That was probably the first of the recent handful of
        failures. <br>
      </font></p>
    <p><font face="monospace">nvidia-driver-470, if that's relevant. </font><font
        face="monospace">HP ZBook 17 G2, nearly always docked with one
        or two displays on DisplayPort.<br>
      </font></p>
    <p><font face="monospace"><br>
      </font></p>
    <p><font face="monospace">The script that (a) takes three L2ARC
        devices offline, and (b) exports a pool 'Transcend' that's on a
        mobile hard disk drive: <br>
      </font></p>
    <p><font face="monospace">grahamperrin:~ % head -n 1
        /usr/local/sbin/suspend.sh ; grep -v \#
        /usr/local/sbin/suspend.sh | uniq<br>
        #!/bin/sh<br>
        <br>
        zpool offline -t august gpt/cache1-august &amp;<br>
        zpool offline -t august gpt/cache2-august &amp;<br>
        zpool offline -t august gpt/cache3-august &amp;<br>
        <br>
        while mount | grep -q Transcend ; do<br>
           zpool export Transcend<br>
           sleep 5<br>
        done<br>
        <br>
        grahamperrin:~ % <br>
      </font></p>
    <p><font face="monospace"><br>
      </font></p>
    <p><font face="monospace">/etc/rc.suspend includes this line: <br>
      </font></p>
    <p><font face="monospace">/usr/local/sbin/suspend.sh<br>
      </font></p>
    <p><font face="monospace"><br>
      </font></p>
    <p><font face="monospace">See also: today's
<a class="moz-txt-link-rfc2396E" href="https://lists.freebsd.org/archives/freebsd-wireless/2025-January/002709.html">&lt;https://lists.freebsd.org/archives/freebsd-wireless/2025-January/002709.html&gt;</a>,
        <br>
      </font></p>
    <p><font face="monospace">
        <blockquote type="cite"><font face="monospace">iwm(4)
            occasionally troublesome since main-n274579-50c1e179b584
            (2025-01-05)</font></blockquote>
        <br>
      </font></p>
  </body>
  <lt-container></lt-container>
</html>

--------------5ftMzaOHfQsGZG9yQ30f3iY5--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d723d912-c02b-4852-867b-c6f4cac8070a>