<div dir="ltr"><div class="gmail-highlight gmail-highlight-source-shell" style="box-sizing:border-box;margin-bottom:16px"><pre style="box-sizing:border-box;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:13.6px;margin-top:0px;margin-bottom:0px;padding:16px;overflow:auto;line-height:1.45;border-radius:6px;word-break:normal">Meant this to send this too. I like being able to decide what lid closing does. </pre><pre style="box-sizing:border-box;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:13.6px;margin-top:0px;margin-bottom:0px;padding:16px;overflow:auto;line-height:1.45;border-radius:6px;word-break:normal"><font style="box-sizing:border-box;vertical-align:inherit"><font style="box-sizing:border-box;vertical-align:inherit">systemctl unmask sleep.target suspend.target hibernate.target hybrid-sleep.target</font></font></pre><pre style="box-sizing:border-box;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:13.6px;margin-top:0px;margin-bottom:0px;padding:16px;overflow:auto;line-height:1.45;border-radius:6px;word-break:normal">sudo nano /etc/systemd/logind.conf</pre></div><p dir="auto" style="box-sizing:border-box;margin-top:0px;margin-bottom:16px"><font style="box-sizing:border-box;vertical-align:inherit"><font style="box-sizing:border-box;vertical-align:inherit">modify </font></font><code style="box-sizing:border-box;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:13.6px;padding:0.2em 0.4em;margin:0px;border-radius:6px">#HandleLidSwitch=suspend</code><font style="box-sizing:border-box;vertical-align:inherit"><font style="box-sizing:border-box;vertical-align:inherit">,</font></font></p><blockquote style="box-sizing:border-box;margin:0px 0px 16px;padding:0px 1em"><ul dir="auto" style="box-sizing:border-box;padding-left:2em;margin-top:0px;margin-bottom:0px"><li style="box-sizing:border-box"><font style="box-sizing:border-box;vertical-align:inherit"><font style="box-sizing:border-box;vertical-align:inherit">HandleLidSwitch=poweroff computer shuts down when lid is closed</font></font></li><li style="box-sizing:border-box;margin-top:0.25em"><font style="box-sizing:border-box;vertical-align:inherit"><font style="box-sizing:border-box;vertical-align:inherit">HandleLidSwitch=hibernate Computer sleeps when lid is closed</font></font></li><li style="box-sizing:border-box;margin-top:0.25em"><font style="box-sizing:border-box;vertical-align:inherit"><font style="box-sizing:border-box;vertical-align:inherit">HandleLidSwitch=suspend computer hangs when lid is closed</font></font></li><li style="box-sizing:border-box;margin-top:0.25em"><font style="box-sizing:border-box;vertical-align:inherit"><font style="box-sizing:border-box;vertical-align:inherit">HandleLidSwitch=ignore does nothing</font></font></li></ul></blockquote><p style="box-sizing:border-box;margin-top:0px;margin-bottom:16px"><code style="box-sizing:border-box;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:13.6px;padding:0.2em 0.4em;margin:0px;border-radius:6px">sysrmctl daemon-reload</code></p><p dir="auto" style="box-sizing:border-box;margin-top:0px;margin-bottom:16px"><code style="box-sizing:border-box;font-family:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;font-size:13.6px;padding:0.2em 0.4em;margin:0px;border-radius:6px">systemctl restart systemd-login</code><font style="box-sizing:border-box;vertical-align:inherit"><font style="box-sizing:border-box;vertical-align:inherit">restart .</font></font></p><h2 dir="auto" style="box-sizing:border-box;margin-top:24px;margin-bottom:16px;line-height:1.25;padding-bottom:0.3em"><a id="gmail-user-content-为-wifi-设置驱动程序" class="gmail-anchor" aria-hidden="true" href="https://gist.github.com/xiaolai/0dd2d7546dd1931f40b4e674d0e11d82#%E4%B8%BA-wifi-%E8%AE%BE%E7%BD%AE%E9%A9%B1%E5%8A%A8%E7%A8%8B%E5%BA%8F" style="box-sizing:border-box;text-decoration-line:none;float:left;padding-right:4px;line-height:1;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:24px"></a><font style="box-sizing:border-box;color:rgb(36,41,47);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:24px;vertical-align:inherit"><br class="gmail-Apple-interchange-newline"></font></h2></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Mar 12, 2022 at 12:53 PM Brian O'Keefe <<a href="mailto:okeefe@cybermesa.com">okeefe@cybermesa.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<p>Ditto. Ubuntu 20.04 with Mate DE. I can close lid and suspend
easily and awake easily. I don't unplug the power though as that's
a risk if the battery craps out before waking, as Ted states<br>
</p>
<div>On 3/12/22 08:35AM, Ted Pomeroy wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div class="gmail_default" style="font-size:large">LeRoy &
NMGLugers, 1) I suggest you keep power on overnight. If you
suspend and power fails your ram image of work is lost. You
can try hibernate, but there have been issues with Linux and
hibernate. Hibernate puts the snapshot image of your work on
the hard drive, but unless the resume is set to resume form
the correct location you will have a failure.</div>
<div class="gmail_default" style="font-size:large">My routine is
to suspend during the day, if I go out or take an hour off for
non-computer work. Over night I switch off after saving work
and closing all apps. Your LXde is fine. I use Xfce4 or Mate,
but the gui desktop is not the issue. I have found Mate much
easier to manage after also finding the "extras" package for
it and loading that. However, that just gives me a richer gui,
did not help with suspend. <br>
</div>
<div class="gmail_default" style="font-size:large">I hope this
helps. If not ask more questions. Thank you, Ted P<br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Sat, Mar 12, 2022 at 7:21
AM Wayne <<a href="mailto:Wayne@tradetimer.com" target="_blank">Wayne@tradetimer.com</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
I have often heard that Linus can have problems with
hibernation. Can you just 'Suspend' the system instead? That
ssem to be less problematical, though even that can be iffy,
depending on the laptop.<br>
<br>
<br>
On 3/11/22 8:02 PM, LeRoy Diener wrote:<br>
> Hi NMGLUG folks,<br>
> <br>
> I'm having an issue recently that I hope I can get help
with.<br>
> It's on my Debian 11 system, updated.<br>
> Recently, I've had problems when I leave the laptop
overnight.<br>
> When I stop, I click on Logout > Suspend, then the
screen goes black and I close the lid. I expect that when I
open the lid in the morning and enter my password, I should be
back where I left off.<br>
> <br>
> When I've done this recently, it works sometimes.<br>
> Other times, it crashes after the batteries run out of
power in the middle of the night.<br>
> Other times, it works, but I see a message in the morning
"None of the screen lock tools ran successfully, the screen
will not be locked. Do you still want to suspend the system?"<br>
> Other times, it works, but I see a message in the morning
"Authentication is required to hibernate the system."<br>
> <br>
> I have a setting in Power Manager to hibernate when
inactive for one hour, so that's what I'm focusing on now.<br>
> I found some helpful info in this link <a href="https://askubuntu.com/questions/543921/authentication-required-before-suspend" rel="noreferrer" target="_blank">https://askubuntu.com/questions/543921/authentication-required-before-suspend</a><br>
> I found the file
/usr/share/polkit-1/actions/org.freedesktop.login1.policy<br>
> In that file, I found this segment:<br>
> <action id="org.freedesktop.login1.hibernate"><br>
> <description gettext-domain="systemd">Hibernate the
system</description><br>
> <message gettext-domain="systemd">Authentication is
required to hibernate the system.</message><br>
> <defaults><br>
> <allow_any>auth_admin_keep</allow_any><br>
>
<allow_inactive>auth_admin_keep</allow_inactive><br>
> <allow_active>yes</allow_active><br>
> </defaults><br>
> </action><br>
> <br>
> Other info:<br>
> I usually have the laptop plugged into an external
monitor, and I usually have the power strip (which powers the
external monitor and laptop) turned off overnight.<br>
> <br>
> Any ideas?<br>
> <br>
> Thanks in advance.<br>
> LeRoy<br>
> <br>
> -- <br>
> <br>
> There is something glorious birthing within all of us.
(New for 2021)<br>
> I am the Love of God, no matter what.<br>
> BSA<br>
> LeRoy Diener<br>
> 213-LEROYIZ<br>
> 213-537-6949<br>
> <a href="https://leroydiener.com" rel="noreferrer" target="_blank">https://leroydiener.com</a>
<<a href="https://leroydiener.com/" rel="noreferrer" target="_blank">https://leroydiener.com/</a>><br>
> <br>
> _______________________________________________<br>
> nmglug mailing list<br>
> <a href="mailto:nmglug@lists.nmglug.org" target="_blank">nmglug@lists.nmglug.org</a><br>
> <a href="http://lists.nmglug.org/listinfo.cgi/nmglug-nmglug.org" rel="noreferrer" target="_blank">http://lists.nmglug.org/listinfo.cgi/nmglug-nmglug.org</a><br>
> <br>
_______________________________________________<br>
nmglug mailing list<br>
<a href="mailto:nmglug@lists.nmglug.org" target="_blank">nmglug@lists.nmglug.org</a><br>
<a href="http://lists.nmglug.org/listinfo.cgi/nmglug-nmglug.org" rel="noreferrer" target="_blank">http://lists.nmglug.org/listinfo.cgi/nmglug-nmglug.org</a><br>
</blockquote>
</div>
<br>
<fieldset></fieldset>
<pre>_______________________________________________
nmglug mailing list
<a href="mailto:nmglug@lists.nmglug.org" target="_blank">nmglug@lists.nmglug.org</a>
<a href="http://lists.nmglug.org/listinfo.cgi/nmglug-nmglug.org" target="_blank">http://lists.nmglug.org/listinfo.cgi/nmglug-nmglug.org</a>
</pre>
</blockquote>
<div>-- <br>
<img src="cid:17f80c5809661a917f31" border="0"></div>
</div>
_______________________________________________<br>
nmglug mailing list<br>
<a href="mailto:nmglug@lists.nmglug.org" target="_blank">nmglug@lists.nmglug.org</a><br>
<a href="http://lists.nmglug.org/listinfo.cgi/nmglug-nmglug.org" rel="noreferrer" target="_blank">http://lists.nmglug.org/listinfo.cgi/nmglug-nmglug.org</a><br>
</blockquote></div>