Saving sysrq value across reboot

I’m not sure if this is even strictly related to Qubes OS but how do I save the sysrq value in


I would like to be able to turn off and restart my computer immediately with the sysrq key but it’s disabled by default in Qubes OS.

And also, would it cause any harm other than what it would do to any other distro?

After setting the value to 128 and rebooting it goes back to 16, which doesn’t support reboot/power off with the key.

It isnt Qubes specific.
Set the value in /usr/lib/sysctl.d/50-default.conf, kernel.sysrq key.

1 Like