After figuring out how to reboot to Windows with grub-reboot
thanks to this question: How to reboot into Windows from Ubuntu?, I would like to have Ubuntu hibernate and restart into Windows instead of rebooting.
Replacing sudo reboot
with sudo pm-hibernate
does work, by saving hibernation data and powering off the system. When I press the power button, It works as expected by booting to Windows.
I would like to know if there is anyway I can make the pc restart immediately after hibernation instead of having to press the power button?