Date: Tue, 10 Jul 2018 19:17:57 +0200 From: Polytropon <freebsd@edvax.de> To: Olivier <Olivier.Nicole@cs.ait.ac.th> Cc: freebsd-questions@freebsd.org Subject: Re: Fisable ctrl-alt-del reboot Message-ID: <20180710191757.6389ae22.freebsd@edvax.de> In-Reply-To: <wu7bmbf1ore.fsf@banyan.cs.ait.ac.th> References: <wu7bmbf1ore.fsf@banyan.cs.ait.ac.th>
next in thread | previous in thread | raw e-mail | index | archive | help
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, ...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20180710191757.6389ae22.freebsd>