[ROM][KK][4.4][2014-05-18] CyanogenMod 11.0


Yeah I "fixed" it some time ago but sometimes after connect/diconnect the display freezes and you need to restart the phone.

Even if sometimes fails it would be nice to have this functionality but on 1080p or with an option to control the output mode. I will rarely use this so I don't care to restart (to stock) when needed.

BTW, great work M1cha!
 
Even if sometimes fails it would be nice to have this functionality but on 1080p or with an option to control the output mode. I will rarely use this so I don't care to restart (to stock) when needed.

BTW, great work M1cha!
For me it works with 1080p. You may enable ssh or adb-over-network and check the nodes under "/sys/class/graphics/fb1/".
I hope you have some linux knowledge :)
 
We talked a lot about lags in the last few weeks. As you may already know I've fixed this and everything works fine now - well except for me :D

It seems that during kernel development - especially during the experiments to fix the lcd driver I somehow damaged my lcd.
The final proof was that via MHL everything is perfectly smooth.

don't worry, a lagging lcd won't keep me from developing but this totally sucks during daily usage -_-
thx @linuxx for testing
 
For me it works with 1080p. You may enable ssh or adb-over-network and check the nodes under "/sys/class/graphics/fb1/".
I hope you have some linux knowledge :)

My knowledge with linux is average to advanced but I never touched phone / android development. I got there where you point me but now what ? :) Sorry. I was trying to echoing some parameters but got nowhere. Here is some output:

Code:
root@aries:/sys/class/graphics/fb1 # more video_mode_str                                                                                                            
640x480 p60 4/3
root@aries:/sys/class/graphics/fb1 # more modes                                                                                                                   
U:640x480p-0
U:720x576p-0
U:1920x1080p-0
 
My knowledge with linux is average to advanced but I never touched phone / android development. I got there where you point me but now what ? :) Sorry. I was trying to echoing some parameters but got nowhere. Here is some output:

Code:
root@aries:/sys/class/graphics/fb1 # more video_mode_str                                                                                                           
640x480 p60 4/3
root@aries:/sys/class/graphics/fb1 # more modes                                                                                                                  
U:640x480p-0
U:720x576p-0
U:1920x1080p-0
In theory you should be able to set the mode(there are multipe files for this)
 
great work, micha and linuxx!

for the miui camera is there anything I should know before install the apk from micha's folder?
 
We talked a lot about lags in the last few weeks. As you may already know I've fixed this and everything works fine now - well except for me :D

It seems that during kernel development - especially during the experiments to fix the lcd driver I somehow damaged my lcd.
The final proof was that via MHL everything is perfectly smooth.

don't worry, a lagging lcd won't keep me from developing but this totally sucks during daily usage -_-
thx @linuxx for testing
Sounds like you need a beer :)

Gesendet von meinem MI 2 mit Tapatalk
 
In theory you should be able to set the mode(there are multipe files for this)

Yes, now I am doing some tests with HDMI to VGA (which is capable of more than 640x480) switch in MHL ... and got this in kernel log when plugged in:

Maybe someone else see what I am blind for :) (I need a beer too :))

Code:
<6>[ 7789.751312] handle_usb_insertion_removal: notify usb plugin 1
<4>[ 7789.754699] QBMS Reported SOC = 100
<4>[ 7789.761138] QBMS Reported SOC = 100
<4>[ 7789.778991] QBMS Reported SOC = 100
<4>[ 7789.963378] [MHL]App: Peer's POW bit is cleared. Turn the VBUS power ON here.
<6>[ 7789.963561] mhl_vbus_power: on 1
<3>[ 7790.231445] msm_otg msm_otg: Failed notifying 0 charger type to PMIC
<3>[ 7790.231628] msm_otg msm_otg: Failed notifying 0 charger type to PMIC
<6>[ 7790.231780] msm_otg msm_otg: phy_reset: success
<6>[ 7790.343963] msm_otg msm_otg: USB in low power mode
<6>[ 7790.363433] Starting timer to fire in T_SRC_RXSENSE_CHK  250ms (749032)
<7>[ 7790.909362] EXT_COMMON: EDID[00-0f] 00 ff ff ff  ff ff ff 00    05 e3 50 24  3d 0f 00 00
<7>[ 7790.909393] EXT_COMMON: EDID[10-1f] 20 15 01 03  80 34 1d 78    2a ee d1 a5  55 48 9b 26
<7>[ 7790.909393] EXT_COMMON: EDID[20-2f] 12 50 54 bf  ef 00 d1 c0    b3 00 95 00  81 80 81 40
<7>[ 7790.909423] EXT_COMMON: EDID[30-3f] 81 c0 01 01  81 c0 02 3a    80 18 71 38  2d 40 58 2c
<7>[ 7790.909423] EXT_COMMON: EDID[40-4f] 45 00 09 25  21 00 00 1e    00 00 00 fd  00 32 4c 1e
<7>[ 7790.909454] EXT_COMMON: EDID[50-5f] 53 11 00 0a  20 20 20 20    20 20 00 00  00 fc 00 32
<7>[ 7790.909454] EXT_COMMON: EDID[60-6f] 34 35 30 57  0a 20 20 20    20 20 20 20  00 00 00 ff
<7>[ 7790.909484] EXT_COMMON: EDID[70-7f] 00 43 56 45  42 38 48 41    30 30 33 39  30 31 00 71
<7>[ 7790.909484] EXT_COMMON: [JSR] (hdmi_common_read_edid): No. of CEA blocks is  [0]
<7>[ 7790.909515] EXT_COMMON: HDMI DVI mode: yes
<6>[ 7790.909515] hdmi_msm hdmi_msm.1: EDID (V=1.3, #CEABlocks=0[V0], ID=AOC, IEEE=0000, EDID-Ext=0x00)
<7>[ 7790.909637] EXT_COMMON: Interlaced mode byte data_buf[0x11]=[1e]
<7>[ 7790.909637] EXT_COMMON: hdmi_edid_detail_desc: A[1920x1080] B[280x45] V[521x293] p
<7>[ 7790.909667] EXT_COMMON: hdmi_edid_detail_desc: mode found:16
<7>[ 7790.909667] EXT_COMMON: [hdmi_edid_get_display_mode:1712] Block-0 Adding vid fmt = [1920x1080 p60 16/9]
<7>[ 7790.909698] EXT_COMMON: EDID: format: 16 [1920x1080 p60 16/9], Supported
<4>[ 7790.909698] mhl_is_connected: 1
<7>[ 7790.909881] EXT_COMMON: EDID: format: 16 [1920x1080 p60 16/9], Not-Supported by MHL
<7>[ 7790.909881] EXT_COMMON: EDID: format: 133 [1280x1042 p60 5/4], Supported
<4>[ 7790.909881] mhl_is_connected: 1
<7>[ 7790.909973] EXT_COMMON: EDID: format: 133 [1280x1042 p60 5/4], Not-Supported by MHL
<7>[ 7790.910003] EXT_COMMON: EDID: format: 1 [640x480 p60 4/3], Supported
<4>[ 7790.910003] mhl_is_connected: 1
<7>[ 7790.910095] EXT_COMMON: EDID: format: 1 [640x480 p60 4/3], Supported by MHL
<7>[ 7790.910125] EXT_COMMON: add_supported_video_format: Default resolution 1 [640x480 p60 4/3] supported
<4>[ 7790.910125] hdmi_edid_didn't extract_VIDEO_CAPABILITY_D_BLOCK; set to Full range
<3>[ 7790.910369] Video format is : 1
<6>[ 7790.910552] hdmi_msm hdmi_msm.1: HDMI Core: Initialized
<6>[ 7790.910736] hdmi_msm hdmi_msm.1: HDMI HPD: CONNECTED: send ONLINE
<6>[ 7790.910980] hdmi_msm hdmi_msm.1: HDMI HPD: sense : send HDCP_PASS
<6>[ 7790.911315] hdmi_msm hdmi_msm.1: mhl_connect_api: hdmi state switched to 1
<7>[ 7790.920562] EXT_COMMON: hdmi_common_rda_edid_scan_info: '0, 0, 0
<7>[ 7790.920593] '
<7>[ 7790.921295] EXT_COMMON: hdmi_common_rda_edid_modes: '1'
<6>[ 7790.921386] mdp4_dtv_start: <ID=1 640x480 (16,96,48), (10,2,33) 25MHz>
<6>[ 7790.925933] dtv_on: tv_src_clk=25200kHz, pm_qos_rate=58000kHz, [0]
<7>[ 7790.926483] EXT_COMMON: reserved format is 1
<7>[ 7790.926483] EXT_COMMON: resolution 640x480 p60 4/3
<6>[ 7790.926513] hdmi_msm hdmi_msm.1: HDMI cable connected hdmi_msm_power_on(640x480, 25200000)
<3>[ 7790.926574] Video format is : 1
<6>[ 7790.926574] hdmi_msm hdmi_msm.1: HDMI Core: Initialized
<6>[ 7790.926605] hdmi_msm hdmi_msm.1: power=ON DVI= ON
<6>[ 7790.926605] mdp4_dtv_on:
<4>[ 7791.141021] [MHL]App: Peer's POW bit is set. Turn the VBUS power OFF here.
<6>[ 7791.141113] mhl_vbus_power: on 0
<6>[ 7791.211730] mhl_interrupt
<6>[ 7791.591735] mhl_interrupt
<6>[ 7792.608825] lm3530-led 0-0038: set brightness 8
<6>[ 7792.673614] lm3530-led 0-0038: set brightness 9
 
Sounds like you need a beer :)

Gesendet von meinem MI 2 mit Tapatalk
I will change my lcd with a new one in few days . I will send the old one to m1cha gratis (maybe he can pay half shipment xD) . It haves only some light bleed in the down and in the middle that I HATE!

Inviato dal mio MI 2 utilizzando Tapatalk
 
  • Like
Reactions: M1cha
I will change my lcd with a new one in few days . I will send the old one to m1cha gratis (maybe he can pay half shipment xD) . It haves only some light bleed in the down and in the middle that I HATE!

Inviato dal mio MI 2 utilizzando Tapatalk
thx but I think lags are better than color transitions :D
 
  • Like
Reactions: TiKaZz
We talked a lot about lags in the last few weeks. As you may already know I've fixed this and everything works fine now - well except for me :D

It seems that during kernel development - especially during the experiments to fix the lcd driver I somehow damaged my lcd.
The final proof was that via MHL everything is perfectly smooth.

don't worry, a lagging lcd won't keep me from developing but this totally sucks during daily usage -_-
thx @linuxx for testing
At least you can take the defy one
 
I'm having a problem with the internal SD storage (sdcard0). In Windows when I try to write to it the transfer freezes and after a few minutes crashes. When I open the android file manager and try to make a file or folder it says it needs elevated permissions and I should try with root access.

Any idea how I can fix this?

Thanks!

Edit:
I booted into system2 (MIUI) and it must have reset the correct permissions - thanks!
 
Last edited:
I'm having a problem with the internal SD storage (sdcard0). In Windows when I try to write to it the transfer freezes and after a few minutes crashes. When I open the android file manager and try to make a file or folder it says it needs elevated permissions and I should try with root access.

Any idea how I can fix this?

Thanks!

Edit:
I booted into system2 (MIUI) and it must have reset the correct permissions - thanks!
Remove windows. Its mtp drivers aren't working well with android kk

Sent from my nexus 7
 
Hey! How do i restore this phone to factory reset? Currently using this rom..sorry for not searching, something doesnt work for me here
 
Fastboot packages. There should be a pinned thread about this
Or miflash

Sent from my nexus 7

Of course i found it. Apparently i need to put my lenses in. Thanks. And i'm gonna miss this thread (i'm giving my mi2s away.) I've got an HTC now.