Some times when my laptop wakes up from standby or hibernation the screen backlight won't turn on and I can barely see anything in a dark room and just can't see anything when I'm outdoors.
The only solution is to power the computer off, remove the battery, then put it back and turn it back on. Even just turning it off and on again (normal full cold reset but without complete unpowering by removing the battery) won't help – the screen backlight will still be off and even the BIOS start-up sequence and the GRUB menu will be shown on the dark screen. This suggests that the problem is probably not a driver problem.
As for now I power it off the cold way by holding the power button for 5 seconds, but, needless to say, this is hardly a good thing to do on a regular basis.
I'd like to set up a keyboard shortcut that would trigger unconditional though soft (with all the apps notified and given time to exit gracefully and all the file systems unmounted correctly) shutdown sequence no matter what.
How can this be done?
I use Xubuntu 15.10, but I believe this is done on lower, distribution agnostic level, so I have decided to ask here rather than on AskUbuntu.
UPDATE: I've got an idea of a solution – far not as convenient as I want, but still an option – disable the GRUB default choice timeout, then when, when needed, press Ctrl+Alt+F1 to switch to the console, press Ctrl+Alt+Delete to reboot, and then power the computer off after giving it some time to restart to GRUB. I just wish there were a shortcut like Ctrl+Alt+Delete that would turn the computer off rather than reboot it.
xbindkeys
, but I doubt it will bypass a lock screen. So we are left with acpi and systemd. Is systemd configured? By default the power button is supposed to do poweroff with systemd (/etc/systemd/login.conf).