I modified libhtc_ril_wrapper to possibly fix the pppd disconnection problem.
As I don't have 3G at home, I'd appreciate some feedback to help me diagnose potential issues with it.
WARNING, there are reports of crash at boot, do a backup of your whole android directory before trying this!
Don't run this if don't have adb and know how to use it.
See post #2 for history and more information
To keep the thread clean, please only report problems and try to avoid unnecessary talking about it.
Don't report problem without logs, it won't help.
This is highly experimental, don't use it if you don't know what you're doing.
To install, just rename your previous wrapper and copy the attached libhtc_ril_wrapper.so to the same location.
Here are the logs I need:
logcat -d -v time -b radio > /sdcard/pppd_radiolog.txt logcat -d -v time -s pppd:v > /sdcard/pppd_mainlog.txt dmesg > /sdcard/pppd_dmesg.txt /bin/ifconfig > /sdcard/pppd_if.txt ps > /sdcard/pppd_ps.txt
Wait 20 seconds to let the wrapper relaunch pppd and check connection again. If it doesn't work, please send the logs.
Grab the three files from sdcard root and post them back here.
I'm also experimenting some kernel tuning that can be activated with this:
echo 8 8 > /proc/sys/vm/lowmem_reserve_ratio echo 8192 > /proc/sys/vm/min_free_kbytes
Thanks to Hastarin, I also attached his root package that includes wrapper with ppp options and tweaks.