Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

powerdown not working #16

Open
frank-w opened this issue Sep 24, 2017 · 9 comments
Open

powerdown not working #16

frank-w opened this issue Sep 24, 2017 · 9 comments

Comments

@frank-w
Copy link
Collaborator

frank-w commented Sep 24, 2017

I don't know its a kernel issue,but commands powerdown,shutdown -P now and init 0 do only halt. Board stays on (green led is lighting)

tried including some kernel-options but currently without luck

@frank-w
Copy link
Collaborator Author

frank-w commented Jan 15, 2018

anything new?

@JackZengBpi
Copy link
Collaborator

JackZengBpi commented Jan 31, 2018

it seems like Ubuntu's bug, it says we have to update systemd,I will try that.
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1464917

@frank-w
Copy link
Collaborator Author

frank-w commented Jan 31, 2018

I have tried that in debian jessie and a fresh installed debian stretch (debootstrap)...System is only halted,not powered off

@JackZengBpi
Copy link
Collaborator

JackZengBpi commented Feb 1, 2018

it seems like we need to register a pm_power_off callback to handle power,or do something in machine_power_off()
http://www.wowotech.net/pm_subsystem/reboot.html

SYSCALL_DEFINE4(reboot,……) ->kernel_power_off() ->machine_power_off()
But most of machine_power_off() do nothing or just disable irq , halt system ……

@frank-w
Copy link
Collaborator Author

frank-w commented Mar 11, 2018

any progress here?

btw. power consumption does not change between running system and halted system via poweroff-command, so i assume that only the init-part of OS (stopping services, umounting filesystems, ...) is done but nothing hardware-specific

link to forum just for reference: http://forum.banana-pi.org/t/shutdown-does-not-poweroff/3866/

@JackZengBpi
Copy link
Collaborator

Hello frank, I don't have 6323 datasheet,and I have contacted MTK-Team to give a support,but it needs some time. I see there is no poweroff hardware operation in driver, so we need to add it by ourselves.

@drastx
Copy link

drastx commented Apr 26, 2018

Any update on this issue Jack? The power button issue is a bit disconcerting

Anyone know how one can get the 6323 datasheet?

Thanks.

@JackZengBpi
Copy link
Collaborator

@drastx hello this is patch for this issue,it provided by MTK team,but I haven't tested it yet,could you have a try?
https://patchwork.kernel.org/patch/10302965/

@frank-w
Copy link
Collaborator Author

frank-w commented Apr 26, 2018

i tried it, but with the patches (imho 4-14 without documentation) switch does not work (all dsa-interfaces disappeared) in 4.14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants