Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
doixanh
Old
(Last edited by doixanh; 28th April 2011 at 04:20 PM.)
#1  
Recognized Developer - OP
Thanks Meter 4711
Posts: 1,247
Join Date: Jan 2011

 
DONATE TO ME
Default [Module] X8MDDI - no more MDDI lags! | X8 | X10 mini | X10 mini pro | v001 | 28-04-11

Rom cookers: if you include this module in your ROM, please make a link to this post in your release post, so your users can know how to work with it and update the module themselves

Intro
Perhaps all of you know that all of our custom ROMs are laggy. It lags every 5 to 7 seconds. Fps2d clearly shows that.
dmesg shows that also:
Quote:
<3>[ 182.427293] Reverse pkt sent, no data rxd
<3>[ 182.431286] Reverse pkt sent, no data rxd
<3>[ 182.435279] Reverse pkt sent, no data rxd
<3>[ 182.439271] Reverse pkt sent, no data rxd
<3>[ 182.439299] Reverse pkt sent, no data rxd
<3>[ 182.439331] mddi_host_register_read - failed to get data from client<6>MDDI: Toshiba HVGA: MDDI read timeout/error
So what to do? It seems that the stock driver is buggy for custom ROMs.

I've been working with those stupid lags for some days, and now, here it is my friends :) No more stupid MDDI lags :)


Release history
April 28 v001. Release for x10 mini & x10 mini pro. Source published.
April 27 v001. First version.

Source is provided at github : https://github.com/doixanh/X8Features Feel free to contribute / improve the modules :)

Requirements
- Rooted
- Latest baseband (xxx015)
- Some basic knowledge

Instruction for manual installation:
- Remount /system as rw, either with adb or with root explorer
- Download attached file, unzip, push x8mddi.ko to /system/lib/modules
- Change hw_config.sh in your /system/etc, add this code at the beginning
Code:
insmod /system/lib/modules/x8mddi.ko      # fix mddi lags
- Push modified hw_config.sh back to your phone, reboot

xRecovery updates:
There are many ROMs and many modules right now. I will not be able to maintain update.zip. You have to follow manual installation above.

x10 mini / x10 mini pro users
I've just uploaded a x10 mini and x10 mini pro version. Test it carefully by manually type insmod /system/lib/modules/x8mddi.ko before applying to hw_config.sh, otherwise you may get boot loop!

FAQs
Q: How to know I installed it correctly?
A: Check with fps2d (free from market) or you can check with this command (in your phone's terminal)
Code:
dmesg | grep x8mddi
If there is some output that means the module is loaded.
Or, more simply, play some games, try some scrolling in menus... It'll be almost no lag.

Q: What's the benefit of this module?
A: You didn't read the above text, did you? It increases your phone's smoothness by eliminating the lag that happens every 5-7 seconds in custom ROMs. It isn't supposed to increase your fps.

Bug reports
When you report a bug please attach the following files:
- /system/etc/hw_config.sh
- A copy of logcat (you can use adb logcat > logcat-bug.txt)
- A copy of live dmesg (you can use adb shell cat /proc/kmsg > dmesg-bug.txt as soon as the device is ready)
Zip 3 files above and attach in to your post. Thanks.

Disclaimer
I'm not responsible if this module damages your lovely phone. Use it at your own risk!
Attached Thumbnails
Click image for larger version

Name:	x8mddi.png
Views:	41651
Size:	8.4 KB
ID:	580063  
Attached Files
File Type: zip x8mddi-v001.zip - [Click for QR Code] (1.2 KB, 7276 views)
File Type: zip x8mddi-v001-x10m.zip - [Click for QR Code] (1.2 KB, 738 views)
File Type: zip x8mddi-v001-x10mp.zip - [Click for QR Code] (1.2 KB, 1244 views)
IScreamDX v004 | GingerDX v028 | GingerDX v015 for GT-I9000 | LinuxDX v004 | FroyoBread v023b FINAL | X8Gesture v007
X8Overclock v004 | X8Undervolt v001 | X8MDDI v001 | X8Kconfig v001 | X8Netfilter dev | FroyoBeam dev | X10MPMultitouch

shakira/gdx31stock - best experience ever | galaxysmtd/slimbean | p1/cm | anzu/slimbean | maguro/slimbean
The Following 81 Users Say Thank You to doixanh For This Useful Post: [ Click to Expand ]
 
bogdan_mihai554
Old
#2  
Senior Member
Thanks Meter 34
Posts: 440
Join Date: Jan 2011
Location: Bucharest
Another great module, thanks Module man
 
darrie1
Old
(Last edited by darrie1; 27th April 2011 at 09:38 PM.)
#3  
Senior Member
Thanks Meter 25
Posts: 144
Join Date: Jan 2011
can you make this for the mini (pro)
do you need a specific file for this?

edit: what is this actually?? :P
does it make the phone run smoother?

sorry didnt read your whole post:P
 
racht
Old
(Last edited by racht; 27th April 2011 at 09:43 PM.)
#4  
Recognized Developer
Thanks Meter 872
Posts: 301
Join Date: Dec 2010

 
DONATE TO ME
Oh maaan , u are genius !
Thanks again !

Works great on CM7-54, no lag, no dmesg errors, better battery and smoother gaming !!!
The Following User Says Thank You to racht For This Useful Post: [ Click to Expand ]
 
CaptainZap
Old
(Last edited by CaptainZap; 27th April 2011 at 10:02 PM.)
#5  
CaptainZap's Avatar
Senior Member
Thanks Meter 33
Posts: 263
Join Date: Dec 2010
Thank you for keeping the X8 scene alive, when everybody struggles to do something you come along and give it in our faces. Great Job man. Will flash ASAP.
EDIT: Just installed it and boy does it speed my rom up.
| Dark Blue/ White X8 | Launcher 7 | Android 2.1 |

| If you feel my answers helped you, hit the button |
Aiduharan Old
#6  
Guest
Thanks Meter
Posts: n/a
Omg the whole x8 community lies to ur feet

Sent from my X8 using XDA App
 
Graveir
Old
#7  
Senior Member
Thanks Meter 227
Posts: 703
Join Date: Jan 2011
Location: Łódź
Dammit, man, I didn't think you could actually mod anything more, and now this... Many thanks! Booting my phone right now with this new module, I'll see how it works

BTW, in your pinch2zoom thread I posted a question of what program should I use to decompile the andrej's module, change the finger detection fuzzyness and compile it again... so, what are you using for compiling those ko files? What language is it?
| White X8 | FroyoBread ROM | OC 768 MHz | CRT animation & other features |
| alfsamsung's theme | GO Launcher Ex | Gre home theme | Droid Sans Font |
| GO SMS pro | GO weather widget |
| doixanh FTW! |
 
doixanh
Old
#8  
Recognized Developer - OP
Thanks Meter 4711
Posts: 1,247
Join Date: Jan 2011

 
DONATE TO ME
You don't need to decompile. I'll get the idea and try to improve
IScreamDX v004 | GingerDX v028 | GingerDX v015 for GT-I9000 | LinuxDX v004 | FroyoBread v023b FINAL | X8Gesture v007
X8Overclock v004 | X8Undervolt v001 | X8MDDI v001 | X8Kconfig v001 | X8Netfilter dev | FroyoBeam dev | X10MPMultitouch

shakira/gdx31stock - best experience ever | galaxysmtd/slimbean | p1/cm | anzu/slimbean | maguro/slimbean
The Following 5 Users Say Thank You to doixanh For This Useful Post: [ Click to Expand ]
 
nobodyAtall
Old
#9  
nobodyAtall's Avatar
Recognized Developer
Thanks Meter 18162
Posts: 1,492
Join Date: Jan 2008
Location: Patras

 
DONATE TO ME
This is really neat mate!

It can be useful for the mini also
The Following 2 Users Say Thank You to nobodyAtall For This Useful Post: [ Click to Expand ]
 
CaptainZap
Old
#10  
CaptainZap's Avatar
Senior Member
Thanks Meter 33
Posts: 263
Join Date: Dec 2010
It would be really nice if you'd improve andrej's version of your pinch module by making finger detection a little better so the zoom in/out would be more natural...
| Dark Blue/ White X8 | Launcher 7 | Android 2.1 |

| If you feel my answers helped you, hit the button |

The Following 2 Users Say Thank You to CaptainZap For This Useful Post: [ Click to Expand ]
 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...