So, due to an issue with gnome-power-manager, gnome-shell, and my nvidia card, I'm left in the awkward position of coming out of suspension/sleep with my graphics broken. This problem resolves itself if I'm able to use the Alt + F2 command line to restart gnome-shell. However, sometimes, I'm unable to actually access that menu, and I have to do it blindly with the broken graphics.
Rather than switching to the power-eating nouveau drivers, I thought I'd just try to replicate the functionality of
r
or
restart
in the Alt + F2 menu in a script and have it execute upon recovering from suspend.
Any advice/ideas? I don't really know where to start.
(Alternately, if you've got another workaround/solution..?)
edit: these guys are discussing the same problem: https://bbs.archlinux.org/viewtopic.php?pid=932527