Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Shutdown operation doesn't power Orange Pi down

Featured Replies

I have two Orange PI +2E machines. The first one I got was a while ago so it's running a 3.4.113 kernel (16.04), the more recent one I purchased is running 4.19.13 kernel (18.04) - both are Ubuntu Armbian. I've noticed when I use the "shutdown now" command on the older pi, the board actually powers off but when I use the same command on the newer kernel board, it never powers down. The newer board appears to stop all services and eventually report that the system is halted but it remains in that state. Is there a way to enable it to power off after a "shutdown now" is issued? I'm wondering if this is a kernel difference but it may be something else completely.

 

Thanks,

-Greg

  • Igor changed the title to Shutdown operation doesn't power Orange Pi down
  • Igor pinned this topic
  • Author
On 1/27/2019 at 11:54 AM, Igor said:

Power down function is not supported yet on H3 boards due to lack of support for https://linux-sunxi.org/AR100 inside the kernel. 

Thanks Igor, but this functionality was supported on older kernel 3.4.113 and subsequently removed from the newer kernel?

On 12/12/2019 at 5:12 PM, wsian said:

Seems that kernel 5.3 solve this problem.

I wonder how it does that.

AFAICT, boards like Orange Pi PC Plus do not have any power management unit (e.g., something like AXP209).

Also, I do not see any PSCI support for shutdown.

No GPIO shutdown either.

There does not seem to be a syscon poweroff method too.

I looked at various drivers under drivers/reset and beyond and I could not find anything that would be compatible with Orange Pi H3-based boards.

 

So, I am very curious what mechanism Linux or Armbian uses for powering off on those boards .

On 12/12/2019 at 11:12 PM, wsian said:

Seems that kernel 5.3 solve this problem.

I tried a few months back. My OPiPC+ shows halted on the screen. Are you sure?

Yes, I am seeing the same with Armbian 20.05.4 Focal (Linux 5.4.45-sunxi).

 

At this point I think that the closest to soft poweroff would be some sort of custom firmware indeed.

The firmware would put a system into a deepest sleep state possible.

If it's ever woken up then it would reset the system.

 

I see some code in linux-sunxi repo that does something like that.

It looks like it copies some special code to a special address in SRAM (?).

Probably that code gets run to handle a wake-up or something like that.

I cannot find that code in the modern linux kernel.

  • Igor unpinned this topic
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.