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>
next in thread | previous in thread | raw e-mail | index | archive | help
--Apple-Mail=_F7DEA399-0E0A-4AAE-8A54-546A4EBA34F3 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Nov 11, 2022, at 4:29 AM, <louis.freebsd@xs4all.nl> = <louis.freebsd@xs4all.nl> wrote: >=20 > I am still desperately trying to stop FreeBSD from sleeping, but I = simply do not manage.=20 > =20 > 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! > =20 > It should =E2=80=A6.. be possible to kill / stop ACPI some how =F0=9F=98= =8A > If absolutely not possible in the actual build =F0=9F=98=8A, a cron = job restarting the timer every 5 minutes perhaps !!??? > =20 > It is possible perhaps =E2=80=A6 that GNOME is initiating this, = despite that the GUI powersetting is screenblank =E2=80=9CNEVER=E2=80=9D. = =20 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.=20 > =20 > =20 > Louis > ------------------------ > I need to disable acpi and the indicated method for that is to add = ^hint.acpi.0.disabled=3D"1"^ in /boot/loader.conf . > However that crashes my system !!!!!!=20 > Not only that, to make it work again I have to edit loader.conf on a = system which does ^not start^. =20 > =20 > 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=3D"0" on the loader prompt > 3. Then type boot on the loader prompt > edit the loader.conf > Very very glad with that fix however > =20 > 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 = ....=20 > =20 > 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. > =20 > 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. > =20 > In the end there seems to two problems > a) A BSD-issue ACPI-turn off in the bootloader is crashing the system = ! ! and=20 > 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. > =20 > 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). > =20 > Most important for the moment is that the system keeps running / is = not going down after x-time !=20 > =20 > Louis Best regards, Zhenlei --Apple-Mail=_F7DEA399-0E0A-4AAE-8A54-546A4EBA34F3 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 <html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; = charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; = -webkit-nbsp-mode: space; line-break: after-white-space;" class=3D""><div = class=3D""><div><br class=3D""></div></div><div><blockquote type=3D"cite" = class=3D""><div class=3D"">On Nov 11, 2022, at 4:29 AM, <<a = href=3D"mailto:louis.freebsd@xs4all.nl" = class=3D"">louis.freebsd@xs4all.nl</a>> <<a = href=3D"mailto:louis.freebsd@xs4all.nl" = class=3D"">louis.freebsd@xs4all.nl</a>> wrote:</div><br = class=3D"Apple-interchange-newline"><div class=3D""><div = class=3D"WordSection1" style=3D"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=3D"margin: 0cm; font-size: 11pt; = font-family: Calibri, sans-serif;" class=3D""><span lang=3D"EN-US" = class=3D"">I am still desperately trying to stop FreeBSD from sleeping, = but I simply do not manage.<span = class=3D"Apple-converted-space"> </span><o:p = class=3D""></o:p></span></div><div style=3D"margin: 0cm; font-size: = 11pt; font-family: Calibri, sans-serif;" class=3D""><span lang=3D"EN-US" = class=3D""><o:p class=3D""> </o:p></span></div><div style=3D"margin: = 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=3D""><span = lang=3D"EN-US" class=3D"">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=3D""></div><div>I= think you will need to find the event triggering sleep (ACPI s1 / s3) = every 10 minutes.</div><div><br class=3D""></div><blockquote type=3D"cite"= class=3D""><div class=3D""><div class=3D"WordSection1" style=3D"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=3D"margin: 0cm; font-size: 11pt; font-family: Calibri, = sans-serif;" class=3D""><span lang=3D"EN-US" class=3D""><o:p = class=3D""></o:p></span></div><div style=3D"margin: 0cm; font-size: = 11pt; font-family: Calibri, sans-serif;" class=3D""><span lang=3D"EN-US" = class=3D"">So if any one has a solution, it would be very much = appreciated!<o:p class=3D""></o:p></span></div><div style=3D"margin: = 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=3D""><span = lang=3D"EN-US" class=3D""><o:p class=3D""> </o:p></span></div><div = style=3D"margin: 0cm; font-size: 11pt; font-family: Calibri, = sans-serif;" class=3D""><span lang=3D"EN-US" class=3D"">It should =E2=80=A6= .. be possible to kill / stop ACPI some how<span = class=3D"Apple-converted-space"> </span></span><span lang=3D"EN-US" = style=3D"font-family: "Segoe UI Emoji", sans-serif;" = class=3D"">=F0=9F=98=8A</span></div></div></div></blockquote><blockquote = type=3D"cite" class=3D""><div class=3D""><div class=3D"WordSection1" = style=3D"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=3D"margin: 0cm; font-size: 11pt; font-family: Calibri, = sans-serif;" class=3D""><span lang=3D"EN-US" class=3D""><o:p = class=3D""></o:p></span></div><div style=3D"margin: 0cm; font-size: = 11pt; font-family: Calibri, sans-serif;" class=3D""><span lang=3D"EN-US" = class=3D"">If absolutely not possible in the actual build<span = class=3D"Apple-converted-space"> </span></span><span lang=3D"EN-US" = style=3D"font-family: "Segoe UI Emoji", sans-serif;" = class=3D"">=F0=9F=98=8A</span><span lang=3D"EN-US" class=3D"">, a cron = job restarting the timer every 5 minutes perhaps !!???<o:p = class=3D""></o:p></span></div><div style=3D"margin: 0cm; font-size: = 11pt; font-family: Calibri, sans-serif;" class=3D""><span lang=3D"EN-US" = class=3D""><o:p class=3D""> </o:p></span></div><div style=3D"margin: = 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=3D""><span = lang=3D"EN-US" class=3D"">It is possible perhaps =E2=80=A6 that GNOME is = initiating this, despite that the GUI powersetting is screenblank = =E2=80=9CNEVER=E2=80=9D. = </span></div></div></div></blockquote><div><br = class=3D""></div><div><span style=3D"caret-color: rgb(0, 0, 0); color: = rgb(0, 0, 0);" class=3D"">Probably. (or some other components of the = GNOME)</span></div><div><span style=3D"caret-color: rgb(0, 0, 0); color: = rgb(0, 0, 0);" class=3D""><br class=3D""></span></div><div><span = style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);" class=3D"">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=3D"caret-color: rgb(0, 0, 0); = color: rgb(0, 0, 0);" class=3D"">I've not use FreeBSD as desktop since = about ten year ago.</span></div><br class=3D""><blockquote type=3D"cite" = class=3D""><div class=3D""><div class=3D"WordSection1" style=3D"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=3D"margin: 0cm; font-size: 11pt; font-family: Calibri, = sans-serif;" class=3D""><span lang=3D"EN-US" class=3D""><o:p = class=3D""></o:p></span></div><div style=3D"margin: 0cm; font-size: = 11pt; font-family: Calibri, sans-serif;" class=3D""><span lang=3D"EN-US" = class=3D"">Whatever is causing the problem, the settings should be such = that ^no whatever program^ should not be capable to initiate the = sleepmode.<span = class=3D"Apple-converted-space"> </span></span></div></div></div></bl= ockquote><blockquote type=3D"cite" class=3D""><div class=3D""><div = class=3D"WordSection1" style=3D"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=3D"margin: 0cm; font-size: 11pt; = font-family: Calibri, sans-serif;" class=3D""><span lang=3D"EN-US" = class=3D""><o:p class=3D""></o:p></span></div><div style=3D"margin: 0cm; = font-size: 11pt; font-family: Calibri, sans-serif;" class=3D""><span = lang=3D"EN-US" class=3D""> <o:p class=3D""></o:p></span></div><div = style=3D"margin: 0cm; font-size: 11pt; font-family: Calibri, = sans-serif;" class=3D""><span lang=3D"EN-US" class=3D""><o:p = class=3D""> </o:p></span></div><div style=3D"margin: 0cm; = font-size: 11pt; font-family: Calibri, sans-serif;" class=3D""><span = lang=3D"EN-US" class=3D"">Louis<o:p class=3D""></o:p></span></div><div = style=3D"margin: 0cm; font-size: 11pt; font-family: Calibri, = sans-serif;" class=3D""><span lang=3D"EN-US" = class=3D"">------------------------<o:p class=3D""></o:p></span></div><div= style=3D"margin: 0cm; font-size: 11pt; font-family: Calibri, = sans-serif;" class=3D""><span lang=3D"EN-US" class=3D"">I need to = disable acpi and the indicated method for that is to add = ^hint.acpi.0.disabled=3D"1"^ in /boot/loader.conf .<o:p = class=3D""></o:p></span></div><div style=3D"margin: 0cm; font-size: = 11pt; font-family: Calibri, sans-serif;" class=3D""><span lang=3D"EN-US" = class=3D"">However that crashes my system !!!!!!<span = class=3D"Apple-converted-space"> </span><o:p = class=3D""></o:p></span></div><div style=3D"margin: 0cm; font-size: = 11pt; font-family: Calibri, sans-serif;" class=3D""><span lang=3D"EN-US" = class=3D"">Not only that, to make it work again I have to edit = loader.conf on a system which does ^not start^. <o:p = class=3D""></o:p></span></div><div style=3D"margin: 0cm; font-size: = 11pt; font-family: Calibri, sans-serif;" class=3D""><span lang=3D"EN-US" = class=3D""><o:p class=3D""> </o:p></span></div><div style=3D"margin: = 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=3D""><span = lang=3D"EN-US" class=3D"">After a lot of searching Internet came to the = help with, I could start the system again:<o:p = class=3D""></o:p></span></div><div style=3D"margin: 0cm; font-size: = 11pt; font-family: Calibri, sans-serif;" class=3D""><span lang=3D"EN-US" = class=3D"">1. Select 3. Escape to loader prompt at the splash screen<o:p = class=3D""></o:p></span></div><div style=3D"margin: 0cm; font-size: = 11pt; font-family: Calibri, sans-serif;" class=3D""><span lang=3D"EN-US" = class=3D"">2. Type set hint.acpi.0.disabled=3D"0" on the loader = prompt<o:p class=3D""></o:p></span></div><div style=3D"margin: 0cm; = font-size: 11pt; font-family: Calibri, sans-serif;" class=3D""><span = lang=3D"EN-US" class=3D"">3. Then type boot on the loader prompt<o:p = class=3D""></o:p></span></div><div style=3D"margin: 0cm; font-size: = 11pt; font-family: Calibri, sans-serif;" class=3D""><span lang=3D"EN-US" = class=3D"">edit the loader.conf<o:p class=3D""></o:p></span></div><div = style=3D"margin: 0cm; font-size: 11pt; font-family: Calibri, = sans-serif;" class=3D""><span lang=3D"EN-US" class=3D"">Very very glad = with that fix however<o:p class=3D""></o:p></span></div><div = style=3D"margin: 0cm; font-size: 11pt; font-family: Calibri, = sans-serif;" class=3D""><span lang=3D"EN-US" class=3D""><o:p = class=3D""> </o:p></span></div><div style=3D"margin: 0cm; = font-size: 11pt; font-family: Calibri, sans-serif;" class=3D""><span = lang=3D"EN-US" class=3D"">However the problem is still there, no idea = how to prevent the system from going to sleep (after about 10 = minutes).<o:p class=3D""></o:p></span></div><div style=3D"margin: 0cm; = font-size: 11pt; font-family: Calibri, sans-serif;" class=3D""><span = lang=3D"EN-US" class=3D"">No idea how to change those 10 minutes to a = much longer time as well ....<span = class=3D"Apple-converted-space"> </span><o:p = class=3D""></o:p></span></div><div style=3D"margin: 0cm; font-size: = 11pt; font-family: Calibri, sans-serif;" class=3D""><span lang=3D"EN-US" = class=3D""><o:p class=3D""> </o:p></span></div><div style=3D"margin: = 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=3D""><span = lang=3D"EN-US" class=3D"">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=3D""></div><div>I= think you can disable GUI / <span style=3D"caret-color: rgb(0, 0, = 0); color: rgb(0, 0, 0);" class=3D"">GNOME completely and try = again.</span></div><br class=3D""><blockquote type=3D"cite" = class=3D""><div class=3D""><div class=3D"WordSection1" style=3D"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=3D"margin: 0cm; font-size: 11pt; font-family: Calibri, = sans-serif;" class=3D""><span lang=3D"EN-US" class=3D""><o:p = class=3D""></o:p></span></div><div style=3D"margin: 0cm; font-size: = 11pt; font-family: Calibri, sans-serif;" class=3D""><span lang=3D"EN-US" = class=3D""><o:p class=3D""> </o:p></span></div><div style=3D"margin: = 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=3D""><span = lang=3D"EN-US" class=3D"">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=3D""></o:p></span></div><div style=3D"margin: 0cm; font-size: = 11pt; font-family: Calibri, sans-serif;" class=3D""><span lang=3D"EN-US" = class=3D""><o:p class=3D""> </o:p></span></div><div style=3D"margin: = 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=3D""><span = lang=3D"EN-US" class=3D"">In the end there seems to two problems<o:p = class=3D""></o:p></span></div><div style=3D"margin: 0cm; font-size: = 11pt; font-family: Calibri, sans-serif;" class=3D""><span lang=3D"EN-US" = class=3D"">a) A BSD-issue ACPI-turn off in the bootloader is crashing = the system ! ! and<span class=3D"Apple-converted-space"> </span><o:p = class=3D""></o:p></span></div><div style=3D"margin: 0cm; font-size: = 11pt; font-family: Calibri, sans-serif;" class=3D""><span lang=3D"EN-US" = class=3D"">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=3D""></o:p></span></div><div style=3D"margin: = 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=3D""><span = lang=3D"EN-US" class=3D"">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=3D""></o:p></span></div><div style=3D"margin: = 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=3D""><span = lang=3D"EN-US" class=3D""><o:p class=3D""> </o:p></span></div><div = style=3D"margin: 0cm; font-size: 11pt; font-family: Calibri, = sans-serif;" class=3D""><span lang=3D"EN-US" class=3D"">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=3D"cite" = class=3D""><div class=3D""><div class=3D"WordSection1" style=3D"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=3D"margin: 0cm; font-size: 11pt; font-family: Calibri, = sans-serif;" class=3D""><span lang=3D"EN-US" class=3D""><o:p = class=3D""></o:p></span></div><div style=3D"margin: 0cm; font-size: = 11pt; font-family: Calibri, sans-serif;" class=3D""><span lang=3D"EN-US" = class=3D""><o:p class=3D""> </o:p></span></div><div style=3D"margin: = 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=3D""><span = lang=3D"EN-US" class=3D"">Most important for the moment is that the = system keeps running / is not going down after x-time !<span = class=3D"Apple-converted-space"> </span><o:p = class=3D""></o:p></span></div><div style=3D"margin: 0cm; font-size: = 11pt; font-family: Calibri, sans-serif;" class=3D""><span lang=3D"EN-US" = class=3D""><o:p class=3D""> </o:p></span></div><div style=3D"margin: = 0cm; font-size: 11pt; font-family: Calibri, sans-serif;" class=3D""><span = lang=3D"EN-US" class=3D"">Louis</span></div></div></div></blockquote><br = class=3D""></div><div><div style=3D"caret-color: rgb(0, 0, 0); color: = rgb(0, 0, 0);">Best regards,</div><div style=3D"caret-color: rgb(0, 0, = 0); color: rgb(0, 0, 0);">Zhenlei</div></div><br class=3D""></body></html>= --Apple-Mail=_F7DEA399-0E0A-4AAE-8A54-546A4EBA34F3--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?56341E2C-8856-40FB-AC4E-00DB4E116F19>