Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Nov 2022 16:21:46 -0800
From:      Kevin Oberman <rkoberman@gmail.com>
To:        Tomoaki AOKI <junchoon@dec.sakura.ne.jp>
Cc:        Steve Rikli <sr@genyosha.net>, louis.freebsd@xs4all.nl, freebsd-current@freebsd.org
Subject:   Re: DESPARATE: How to stop FreeBSD form sleeping / disable ACPI? (on FreeBSD14 CURRENT)
Message-ID:  <CAN6yY1vPcPboJnCKRuMq_eUvRDrYUGuyN3_22WYtx-SEKazdfQ@mail.gmail.com>
In-Reply-To: <20221114071044.ded87a4bd11f9aa8e948ebcf@dec.sakura.ne.jp>
References:  <202211130022.2AD0MYiW023709@chez.mckusick.com> <000d01d8f777$42eb10a0$c8c131e0$@xs4all.nl> <Y3Eu/ODt1FnxCwR6@dragon.home.genyosha.net> <20221114071044.ded87a4bd11f9aa8e948ebcf@dec.sakura.ne.jp>

next in thread | previous in thread | raw e-mail | index | archive | help
--0000000000007c23ae05ed633afc
Content-Type: text/plain; charset="UTF-8"

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@genyosha.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_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

<div dir=3D"ltr"><div dir=3D"ltr"><div class=3D"gmail_default" style=3D"fon=
t-family:tahoma,sans-serif;font-size:small">On Sun, Nov 13, 2022 at 2:11 PM=
 Tomoaki AOKI &lt;<a href=3D"mailto:junchoon@dec.sakura.ne.jp" target=3D"_b=
lank">junchoon@dec.sakura.ne.jp</a>&gt; wrote:</div></div><div class=3D"gma=
il_quote"><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8=
ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Sun, 13 Nov =
2022 09:53:00 -0800<br>
Steve Rikli &lt;<a href=3D"mailto:sr@genyosha.net" target=3D"_blank">sr@gen=
yosha.net</a>&gt; wrote:<br>
<br>
&gt; On Sun, Nov 13, 2022 at 04:47:40PM +0100, <a href=3D"mailto:louis.free=
bsd@xs4all.nl" target=3D"_blank">louis.freebsd@xs4all.nl</a> wrote:<br>
&gt; &gt; I noticed that after disabling gdm in /etc/rc.conf ^&quot;gdm_ena=
ble=3D&quot;N&quot;^ the system stays active.<br>
&gt; &gt; However ..... that is also the end the GUI .... in this case GNOM=
E.<br>
&gt; &gt; <br>
&gt; &gt; Since I could not work which a machine hibernating every ^10 minu=
tes^, I have disabled gdm for the moment. <br>
&gt; &gt; That does not take away that that is ...... ridiculous !!<br>
&gt; <br>
&gt; Seems like you aren&#39;t alone in that opinion -- there are several t=
hreads<br>
&gt; for multiple OSes about this same topic. Kirk&#39;s findings below mat=
ch my<br>
&gt; recollection -- this is Gnome default behavior nowdays.<br>
&gt; <br>
&gt; In any case, since we obviously can&#39;t use the Linux systemD settin=
gs to<br>
&gt; control the behavior in FreeBSD, a few folks mentioned other workaroun=
ds<br>
&gt; with things like dconf; e.g. this suggestion which came originally fro=
m<br>
&gt; the Arch linux folks:<br>
&gt; <br>
&gt; <a href=3D"https://twitter.com/_neelc/status/1487200568149831681" rel=
=3D"noreferrer" target=3D"_blank">https://twitter.com/_neelc/status/1487200=
568149831681</a><br>
&gt; <br>
&gt; <a href=3D"https://wiki.archlinux.org/title/GDM#GDM_auto-suspend_(GNOM=
E_3.28)" rel=3D"noreferrer" target=3D"_blank">https://wiki.archlinux.org/ti=
tle/GDM#GDM_auto-suspend_(GNOME_3.28)</a><br>
&gt; <br>
&gt; Something like:<br>
&gt; <br>
&gt;=C2=A0 =C2=A0sudo -u gdm dbus-launch gsettings set \<br>
&gt;=C2=A0 =C2=A0org.gnome.settings-daemon.plugins.power sleep-inactive-ac-=
type &#39;nothing&#39;<br>
&gt; <br>
&gt; &gt;From the threads, it sounds like part of the problem is this behav=
ior and<br>
&gt; settings are per-user, so making a system-wide change is hard. Not sur=
e<br>
&gt; how this workaround will play in your situation.<br>
&gt; <br>
&gt; My FreeBSD servers don&#39;t run a gui display manager; my Debian lapt=
op<br>
&gt; runs gdm3 display manager but I switched to Xfce for the window manage=
r<br>
&gt; around the time Gnome3 came out (too many changes for my taste).=C2=A0=
 Fwiw<br>
&gt; the Xfce Power Manager has controls for system power save / sleep mode=
<br>
&gt; for &quot;On battery&quot; and &quot;Plugged in&quot;, including &quot=
;never&quot;.<br>
<br>
Found these.<br>
<br>
=C2=A0<a href=3D"https://unix.stackexchange.com/questions/289640/how-to-cre=
ate-a-default-system-wide-dconf-setting-starting-from-just-created-ad" rel=
=3D"noreferrer" target=3D"_blank">https://unix.stackexchange.com/questions/=
289640/how-to-create-a-default-system-wide-dconf-setting-starting-from-just=
-created-ad</a><br>
<br>
=C2=A0<a href=3D"https://askubuntu.com/questions/1038184/how-to-lockdown-sy=
stem-wide-settings-with-dconf" rel=3D"noreferrer" target=3D"_blank">https:/=
/askubuntu.com/questions/1038184/how-to-lockdown-system-wide-settings-with-=
dconf</a><br>
<br>
/etc/ in those should be read /usr/local/etc/ on FreeBSD.<br>
And possibly defaults of each application are stored<br>
under /usr/local/share/ or under /usr/local/lib/.<br>
<br>
BTW, I&#39;m basically using x11/mate, a fork from Gnome2.<br>
It doesn&#39;t sleep by default on AC powerline.<br>
(Old installation succeeding Gnome2 settings. So current default could<br>
be different, though.)<br>
<br>
&gt; <br>
&gt; Cheers,<br>
&gt; sr.<br></blockquote><div><br></div><div style=3D"font-family:tahoma,sa=
ns-serif;font-size:small" class=3D"gmail_default">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. <br></div><div style=3D"font-family:tahoma,san=
s-serif;font-size:small" class=3D"gmail_default"><br></div><div style=3D"fo=
nt-family:tahoma,sans-serif;font-size:small" class=3D"gmail_default">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:</div><div style=3D"font-family:tahoma,sans-serif;font-size:sm=
all" class=3D"gmail_default">exec ck-launch-session dbus-launch --exit-with=
-session mate-session</div><div style=3D"font-family:tahoma,sans-serif;font=
-size:small" class=3D"gmail_default">=C2=A0Under Linux this stuff is all wr=
apped around systemd which makes dealing with it a pain.<br></div><div styl=
e=3D"font-family:tahoma,sans-serif;font-size:small" class=3D"gmail_default"=
><br></div><div style=3D"font-family:tahoma,sans-serif;font-size:small" cla=
ss=3D"gmail_default">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.<br></div></div>-=
- <br><div dir=3D"ltr"><div dir=3D"ltr"><div><div dir=3D"ltr"><div><div dir=
=3D"ltr"><div><div dir=3D"ltr">Kevin Oberman, Part time kid herder and reti=
red Network Engineer<br>E-mail: <a href=3D"mailto:rkoberman@gmail.com" targ=
et=3D"_blank">rkoberman@gmail.com</a><br></div><div>PGP Fingerprint: D03FB9=
8AFA78E3B78C1694B318AB39EF1B055683</div></div></div></div></div></div></div=
></div></div>

--0000000000007c23ae05ed633afc--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAN6yY1vPcPboJnCKRuMq_eUvRDrYUGuyN3_22WYtx-SEKazdfQ>