hw 4 power consumption

37
Power consumption HW-4 TEAM CSIE 陳陳陳 P76034305

Upload: addweup

Post on 14-Apr-2017

256 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Hw 4 power consumption

Power consumptionHW-4

TEAM CSIE 陳顥文 P76034305

Page 2: Hw 4 power consumption

Requirement• 針對以下幾種 components 在不同 state 下的耗電量進行實測,• components: WiFi chipset, Cellular Radio, Bluetooth, GPS, Display,

CPU 。• change states (OFF/ON, idle/full power, low/high brightness, etc.),• https://source.android.com/devices/tech/power.html#screen-power• 請利用表格呈現測量結果,並附上每個測試的 command 及步驟為何。• 作業請於下下次上課 4/9 號前,上傳到 moodle 。

Page 3: Hw 4 power consumption

Device• Sony Z Ultra C6833 LTE version with official 4.4.4 ROM• 2.20GHz Qualcomm Snapdragon 800• Elpida LPDDR2 RAM• 6.4” 1080*1920• Daily use applications load and run.

Page 4: Hw 4 power consumption

Implement• Problem1:• TA gives link which using getLongProperty Methods and

BATTERY_PROPERTY_CURRENT_NOW are not support before API 21

• Solve1:• Direct to read system file,

• # cat /sys/class/power_supply/battery/current_now

• Value unit is Nano Amp.• Different Model may have different file path.

http://stackoverflow.com/questions/2439619/getting-the-battery-current-values-for-the-android-phone

Page 5: Hw 4 power consumption

Measure App – Global current• CurrentWidget: Battery Monitor• https://play.google.com/store/apps/details?id=com.manor.currentwidget• 3 Second record current_now• 10 times(a half min)

Page 6: Hw 4 power consumption

CPU test

Page 7: Hw 4 power consumption

Measure App – CPU test• CPU-Z• Make sure every core speed.

• Antutu CPU Master• Adjust core speed.

• In Air plant Mode.• Turn off monitor.

Page 8: Hw 4 power consumption

CPU – Prevent/Allow suspend test • Disable suspend.• # echo temporary > /sys/power/wake_lock

• Enable suspend.• # echo temporary > /sys/power/wake_unlock

Page 9: Hw 4 power consumption

CPU – Prevent/Allow suspend test

-60

-50

-40

-30

-20

-10

0

-22-27 -24 -25 -26

-20-15

-36

-26

-15

-4 -5 -4 -4

-49

-4 -4 -4 -5 -5

CPU No/Have suspend test

CPU no suspend CPU suspend

No suspend Avg: -23.6mASuspend Avg: -8.8mA

Page 10: Hw 4 power consumption

CPU – Available frequency

Page 11: Hw 4 power consumption

CPU – Max frequency • echo userspace >

/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor• echo 2150400>

/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq• echo 2150400 >

/sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq• echo 2150400 >

/sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed

Page 12: Hw 4 power consumption

CPU – Max frequency• Using Antutu CPU Master.• Fix CPU frequency to 2150.4Mhz.• Chose Performance mode.

Page 13: Hw 4 power consumption

CPU – Max utility• Using loop.• while true; do true; done

• Using multiple Terminal to control CPU Usage core.

Page 14: Hw 4 power consumption

CPU – Monitor real frequency• CPU-Z to make sure CPU utility status &

frequency.

Page 15: Hw 4 power consumption

CPU – CPU Core power consumption test

-1400

-1200

-1000

-800

-600

-400

-200

0

-422 -370 -375-562

-425 -396 -366 -373 -400 -366

-698-595 -568 -592 -595 -567 -568

-790

-570 -571

-812 -811 -810 -813 -818 -817 -816 -814 -825 -808-964

-1129 -1155

-936-825

-989 -1056-1150 -1097

-829

CPU @ 2.15Ghz with different core test

CPU 2.15G 1CORE CPU 2.15G 2CORE CPU 2.15G 3 CORE CPU 2.15G Full load

1 Core: -405.5mA 2 Core: -611.4mA3 Core: -814.4mA 4 Core: -1013mA

Page 16: Hw 4 power consumption

Monitor

Page 17: Hw 4 power consumption

Monitor• Disable Auto brightness control.• Test min/max backlit.• Set backlit at Android build-in setting interface.• Set CPU Frequency to min(300Mhz), ondemand mode.• Using Google Calendar App.• Turn off monitor.

Page 18: Hw 4 power consumption

Monitor – Backlit consumption test

1 2 3 4 5 6 7 8 9 10

-800-700-600-500-400-300-200-100

0

-215 -216 -215 -209 -208 -213 -211 -210 -211 -212

-499 -505 -485 -484 -486 -483 -484 -478 -520 -485

Monitor backlit test

Min backlit Max backlit

Min backlit: -212mAMax backlit: -490.9mA

Page 19: Hw 4 power consumption

WiFi

Page 20: Hw 4 power consumption

WiFi• Inherit monitor test setting.• Open monitor, min backlit.

Page 21: Hw 4 power consumption

WiFi – Scan & Disconnect• Using WiFi analyzer to

stay scanning.• Using Network Signal

Info Pro to see signal strength.

• Stay at Google Calendar App.

Page 22: Hw 4 power consumption

WiFi – Scan & Disconnect

-900-800-700-600-500-400-300-200-100

0

-248

-622

-439 -466-520

-249 -248 -290 -247 -247-207 -210 -227

-398

-841

-667

-219 -236 -216 -218

WiFi Scan&Disconnect test

Scan Disconnect

Scan: -357.6mADisconnect: -343.9mA

Page 23: Hw 4 power consumption

WiFi – Connected & Active• Using SpeedTest App to test.• Connect @ 802.11n mode @ 72Mbps.

• Still stay in Google Calendar App due to render Speedtest App is consumption more power.

• Test twice, 8.21/6.01 and 28.99/7.62 are similar power consumption.

Page 24: Hw 4 power consumption

WiFi – Connected IDLE & Active test

1 2 3 4 5 6 7 8 9 10

-900-800-700-600-500-400-300-200-100

0

-214 -214 -212 -211-271 -222 -213 -234 -223 -261

-630

-423 -407

-260

-469

-857-780

-691

-278 -260

WiFi Connected IDLE/Active test

Connected - IDLE Connected - Active

Connected – IDLE: -227.5mAConnected – Active: -505.5mA

Page 25: Hw 4 power consumption

WiFi – Connected Active test with iPerf test1• To get high speed and power consumption

test.• Avg test result: 18.5Mbit/s

• Stay in iPerf Apps. (may consumption more power due to refresh monitor)

Page 26: Hw 4 power consumption

WiFi – Connected Active test with iPerf

-1000-900-800-700-600-500-400-300-200-100

0

-862

-710-638 -610

-392

-570

-699-781

-655

-791

Connected - Active with Iperf

Connected – Active with Iperf: -670.8mA

Page 27: Hw 4 power consumption

Bluetooth

Page 28: Hw 4 power consumption

Bluetooth – BT 2.0 & BT 4.0• Inherit monitor test setting.

• Connect Creative T3150 BT 2.0 speaker.• Connect Motorola 360 BT 4.0 SmartWatch.

• Stay in Google Calendar App.

Page 29: Hw 4 power consumption

Bluetooth – BT 2.0 & BT 4.0 test

1 2 3 4 5 6 7 8 9 10

-300

-250

-200

-150

-100

-50

0

-248 -233-256 -241

-207 -216 -208-235 -235

-261

-209 -213 -218 -211

-256-217

-234-213 -215 -211-225 -227 -232

-275-237 -235

-264-224 -240 -235

BT Test

Disconnect Connect to BT 2.0 Connect to BT 4.0Disconnect: -234mA Connect to BT 2.0: -219.7mAConnect to BT 4.0: -239.4mA

Page 30: Hw 4 power consumption

Cellular

Page 31: Hw 4 power consumption

Cellular• Inherit monitor test setting.

• ISP: CHT

• Using Speedtest App to Active Cellular.• Stay in Google Calendar App.

Page 32: Hw 4 power consumption

Cellular• Using Network Signal Pro

to check signal status.

Page 33: Hw 4 power consumption

Cellular – HSPA+ & LTE

1 2 3 4 5 6 7 8 9 10

-900-800-700-600-500-400-300-200-100

0

-217 -215 -216 -255 -234 -241 -212 -214-293

-210-246 -212-276 -283 -298 -274 -273 -221

-311-246

-643-578 -526

-617-540 -556 -526 -558

-328 -281-216 -249

-331-209 -232 -225 -217 -217

-282 -335-273

-457-596

-718

-415-302

-364-506

-798

-515

Cellular test

Without MobileData HSPA+ HSPA+ ActiveLTE LTE Active

Without MobileData: -230.7mAHSPA+: -264mA HSPA+ Active: -515.3mA LTE: -251.3mA LTE Active: -494.4mA

Page 34: Hw 4 power consumption

GPS• Inherit monitor test setting.

• Using “GPS 狀態” App.• Stay in GPS 狀態 App.

• This app active light and Gyro and Magnetic field sensor together, consumption value may Inaccurate.

Page 35: Hw 4 power consumption

GPS – Locating & Located

-1000-900-800-700-600-500-400-300-200-100

0

-254

-585 -562

-787 -762

-582-550

-403

-239

-887

-547-490

-787-654

-545 -490

GPS test

GPS Locating GPS Located

GPS Locating: -588.667mAGPS Located: -559.2mA

Page 36: Hw 4 power consumption

CPU no susp

end

CPU susp

end

CPU 2.15G 1CORE

CPU 2.15G 2CORE

CPU 2.15G 3 CORE

CPU 2.15G Full l

oad

Min backlit

Max back

lit

WIFI Connecte

d - IDLE

WIFI Connecte

d - Acti

ve

WIFI Connecte

d - Acti

ve w

ith Ip

erf

WIFI Sc

an

WIFI Disc

onnect

BT Disconnect

BT Connect to BT 2.0

BT Connect to BT 4.0

Without M

obileData

HSPA+

HSPA+ Acti

ve LTE

LTE Acti

ve

GPS Locati

ng

GPS Locat

ed

-1200

-1000

-800

-600

-400

-200

0

Total Avg

Page 37: Hw 4 power consumption

About this slide• Author: Nathaniel Chen @ NCKU• [email protected]

• Last update:2015/04/19 1702 v1.4