[SOLVED] How to poweroff PBP from Linux terminal?
#1
Dear Pinebook Pro fans,

I have a PBP and it has Debian with Linux 4.4.213 on it. I have installed i3wm beside the MATE

I have a problem with powering off the machine though. In MATE if I press the power key a dialog appears and if I press shutdown the machine shuts down and power offs as expected. However, if I run `sudo poweroff` or `sudo systemctl poweroff` the system shuts down but does not poweroff. The screen goes black and a pointer keeps blinking forever. It does not matter if I run this command inside MATE or i3, the result is the same.


According to this thread I configured the power key for i3wm and also used systemd-inhibit to prevent systemd from handling the power key when i3 is running. I think it has nothing to do with the above mentioned problem though, since that problem happens in MATE too.

The question is, what MATE does differently that its shutdown dialog can poweroff the PBP properly? Doesn't MATE use systemd to poweroff the machine?

I appreiciate any of your comments.

Update
Adding `--force` to the poweroff command solved the issue, i.e. `sudo systemctl --force poweroff`. However, I don't know what prevents the poweroff without the force flag.
#2
(03-16-2020, 02:02 AM)mx43 Wrote: Dear Pinebook Pro fans,

I have a PBP and it has Debian with Linux 4.4.213 on it. I have installed i3wm beside the MATE

I have a problem with powering off the machine though. In MATE if I press the power key a dialog appears and if I press shutdown the machine shuts down and power offs as expected. However, if I run `sudo poweroff` or `sudo systemctl poweroff` the system shuts down but does not poweroff. The screen goes black and a pointer keeps blinking forever. It does not matter if I run this command inside MATE or i3, the result is the same.


According to this thread I configured the power key for i3wm and also used systemd-inhibit to prevent systemd from handling the power key when i3 is running. I think it has nothing to do with the above mentioned problem though, since that problem happens in MATE too.

The question is, what MATE does differently that its shutdown dialog can poweroff the PBP properly? Doesn't MATE use systemd to poweroff the machine?

I appreiciate any of your comments.

Update
Adding `--force` to the poweroff command solved the issue, i.e. `sudo systemctl --force poweroff`. However, I don't know what prevents the poweroff without the force flag.
try 'sudo shutdown now'


Possibly Related Threads…
Thread Author Replies Views Last Post
  Reset User or Factory Reset PineBook Linux 11.6" pittman64 1 5,947 07-07-2020, 11:26 PM
Last Post: tllim
  Kali Linux for the Pinebook Luke 1 4,780 03-03-2020, 05:01 AM
Last Post: e-minguez
  Failure in setting the display backlight with Armbian 5.86 [SOLVED] wlad 0 1,961 06-11-2019, 03:36 AM
Last Post: wlad
  MX-Linux; antiX Linux chessie 3 4,918 04-15-2019, 03:46 PM
Last Post: tllim
  Status of Parrot Linux on Pinebooks? secristr 0 2,119 03-10-2019, 02:39 PM
Last Post: secristr
  New kid on the block - AOSC Linux tllim 4 6,242 10-23-2018, 02:38 AM
Last Post: pineadmin
  Linux instant messenger Wizzard 0 1,912 10-05-2017, 05:18 AM
Last Post: Wizzard
  Launching a terminal app from command line Siliconserf 5 6,823 09-29-2017, 02:32 PM
Last Post: Siliconserf
  Linux app Manuskript on Pinebook Siliconserf 6 7,702 08-31-2017, 07:27 PM
Last Post: Siliconserf
Information i3wm xenial-i3 introduction -- mate terminal & battery monitor MarkHaysHarris777 4 6,852 08-31-2017, 04:47 AM
Last Post: shirman

Forum Jump:


Users browsing this thread: 1 Guest(s)