I placed this script and made it executable in /lib/systemd/system-sleep
#!/bin/sh
# Script to switch between virtual consoles on wakeup to make
# cursor reappear.
sudo /bin/chvt 1
sudo /bin/chvt 7
It doesn't seem to be working. I'll keep investigating to see if there is another place where this script could be put in order to make it execute. The correct place would probably be not on wakeup, but rather on login after wakeup.
I placed this script and made it executable in /lib/systemd/ system- sleep
#!/bin/sh
# Script to switch between virtual consoles on wakeup to make
# cursor reappear.
sudo /bin/chvt 1
sudo /bin/chvt 7
It doesn't seem to be working. I'll keep investigating to see if there is another place where this script could be put in order to make it execute. The correct place would probably be not on wakeup, but rather on login after wakeup.