You are not logged in.

#1 2018-12-24 15:02:03

iMBeCil
WAAAT?
From: Edrychwch o'ch cwmpas
Registered: 2015-09-29
Posts: 640

[Solved] shut down VirtualBox BunsenLabs VM via host's command line?

(o) Description of the problem:
I have a problem with shutting down the BunsenLabs guest from host's command line; command I issue (on debian host) is:

user@host:~$ VBoxManage controlvm "guest" acpipowerbutton

(I'm using VirtualBox). The 'acpipowerbutton' in above command is equivalent of (normal) pressing on the power button, and I expect it should trigger the 'poweroff' sequence. However, the guest doesn't shut down, and nothing happens.

(o) Information I collected so far

Triggering the 'poweroff' sequence by sending 'acpipowerbutton' to guest works when the guest is plain debian, and when the guest is Win7.

Also, the BunsenLabs guest sees that the Power key is pressed when I issue 'acpipowerbutton' to the guest (from host):

user@guest:~$ sudo journalctl -f
-- Logs begin at Mon 2018-12-24 15:32:43 CET. --
...
Dec 24 15:38:20 guest systemd-logind[368]: Power key pressed.

My /etc/systemd/loignd.conf:

user@guest:~$ cat /etc/systemd/logind.conf 
[Login]
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
HandlePowerKey=poweroff     # <--- the relevant line
#HandleSuspendKey=suspend
#HandleHibernateKey=hibernate
#HandleLidSwitch=suspend
#HandleLidSwitchDocked=ignore
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=yes
#HoldoffTimeoutSec=30s
#IdleAction=ignore
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RemoveIPC=yes
#InhibitorsMax=8192
#SessionsMax=8192
#UserTasksMax=33%

The relevant line has been originally commented out (which denotes default action), but being commented ot our not, makes no difference.

(o) The question
Apparently, something else is governing the poweroff sequence in BunsenLabs, but I cannot find it. I searched lightdm for possible option, but with no luck. Does anybody have an idea how to trigger this poweroff sequence? Help will be much appreciated.

Last edited by iMBeCil (2018-12-26 12:43:25)


Postpone all your duties; if you die, you won't have to do them ..

Offline

#2 2018-12-25 03:55:56

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 5,350
Website

Re: [Solved] shut down VirtualBox BunsenLabs VM via host's command line?

Check out xfce4-power-manager?


John
--------------------
( a boring Japan blog , Japan Links, idle twitterings  and GitStuff )
In case you forget, the rules.

Offline

#3 2018-12-25 09:09:52

iMBeCil
WAAAT?
From: Edrychwch o'ch cwmpas
Registered: 2015-09-29
Posts: 640

Re: [Solved] shut down VirtualBox BunsenLabs VM via host's command line?

^Haha, I feel stupid now big_smile ... that was it, I changed poweroff action in xfce4-power-manager-settings! Thanks johnraff. (I'm not familiar with BunsenLabs internals ...)


Postpone all your duties; if you die, you won't have to do them ..

Offline

#4 2018-12-26 01:55:14

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 5,350
Website

Re: [Solved] shut down VirtualBox BunsenLabs VM via host's command line?

Happy Christmas!
Edit OP title?


John
--------------------
( a boring Japan blog , Japan Links, idle twitterings  and GitStuff )
In case you forget, the rules.

Offline

#5 2018-12-26 12:44:39

iMBeCil
WAAAT?
From: Edrychwch o'ch cwmpas
Registered: 2015-09-29
Posts: 640

Re: [Solved] shut down VirtualBox BunsenLabs VM via host's command line?

Edited ...

Best wishes to you, too!

EDIT: For the sake of completeness, let me just point out that this settings in xfce-power-manager-setting will do the same on bare metal BunsenLabs installation: it will enable shutting down (and powering off the computer) by pressing power button.

Last edited by iMBeCil (2018-12-26 13:28:34)


Postpone all your duties; if you die, you won't have to do them ..

Offline

Board footer

Powered by FluxBB