From nobody Sun Nov 6 22:59:15 2022 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4N58tz6T94z4hP5C for ; Sun, 6 Nov 2022 22:59:23 +0000 (UTC) (envelope-from mike@karels.net) Received: from mail.karels.net (mail.karels.net [216.160.39.52]) by mx1.freebsd.org (Postfix) with ESMTP id 4N58ty59XCz3qCM; Sun, 6 Nov 2022 22:59:22 +0000 (UTC) (envelope-from mike@karels.net) Received: from mail.karels.net (localhost [127.0.0.1]) by mail.karels.net (8.16.1/8.16.1) with ESMTP id 2A6MxFrk085984; Sun, 6 Nov 2022 16:59:15 -0600 (CST) (envelope-from mike@karels.net) Received: from [10.0.2.130] ([10.0.1.1]) by mail.karels.net with ESMTPSA id X5TdJUM8aGPeTwEA4+wvSQ (envelope-from ); Sun, 06 Nov 2022 16:59:15 -0600 From: Mike Karels To: Alexander Motin Cc: louis.freebsd@xs4all.nl, freebsd-current@FreeBSD.org Subject: Re: How to disable ACPI? (on FreeBSD14 CURRENT) Date: Sun, 06 Nov 2022 16:59:15 -0600 X-Mailer: MailMate (1.14r5921) Message-ID: In-Reply-To: <277f029d-828b-74c3-ab38-862c7959df55@FreeBSD.org> References: <000501d8f1e8$c0442df0$40cc89d0$@xs4all.nl> <277f029d-828b-74c3-ab38-862c7959df55@FreeBSD.org> List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4N58ty59XCz3qCM X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of mike@karels.net designates 216.160.39.52 as permitted sender) smtp.mailfrom=mike@karels.net X-Spamd-Result: default: False [-3.20 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.997]; R_SPF_ALLOW(-0.20)[+ip4:216.160.39.52]; MIME_GOOD(-0.10)[text/plain]; RCVD_NO_TLS_LAST(0.10)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MLMMJ_DEST(0.00)[freebsd-current@FreeBSD.org]; R_DKIM_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:209, ipnet:216.160.36.0/22, country:US]; MIME_TRACE(0.00)[0:+]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DMARC_NA(0.00)[karels.net]; FREEFALL_USER(0.00)[mike]; ARC_NA(0.00)[]; FREEMAIL_CC(0.00)[xs4all.nl,FreeBSD.org]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; MID_RHS_MATCH_FROM(0.00)[]; SUBJECT_HAS_QUESTION(0.00)[] X-ThisMailContainsUnwantedMimeParts: N On 6 Nov 2022, at 16:47, Alexander Motin wrote: > Hi Louis, > > You should not try to disable ACPI these days. It was a recommendation= in some cases probably ~15 years ago, but for many years now modern syst= ems depend on ACPI for proper operation. I have no idea what causes cras= h in your case, but I would not expect it to end up good any way. > > I know nothing about GNOME, haven't touched it for many years, but it m= ust be it what makes your laptop to sleep. FreeBSD itself does not imple= ment such automatic policies. It could the BIOS also if this is a laptop. Mike > On 06.11.2022 09:04, louis.freebsd@xs4all.nl wrote: >> I need to disable acpi and the indicated method for that is to add ^hi= nt.acpi.0.disabled=3D"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 s= ystem 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=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 >> >> 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 .= =2E.. >> >> Note that I have gnome as gui and use the system more or less as serve= r and manage the machine partly local via the GUI and partly remote via S= SH. >> >> Related to GNOME I did try ^gsettings set org.gnome.settings-daemon.pl= ugins.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, whi= ch 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=C2=A0 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 no= t going down after x-time ! > > -- = > Alexander Motin