I'm using the AOSP 2.3.2 (Gingerbread) rom and deca's kernel
http://forum.xda-developers.com/showthread.php?t=864403
http://forum.xda-developers.com/showthread.php?t=756774
Pretty much a new install, though my apps did sync after the install. Here is what powertop shows me. Is this normal? I've seen people as low as 50, though I'm not sure if that is normal for the hero.
Code:
Wakeups-from-idle per second : 177.0 interval: 10.0s
no ACPI power usage estimate available
Top causes for wakeups:
32.2% ( 57.0) <interrupt> : gp_timer
28.3% ( 50.1) <kernel core> : cpufreq_interactive_idle (cpufreq_interactiv
26.7% ( 47.3) <kernel core> : hrtimer_start (tick_sched_timer)
2.9% ( 5.2) <kernel core> : hrtimer_start_range_ns (tick_sched_timer)
2.0% ( 3.5) <interrupt> : msm_hsusb
1.7% ( 3.0) GpsLocationProv : hrtimer_start_range_ns (hrtimer_wakeup)
Thanks,
jack
jacksmind said:
I'm using the AOSP 2.3.2 (Gingerbread) rom and deca's kernel
http://forum.xda-developers.com/showthread.php?t=864403
http://forum.xda-developers.com/showthread.php?t=756774
Pretty much a new install, though my apps did sync after the install. Here is what powertop shows me. Is this normal? I've seen people as low as 50, though I'm not sure if that is normal for the hero.
Code:
Wakeups-from-idle per second : 177.0 interval: 10.0s
no ACPI power usage estimate available
Top causes for wakeups:
32.2% ( 57.0) <interrupt> : gp_timer
28.3% ( 50.1) <kernel core> : cpufreq_interactive_idle (cpufreq_interactiv
26.7% ( 47.3) <kernel core> : hrtimer_start (tick_sched_timer)
2.9% ( 5.2) <kernel core> : hrtimer_start_range_ns (tick_sched_timer)
2.0% ( 3.5) <interrupt> : msm_hsusb
1.7% ( 3.0) GpsLocationProv : hrtimer_start_range_ns (hrtimer_wakeup)
Thanks,
jack
Click to expand...
Click to collapse
It looks like #1 your GPS is on, you can disable that, it will help a bit. Did you have your phone on the charger or on USB? The phone doesnt sleep when connected to USB or when charging.
runngwlf said:
It looks like #1 your GPS is on, you can disable that, it will help a bit. Did you have your phone on the charger or on USB? The phone doesnt sleep when connected to USB or when charging.
Click to expand...
Click to collapse
Under Settings, you can enable or disable sleeping when charging (or just hit the end button). Also, GPS is only used when an app is polling your location.
It was plugged into usb, but I did hit the end button to put it to sleep, should this show valid sleep/idle info? If not, is there a way to get the same data without plugging it in?
After turning of gps/wifi and putting it to sleep I still get:
Code:
< Detailed C-state information is not P-states (frequencies)
691 Mhz 10.5%
518 Mhz 0.0%
352 Mhz 0.7%
264 Mhz 88.9%
19 Mhz 0.0%
Wakeups-from-idle per second : 186.0 interval: 3.0s
no ACPI power usage estimate available
Top causes for wakeups:
33.4% ( 62.0) <interrupt> : gp_timer
25.3% ( 47.0) <kernel core> : cpufreq_interactive_idle (cpufreq_interactiv
21.2% ( 39.3) <kernel core> : hrtimer_start (tick_sched_timer)
9.5% ( 17.7) <kernel core> : hrtimer_start_range_ns (tick_sched_timer)
1.6% ( 3.0) <interrupt> : msm_hsusb
1.6% ( 3.0) putmethod.latin : schedule_timeout (process_timeout)
jacksmind said:
It was plugged into usb, but I did hit the end button to put it to sleep, should this show valid sleep/idle info? If not, is there a way to get the same data without plugging it in?
After turning of gps/wifi and putting it to sleep I still get:
Code:
< Detailed C-state information is not P-states (frequencies)
691 Mhz 10.5%
518 Mhz 0.0%
352 Mhz 0.7%
264 Mhz 88.9%
19 Mhz 0.0%
Wakeups-from-idle per second : 186.0 interval: 3.0s
no ACPI power usage estimate available
Top causes for wakeups:
33.4% ( 62.0) <interrupt> : gp_timer
25.3% ( 47.0) <kernel core> : cpufreq_interactive_idle (cpufreq_interactiv
21.2% ( 39.3) <kernel core> : hrtimer_start (tick_sched_timer)
9.5% ( 17.7) <kernel core> : hrtimer_start_range_ns (tick_sched_timer)
1.6% ( 3.0) <interrupt> : msm_hsusb
1.6% ( 3.0) putmethod.latin : schedule_timeout (process_timeout)
Click to expand...
Click to collapse
Hitting the end button when the phone is plugged in turns the screen off, but it's my understanding that it still does not sleep. As far as accessing this info, download "spare parts" from the market. In the battery stats it will tell you partial wake usage, and tell you what processes are keeping the phone from sleeping and how often. As for specific how many times a process wakes the phone you can probably retrieve those stats using a terminal emulator.
jacksmind said:
Code:
< Detailed C-state information is not P-states (frequencies)
691 Mhz 10.5%
518 Mhz 0.0%
352 Mhz 0.7%
264 Mhz 88.9%
19 Mhz 0.0%
Wakeups-from-idle per second : 186.0 interval: 3.0s
no ACPI power usage estimate available
Top causes for wakeups:
33.4% ( 62.0) <interrupt> : gp_timer
25.3% ( 47.0) <kernel core> : cpufreq_interactive_idle (cpufreq_interactiv
21.2% ( 39.3) <kernel core> : hrtimer_start (tick_sched_timer)
9.5% ( 17.7) <kernel core> : hrtimer_start_range_ns (tick_sched_timer)
1.6% ( 3.0) <interrupt> : msm_hsusb
1.6% ( 3.0) putmethod.latin : schedule_timeout (process_timeout)
Click to expand...
Click to collapse
Based off solely off this, it doesn't look like there's much of a problem.
Code:
691 Mhz 10.5%
518 Mhz 0.0%
352 Mhz 0.7%
264 Mhz 88.9%
19 Mhz 0.0%
Almost 90% of the time your phone is running at 264Mhz, which means its sleeping. Are you having battery issues? or just inquiring about the Top Causes for Wakeups?
Currently MIA for a few weeks - Sent from my HERO200 using XDA App
Related
hi ,all
my sex1's camera version is r3a(enable geo tagging)
this is jpg's exif source
GPSLatitude Ref = N
GPSLatitude = 36 Degrees 19 Minutes 3 Seconds
GPSLongitude Ref = E
GPSLongitude = 127 Degrees 22 Minutes 3 Seconds
GPSAltitude Ref = Sealevel
GPSAltitude = 0/1
latitude and longitude ...good
but, GPSAltitude is 0meter
i want geotagging about altitude.
plz, help me.
Need help for audio transcoding for playing in SSGS
I have download some animation and try to play it with my SSGS.
the video play flawlessly with stock video player but the audio is missing.
I use mediainfo to check the file property and get the following.
General
Complete name : D:\Downloads\[CCT] To Aru Kagaku no Railgun - 05 [TH][720p h264+aac][711DB045].mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom
File size : 230 MiB
Duration : 23mn 59s
Overall bit rate : 1 338 Kbps
Encoded date : UTC 2010-03-22 11:22:21
Tagged date : UTC 2010-03-22 11:22:21
Writing application : Yamb 2.1.0.0 [http://yamb.unite-video.com]
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : [email protected]
Format settings, CABAC : Yes
Format settings, ReFrames : 1 frame
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 23mn 59s
Bit rate mode : Variable
Bit rate : 1 147 Kbps
Maximum bit rate : 4 405 Kbps
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.052
Stream size : 197 MiB (86%)
Title : [CCT] To Aru Kagaku no Railgun - 05 [TH][720p h264]
Writing library : x264 core 68 r1195bm 5d75a9b
Encoding settings : cabac=1 / ref=1 / deblock=1:0:0 / analyse=0x3:0x13 / me=umh / subme=7 / psy_rd=0.0:0.0 / mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / chroma_qp_offset=0 / threads=2 / thread_queue=2 / nr=0 / decimate=1 / mbaff=0 / bframes=0 / keyint=250 / keyint_min=25 / scenecut=40 / rc=2pass / bitrate=1147 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=2:1.00
Language : Japanese
Encoded date : UTC 2010-03-22 11:22:21
Tagged date : UTC 2010-03-22 11:23:50
Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format version : Version 4
Format profile : LC
Codec ID : 40
Duration : 23mn 59s
Bit rate mode : Variable
Bit rate : 192 Kbps
Maximum bit rate : 196 Kbps
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 KHz
Stream size : 32.4 MiB (14%)
Title : [CCT] To Aru Kagaku no Railgun - 05 [TH][aac]
Language : Japanese
Encoded date : UTC 2010-03-22 11:23:45
Tagged date : UTC 2010-03-22 11:23:50
Click to expand...
Click to collapse
and see the audio property it's just an 2CH ACC format which SSGS should support it. After that I try to transcode the file using media coder with copy video function and audio set to MP3 format. The result file still missing the audio when I play it in SSGS. Mediainfo show the following.
General
Complete name : D:\[CCT] To Aru Kagaku no Railgun - 05 [TH][720p h264+aac][711DB045].mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom
File size : 197 MiB
Duration : 23mn 59s
Overall bit rate : 1 149 Kbps
Writing application : Lavf52.61.0
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : [email protected]
Format settings, CABAC : Yes
Format settings, ReFrames : 1 frame
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 23mn 59s
Bit rate mode : Variable
Bit rate : 1 147 Kbps
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate mode : Variable
Frame rate : 23.976 fps
Minimum frame rate : 23.976 fps
Maximum frame rate : 23.976 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.052
Stream size : 197 MiB (100%)
Writing library : x264 core 68 r1195bm 5d75a9b
Encoding settings : cabac=1 / ref=1 / deblock=1:0:0 / analyse=0x3:0x13 / me=umh / subme=7 / psy_rd=0.0:0.0 / mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / chroma_qp_offset=0 / threads=2 / thread_queue=2 / nr=0 / decimate=1 / mbaff=0 / bframes=0 / keyint=250 / keyint_min=25 / scenecut=40 / rc=2pass / bitrate=1147 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=2:1.00
Language : Japanese
Audio
ID : 2
Format : MPEG Audio
Format version : Version 1
Format profile : Layer 3
Mode : Joint stereo
Mode extension : MS Stereo
Codec ID : 6B
Duration : 72ms
Bit rate mode : Constant
Bit rate : 128 Kbps
Channel(s) : 2 channels
Sampling rate : 48.0 KHz
Stream size : 1.13 KiB (0%)
Writing library : LAME3.98.4
Language : Japanese
Click to expand...
Click to collapse
After that I try to transcode both video and audio and this time both video and audio work perfectly with SSGS stock player. The transcoding result is as follow.
General
Complete name : D:\[CCT] To Aru Kagaku no Railgun - 05 [TH][720p h264+aac][711DB045].mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom
File size : 223 MiB
Duration : 23mn 59s
Overall bit rate : 1 298 Kbps
Encoded date : UTC 2010-10-26 09:26:26
Tagged date : UTC 2010-10-26 09:26:26
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : [email protected]
Format settings, CABAC : Yes
Format settings, ReFrames : 4 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 23mn 59s
Bit rate mode : Variable
Bit rate : 1 193 Kbps
Nominal bit rate : 1 338 Kbps
Maximum bit rate : 9 838 Kbps
Width : 480 pixels
Height : 320 pixels
Display aspect ratio : 16:9
Original display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 25.000 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.311
Stream size : 205 MiB (92%)
Title : Imported with GPAC 0.4.6-DEV (internal rev. 5)
Writing library : x264 core 104 r1713 c276662
Encoding settings : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=3 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=abr / mbtree=1 / bitrate=1338 / ratetol=0.0 / qcomp=0.00 / qpmin=10 / qpmax=51 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
Encoded date : UTC 2010-10-26 09:26:26
Tagged date : UTC 2010-10-26 09:26:49
Audio
ID : 2
Format : MPEG Audio
Format version : Version 1
Format profile : Layer 3
Mode : Joint stereo
Mode extension : MS Stereo
Codec ID : 6B
Duration : 23mn 59s
Bit rate mode : Variable
Bit rate : 101 Kbps
Nominal bit rate : 112 Kbps
Maximum bit rate : 127 Kbps
Channel(s) : 2 channels
Sampling rate : 48.0 KHz
Stream size : 17.4 MiB (8%)
Title : Imported with GPAC 0.4.6-DEV (internal rev. 5)
Writing library : LAME3.98r
Encoding settings : -m j -V 4 -q 2 -lowpass 15.6 --abr 112
Encoded date : UTC 2010-10-26 09:26:47
Tagged date : UTC 2010-10-26 09:26:49
Click to expand...
Click to collapse
Does anyone see any different that can make the audio not working in above file? Since I would like to transcode only audio because it's a lot more faster.
no one having the same problem?
Has anyone tried this? We have the hardware behind it (twl6040).
I compiled the driver for it, and found the firmware blobs it wanted to load.
Insmod dmesg logs:
Code:
<3>[ 3012.835601] init: no such service 'fm_dl'
<3>[ 3014.386718] init: untracked pid 2225 exited
<3>[ 3015.045623] init: untracked pid 2213 exited
<6>[ 3015.710144] (stc): st_register(8)
<6>[ 3015.710174] (stc): chnl_id list empty :8
<6>[ 3015.710205] (stk) : st_kim_start
<6>[ 3015.710205] Enable wl12xx power
<6>[ 3015.917175] (stk) :ldisc_install = 1
<6>[ 3015.968597] (stc): st_tty_open
<6>[ 3015.968627] (stk) :line discipline installed
<6>[ 3015.969879] (stk) :TIInit_7.6.15.bts
<6>[ 3016.060791] (stc): add_channel_to_table: id 8
<6>[ 3016.726562] (stc): remove_channel_from_table: id 8
<6>[ 3016.726623] (stc): all chnl_ids unregistered
<6>[ 3016.726684] (stk) :ldisc_install = 0
<6>[ 3016.727081] (stc): st_tty_close
<6>[ 3016.729278] Disable wl12xx power
<6>[ 3023.407836] (stc): st_register(8)
<6>[ 3023.407897] (stc): chnl_id list empty :8
<6>[ 3023.407928] (stk) : st_kim_start
<6>[ 3023.407958] Enable wl12xx power
<6>[ 3023.615295] (stk) :ldisc_install = 1
<6>[ 3023.666046] (stc): st_tty_open
<6>[ 3023.666107] (stk) :line discipline installed
<6>[ 3023.666595] (stk) :TIInit_7.6.15.bts
<6>[ 3023.755706] (stc): add_channel_to_table: id 8
The radio app, itself, seems to want to work.
logcat logs
Code:
D/fm_apln ( 2190): freq_set_dlg_shw: Frequency changing to : 106500 KHz
D/fm_srvc ( 2190): dhrdw_freq_set fd: 6 freq: 106500
D/fm_hrdw ( 2190): hrdw_so_freq_set api_hndl: 6 freq: 106500
D/fm_hrdw ( 2190): gen_freq_set freq: 106500 limited: 106500
D/fm_hrdw ( 2190): rds_reset
D/fm_hrdw ( 2190): v4_freq_set: 106500
E/fm_hrdw ( 2190): iris_buf_display error: 22
E/fm_hrdw ( 2190): iris_buf_display error: 22
D/fm_srvc ( 2190): evt_pi_chngd
D/fm_srvc ( 2190): dhrdw_pi_get fd: 6
D/fm_hrdw ( 2190): hrdw_so_pi_get api_hndl: 6 pi: 0x0
D/fm_apln ( 2190): on_pi_chngd
D/fm_hrdw ( 2190): v4_freq_set VIDIOC_S_FREQUENCY success
D/fm_sttn ( 2190): pt_parse: 0
D/fm_apln ( 2190): run_on_pi_chngd run
D/fm_apln ( 2190): run_on_pi_chngd run pi: 0 cs: null
D/fm_apln ( 2190): run_on_pi_chngd run cs: 0000 m_just_pi: true m_just_pi_time: 1395133231826
E/fm_hrdw ( 2190): iris_buf_display error: 22
E/fm_hrdw ( 2190): iris_buf_display error: 22
D/fm_srvc ( 2190): evt_freq_chngd: freq: 106500
D/fm_apln ( 2190): on_freq_chngd freq: 106500
D/fm_apln ( 2190): ui_sttn_info_reset m_freq: 106500 sttn_name: 106.5
D/fm_sttn ( 2190): pt_parse: 0
D/fm_apln ( 2190): sttn_id_tv_set m_station_id: 0 sttn_id: PI: 0
D/fm_apln ( 2190): prefs_set int: last_frequency = 106500
E/fm_hrdw ( 2190): iris_buf_display error: 22
E/fm_hrdw ( 2190): iris_buf_display error: 22
D/fm_srvc ( 2190): dhrdw_pt_get fd: 6
D/fm_hrdw ( 2190): hrdw_so_pt_get api_hndl: 6 pt: -1
D/fm_srvc ( 2190): evt_pt_chngd: -1
D/fm_apln ( 2190): cb_on_pt_chngd
E/fm_hrdw ( 2190): iris_buf_display error: 22
E/fm_hrdw ( 2190): iris_buf_display error: 22
D/fm_srvc ( 2190): evt_ps_chngd:
D/fm_apln ( 2190): run_on_pt_chngd: -1
D/fm_sttn ( 2190): pt_parse: -1
D/fm_sttn ( 2190): pt_parse: -1
E/fm_hrdw ( 2190): iris_buf_display error: 22
E/fm_hrdw ( 2190): iris_buf_display error: 22
D/fm_srvc ( 2190): evt_rt_chngd:
D/fm_hrdw ( 2190): v4_rssi_get VIDIOC_G_TUNER success name: FM type: 1 cap: 0x91 lo: 1400000 hi: 1728000 sc: 3 am: 1 sig: 31097 afc: 0
No audio. I'm not sure if I just need to use a mixer to map it or if I have further driver problems.
Sometimes I get these errors?
Code:
<3>[ 3081.753814] fmdrv: Response SKB ptr not NULL
<3>[ 3081.754577] fmdrv: Response SKB is missing
<3>[ 3082.530303] fmdrv: Response SKB ptr not NULL
<3>[ 3082.531036] fmdrv: Response SKB is missing
Anyway, I'm thinking it's possible with some work.
Well I definitely know that it's going to be possible with a little bit of work.
I managed to get a split second of audio from radio station while I was messing with spirit radio settings and unplugged the headset.
Don't know what I did because I haven't managed to recreate, but it was enough to let me know that it was there and just needs to be mapped.
If anyone else would like to work with me on this, here's the files:
http://www.mediafire.com/download/6296mev66ydlb2y/fm_radio_files.zip
the *.bts files go in /system/etc/firmware
fm_drv.ko goes in /system/lib/modules
omap audio-tool (which I just compiled) goes in /system/xbin
You have to procure spirit FM unlocked (from market or elsewhere).
I'm not going to get involved but that's cool and unexpected. Good stuff.
Well at least I found a practical use for audio-tool. Apparently our sound chipset is normally configured for low-power operation. You can use audio-tool to change this to high performance.
Code:
[email protected]:/ # audio-tool mix
Number of controls: 71
ctl type num name value
0 ENUM 1 DL1 Equalizer Flat response
1 ENUM 1 Sidetone Equalizer Flat response
2 ENUM 1 AMIC Equalizer High-pass 0dB
3 ENUM 1 DMIC Equalizer High-pass 0dB
4 INT 1 DL1 Media Playback Volume 132
5 INT 1 DL1 Tones Playback Volume 0
6 INT 1 DL1 Voice Playback Volume 130
7 INT 1 DL1 Capture Playback Volume 0
8 INT 1 VXREC Media Volume 0
9 INT 1 VXREC Tones Volume 0
10 INT 1 VXREC Voice DL Volume 0
11 INT 1 VXREC Voice UL Volume 0
12 INT 1 AUDUL Media Volume 0
13 INT 1 AUDUL Tones Volume 0
14 INT 1 AUDUL Voice UL Volume 120
15 INT 1 AUDUL Voice DL Volume 0
16 INT 1 SDT UL Volume 101
17 INT 1 SDT DL Volume 120
18 INT 2 DMIC1 UL Volume 120 120
19 INT 2 DMIC2 UL Volume 120 120
20 INT 2 DMIC3 UL Volume 120 120
21 INT 2 AMIC UL Volume 120 120
22 INT 2 BT UL Volume 126 126
23 BOOL 1 DL1 Mono Mixer Off
24 BOOL 1 AUDUL Mono Mixer Off
25 BOOL 1 DL1 MM_EXT Switch Off
26 BOOL 1 DL1 BT_VX Switch Off
27 BOOL 1 DL1 PDM_DL2 Switch On
28 BOOL 1 DL1 PDM Switch Off
29 BOOL 1 Sidetone Mixer Capture Off
30 BOOL 1 Sidetone Mixer Playback On
31 BOOL 1 Capture Mixer Tones Off
32 BOOL 1 Capture Mixer Voice Playback Off
33 BOOL 1 Capture Mixer Voice Capture Off
34 BOOL 1 Capture Mixer Media Playback Off
35 BOOL 1 Voice Capture Mixer Tones Playback Off
36 BOOL 1 Voice Capture Mixer Media Playback Off
37 BOOL 1 Voice Capture Mixer Capture Off
38 BOOL 1 DL1 Mixer Tones Off
39 BOOL 1 DL1 Mixer Voice Off
40 BOOL 1 DL1 Mixer Capture Off
41 BOOL 1 DL1 Mixer Multimedia On
42 ENUM 1 MUX_VX1 None
43 ENUM 1 MUX_VX0 None
44 ENUM 1 MUX_UL11 None
45 ENUM 1 MUX_UL10 None
46 ENUM 1 MUX_UL07 None
47 ENUM 1 MUX_UL06 None
48 ENUM 1 MUX_UL05 None
49 ENUM 1 MUX_UL04 None
50 ENUM 1 MUX_UL03 None
51 ENUM 1 MUX_UL02 None
52 ENUM 1 MUX_UL01 None
53 ENUM 1 MUX_UL00 None
54 INT 2 Capture Preamplifier Volume 1 1
55 INT 2 Capture Volume 4 4
56 INT 2 Aux FM Volume 3 3
57 INT 2 Headset Playback Volume 7 7
58 INT 2 Handsfree Playback Volume 26 26
59 INT 1 Earphone Playback Volume 15
60 ENUM 1 Headset Power Mode Low-Power
61 BOOL 1 Earphone Playback Switch Off
62 BOOL 1 Spk Right Playback Switch On
63 BOOL 1 Spk Left Playback Switch On
64 ENUM 1 Headset Right Playback Off
65 ENUM 1 Headset Left Playback Off
66 ENUM 1 Handsfree Right Playback HF DAC
67 ENUM 1 Handsfree Left Playback HF DAC
68 ENUM 1 Analog Right Capture Route Off
69 ENUM 1 Analog Left Capture Route Off
70 ENUM 1 TWL6040 Power Mode Low-Power
[email protected]:/ # audio-tool mix 70 1
[email protected]:/ # audio-tool mix
Number of controls: 71
ctl type num name value
0 ENUM 1 DL1 Equalizer Flat response
1 ENUM 1 Sidetone Equalizer Flat response
2 ENUM 1 AMIC Equalizer High-pass 0dB
3 ENUM 1 DMIC Equalizer High-pass 0dB
4 INT 1 DL1 Media Playback Volume 132
5 INT 1 DL1 Tones Playback Volume 0
6 INT 1 DL1 Voice Playback Volume 130
7 INT 1 DL1 Capture Playback Volume 0
8 INT 1 VXREC Media Volume 0
9 INT 1 VXREC Tones Volume 0
10 INT 1 VXREC Voice DL Volume 0
11 INT 1 VXREC Voice UL Volume 0
12 INT 1 AUDUL Media Volume 0
13 INT 1 AUDUL Tones Volume 0
14 INT 1 AUDUL Voice UL Volume 120
15 INT 1 AUDUL Voice DL Volume 0
16 INT 1 SDT UL Volume 101
17 INT 1 SDT DL Volume 120
18 INT 2 DMIC1 UL Volume 120 120
19 INT 2 DMIC2 UL Volume 120 120
20 INT 2 DMIC3 UL Volume 120 120
21 INT 2 AMIC UL Volume 120 120
22 INT 2 BT UL Volume 126 126
23 BOOL 1 DL1 Mono Mixer Off
24 BOOL 1 AUDUL Mono Mixer Off
25 BOOL 1 DL1 MM_EXT Switch Off
26 BOOL 1 DL1 BT_VX Switch Off
27 BOOL 1 DL1 PDM_DL2 Switch On
28 BOOL 1 DL1 PDM Switch Off
29 BOOL 1 Sidetone Mixer Capture Off
30 BOOL 1 Sidetone Mixer Playback On
31 BOOL 1 Capture Mixer Tones Off
32 BOOL 1 Capture Mixer Voice Playback Off
33 BOOL 1 Capture Mixer Voice Capture Off
34 BOOL 1 Capture Mixer Media Playback Off
35 BOOL 1 Voice Capture Mixer Tones Playback Off
36 BOOL 1 Voice Capture Mixer Media Playback Off
37 BOOL 1 Voice Capture Mixer Capture Off
38 BOOL 1 DL1 Mixer Tones Off
39 BOOL 1 DL1 Mixer Voice Off
40 BOOL 1 DL1 Mixer Capture Off
41 BOOL 1 DL1 Mixer Multimedia On
42 ENUM 1 MUX_VX1 None
43 ENUM 1 MUX_VX0 None
44 ENUM 1 MUX_UL11 None
45 ENUM 1 MUX_UL10 None
46 ENUM 1 MUX_UL07 None
47 ENUM 1 MUX_UL06 None
48 ENUM 1 MUX_UL05 None
49 ENUM 1 MUX_UL04 None
50 ENUM 1 MUX_UL03 None
51 ENUM 1 MUX_UL02 None
52 ENUM 1 MUX_UL01 None
53 ENUM 1 MUX_UL00 None
54 INT 2 Capture Preamplifier Volume 1 1
55 INT 2 Capture Volume 4 4
56 INT 2 Aux FM Volume 3 3
57 INT 2 Headset Playback Volume 7 7
58 INT 2 Handsfree Playback Volume 26 26
59 INT 1 Earphone Playback Volume 15
60 ENUM 1 Headset Power Mode Low-Power
61 BOOL 1 Earphone Playback Switch Off
62 BOOL 1 Spk Right Playback Switch On
63 BOOL 1 Spk Left Playback Switch On
64 ENUM 1 Headset Right Playback Off
65 ENUM 1 Headset Left Playback Off
66 ENUM 1 Handsfree Right Playback HF DAC
67 ENUM 1 Handsfree Left Playback HF DAC
68 ENUM 1 Analog Right Capture Route Off
69 ENUM 1 Analog Left Capture Route Off
70 ENUM 1 TWL6040 Power Mode High-Performance
[email protected]:/ #
I'm not real sure where to start as far as mapping.
I've had many troubles with my m7 (As you can see from my post history) but everything's been running smoothly lately. I'm trying to flash a marshmallow rom, but they all have the same problem. They boot with the screen working fine, but if the display ever turns off, it never comes back on again. The phone wakes up when the power button is pressed, and you can hear it unlock when you swipe up, but the display never turns on.
Also, when flashing 6.0 roms, I've had to edit the partitions in the updater-script file. The partitions are listed there as being in a directory: /dev/block/platform/msm_sdcc.1/by-name/ which doesn't exist on my phone (There is a by-num directory, but no by-name) so I've had to point them to the mmcblk0p* devices directly. I'm wondering if there could be a similar fix for my screen.
Below is the output of logcat when the screen powers off and on (the full log from boot to screen off is attached):
Code:
02-08 13:08:06.244 617 709 I PowerManagerService: Going to sleep due to power button (uid 1000)...
02-08 13:08:06.252 617 672 I PowerManagerService: Sleeping (uid 1000)...
02-08 13:08:06.267 617 672 I Adreno-EGL: <qeglDrvAPI_eglInitialize:379>: QUALCOMM Build: 09/02/15, 76f806e, Ibddc658e36
02-08 13:08:06.274 222 1263 W AudioPolicyIntefaceImpl: getOutputForAttr uid 10020 tried to pass itself off as 1000
02-08 13:08:06.274 854 918 W AudioTrack: AUDIO_OUTPUT_FLAG_FAST denied by client; transfer 4, track 44100 Hz, output 48000 Hz
02-08 13:08:06.275 222 783 W AudioFlinger: uid 10020 tried to pass itself off as 1000
02-08 13:08:06.276 222 780 D ALSAStreamOps: setParameters(): keyRouting with device 0x2
02-08 13:08:06.276 222 780 D ALSAStreamOps: setParameters(): keyRouting with device 0x2
02-08 13:08:06.276 222 780 D ALSADevice: route: devices 0x2 in mode 0
02-08 13:08:06.276 222 780 D ALSADevice: No valid input device: 0
02-08 13:08:06.277 222 780 I tfa9887 : tfa9887_power: Set amplifier power to 1
02-08 13:08:06.277 222 780 D alsa_ucm: snd_use_case_set(): uc_mgr 0xb604b600 identifier _enadev value Speaker
02-08 13:08:06.277 222 780 D ALSADevice: switchDevice: mCurTxUCMDevivce None mCurRxDevDevice Speaker
02-08 13:08:06.289 222 779 D ALSADevice: route: devices 0x2 in mode 0
02-08 13:08:06.289 222 779 D ALSADevice: No valid input device: 0
02-08 13:08:06.289 222 779 I tfa9887 : tfa9887_power: Set amplifier power to 1
02-08 13:08:06.289 222 779 D alsa_ucm: snd_use_case_set(): uc_mgr 0xb604b600 identifier _enadev value Speaker
02-08 13:08:06.289 222 779 D ALSADevice: switchDevice: mCurTxUCMDevivce None mCurRxDevDevice Speaker
02-08 13:08:06.289 222 779 D alsa_ucm: snd_use_case_set(): uc_mgr 0xb604b600 identifier _verb value HiFi
02-08 13:08:06.289 222 779 D alsa_ucm: Set mixer controls for Speaker enable 1
02-08 13:08:06.289 222 779 D alsa_ucm: acdb_id 15 cap 1 enable 1
02-08 13:08:06.290 222 779 D alsa_ucm: Set mixer controls for HiFiSpeaker enable 1
02-08 13:08:06.290 222 779 D alsa_ucm: Setting mixer control: MI2S_RX Audio Mixer MultiMedia1, value: 1
02-08 13:08:06.290 222 779 D ALSADevice: close: handle 0xb604fa80 h 0x0
02-08 13:08:06.290 222 779 D ALSADevice: open: handle 0xb604fa80, format 0x2
02-08 13:08:06.290 222 779 D ALSADevice: Device value returned is hw:0,0
02-08 13:08:06.294 211 295 D PermissionCache: checking android.permission.READ_FRAME_BUFFER for uid=1000 => granted (152 us)
02-08 13:08:06.297 222 779 D ALSADevice: handle->format: 0x2
02-08 13:08:06.297 222 779 D ALSADevice: setHardwareParams: reqBuffSize 2048 channels 2 sampleRate 48000
02-08 13:08:06.301 222 779 D ALSADevice: setHardwareParams: buffer_size 16384, period_size 2048, period_cnt 8
02-08 13:08:06.826 617 672 V KeyguardServiceDelegate: onScreenTurnedOff()
02-08 13:08:06.834 617 672 E libEGL : call to OpenGL ES API with no current context (logged once per thread)
02-08 13:08:06.854 617 670 I DisplayManagerService: Display device changed state: "Built-in Screen", OFF
02-08 13:08:06.856 211 211 D SurfaceFlinger: Set power mode=0, type=0 flinger=0xb69a4000
02-08 13:08:06.856 211 211 D qdhwcomposer: hwc_setPowerMode: Setting mode 0 on display: 0
02-08 13:08:07.012 211 211 D qdhwcomposer: hwc_setPowerMode: Done setting mode 0 on display 0
02-08 13:08:07.012 617 828 D SurfaceControl: Excessive delay in setPowerMode(): 158ms
02-08 13:08:07.012 617 828 I QCOM PowerHAL: Got set_interactive hint
02-08 13:08:07.023 222 1263 E bt_a2dp_hw: adev_set_parameters: ERROR: set param called even when stream out is null
02-08 13:08:07.075 617 733 E native : do suspend false
02-08 13:08:07.087 617 733 D WifiConfigStore: No blacklist allowed without epno enabled
02-08 13:08:07.097 854 854 D PhoneStatusBar: disable: < expand ICONS* alerts SYSTEM_INFO* back home recent clock search quick_settings >
02-08 13:08:07.202 854 854 D PhoneStatusBar: disable: < expand ICONS alerts SYSTEM_INFO back HOME* RECENT* clock SEARCH* quick_settings >
02-08 13:08:07.220 222 222 E bt_a2dp_hw: adev_set_parameters: ERROR: set param called even when stream out is null
02-08 13:08:07.223 865 3236 D NfcService: Discovery configuration equal, not updating.
02-08 13:08:07.226 617 733 E native : do suspend true
02-08 13:08:07.535 617 733 D WifiStateMachine: L2Connected CMD_START_SCAN source -2 9, 10 -> obsolete
02-08 13:08:09.517 222 780 D ALSADevice: standby: handle 0xb604fa80 h 0x0
02-08 13:08:09.681 222 780 D alsa_ucm: snd_use_case_set(): uc_mgr 0xb604b600 identifier _verb value Inactive
02-08 13:08:09.682 222 780 D alsa_ucm: Set mixer controls for HiFiSpeaker enable 0
02-08 13:08:09.682 222 780 D alsa_ucm: Setting mixer control: MI2S_RX Audio Mixer MultiMedia1, value: 0
02-08 13:08:09.682 222 780 D alsa_ucm: snd_use_case_set(): uc_mgr 0xb604b600 identifier _disdev value Speaker
02-08 13:08:09.682 222 780 D alsa_ucm: Set mixer controls for Speaker enable 0
02-08 13:08:09.688 222 780 I tfa9887 : tfa9887_power: Set amplifier power to 0
02-08 13:08:12.851 617 733 D WifiStateMachine: L2Connected CMD_START_SCAN source -2 7, 10 -> obsolete
02-08 13:08:16.255 217 659 E NetlinkEvent: NetlinkEvent::FindParam(): Parameter 'UID' not found
02-08 13:08:19.289 617 709 I PowerManagerService: Waking up from sleep (uid 1000)...
02-08 13:08:19.290 617 617 V KeyguardServiceDelegate: onStartedWakingUp()
02-08 13:08:19.292 617 672 I DisplayPowerController: Blocking screen on until initial contents have been drawn.
02-08 13:08:19.292 617 672 V KeyguardServiceDelegate: onScreenTurnedOn(showListener = [email protected])
02-08 13:08:19.294 617 828 I QCOM PowerHAL: Got set_interactive hint
02-08 13:08:19.294 617 670 I DisplayManagerService: Display device changed state: "Built-in Screen", ON
02-08 13:08:19.299 211 211 D SurfaceFlinger: Set power mode=2, type=0 flinger=0xb69a4000
02-08 13:08:19.299 211 211 D qdhwcomposer: hwc_setPowerMode: Setting mode 2 on display: 0
02-08 13:08:19.316 617 1522 V KeyguardServiceDelegate: **** SHOWN CALLED ****
02-08 13:08:19.342 222 783 E bt_a2dp_hw: adev_set_parameters: ERROR: set param called even when stream out is null
02-08 13:08:19.381 865 3252 D NfcService: Discovery configuration equal, not updating.
02-08 13:08:19.410 617 733 E native : do suspend false
02-08 13:08:19.419 617 733 D WifiConfigStore: No blacklist allowed without epno enabled
02-08 13:08:19.436 211 211 D qdhwcomposer: hwc_setPowerMode: Done setting mode 2 on display 0
02-08 13:08:19.440 617 828 D SurfaceControl: Excessive delay in setPowerMode(): 146ms
02-08 13:08:19.463 617 672 I DisplayPowerController: Unblocked screen on after 171 ms
02-08 13:08:19.464 617 672 V KeyguardServiceDelegate: onScreenTurnedOn()
02-08 13:08:23.614 212 1936 E QC-NETMGR-LIB: Received nl msg, recvmsg returned 56
02-08 13:08:23.615 212 594 E QC-NETMGR-LIB: Processing RTM_NEWLINK
02-08 13:08:23.615 212 594 E QC-NETMGR-LIB: Metainfo: Index=22 Family=0 Type=0x1 Change=[0x0] Flags=[0x11043]UP BROADCAST RUNNING MULTICAST LOWER_UP
Any help is very much appreciated
Ok, so the partition issue is due to the old version of TWRP I'm using as a result of some issues from this thread. I've installed TWRP 3.0, but I have no GUI and have to use the command line (from ADB shell). The issues with the screen still remain for marshmallow roms however.
My Mi 5 2016 phone is going in for random reboots by itself. no regular pattern.
1) It's not full 6gb space is still available.
2) Is it possible that degraded battery is causing reboots, I still get 14-16 hour usage with calls. but it is lower when this was new. (This is assumption only).
3) DMESG files are below.
111117.719856] msm_pcie_enable: PCIe: Assert the reset of endpoint of RC0.
[111117.727296] msm_pcie_enable: PCIe RC0 PHY is ready!
[111117.737561] msm_pcie_enable: PCIe: Release the reset of endpoint of RC0.
[111117.744813] wlan: [0:E :HDD] __hdd_tx_timeout: 1129: Transmission timeout occurred jiffies 4306049301 trans_start 4306049121
[111117.764617] msm_pcie_enable: PCIe RC0 link initialized
[111117.773472] PM: noirq resume of devices complete after 54.580 msecs
[111117.781277] PM: early resume of devices complete after 4.939 msecs
[111117.802622] pn548_resume --
[111117.812537] wlan: [0:F :WDA] WOW wakeup host event received (reason: PATTERN_MATCH_FOUND(9)) for vdev 0
[111117.812685] wlan: [0:F :WDA] uc 1646 bc 0 v4_mc 0 v6_mc 0 ra 0 ns 0 na 0 pno_match 0 pno_complete 0 gscan 0 low_rssi 0 rssi_breach 0
[111117.812851] __hif_pci_resume: Resume completes in wow mode
[111117.820177] PM: resume of devices complete after 38.861 msecs
[111117.826177] Restarting tasks ...
[111117.833216] healthd: battery l=84 v=4109 t=28.5 h=2 st=3 c=73 chg= 2020-11-01 13:14:53.173539509 UTC
[111117.885270] done.
[111117.885528] PM: suspend exit 2020-11-01 13:14:53.225954718 UTC
[111117.986113] PM: suspend entry 2020-11-01 13:14:53.326529718 UTC
[111117.986170] PM: Syncing filesystems ... done.
[111118.026953] Freezing user space processes ... (elapsed 0.038 seconds) done.
[111118.065199] Freezing remaining freezable tasks ... (elapsed 0.006 seconds) done.
[111118.071860] Suspending console(s) (use no_console_suspend to debug)
[111118.081339] SMBCHG: smbchg_restricted_charging: restricted_charging set to 0
[111118.083102] __hif_pci_suspend: Waiting for CE to finish access:
[111118.098202] __hif_pci_suspend: Suspend completes in wow mode event:2 device_state:0
[111118.098205] __hif_pci_suspend: Suspend completes
[111118.108154] pn548_suspend ++
link here swisstransfer<dot>com/d/dc27a402-3fb9-477a-857c-f4473a96f30e
(as a new user not allowed to add links hence sharing this dmesg file.)
I really need this device up and work reliably TIA.