From nobody Mon Nov 14 00:21:46 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 4N9VP84DlKz4hY7j for ; Mon, 14 Nov 2022 00:22:04 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-yw1-x112c.google.com (mail-yw1-x112c.google.com [IPv6:2607:f8b0:4864:20::112c]) (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 4N9VP81jGkz3qFb for ; Mon, 14 Nov 2022 00:22:04 +0000 (UTC) (envelope-from kob6558@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-yw1-x112c.google.com with SMTP id 00721157ae682-37063f855e5so92530977b3.3 for ; Sun, 13 Nov 2022 16:22:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=odOZBb/4GT/LXiyvT0G2bkf0QPQFpHy+BiybvYcbcGM=; b=InqqgoxbooI4U6upaNBOT/RDtnEpTEDwpTY2Z2HdhLdEfxc71UxUJ3DF7jSvOnBhZm pfozgV+X9kk4G7Ny2cQOvzKGUxrJBEDjCcOY4DIHJ/Vvn2+ZDRq2Po5MbpdyULGtTkWZ CF2N+nu0kbvSR4ujQsXyzguIRdiCN/F8Asei2xN6EOBBcX5UCw3kGR02ByMKs3zFVqgl oWrzCOBCEICfAXH8onUQOzIQUd/TcgL6AmDbqJ1g1B7AlGqOmKhPq91eNGvE9ANzmh8u gjNFr5dV5A8vIvhxMTs5avXBH04Zl8belR9a/WQyGFQT8v/KDsTfUlr2bjt067ERPW1A YtVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=odOZBb/4GT/LXiyvT0G2bkf0QPQFpHy+BiybvYcbcGM=; b=CBpOHCzTjpQPLjupWF9CEltQO3Rcsg5TD7M6IpQCt4tHehkSHTsskdjvJpyyrHd8L6 d9/+QUqCkXdbqRzR0xJAGsvK8BTNEG59YeybQsaqMimgpPFKTiDRNBWqQ0UkvTbj9qJW bkPbXQ/9hZcohZD0XDmStOco3fuU7mDAZLct5Gr1WZBIMqKXLtSOTntXW1QEZqCFAdoq +Dod9jOoPNbYEo5WM8EgGZ/XisMxtfdjj5c6k5XZCSaZeF/60phnOHbIDUl3yHpE39cC VH8+KfQRRAoWHw9IXp4pJ8FhnPjlolYlfquHqqnA5us8XDO6VFtT0bjBfuVBvd/wy3ex o/3w== X-Gm-Message-State: ANoB5pn6O1V7wLiT12DIhRpzCjL342SOtMr2uHZn7zPjzmkguux+uoXk 2/4zuPJl9DY1nSjNZbDav4ypPZfkvz058KSae59q0hp5SU0= X-Google-Smtp-Source: AA0mqf6pB3Kje3nlTIHAMZLLdXLrQb1QqRPUfjzSXGmDkv+Xs2Dg/a/t9g8+ySrou4CZRPslq8uOq5BHStQdT8vRIDo= X-Received: by 2002:a81:7841:0:b0:36b:84e6:16b2 with SMTP id t62-20020a817841000000b0036b84e616b2mr11486778ywc.372.1668385322311; Sun, 13 Nov 2022 16:22:02 -0800 (PST) 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 References: <202211130022.2AD0MYiW023709@chez.mckusick.com> <000d01d8f777$42eb10a0$c8c131e0$@xs4all.nl> <20221114071044.ded87a4bd11f9aa8e948ebcf@dec.sakura.ne.jp> In-Reply-To: <20221114071044.ded87a4bd11f9aa8e948ebcf@dec.sakura.ne.jp> From: Kevin Oberman Date: Sun, 13 Nov 2022 16:21:46 -0800 Message-ID: Subject: Re: DESPARATE: How to stop FreeBSD form sleeping / disable ACPI? (on FreeBSD14 CURRENT) To: Tomoaki AOKI Cc: Steve Rikli , louis.freebsd@xs4all.nl, freebsd-current@freebsd.org Content-Type: multipart/alternative; boundary="0000000000007c23ae05ed633afc" X-Rspamd-Queue-Id: 4N9VP81jGkz3qFb X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N --0000000000007c23ae05ed633afc Content-Type: text/plain; charset="UTF-8" On Sun, Nov 13, 2022 at 2:11 PM Tomoaki AOKI wrote: > On Sun, 13 Nov 2022 09:53:00 -0800 > Steve Rikli wrote: > > > On Sun, Nov 13, 2022 at 04:47:40PM +0100, louis.freebsd@xs4all.nl wrote: > > > I noticed that after disabling gdm in /etc/rc.conf ^"gdm_enable="N"^ > the system stays active. > > > However ..... that is also the end the GUI .... in this case GNOME. > > > > > > Since I could not work which a machine hibernating every ^10 minutes^, > I have disabled gdm for the moment. > > > That does not take away that that is ...... ridiculous !! > > > > Seems like you aren't alone in that opinion -- there are several threads > > for multiple OSes about this same topic. Kirk's findings below match my > > recollection -- this is Gnome default behavior nowdays. > > > > In any case, since we obviously can't use the Linux systemD settings to > > control the behavior in FreeBSD, a few folks mentioned other workarounds > > with things like dconf; e.g. this suggestion which came originally from > > the Arch linux folks: > > > > https://twitter.com/_neelc/status/1487200568149831681 > > > > https://wiki.archlinux.org/title/GDM#GDM_auto-suspend_(GNOME_3.28) > > > > Something like: > > > > sudo -u gdm dbus-launch gsettings set \ > > org.gnome.settings-daemon.plugins.power sleep-inactive-ac-type > 'nothing' > > > > >From the threads, it sounds like part of the problem is this behavior > and > > settings are per-user, so making a system-wide change is hard. Not sure > > how this workaround will play in your situation. > > > > My FreeBSD servers don't run a gui display manager; my Debian laptop > > runs gdm3 display manager but I switched to Xfce for the window manager > > around the time Gnome3 came out (too many changes for my taste). Fwiw > > the Xfce Power Manager has controls for system power save / sleep mode > > for "On battery" and "Plugged in", including "never". > > Found these. > > > https://unix.stackexchange.com/questions/289640/how-to-create-a-default-system-wide-dconf-setting-starting-from-just-created-ad > > > https://askubuntu.com/questions/1038184/how-to-lockdown-system-wide-settings-with-dconf > > /etc/ in those should be read /usr/local/etc/ on FreeBSD. > And possibly defaults of each application are stored > under /usr/local/share/ or under /usr/local/lib/. > > BTW, I'm basically using x11/mate, a fork from Gnome2. > It doesn't sleep by default on AC powerline. > (Old installation succeeding Gnome2 settings. So current default could > be different, though.) > > > > > Cheers, > > sr. > This is the source of foolishness that led to the creation of Linux Mint and to Mate. Mate does not have this stupidness and I suspect that Cinnamon does not, either. Gnome has simply gone off the rails. Another option is to NOT use gdm, but start Gnome with startx, which I have always done. You will need to create a suitable .xinitrc to set up dbus and run X as a child: exec ck-launch-session dbus-launch --exit-with-session mate-session Under Linux this stuff is all wrapped around systemd which makes dealing with it a pain. I am not remotely expert on this, but it works OK and I am hoping to figure out a bit more as time is available. -- Kevin Oberman, Part time kid herder and retired Network Engineer E-mail: rkoberman@gmail.com PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683 --0000000000007c23ae05ed633afc Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Sun, Nov 13, 2022 at 2:11 PM= Tomoaki AOKI <junchoon@dec.sakura.ne.jp> wrote:
On Sun, 13 Nov = 2022 09:53:00 -0800
Steve Rikli <sr@gen= yosha.net> wrote:

> On Sun, Nov 13, 2022 at 04:47:40PM +0100, louis.freebsd@xs4all.nl wrote:
> > I noticed that after disabling gdm in /etc/rc.conf ^"gdm_ena= ble=3D"N"^ the system stays active.
> > However ..... that is also the end the GUI .... in this case GNOM= E.
> >
> > Since I could not work which a machine hibernating every ^10 minu= tes^, I have disabled gdm for the moment.
> > That does not take away that that is ...... ridiculous !!
>
> Seems like you aren't alone in that opinion -- there are several t= hreads
> for multiple OSes about this same topic. Kirk's findings below mat= ch my
> recollection -- this is Gnome default behavior nowdays.
>
> In any case, since we obviously can't use the Linux systemD settin= gs to
> control the behavior in FreeBSD, a few folks mentioned other workaroun= ds
> with things like dconf; e.g. this suggestion which came originally fro= m
> the Arch linux folks:
>
> https://twitter.com/_neelc/status/1487200= 568149831681
>
> https://wiki.archlinux.org/ti= tle/GDM#GDM_auto-suspend_(GNOME_3.28)
>
> Something like:
>
>=C2=A0 =C2=A0sudo -u gdm dbus-launch gsettings set \
>=C2=A0 =C2=A0org.gnome.settings-daemon.plugins.power sleep-inactive-ac-= type 'nothing'
>
> >From the threads, it sounds like part of the problem is this behav= ior and
> settings are per-user, so making a system-wide change is hard. Not sur= e
> how this workaround will play in your situation.
>
> My FreeBSD servers don't run a gui display manager; my Debian lapt= op
> runs gdm3 display manager but I switched to Xfce for the window manage= r
> around the time Gnome3 came out (too many changes for my taste).=C2=A0= Fwiw
> the Xfce Power Manager has controls for system power save / sleep mode=
> for "On battery" and "Plugged in", including "= ;never".

Found these.

=C2=A0https://unix.stackexchange.com/questions/= 289640/how-to-create-a-default-system-wide-dconf-setting-starting-from-just= -created-ad

=C2=A0https:/= /askubuntu.com/questions/1038184/how-to-lockdown-system-wide-settings-with-= dconf

/etc/ in those should be read /usr/local/etc/ on FreeBSD.
And possibly defaults of each application are stored
under /usr/local/share/ or under /usr/local/lib/.

BTW, I'm basically using x11/mate, a fork from Gnome2.
It doesn't sleep by default on AC powerline.
(Old installation succeeding Gnome2 settings. So current default could
be different, though.)

>
> Cheers,
> sr.

This is the source of foo= lishness that led to the creation of Linux Mint and to Mate. Mate does not = have this stupidness and I suspect that Cinnamon does not, either. Gnome ha= s simply gone off the rails.

Anothe= r option is to NOT use gdm, but start Gnome with startx, which I have alway= s done. You will need to create a suitable .xinitrc to set up dbus and run = X as a child:
exec ck-launch-session dbus-launch --exit-with= -session mate-session
=C2=A0Under Linux this stuff is all wr= apped around systemd which makes dealing with it a pain.

I am not remotely expert on this, but it works OK and = I am hoping to figure out a bit more as time is available.
-= -
Kevin Oberman, Part time kid herder and reti= red Network Engineer
E-mail: rkoberman@gmail.com
PGP Fingerprint: D03FB9= 8AFA78E3B78C1694B318AB39EF1B055683
--0000000000007c23ae05ed633afc--