0
vilaemail

A20 Lime1 legacy kernel can not wake up with rtc nor power button

Recommended Posts

Hi folks, I am trying for couple of days now to put Lime1 to sleep and then wake it up, both by software and user interaction.

 

Problem description:

I am able to put board to sleep with any of the following commands:

rtcwake -m standby -s 10
echo "standby" > /sys/power/state

When device is on battery I can see it consuming ~0.7A while it works normally and once i execute one of the above commands it drops down to about ~0.25A leading me to conclusion that device has indeed in sleep.

 

Here is how I ran rtcwake to make sure RTC clock is up and running:

root@lime:/etc/systemd/system# hwclock -w
root@lime:/etc/systemd/system# hwclock
Mon 10 Sep 2018 08:21:03 PM UTC  .218585 seconds
root@lime:/etc/systemd/system# hwclock
Mon 10 Sep 2018 08:21:09 PM UTC  .338408 seconds
root@lime:/etc/systemd/system# sudo rtcwake -m standby -s 10
rtcwake: wakeup from "standby" using /dev/rtc0 at Mon Sep 10 20:21:39 2018

Once device is in sleep, I am not able to wake it up no matter what I do, only way to "recover" the device is to long press power button until it turns off (hard shutdown) (this happens with both rtcwake and /sys/power/state), then release and long press again to turn it on.

 

What have I tried:

I fiddled around with script.fex file to no avail. What I am using at the moment for pmu part is below (if you need other sections I can send them on, wanted to keep the post short...)

Spoiler

[pmu_para]
pmu_used = 1
pmu_twi_addr = 52
pmu_twi_id = 0
pmu_irq_id = 32
pmu_battery_rdc = 120
pmu_battery_cap = 2100
pmu_init_chgcur = 400
pmu_earlysuspend_chgcur = 600
pmu_suspend_chgcur = 1000
pmu_resume_chgcur = 400
pmu_shutdown_chgcur = 1000
pmu_init_chgvol = 4200
pmu_init_chgend_rate = 15
pmu_init_chg_enabled = 1
pmu_init_adc_freq = 100
pmu_init_adc_freqc = 100
pmu_init_chg_pretime = 50
pmu_init_chg_csttime = 720
pmu_bat_para1 = 0
pmu_bat_para2 = 0
pmu_bat_para3 = 0
pmu_bat_para4 = 0
pmu_bat_para5 = 5
pmu_bat_para6 = 11
pmu_bat_para7 = 13
pmu_bat_para8 = 15
pmu_bat_para9 = 19
pmu_bat_para10 = 32
pmu_bat_para11 = 50
pmu_bat_para12 = 58
pmu_bat_para13 = 71
pmu_bat_para14 = 81
pmu_bat_para15 = 89
pmu_bat_para16 = 100
pmu_usbvol_limit = 1
pmu_usbcur_limit = 0
pmu_usbvol = 4000
pmu_usbcur = 0
pmu_usbvol_pc = 4200
pmu_usbcur_pc = 0
pmu_pwroff_vol = 3300
pmu_pwron_vol = 3300
pmu_pekoff_time = 4000
pmu_pekoff_en = 1
pmu_peklong_time = 2500
pmu_pekon_time = 1000
pmu_pwrok_time = 64
pmu_pwrnoe_time = 128
pmu_intotp_en = 1
pmu_used2 = 0
pmu_adpdet = port:PH02<0><default><default><default>
pmu_init_chgcur2 = 400
pmu_earlysuspend_chgcur2 = 600
pmu_suspend_chgcur2 = 1200
pmu_resume_chgcur2 = 400
pmu_shutdown_chgcur2 = 1200
pmu_suspendpwroff_vol = 3500
pmu_batdeten = 1
pmu_backupen = 1

 

 

System information:

A20 processor on A10-OlinuXino-Lime Rev.E board without eMMC.

Downloaded and using "Desktop" image from https://www.armbian.com/olimex-lime/

U-Boot SPL 2017.11-armbian (Jan 25 2018 - 01:01:48)
root@lime:~# uname -a
Linux lime 3.4.113-sun7i #16 SMP PREEMPT Wed Jan 24 19:20:59 CET 2018 armv7l armv7l armv7l GNU/Linux
root@lime:~# cat /etc/os-release
NAME="Ubuntu"
VERSION="16.04.5 LTS (Xenial Xerus)"

 

Any idea what can I do to somehow wake up the device? Any other info I can provide?

 

Thanks for any help you can provide.

 

Edited by vilaemail
Hiding long fex file behind spoiler

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
0