Date: Fri, 11 Nov 2022 10:52:00 +0800 From: Zhenlei Huang <zlei.huang@gmail.com> To: louis.freebsd@xs4all.nl Cc: "<freebsd-current@freebsd.org>" <freebsd-current@FreeBSD.org> Subject: Re: DESPARATE: How to stop FreeBSD form sleeping / disable ACPI? (on FreeBSD14 CURRENT) Message-ID: <56341E2C-8856-40FB-AC4E-00DB4E116F19@gmail.com> In-Reply-To: <001901d8f543$1dab2900$59017b00$@xs4all.nl> References: <001901d8f543$1dab2900$59017b00$@xs4all.nl>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] > On Nov 11, 2022, at 4:29 AM, <louis.freebsd@xs4all.nl> <louis.freebsd@xs4all.nl> wrote: > > I am still desperately trying to stop FreeBSD from sleeping, but I simply do not manage. > > It is really very annoying that I have to restart the machine every 10 minutes, when I am working via SSH. I think you will need to find the event triggering sleep (ACPI s1 / s3) every 10 minutes. > So if any one has a solution, it would be very much appreciated! > > It should β¦.. be possible to kill / stop ACPI some how π > If absolutely not possible in the actual build π, a cron job restarting the timer every 5 minutes perhaps !!??? > > It is possible perhaps β¦ that GNOME is initiating this, despite that the GUI powersetting is screenblank βNEVERβ. Probably. (or some other components of the GNOME) I've dozens of VMs / baremetal machines used as servers and routers. None of them sleep (without explicitly means such as acpiconf). I've not use FreeBSD as desktop since about ten year ago. > Whatever is causing the problem, the settings should be such that ^no whatever program^ should not be capable to initiate the sleepmode. > > > Louis > ------------------------ > I need to disable acpi and the indicated method for that is to add ^hint.acpi.0.disabled="1"^ in /boot/loader.conf . > However that crashes my system !!!!!! > Not only that, to make it work again I have to edit loader.conf on a system which does ^not start^. > > After a lot of searching Internet came to the help with, I could start the system again: > 1. Select 3. Escape to loader prompt at the splash screen > 2. Type set hint.acpi.0.disabled="0" on the loader prompt > 3. Then type boot on the loader prompt > edit the loader.conf > Very very glad with that fix however > > However the problem is still there, no idea how to prevent the system from going to sleep (after about 10 minutes). > No idea how to change those 10 minutes to a much longer time as well .... > > Note that I have gnome as gui and use the system more or less as server and manage the machine partly local via the GUI and partly remote via SSH. I think you can disable GUI / GNOME completely and try again. > > Related to GNOME I did try ^gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout 0^, however that did not solve the problem as well. > > In the end there seems to two problems > a) A BSD-issue ACPI-turn off in the bootloader is crashing the system ! ! and > b) a GNOME issue (switching the system off during user inactivity, which is bullshit for a server / for ssh-login / with multiple users). > What IMHO apart from the screen lock, this is not a GNOME task but an OS function to be configured by the system administrator. > > A third problem, not to be addressed here, is that recovery from sleep mode does not work on my system as well (even not S1). > > Most important for the moment is that the system keeps running / is not going down after x-time ! > > Louis Best regards, Zhenlei [-- Attachment #2 --] <html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class=""><div><br class=""></div></div><div><blockquote type="cite" class=""><div class="">On Nov 11, 2022, at 4:29 AM, <<a href="mailto:louis.freebsd@xs4all.nl" class="">louis.freebsd@xs4all.nl</a>> <<a href="mailto:louis.freebsd@xs4all.nl" class="">louis.freebsd@xs4all.nl</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="WordSection1" style="page: WordSection1; caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="EN-US" class="">I am still desperately trying to stop FreeBSD from sleeping, but I simply do not manage.<span class="Apple-converted-space"> </span><o:p class=""></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="EN-US" class=""><o:p class=""> </o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="EN-US" class="">It is really very annoying that I have to restart the machine every 10 minutes, when I am working via SSH.</span></div></div></div></blockquote><div><br class=""></div><div>I think you will need to find the event triggering sleep (ACPI s1 / s3) every 10 minutes.</div><div><br class=""></div><blockquote type="cite" class=""><div class=""><div class="WordSection1" style="page: WordSection1; caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="EN-US" class=""><o:p class=""></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="EN-US" class="">So if any one has a solution, it would be very much appreciated!<o:p class=""></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="EN-US" class=""><o:p class=""> </o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="EN-US" class="">It should β¦.. be possible to kill / stop ACPI some how<span class="Apple-converted-space"> </span></span><span lang="EN-US" style="font-family: "Segoe UI Emoji", sans-serif;" class="">π</span></div></div></div></blockquote><blockquote type="cite" class=""><div class=""><div class="WordSection1" style="page: WordSection1; caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="EN-US" class=""><o:p class=""></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="EN-US" class="">If absolutely not possible in the actual build<span class="Apple-converted-space"> </span></span><span lang="EN-US" style="font-family: "Segoe UI Emoji", sans-serif;" class="">π</span><span lang="EN-US" class="">, a cron job restarting the timer every 5 minutes perhaps !!???<o:p class=""></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="EN-US" class=""><o:p class=""> </o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="EN-US" class="">It is possible perhaps β¦ that GNOME is initiating this, despite that the GUI powersetting is screenblank βNEVERβ. </span></div></div></div></blockquote><div><br class=""></div><div><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class="">Probably. (or some other components of the GNOME)</span></div><div><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class=""><br class=""></span></div><div><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class="">I've dozens of VMs / baremetal machines used as servers and routers. None of them sleep (without explicitly means such as acpiconf).</span></div><div><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class="">I've not use FreeBSD as desktop since about ten year ago.</span></div><br class=""><blockquote type="cite" class=""><div class=""><div class="WordSection1" style="page: WordSection1; caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="EN-US" class=""><o:p class=""></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="EN-US" class="">Whatever is causing the problem, the settings should be such that ^no whatever program^ should not be capable to initiate the sleepmode.<span class="Apple-converted-space"> </span></span></div></div></div></blockquote><blockquote type="cite" class=""><div class=""><div class="WordSection1" style="page: WordSection1; caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="EN-US" class=""><o:p class=""></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="EN-US" class=""> <o:p class=""></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="EN-US" class=""><o:p class=""> </o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="EN-US" class="">Louis<o:p class=""></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="EN-US" class="">------------------------<o:p class=""></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="EN-US" class="">I need to disable acpi and the indicated method for that is to add ^hint.acpi.0.disabled="1"^ in /boot/loader.conf .<o:p class=""></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="EN-US" class="">However that crashes my system !!!!!!<span class="Apple-converted-space"> </span><o:p class=""></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="EN-US" class="">Not only that, to make it work again I have to edit loader.conf on a system which does ^not start^. <o:p class=""></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="EN-US" class=""><o:p class=""> </o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="EN-US" class="">After a lot of searching Internet came to the help with, I could start the system again:<o:p class=""></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="EN-US" class="">1. Select 3. Escape to loader prompt at the splash screen<o:p class=""></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="EN-US" class="">2. Type set hint.acpi.0.disabled="0" on the loader prompt<o:p class=""></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="EN-US" class="">3. Then type boot on the loader prompt<o:p class=""></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="EN-US" class="">edit the loader.conf<o:p class=""></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="EN-US" class="">Very very glad with that fix however<o:p class=""></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="EN-US" class=""><o:p class=""> </o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="EN-US" class="">However the problem is still there, no idea how to prevent the system from going to sleep (after about 10 minutes).<o:p class=""></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="EN-US" class="">No idea how to change those 10 minutes to a much longer time as well ....<span class="Apple-converted-space"> </span><o:p class=""></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="EN-US" class=""><o:p class=""> </o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="EN-US" class="">Note that I have gnome as gui and use the system more or less as server and manage the machine partly local via the GUI and partly remote via SSH.</span></div></div></div></blockquote><div><br class=""></div><div>I think you can disable GUI / <span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class="">GNOME completely and try again.</span></div><br class=""><blockquote type="cite" class=""><div class=""><div class="WordSection1" style="page: WordSection1; caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="EN-US" class=""><o:p class=""></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="EN-US" class=""><o:p class=""> </o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="EN-US" class="">Related to GNOME I did try ^gsettings set org.gnome.settings-daemon.plugins.power sleep-inactive-ac-timeout 0^, however that did not solve the problem as well.<o:p class=""></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="EN-US" class=""><o:p class=""> </o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="EN-US" class="">In the end there seems to two problems<o:p class=""></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="EN-US" class="">a) A BSD-issue ACPI-turn off in the bootloader is crashing the system ! ! and<span class="Apple-converted-space"> </span><o:p class=""></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="EN-US" class="">b) a GNOME issue (switching the system off during user inactivity, which is bullshit for a server / for ssh-login / with multiple users).<o:p class=""></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="EN-US" class="">What IMHO apart from the screen lock, this is not a GNOME task but an OS function to be configured by the system administrator.<o:p class=""></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="EN-US" class=""><o:p class=""> </o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="EN-US" class="">A third problem, not to be addressed here, is that recovery from sleep mode does not work on my system as well (even not S1).</span></div></div></div></blockquote><blockquote type="cite" class=""><div class=""><div class="WordSection1" style="page: WordSection1; caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="EN-US" class=""><o:p class=""></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="EN-US" class=""><o:p class=""> </o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="EN-US" class="">Most important for the moment is that the system keeps running / is not going down after x-time !<span class="Apple-converted-space"> </span><o:p class=""></o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="EN-US" class=""><o:p class=""> </o:p></span></div><div style="margin: 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="EN-US" class="">Louis</span></div></div></div></blockquote><br class=""></div><div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">Best regards,</div><div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">Zhenlei</div></div><br class=""></body></html>help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?56341E2C-8856-40FB-AC4E-00DB4E116F19>
