yashsingh1/xdaforums huggingface dataset:
[Defy Android Development] YetAnotherForumUser:
I considered doing just that but I figured there might be some use yet in PowerHAL. Also, since this code is currently in the distribution it should be as bug-free as possible, whether I personally use it or not. It is (IMnsHO) also better to fix PowerHAL than to extend the interactive governor to implement a rather device-specific policy in kernel space.
[Defy Android Development] Blechd0se:
Interactive performs much more the way I wanted it to have on newer builds in comparison to older ones. Thats why i ask for feedback,

because my usage-scenario is probably different from yours or any other user, i want it to scale up quickly and don't jump to useless frequencies.

I personally want to have a governor which is maintainable, thats why i won't use any other governor except maybe ondemand.

If there would be suggestions on how it should work or how users use their device, maybe i could do things better here...

In general i agree with the kiss principle, but only as long as it does what it should do and wasting battery life is nothing what i want,

so i thought there need some more logic in it to handle this issue, because boosted has this suspend-logic already.

Furthermore as i stated out i have already backported 3.4 interactive and i cleaned up a lot of things

(i got rid of this LOW_POWER_TUNE-Code, because its deprecated in my oppinion). This won't make it more complicated, but rather simplify

a lot of things and moreover it fixes some "old" bugs.

We are updating many parts of the system (if possible) so our device fits somehow the needs of newer android versions, why using old and deprecated code?

The governor plays a big role in terms of overall device performance, so it should be smart and intelligent to decide when performance is needed.

And yes ccav2000 is right, powerhal is quite useless for other governors.
[Defy Android Development] ccav2000:
If I remember right it's /system/lib/hw/power.omap3.so
[Defy Android Development] YetAnotherForumUser:
Assuming he uses the build system as is it is built when running 'brunch mb526'. He probably deletes it from his builds.
[Defy Android Development] steelbreeze:
Usb mode doesn't work on cm10.1? Because nothing happens when I connect my phone to the computer.

Btw, my battery backup is getting worse. Got just 5 hrs of backup today with no calls, no messages or music. Just some whatsapp here and there.
[Defy Android Development] YetAnotherForumUser:
The beauty of free choice is that there are so many choices to make :)

Just look at how many governors there are, everyone wants to tweak it *just* right. fixing PowerHAL to at least not spam the log when someone uses a different governor is therefore a worthy pursuit...
[Defy Android Development] woodman:
[MENTION=513620]Quarx[/MENTION] : I hope you will have soon free time to take a look at the "WIFI jamming/interferences" issue. Since end of March / April, unhappily, as it's my main and only phone and as I'm WIFI-dependent, I can't test last nighlies which have these new WIFI drivers. If I enable WIFI, as a lot of people said on this thread (and CM10's one) it jams internet connection of other devices which are on the same AP.... Very embarrassing for other people...It was noticed several times on this thread.

If I could help...
[Defy Android Development] ccav2000:
Since we're on the free choice and opinions, here's mine: The boosted governor like it's predecessor (smartass) is nothing else than a rewritten interactive. Additionally, at least in our ROM it's no longer being updated. I believe that a fine tuned interactive governor working along with the power HAL would be the optimal solution, it's just that the current implementation leaves a lot to be desired.

I'm eager to see [MENTION=4855459]Blechd0se[/MENTION]'s new implementation when he has it ready, boosted is nice but I use it only as a temporary workaround.
[Defy Android Development] Feche:
I use performance governor
[Defy Android Development] YetAnotherForumUser:
How long does your battery last on that? It keeps the clock running at maximum speed so it should have a noticeable impact on power consumption. PowerHAL should lower the maximum frequency when the screen is off but it'll still be running at 600 MHz (or whatever you've set the second frequency to).
[Defy Android Development] Feche:
Sometimes I disconect the device at 11am, and with moderate ussage it lasts untill 10pm - 12am

Btw, what is PowerHAL?
[Defy Android Development] YetAnotherForumUser:
PowerHAL is a piece of code which tries to tune the governor to whatever is happening on the device. It currently is tailored to the interactive governor (and complains loudly when a different governor is used, just run logcat and touch your screen...) but it does have some governor-independent functionality in that it lowers the maximum clock speed when the screen is off. PowerHAL lives/lurks in device/moto/jordan-common/power in the repo, have a look at the code for more insight. I posted a patch to PowerHAL to quiet down its nagging when a different governor is used.

Your phone seems to last around 12 hours on a full charge. It is possible to get close to 7 days on a single charge. With moderate use it should be possible to get at least 2 days on a charge, I generally get around 3 days. You might want to use a different governor... Either interactive (the default) or boosted would be OK choices. You won't notice much in performance loss but your battery will last and live a lot longer - Li-ion (the battery chemistry used in mobile phone batteries) has a limited number of charge cycles after all.
[Defy Android Development] mato_d007:
Im curious about what happened to the modifications you made to deadline, Blenchd0se. You will keep sio as default after all?
[Defy Android Development] TJKV:
Can you describe how you use your phone, you had said earlier that you freeze/disable a couple of things right?
[Defy Android Development] YetAnotherForumUser:
I use is mostly as a mobile mail/web/terminal device and book reader, only every now and then to make a phone call - 1-2 calls per day, call duration generally under 1 min. I usually get around 2.5-3 hours of 'screen on' time per day, about half of which is spent using the device as book reader with the backlight as low as it goes (5%). I disable all unwanted services (using 'pm disable name_of_package) and block most data traffic (using iptables/droidwall). Ads are blocked using a modified hosts file. Google Analytics is blocked using the host file and by manually editing event listeners. I also tend to long_back_button_press kill programs after using them. Google services are disabled by default, when I need them I enable them and disable them afterwards:

#!/system/bin/sh
# kill play store
pm disable com.android.vending
pm disable com.google.android.gsf
pm disable com.google.android.gsf.login
pm disable com.google.android.location

and

#!/system/bin/sh
# enable play store
pm enable com.google.android.location
pm enable com.google.android.gsf
pm enable com.google.android.gsf.login
pm enable com.android.vending

It'll ask you for your username/password every time. Since I only run this occasionally this is no big deal to me.

I disable hwui/hwa for most programs, only systemui/browser/launcher have it enabled. For the latter task I use a script:

#!/system/bin/sh

exceptions='com.teslacoilsw.launcher|com.android.systemui|com.android.browser'

pm list packages|cut -d : -f 2|egrep -v ${exceptions}|while read f;do touch /data/local/hwui.deny/$f;done
[Defy Android Development] FcukBloat:
Yafu.. (and all other skilled users of course if interested) as i see you good in processes/services things.. you are my last hope.. sorry for the ot but could you have a look at this?

http://xdaforums.com/showthread.php?t=2312415

i asked this many times and in different forums but never got a good answer.. if you find the solution you would become my hero.. for what is worth! :p

this affects many people..

thanks anyway in advance ;)
[Defy Android Development] Blechd0se:
Curious in which meaning?

This is some sort of general question; i simply could change it in our config file, but i think Quarx should have the last word here (because hes the boss :laugh: )

If he reads positiv feedback about it, then its probably sometime soon the new default scheduler.

All in all, thats how my development cycle goes; introduce new feature/fix -> let it test by some advanced user -> let it in some sort of staging area until its "stable"

-> enable it for all users.
[Defy Android Development] mato_d007:
I was thinking that deadline could help with the performance decreasing over time, keeping in mind that its a bit faster reading than sio, and the last one philosophy is "simplicity" after all. Now looking at your cycle i see why there was no news on this matter, thanks for the clarification. I dont wat to bother you and Quarx with this minor things though.
[Defy Android Development] Mettanine:
Huh? New nightly out and nobody has posted it yet?! That's a first. ;)

Changelog from OP:

07.06.13 Fix 2g/3g data (thanks to Kayant for finding the right way to resolve problem). More safe mount options (should fix problems of random bootloops). Fix Google Messaging service (thanks to ccav2000)
[Defy Android Development] xufooo:
thanks for this news. i'll try it later.:D
[Defy Android Development] FcukBloat:
downloading already.. but have slow connection.. 50 minutes remaining... :crying:
[Defy Android Development] davo.arto:
Try the mirror (http://d-h.st/users/Quarx/?fld_id=14052#files). It is faster.
[Defy Android Development] Shubhamqweasd:
quarx are u building any CM10 build also ?
[Defy Android Development] FcukBloat:
thanks but I have just finished downloading.. will try new build in a couple of minutes! :)

EDIT: installed.. so far so good.. it established 3g connection very quicly.. will see if connection will be also stable :)

EDIT2: it can be placebo, I agree I have been using it for a short time only, but it does seem more stable already :)
[Defy Android Development] kartrikpal:
My battery isn't sanding by for 22hrs ... its draining off much .. do help me out !!
[Defy Android Development] xufooo:
the latest build fixed mms problem, thanks again！:D
[Defy Android Development] ccav2000:
Possibly a side effect of fixing the data connection issue. Good to know.
[Defy Android Development] gamerxxxn:
I have a bug to report. Whatsapp force closes on me if its under heavy stress,and it's soon followed by a crash of the system UI. I have observed that this only happens with aero kernel builds i have tried ( SlimBean 3.1.1, CM10, CM10.1 ) . Other apps also crash but rarely and not as frequently as whatsapp (heavy whatsapp user)
[Defy Android Development] kartrikpal:
whats app force closes ?? Do only one thing after you flsh with cm10.1 on ur defy+ just get back to recovery mod and clean dalvic cache memory ..that helped me to run my whats app run smoothly too.. also use Greenify App available in play store which helps u to hibranate ur running apps ..
[Defy Android Development] biernus:
I'm on newest build. Install goes without any problem. This few hours it works good, smooth, VERY FAST! and internet gsm connection is stable. The importat thing for me it's how defy on this build respond on "sleep - incoming call". We see.

Aaaa tell me please how your defy deal with - show contacts on incoming calls??? On my even i have numer and full name on contacts there are some problems - sometimes show good sometimes not - i dont now where is the problem.
[Defy Android Development] srijithn:
I have a strange bug on 06/07., The system does'nt remember the settings after reboot.,

Did a all wipe install !!!

like it shows unknown/None on following settings

Sound/Baseband/wallpaper/alarm

and sometimes even asks to select language/country on reboot
[Defy Android Development] Bleak3993:
Everything is working great, no bugs or problems so far, although there is one only thing, I can't change the lockscreen background picture, it doesn't change from the default launcher blackground, just that. Everything else is perfect, no reboots, no major FC, no lags, no data or wifi drops...
[Defy Android Development] Eller1987:
The new ROM dont work an my Defy.

It hangs on the red light.

full wipe dont help.

whats the problem?
[Defy Android Development] blairpoodle:
I had the same problem since 27/05 build. Went back to sbf and now fine.
[Defy Android Development] atulclassic:
wipe data/cache from stock recovery and flash again
[Defy Android Development] mdsaif92:
Same problem here. But won't wiping from stock recovery format the partitions back into ext3
[Defy Android Development] dh.harald:
Any bluetooth tether fixes? I want to share my Defy's internet via bluetooth, but in earlier build, PAN network is working, but the other phone(s) can't get IPs from Defy...

Is it solved?
[Defy Android Development] ccav2000:
I don't think so, no work has been done on Bluetooth for a while now. It remains mostly broken.
[Defy Android Development] dh.harald:
The bluetooth part is working, only some network (dhcpd) configurations needed...
[Defy Android Development] Eller1987:
I still got a hang up on red light :crying:
[Defy Android Development] Fire Head:
Even with a sbf flash before wiping data?
[Defy Android Development] atulclassic:
flash again after wipe data/cache from custom recovery and flash minimal gapps instead of full gapps.

Our data partition is not able to justify the rom and full gapps together.
[Defy Android Development] dh.harald:
[MENTION=513620]Quarx[/MENTION]:

Here's my experiment about bluetooth tethering:

I made a little modifications on jordan-common overlay:

diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml
index 2feb3c2..3ab1047 100644
--- a/overlay/frameworks/base/core/res/res/values/config.xml
+++ b/overlay/frameworks/base/core/res/res/values/config.xml
@@ -105,7 +105,7 @@
bluetooth interfaces. If the device doesn't want to support tethering over bluetooth this
should be empty. -->
<string-array translatable="false" name="config_tether_bluetooth_regexs">
- <item>"bnep"</item>
+ <item>"bt-pan"</item>
</string-array>

<!-- Max number of Bluetooth tethering connections allowed. If this is

After this modification, i can turn bluetooth tethering on.

All interface are looking good, my other phone got IP, default route, i can ping, etc... but...

If I try to use bt tethering, something went wrong... Default gw cant ping (Defy), and when I turn tethering off, cant turned it on again... Defy didn't know about disconnect...

All maybe relevant information in logcat is:

W/bt_userial( 2061): select_read return size <=0:-1, exiting userial_read_thread

Can you investigate it a little bit? It's so close, to make it working, and I need it badly, because i've only one mobile internet subscription, and i've 2 phones :D
[Defy Android Development] Fire Head:
For me even full gapps work, didn't try out the minimal ones.
[Defy Android Development] FcukBloat:
are maybe reducing the system usage by removing some apks from the build? otherwise with full gapps and normal cm build i have always got system partition full..
[Defy Android Development] dh.harald:
Delete bootanimation, unused pico_tts langs and videos... It must be enough :)
[Defy Android Development] nhb13612:
As for me, I simply converted some System Apps to User Apps, using TBU. Converting the AOSP keyboard alone saved me 30+MB in System ROM.
[Defy Android Development] FcukBloat:
i don't have space problems.. i always have up to almost 90mb free in /system.. was just wondering ;)

ps. i don't know if last build has really more stable data connection or maybe it is like some previous builds where 3g icon was always present but connection actually was not.. indicator presence seems less reliable to me now.. in previous builds it was disappearing often but when it happened connection was really down.. will test more!
[Defy Android Development] dh.harald:
[MENTION=513620]Quarx[/MENTION]:

I've working bluetooth tethering!

I did two steps:

1. I switched hardware/ti/wpan/bluedroid_wilink and hardware/ti/wpan/ti_st/uim-sysfs to omapzoom's version (d-jb-mr1-release branch, not master!). Maybe this step is not important... tethering wasn't working...

2. I cheked omapzoom's external/bluetooth/bluedroid repo too, and i find a small fix in hci/Android.mk so, i implemented it with this patch:

diff --git a/hci/Android.mk b/hci/Android.mk
index b0dc4aa..fbd46d9 100644
--- a/hci/Android.mk
+++ b/hci/Android.mk
@@ -27,6 +27,10 @@ LOCAL_SRC_FILES += \

endif

+ifeq ($(BOARD_WPAN_DEVICE),true)
+LOCAL_CFLAGS += -DBTHC_USERIAL_READ_MEM_SIZE=1034
+endif
+
LOCAL_C_INCLUDES += \
$(LOCAL_PATH)/include \
$(LOCAL_PATH)/../utils/include \

Recompiled libbt-hci.so, and BT tethering is working!

Another solution, you can define BTHC_USERIAL_READ_MEM_SIZE in bdroid_buildcfg.h like in here (for example):

https://github.com/LegacyXperia/android_device_semc_iyokan/blob/cm-10.1/bluedroid/bdroid_buildcfg.h
[Defy Android Development] sunil_defy:
I installed cm10.1 directly on cm7. Every thing is working fine except for the playstore . it still recognizes the android as 2.3.7 and shows the relevent apps. I wonder what would fix it.
[Defy Android Development] FcukBloat:
i confirm sometimes 3g icon is present even if data connection is not working.. at this point it was better previous build for me, indicator was reliable.. is that happening for you guys too?
[Defy Android Development] ccav2000:
Never happened to me so far. I had that once or twice when I was still using CM7, turns out it's another manifestation of the RIL bug.

---------- Post added at 08:49 PM ---------- Previous post was at 08:46 PM ----------

Seems like a great week for the DEFY, the data connection bug was fixed and now the Bluetooth tethering is fixed. Of only we could also did the audio problem, but that's more complicated since it's probably a matter of audio format, involving the closed source binary Motorola audio lib.
[Defy Android Development] okij:
Yes, this happened to me too on the current build. Turning on and off airoplane mode made 3G work again, so I don't think it's related to the RIL bug.
[Defy Android Development] FcukBloat:
exactly same here have to toggle airplane mode to get data connection to work again.. on previous build never had to do so when 3g indicator was visible.. but now connection is established more easily it seems.. still dunno what is better actually.. :p
[Defy Android Development] atulclassic:
flash the zip again after wipe data/cache
[Defy Android Development] kryzeK:
Nothing much just curiosity, but because of the ROMS Quarx never go out of state Nightly? CM10 for example, could be a RC least. My old Galaxy Fit is the CM10.1 RC5 today.
[Defy Android Development] TJKV:
Well it is just a number. And you can rename the rom yourself if it makes you happier :P

But not everything works yet, that's probably why. CM stuff might be at RC level but our device specific things like kernel are still being worked on. Our devs probably have a personal to do list. If they do want to use the RC naming, it will come but later rather than sooner :)
[Defy Android Development] Anton111111:
I have strange problem with wifi. When my router setted up to work with 802.11n my defy connect fast, but internet doesn't work. If i change 802.11n to 802.11g on my router all work good.

But all other devices (include wife's defy+ with cm7.2) work good with enabled 802.11n.

Have any solution to setup my defy to work with 802.11g. I don't want to limit wifi speed for our laptops :)

P.s. i use 07.06.13 build on my defy
[Defy Android Development] Fire Head:
But what would have changed, if he had renamed it to RC?

And when it's named as a nightly and something doesn't work, you are maybe not as disapointed as you would have been, if it had been a RC.

But in fact this discussion doesn't belong here :)

Edit: Btw you are wrong. Cyanogenmod 7 was called stable, so Quarx doesn't always classify his roms as a nightly.
[Defy Android Development] sa3e1:
Does anybody have working DLNA on latest nightly? Tried Homedia, iMediashare, and Win Remote lite app, none working here...what experiences do you have?
[Defy Android Development] slimshady76:
I face the same situation with my TP-Link router. In fact, it looks like the Defy gets much more latency time to establish a connection if the router is set to work with 811.n only.

EDIT: I'll try to capture some logcat data to help debug this situation.
[Defy Android Development] Jinx Lumos Joke:
Are wifi jamming issues, and screen turn-on delay solved, wit the new build for someone? (Because I installed the new build, but the problmes still exists. If its good for y'all, I would try a fresh install...) Thx!
[Defy Android Development] FcukBloat:
i have to confirm data connection handling is not improved here, actually it got worse :( i mean often i have to manually toggle airplane mode to get back data connection, while in previous builds it was done automatically by the phone! this happens too often.. have to go back to may build :(
[Defy Android Development] Fire Head:
Now I have a problem. After my phone went out of accu I charged it again and tried to reboot, but it remained on the Cyanogenmod-Bootanimation for more than 1 hour. So I wiped cache and dalvik cache. It startet optimising the apps. Then there was something written like "starting apps" and remained there. A took out the battery and tried again. Now it stays on the bootanimation again. I even tried to install the last build (20130607) without wiping data, didn't change anything.

What can I do? I know, that I could wipe data, but I would like to keep it. With CWM I would try to restore the boot-part from a backup. But on TWPR it seems there isn't such an option.

I'm sorry if it is the wrong thread for my question.
[Defy Android Development] Blechd0se:
New Kernel Nightly

So i finished the backporting stuff and also did some more cleanup, moreover i added some more patches, changelog for now;

* backport interactive from 3.4 (this might increase performance in games a little bit)

* made suspend handling a bit more intelligent; if the cpu_load is above 70% (hardcoded value) while screen is off, the governor goes into

default scaling, this means it can reach any freq while screen is off (in my test scenarios it was between 300 and 600). Also

it waits one second at least to check this, so cpu_load can go down a little bit

* deleted the limit suspend_freq code, because the new code is much more flexible

* fixed a bug with from a earlier nightly

* some more various changes, github tells you more :)

I let the debug-messages enabled as always, waiting for feedback and have fun :)
[Defy Android Development] TJKV:
Happened a few times with CM10 and Slimbean too. It would suddenly reboot and then not boot up at all. Do this: backup /data with TWRP, wipe everything and do a clean new install of the ROM. Then use Titanium Backup and use the "Restore from Nandroid" feature to get back your apps from the TWRP backup of /data.
[Defy Android Development] ccav2000:
Seems to work fine here so far. Not much time to test as it is late and I'm about to sleep. If anything brakes or behaves queerly I'll report tomorrow.
[Defy Android Development] FcukBloat:
will this work with older quarx's builds also? for example 15/apr or 27/may builds?

thanks
[Defy Android Development] r_soares:
Black screen, here. Couldn't get to boot animation.

[Moto logo>black screen>soft buttons fade in>fade out>nothing more happens]
[Defy Android Development] molchmolch:
With 0706 (latest) build, I got today 4:40h screen on time :thumbup:

Testing now latest kernel-governor ZIP. Phone comes faster out of sleep but it seems a bit laggy...
[Defy Android Development] frozenwaverider:
+1 cleaned caches(stock & custom) & dalvik before & after flashing...

I'm on CM10 but they use same kernel so it should work, right?

MB525 Red lense