virtualbox - Remove shutdown-restart-logout-suspend prompt in greeter login screen Ubuntu 14.04 and 16.04 - Ask Ubuntu


enter image description here

the problem when use virtualbox command host ubuntu 16.04 vm ubuntu 14.04:

vboxmanage controlvm "ubuntu desktop 14.04" acpipowerbutton 

it pops shutdown prompt in attached picture. if have logged in already, used pop until went dconf-editor , changed true: apps - indicator-session - suppress shutdown, restart

then never prompted , fixed issue, in login screen before logging on (like in attached picture), still prompts me , dont want to! want send shutdown graceful signal vm.

i tried @ end of article: http://ubuntuhandbook.org/index.php/2014/07/remove-shutdown-log-out-dialog-box/ still pops up!

please can rid of , able shutdown vm gracefully without stupid prompts??

so found solution this, add

"/sbin/shutdown -h now" @ beginning of script: /etc/acpi/powerbtn.sh

now no matter if screen locked or not yet logged in, acpipowerbutton command sent, or power button of pc pressed, no confirmation dialogs anymore, straight forward shutdown. finally!

references: how enable pc power button @ lock screen?


Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User

sql server - "Configuration file does not exist", Event ID 274 - Super User