So to reset the root password, you still start mySQL with --skip-grant-tables options and update the user table, but how you do it has...
Laptop stops working after closing the laptop lid in Debian To disable the Lid Switch:
How to disable SSH timeout