I don’t know if this fits your use case (you didn’t describe what you want to achieve in detail), but commands that can possible help if the screen did lock (or turn off):
- Unlock the lockscreen:
loginctl unlock-screen
- Turn on the screen:
kscreen-doctor --dpms on
Haha, totally, especially combined with the sounds of its evenly paced steps. I can see myself shuddering at that sound while hiding from them, crawling behind destroyed cars and other debris through dark and grey streets in a dystopian future…
/me snaps out of the daydream