Date: Thu, 10 Nov 2022 21:29:21 +0100 From: <louis.freebsd@xs4all.nl> To: <freebsd-current@FreeBSD.org> Subject: DESPARATE: How to stop FreeBSD form sleeping / disable ACPI? (on FreeBSD14 CURRENT) Message-ID: <001901d8f543$1dab2900$59017b00$@xs4all.nl>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] 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. 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”. � 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. � 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 [-- Attachment #2 --] <html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;} @font-face {font-family:"Segoe UI Emoji"; panose-1:2 11 5 2 4 2 4 2 2 3;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0cm; font-size:11.0pt; font-family:"Calibri",sans-serif; mso-fareast-language:EN-US;} .MsoChpDefault {mso-style-type:export-only; font-size:10.0pt;} @page WordSection1 {size:612.0pt 792.0pt; margin:70.85pt 70.85pt 70.85pt 70.85pt;} div.WordSection1 {page:WordSection1;} --></style><!--[if gte mso 9]><xml> <o:shapedefaults v:ext="edit" spidmax="1026" /> </xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext="edit"> <o:idmap v:ext="edit" data="1" /> </o:shapelayout></xml><![endif]--></head><body lang=NL link="#0563C1" vlink="#954F72" style='word-wrap:break-word'><div class=WordSection1><p class=MsoNormal><span lang=EN-US>I am still desperately trying to stop FreeBSD from sleeping, but I simply do not manage. <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>It is really very annoying that I have to restart the machine every 10 minutes, when I am working via SSH.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>So if any one has a solution, it would be very much appreciated!<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>It should ….. be possible to kill / stop ACPI some how </span><span lang=EN-US style='font-family:"Segoe UI Emoji",sans-serif'>😊</span><span lang=EN-US><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>If absolutely not possible in the actual build </span><span lang=EN-US style='font-family:"Segoe UI Emoji",sans-serif'>😊</span><span lang=EN-US>, a cron job restarting the timer every 5 minutes perhaps !!???<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>It is possible perhaps … that GNOME is initiating this, despite that the GUI powersetting is screenblank “NEVER”. <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Whatever is causing the problem, the settings should be such that ^no whatever program^ should not be capable to initiate the sleepmode. <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US> <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Louis<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>------------------------<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>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></o:p></span></p><p class=MsoNormal><span lang=EN-US>However that crashes my system !!!!!! <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Not only that, to make it work again I have to edit loader.conf on a system which does ^not start^. <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>After a lot of searching Internet came to the help with, I could start the system again:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>1. Select 3. Escape to loader prompt at the splash screen<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>2. Type set hint.acpi.0.disabled="0" on the loader prompt<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>3. Then type boot on the loader prompt<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>edit the loader.conf<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Very very glad with that fix however<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>However the problem is still there, no idea how to prevent the system from going to sleep (after about 10 minutes).<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>No idea how to change those 10 minutes to a much longer time as well .... <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>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.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>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></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>In the end there seems to two problems<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>a) A BSD-issue ACPI-turn off in the bootloader is crashing the system ! ! and <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>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></o:p></span></p><p class=MsoNormal><span lang=EN-US>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></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>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).<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Most important for the moment is that the system keeps running / is not going down after x-time ! <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Louis<o:p></o:p></span></p></div></body></html>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?001901d8f543$1dab2900$59017b00$>
