BPI-Router-Linux icon indicating copy to clipboard operation
BPI-Router-Linux copied to clipboard

problem with poweroff-commit

Open MyLive opened this issue 5 years ago • 12 comments

Hi Frank,

if the Powerbutton bypassed ( bridged ), the system reboot´s the whole time :-(.

Best regards, René

MyLive avatar Jul 08 '18 13:07 MyLive

How far goes the boot-process? As far as i know is the power-key not detected after bootup. It is/was only used to get initial bootup

frank-w avatar Jul 08 '18 13:07 frank-w

after rc.local / starting services the system restarts ...

MyLive avatar Jul 08 '18 13:07 MyLive

You have tried without this commit? To be sure problem is really this one.

Strange that reboot happens after system is nearly up

frank-w avatar Jul 08 '18 13:07 frank-w

Yes and it works ... i added the line "blacklist mtk_pmic_keys" to /etc/modprobe.d/pmics_key.conf now the Module is not loaded an the Power Key ignored but is not a "good" solution :-)

MyLive avatar Jul 08 '18 13:07 MyLive

i have veryfied on my "main" system. Without blacklist, it reboots all the time, after module blacklist, it works fine :-)

MyLive avatar Jul 08 '18 13:07 MyLive

Seems that pressing the powerkey in running system now it triggers poweroff

frank-w avatar Jul 08 '18 14:07 frank-w

link to the commit: https://github.com/frank-w/BPI-R2-4.14/commit/fc6285a3f9bde6c7bb32c4f79675d696ff2667d3

echo “blacklist mtk_pmic_keys” >/etc/modules-load.d/mtk_pmic_keys.conf

http://forum.banana-pi.org/t/bpi-r2-already-has-an-on-board-rtc/5347/8

frank-w avatar Jul 08 '18 14:07 frank-w

Sorry for some retro-posting. But I am a little bit confused. So what is the current status of this problem? Is there a way to get both "power up after power outage" + "working shutdown by power button press"? Or I should choose only one (definitely first for me) and just solder the power button pins and blacklist mtk_pmic_keys to avoid bootloops? Tried to analyze that commit - it is huge - so it just enables power button for those who has no soldering and does not want "power up after power outage"?

kgara avatar Oct 15 '18 09:10 kgara

i have not soldered Pins (only added info in my wiki from forum).

afaik you have to disable the module if you have soldered them....with the effect you cannot power off r2 by button press (which have no effect because it is always pressed by soldering)

there is the other way by power-up-on power-available: via usb-otg-port, but here you need a powerconverter/additional powersupply to get 5V to the otg-Port

frank-w avatar Oct 15 '18 09:10 frank-w

If this is a router board, it is expected that if my house electricity goes down, when it came back, the router should auto start again, as any other wifi/router device. Don't you agree? This should be the standard, not the workaround. Will be any definitive solution about this that does not involve disabling acpi? (or acpi should be disabled by default i think, so we could upgrade without trouble).

leopucci avatar Jan 07 '19 13:01 leopucci

You can temporary blacklist the module for upgrade. test, if acpi is installed (not on my 2 images) and maybe un-blacklist the module (or leave it).

So you can powerdown r2 via cli,but not with keys.

Alternatively you can add 5v to microusb-otg-port

and yes i agree with you, r2 should power-on on power-available...r64 does this (here is no power-button), but here are other problems with closed-source wifi. the base-problem is caused by hardware-design, i cannot change :(

frank-w avatar Jan 07 '19 15:01 frank-w

@MyLive can you reproduce this: http://forum.banana-pi.org/t/bpi-r2-boot-power-suppy/3647/79?

frank-w avatar Jan 24 '19 15:01 frank-w