From owner-freebsd-questions@freebsd.org Tue Jul 10 17:18:09 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 950A1103DC9C for ; Tue, 10 Jul 2018 17:18:09 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DD904812CD for ; Tue, 10 Jul 2018 17:18:08 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de ([92.195.57.160]) by mrelayeu.kundenserver.de (mreue105 [212.227.15.183]) with ESMTPA (Nemesis) id 0LhNMu-1gPBKy1WXw-00malH; Tue, 10 Jul 2018 19:18:00 +0200 Date: Tue, 10 Jul 2018 19:17:57 +0200 From: Polytropon To: Olivier Cc: freebsd-questions@freebsd.org Subject: Re: Fisable ctrl-alt-del reboot Message-Id: <20180710191757.6389ae22.freebsd@edvax.de> In-Reply-To: References: Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:F8LRz1MerrU7kROaqkmScG9vhg2xJDI5BdA6dsOX6EAcWTyDMxv JURPY6BUoXLSioMpiuWZZI0NBr5yvcD30j4SHPGVVyD4aKLFnYHC7ORbheV7h+rJ9FaHS0u kOd0IFKa2l5xgeUCIDCC2iJ/UHOForRxAWDHdLKgywPH1im2XNlaOZ4wsM30UNYAI3+19bi KyhA39wjDlxq3vEa8+CBw== X-UI-Out-Filterresults: notjunk:1;V01:K0:jGgE1Fm7PhM=:Y06UF8pUEaI/Jx7os+OSAM qUH+MeLHMqF/UguePPBFpnPjJHMjhHyL7iVSsFcFba1N0Wd5TrjcCpm691Rf/KTu4/Mp+4mMX L1oT1u//psI4S5zz31ZlXrQjNPurnKfxOzhh9wqb4DriSeWC1mzJrumjk9xT9nNvOMktUuEmt oAPS1r/qH4cbedWZjZj+f3acgQhKUeCRscbAL8gmVHGy7ApXUm/kwU6ttOxtmlWEhE55umeIj aQ85PYByVgeN5g/TBbmvMeNAx5t9uzlanHpKAkhDQ7a/Km1k5zfMotIu7+ivsvNEWifPLiKkl c3c7w8vIA8eWrs/7O/REe9m4ydCKrYRsPClX0K1a4KqfdthKph/Bq+d1KKTGCVrJzdEq7l36x 4A5JU1OqDlxT9zcnuDzecBvi36eIvDTomDT0pVN+UjixOVLiBEfbNAEQRjXIkvyK44O2iBKI/ x27v2Z2DMmYbWyNRdhaW1LBS45NS1/8ZxDJe1BAV184yvFDrmObB+4tJBbAyBtDU7hzWdd4vP Cc0GJYbZbYSoEJHCVzaeqF87FIXi/JEBL9+DsaROtq6nFTcA2b4o1X0nYN6O3XztgsKTbdebT yamZikGGS/qKgPflShNXO7aCiKC0mu5JTbXQSxLypYU99e+xigEVKyOmNPfFKMhSf3n3T8Jfm 2J42OwCydMaPKPV5Uz4G3SWKtLTXQoS59Q2tMMVHYrPtEnNd+VunD3+5+Ss0DKSPv2ef+etFj fRanCa+vwI4idJ4E X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jul 2018 17:18:09 -0000 On Tue, 10 Jul 2018 15:25:09 +0700, Olivier wrote: > I am running a system with FreeBSD and since I updated to 11.1, it seems > it ignore the sysctl to disable CTRL+ALT_DEL reboot. > > Am I the only one to see this behaviour? > > FreeBSD door.cs.ait.ac.th 11.1-RELEASE-p10 FreeBSD 11.1-RELEASE-p10 #3 r334472: Fri Jun 22 11:03:48 ICT 2018 root@door.cs.ait.ac.th:/usr/obj/usr/src/sys/GENERIC i386 > > $ sysctl hw.syscons.kbd_reboot > hw.syscons.kbd_reboot: 0 > $ sysctl -d hw.syscons.kbd_reboot > hw.syscons.kbd_reboot: enable keyboard reboot > > But it can still be rebooted from the keyboard. > > Am I missing something? If I may guess: This sysctl refers to syscons (sc), while on FreeBSD 10 and later, sc has been obsoleted by vt. Could that be the reason? If you temporarily exchange vt for sc (with "kern.vty=sc" in /boot/loader.conf), you should see the desired behaviour, even though X won't work anymore (if this is important to you). But vt seems to support what you need. See "man 4 vt" for the following configuration entries: In loader.conf(5) or sysctl.conf(5): kern.vt.kbd_halt=1 kern.vt.kbd_poweroff=1 kern.vt.kbd_reboot=1 kern.vt.kbd_debug=1 kern.vt.kbd_panic=0 kern.vt.enable_bell=1 Maybe this can help? -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...