From nobody Sun Nov 6 22:47:38 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 4N58dV6GdQz4hLQW for ; Sun, 6 Nov 2022 22:47:42 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-qt1-x834.google.com (mail-qt1-x834.google.com [IPv6:2607:f8b0:4864:20::834]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4N58dT4dB7z3mWY for ; Sun, 6 Nov 2022 22:47:41 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: by mail-qt1-x834.google.com with SMTP id c15so6073133qtw.8 for ; Sun, 06 Nov 2022 14:47:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=ObTG2RKVMJkcnjU+T73K9zM0p3E+9q0gK+InPRK2Kmw=; b=ezSiqO1WsITTk+EF+GCu2kdnImJZu0Ww3IKjl5DXCQiKlaPizh+YMT81Ouoe8ifNnW dNMQxG6gZdzKjFSq9nou1c1NO4zi51BwNb3TJ24BioNj01shkl520P2js7ZJcqCj+Qcb yHspuRYDg2+qUZ5zjIkof8ItjzkE101WMp+OqV74J+IC3dUXjm/xv1a18PyzxvEw5/sz Xr99qq7HIWRiXm+vxkVCR2n5bPjm9HKlltwUrbn4lYYLzheD8UVZd24rzljk6U7BHCbn SzuNZdPpVtNQFDEgkpwVGWArUP1qEZKqWOoVEuzMOmhdackGXQljalg4YsjYluai5PGf u4GA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ObTG2RKVMJkcnjU+T73K9zM0p3E+9q0gK+InPRK2Kmw=; b=19CBG+1tpZ/ph1P3WXUNwXDgYpEAwoxjBn0x1NddDGpNmx9PBphmFPV4YH4X1UtKsU INIfHCkaH92Q+0O7VJkUhhamw/8TBtgrzRV5pJVRN03tzcyebqjlH1Ew3M349k/GWrRE RHsUCSu0z0YjVJkAOVDyQeRfMkLrvAd5gvLgberxMURwC7jfpdfLRPnpv+An+u7ngz0l VSjCWSdTMLArhbwnSqB/GkIuoHmTJn/8tv70UznS+7EIWP/CPR1t8MlOOe+iennt5NdF QjrLQuOjb2Yswo0N9OFfKgh5yLYPlandfEwykBDLcvlFFKf5QE4LS3igAC+NMTi/A692 Bwqw== X-Gm-Message-State: ACrzQf1RVwN5q1p4G6qtWdbdaME4yMc1nBHFoTuJbN3nqy1nErkHgafP SyLjjIA2MFOe5d7IbYR9Ap2weID8HCY= X-Google-Smtp-Source: AMsMyM4v49bNP1uL3yRTCb6n34IEfcSSdPul+CKToqjlhXLFdsLABg/3UAxSFbYfgV+59qM7mvSIvw== X-Received: by 2002:ac8:604c:0:b0:3a5:26a5:6d93 with SMTP id k12-20020ac8604c000000b003a526a56d93mr31155339qtm.541.1667774860156; Sun, 06 Nov 2022 14:47:40 -0800 (PST) Received: from ?IPV6:2600:1700:3580:3560:228:f8ff:fe04:d12? ([2600:1700:3580:3560:228:f8ff:fe04:d12]) by smtp.gmail.com with ESMTPSA id j67-20020a378746000000b006fa5815b88dsm5275770qkd.88.2022.11.06.14.47.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 06 Nov 2022 14:47:39 -0800 (PST) Message-ID: <277f029d-828b-74c3-ab38-862c7959df55@FreeBSD.org> Date: Sun, 6 Nov 2022 17:47:38 -0500 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 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 Subject: Re: How to disable ACPI? (on FreeBSD14 CURRENT) To: louis.freebsd@xs4all.nl, freebsd-current@FreeBSD.org References: <000501d8f1e8$c0442df0$40cc89d0$@xs4all.nl> Content-Language: en-US From: Alexander Motin In-Reply-To: <000501d8f1e8$c0442df0$40cc89d0$@xs4all.nl> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 4N58dT4dB7z3mWY X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=ezSiqO1W; dmarc=none; spf=pass (mx1.freebsd.org: domain of mavbsd@gmail.com designates 2607:f8b0:4864:20::834 as permitted sender) smtp.mailfrom=mavbsd@gmail.com 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.999]; FORGED_SENDER(0.30)[mav@FreeBSD.org,mavbsd@gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; MIME_GOOD(-0.10)[text/plain]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; FROM_HAS_DN(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_VIA_SMTP_AUTH(0.00)[]; DMARC_NA(0.00)[freebsd.org]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; ARC_NA(0.00)[]; FROM_NEQ_ENVFROM(0.00)[mav@FreeBSD.org,mavbsd@gmail.com]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::834:from]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_NONE(0.00)[]; SUBJECT_HAS_QUESTION(0.00)[]; FREEMAIL_TO(0.00)[xs4all.nl,FreeBSD.org]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org] X-ThisMailContainsUnwantedMimeParts: N 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 systems depend on ACPI for proper operation. I have no idea what causes crash 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 must be it what makes your laptop to sleep. FreeBSD itself does not implement such automatic policies. 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 > ^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 ! -- Alexander Motin