Solved how to stop reboot and shutdown by some keys in freebsd14.2 ?

dear all;
i have problems about the keys for reboot and shutdown of freebsd14.2 ..
1. when i press "ctl+alt+del" three keys in the same time. the freebsd14.2 will reboot . how to stop this function ? or change to other keys ? thanks.
2. when i press "physical power button of machines " , the freebsd14.2 will shutdown . how to stop this function ? or change it to other keys ? thanks.

all operations was working in the shell .and gnome GUI. i don't know how to disable it . thanks.
 
For ctrl+alt+del sequence
Code:
sysctl hw.syscons.kbd_reboot=0
and
Code:
echo "hw.syscons.kbd_reboot=0" >>  /etc/sysctl.conf
to save this option after reboot
 
To disable power button, try

Code:
hw.acpi.power_button_state=S0

Not sure it is a good idea. Some BIOS allow you to boot by pressing a key on the keyboard. But for shutdown, I don't know anything like that (except on SUN stations)
 
For ctrl+alt+del sequence
Code:
sysctl hw.syscons.kbd_reboot=0
and
Code:
echo "hw.syscons.kbd_reboot=0" >>  /etc/sysctl.conf
to save this option after reboot
Dear ooioo:
thanks. i have study it more. syscons is legacy console, VT is now console in freebsd14.2 ..
so we will need sysctl kern.vt.kbd_reboot=0
if we use the syscons , we will do sysctl hw.syscons.kbd_reboot=0.
thanks.
 
Seems to be
Code:
hw.acpi.power_button_state=NONE
DEar oOiOo:
thanks for your help. my baby always press my power button from my machine. i have fellow your step hw.acpi.power_button_state=NONE , nothing changed. i don't know what is the best way to stop kid press my power button ? thanks.
 
i don't think that is possible and most likely it is implemented in hardware.
you can pull the power button wires out of the mobo on a vanilla pc but on some hw (where connectors are bound together,larger sockets, etc) may be more difficult
 
i don't think that is possible and most likely it is implemented in hardware.
you can pull the power button wires out of the mobo on a vanilla pc but on some hw (where connectors are bound together,larger sockets, etc) may be more difficult
ok. thanks. i will close this post. thanks.

hi. all guys. :my questions were solve one. the power button is not solve. thanks.
 
Back
Top