yashsingh1/xdaforums huggingface dataset:
[Galaxy S I9000 Q&A, Help & Troubleshooting] Udayakiran:
Thanks for the replies and the links, guys. Sorry I couldn't check back earlier. Since JV4 was the one that Kies updated by default for my region it may be the best modem. Anyway, i'll try the others too.

Also, I am facing low mic volume issues. Callers at the other end of the call are complaining that they can't hear me. I have the #33 nightly (20-June) installed. Is there a chance of this issue getting fixed when this modem is flashed? Or is it better to start a seperate thread for this issue?

Once again, thanks for your help. :)
[Galaxy S I9000 Q&A, Help & Troubleshooting] sambwel:
The modem would not be causing this issue. The modem is only responsible for your mobile connection (i.e. 2G/3G signal strength).

I am sure others have mentioned the problem you describe in the CM7 nightly thread. You should read that thread starting from the most recent page and working back, you are sure to find some info if you persist! :)
[Galaxy S I9000 Q&A, Help & Troubleshooting] Udayakiran:
I'll check it out. Thanks.

And I tried JV4 and JV6 from the link that you had provided, but both have different baseband versions, not DDJV4.

JV4 - I9000ZWJV4

JV6 - I9000TUBJV6

Now, I have the stock ROM downloaded from SamFirmware (DDJV6/DDJV4/DDJV5). I believe the tar archive has a modem.bin file. Is it the modem ROM? If so, is there any method to flash only that file?
[Galaxy S I9000 Q&A, Help & Troubleshooting] sambwel:
Good questions :)

There is no difference between those modems - the ZW/TUB/DD just indicates the version of the ROM which contained that modem originally, and it's the last three characters which indicate the actual version of the modem. This is why only one version of each of these modems is provided on codeworkx' site.

For the sake of answering your second question: yes, if you have a modem.bin file you want to flash instead, you should be able to replace the modem.bin inside any other flashable modem zip (provided the original works with your ROM to begin with). It's not a process I've tried myself but I've seen people report success using 7zip to work with the zip file.

Anyway - if you want to use JV4/JV5/JV6 I suggest you just flash the versions provided! They are the same.
[Galaxy S I9000 Q&A, Help & Troubleshooting] Udayakiran:
Okay. Then i'll try the JV6 and see how battery life is affected. Battery life is pathetic with JV4 and the mobile radio is consuming almost almost 25%-40% of the total battery charge.

Thanks a lot for your help, sambwel. :)
[Galaxy S I9000 Q&A, Help & Troubleshooting] penfold_:
I suspect kernels make a bigger difference than the radio - using Insanity CM I went through all avaliable radios, and with each it would drain between 7-10% per hour - regardless of whether I was on wifi or 3g
[Galaxy S I9000 Q&A, Help & Troubleshooting] sambwel:
You're welcome :)

By the way, the situation you describe sounds like the perfect example of why trying different modems is a good idea. It may be that JV4 modem is too sensitive to changes in reception in your area. It may be refreshing your connection too often which will cause the battery drain. Another modem like JV6 might provide stable reception without this issue, but the only way to find out is to try it!

In your case, yes, it sounds like the ROM/kernel you were using was the culprit. I haven't tried Insanity, but I have had good results using both glitch and zach's kernels on CM7 nightlies, with zach's generally being more tweaked for battery saving.

I think the lesson is that once you start customizing your phone in these ways, everyone's taste will be different. No one ROM/kernel/modem combination will suit everyone perfectly. But, the modem is an important element, and it certainly can cause battery drain. Experimentation is the key!
[Galaxy S I9000 Q&A, Help & Troubleshooting] Udayakiran:
I'm using the "SpeedMOD" kernel. The kernel version says: "2.6.35.7-g9b05a44 atin@waltest9-ma #1". Not sure what that means though. I just flashed it because it is CWM and CM7 compatible. But the battery usage statistics shows that the phone radio consumes a lot of power. Was it the same in your case too?

Last night, I flashed the DDJV4 radio by replacing the modem.bin file in a existing modem zip file. You were right - there is only a minimal improvement in battery consumption by the radio, that too because it was unused most of the time. Currently running JP6. Lets see what happens.

If the power consumtion is still the same on JP6, then i guess the kernel is the culprit. But I am not very sure changing the kernel would affect the radio's power consumption. :confused:
[Galaxy S I9000 Q&A, Help & Troubleshooting] Eugene_che:
Change the modem that completely fits to yours usage area... i it the best way to get good stable signal + battery life !!!
[Galaxy S I9000 Q&A, Help & Troubleshooting] Udayakiran:
The DDJV4 was the default modem supplied by Samsung for my usage area. But the battery drain was almost the same as the ZWJV4. Testing with the TUBJV6, but if the battery performance does not improve, then I must try a different kernel as suggested by penfold_
[G2 and Desire Z Q&A, Help & Troubleshooting] tibidt:
Hi,

I have the following problem with my Desire Z :

When I answer a call or when I dial , it turns the loud speaker on. This problem appeared 3 day ago, I was running Virtous Sense 1.0.1.

Since then I wiped the phone and flashed TWICE :( .... because I taught it was a problem with the rom.

Still have the same problem and now I am running Virtuous Unity v1.24.0

I have recalibrated the G Sensor and "Flip for speaker" is and always was off .

Can this be a hardware problem ?
[G2 and Desire Z Q&A, Help & Troubleshooting] tibidt:
I have solved this after a third wipe and flash.

Now running Virtuos unity 1.25.0 , nice rom !
[G2 and Desire Z Q&A, Help & Troubleshooting] pmcqueen:
just a note, this can also be caused by a defective usb port/aftermarket charger tricking the phone into thinking it's in dock mode. for whatever reason, this happened to my G2 and I couldn't for the life of me figure it out. installing an app that blocks the docking from ever occurring (NoDock on the market, works perfectly) fixed it for me.
[G2 and Desire Z Q&A, Help & Troubleshooting] tibidt:
Thanks,

I think my problem is the same, the phone thinks is in dock mode. I have cleaned the USB port and this fixed the issue for a while but then it reappeared.

I will try NoDock from market, I see that is only trial and full version is not free :(

....

NoDock does not work :)

I am very annoyed by this issue and I am thinking of returning to Stock ROM (unroted) and return the phone for warranty .

Does anyone have a better idea ?
[Android Apps and Games] kevin@TeslaCoil:
TeslaLED is an LED flashlight app for many phones. TeslaLED has been out for over a year, but TeslaLED 3.0 beta is a fresh rewrite (giving me an test bed to try some new development ideas and tools).

Features of TeslaLED:

LED Flashlight

Strobe/Morse Code

Keep LED on with screen off (May flicker once)

Different widget styles

Free and No ads

TeslaLED is known to work on the following devices. It may work on other devices as well, but may require changing the "LED Method" in preferences.

Nexus One, Nexus S

Motorola Droid, Droid X, Droid 2, Atrix

HTC EVO, Droid Incredible, Thunderbolt, Desire, Desire HD, MyTouch 3G Slide, T-Mobile G2, Legend

Galaxy S II i9100

Galaxy S Epic and Fascinate (Strobe/Morse code do not work)

Galaxy Tab 7" and 10.1"

Xoom

Acer A500

I'm looking for bug reports (especially features of phones that broke since the Market version 2.0.4)

Download Link:

https://market.android.com/details?id=com.teslacoilsw.flashlight

http://teslacoilsw.com/android/teslaled/TeslaLED_3.0.1.apk

Note: My google-alerts show this APK spreading to pirate sites. The app is free so this isn't a big deal, but if doing so can you link back here?
[Android Apps and Games] Shaydar:
Great app.

Thanks.
[Android Apps and Games] 0mie:
FC on Thunderbolt GB on first start up after install, but it was good and well after :)
[Android Apps and Games] daveid:
Works as expected on my Acer A500 tab, haven't updated on my Nexus One yet.
[Android Apps and Games] kevin@TeslaCoil:
Can you Settings > Bug Report? This will let you email me with the stack trace. I have an idea of what it is, but good to verify.
[Android Apps and Games] Bikegeek:
Works great on HTC EVO.
[Android Apps and Games] jasonsf:
I have the old donate version. Do you recommend uninstalling that before installing this?
[Android Apps and Games] kevin@TeslaCoil:
It won't hurt to have both installed (This is actually how I tested and compared, using TeslaLED Donate 2.0.4 and TeslaLED (non-donate) 3.0beta ), however having both installed means when going to add the widget you'll see both listed as TeslaLED with the same icon so it's a bit confusing. On my devices the 2nd option was the 3.0 beta but I'm not sure how android sorts that list so it might vary.
[Android Apps and Games] Childofthehorn:
Have you thought about pulsing the signal to the LED so quickly that it emulates a true PWM feature or using the built in PWM on the LED in most phones to create pulsing or breathing LED with variable speeds or patterns.

I would love to help you with it and we could add the one good Apple thing to our phones that they don't even have on the iPhone.

Sound Cool?
[Android Apps and Games] mulletcutter:
Same here. But I did the bug reporting

Worked on xoom 3.1 and no fc. Police lights are blinding haha
[Android Apps and Games] 0mie:
Sent :)

10char
[Android Apps and Games] kevin@TeslaCoil:
Okay I've updated the OP with a link for beta3. This fixes the first-run bug some of you were experiencing. (No real need to update if you already have beta2 as it won't happen again)
[Android Apps and Games] jowett69:
works with galaxy s2 , thanks
[Android Apps and Games] kevin@TeslaCoil:
Unfortunately the LED APIs are more like desktop APIs rather than microcontroller APIs (or bits to twiddle I guess).

HTC's is best which gives variable brightness (most likely implemented by an internal PWM) and responds quickly and is easy to use (write to a file in /sys/devices).

Standard/Standard+ are using the camera APIs which are a bit slow and have the choice of either on or off

TeslaLED's strobe at 20Hz stutters once in a while when using the camera API and PWM would need much higher than 20Hz.

With root or a custom kernel I'm sure you could have a bit more control over the flash, but it'd likely be rather device specific and still might not even lead to true PWM control as the camera might have it's own private controller that is slow to accept commands.
[Android Apps and Games] Tokl:
Runs great on Stock Samsung Galaxy SII

1000 Thanks man!

Greetz Tokl
[Android Apps and Games] thunderwolf17:
Beta 3 runs great on the Incredible (Sense)! Love the new Sense styled widget. Thanks!!!
[Android Apps and Games] icehot666:
Got problems on my Galaxy S2, I started the LED, either using widget locker or using the widget on my home screen, then after the screen goes off, the led goes off then on again (which I believe is normal). If I wait a further 15 seconds approximately then the LED goes off again and this time stays off.

At this point both the widget won't work to turn it back on or off, nor the built in widget for widget locker. I can however close it using the notification bar. When I try to close it using the above methods I get a force close error:

"The application TeslaLED (process com.teslacoilsw.flashlight) has stopped unexpectedly. Please try again."

This is the case for both beta 3 and the released version of the software. I've sent a bug report.
[Android Apps and Games] kevin@TeslaCoil:
I have a Galaxy S2 now and I was wondering why I couldn't reproduce the problems people said they had, even when I was using the old version. It seems the wait 15 seconds, with the device not plugged into a computer, is key. It also makes it much more difficult to get debug logs.

Unfortunately I couldn't find any tricks to get the LED to stay on with the screen off, so I'm going to need to disable that ability on the GS2. Keeping the screen on works and TeslaLED has a (disabled by default) "Dim Screen" page you can use to have a fake-screen-off. Not perfect though (and only accessible from the app).
[Android Apps and Games] nightranger73:
I think it happens when phone enters in deep sleep state where the CPU is turned off to save battery (so when plugged it's not needed). You should try using wakelock threads to keep it active

Sent from my GT-I9100

If you find this post usefull please press the "Thanks" button
[Android Apps and Games] kevin@TeslaCoil:
Already tried that, no go :(
[Android Apps and Games] icehot666:
Yeah keeping the screen on does seem to work - I think the difficulty is with Widget Locker, as generally you want the lock screen to time out relatively quickly, and the settings for widget locker appear to override the settings to keep the screen on in tesla..
[Android Apps and Games] ianoob:
Works on the EVO 3D
[Android Apps and Games] :
Needs multiple brightness settings something like low medium high.
[Android Apps and Games] Aaron78:
Downloaded and working great on my HTC Inspire running CM7. Very nice app. Kudos!!
[Android Apps and Games] sweetbinodray:
sweet nibbles man...great work
[Android Apps and Games] KnightCrusader:
This is great! Finally a widget that works with my Thunderbolt's LEDs. The one I was using on my Droid 2 would sit there and look dumb, but this one works GREAT! Thanks!
[Android Apps and Games] chasehammer:
WORKS GREAT!

it actually fixed my Widget problem. On my Droid 2 on froyo worked great but on gingerbread the widget never changed animation. the light would work but the switch never moved. now on this everything works like it use to. THANKS!
[Android Apps and Games] Vulpix:
Works great on my stock Galaxy S2.
[Android Apps and Games] DesGehtDiNixO:
Works perfect on HTC Incredible S w/ Android Revolution HD. Thanks :)
[Android Apps and Games] zman519:
Seems to work the same as 2.04 on my SGS Epic. I was hoping it would turn the LED on faster, But i did read what you (kevin@TeslaCoil ) said about the APIs. I Like your app But if the APIs cant make the LED turn on fast, The LED key change light has yet to lose its job to the smart phone;)

Edit. Did some testing got FC with the SOS mode.
[Android Apps and Games] solrac.dc:
I can confirm of this app working great on the G2X!!:cool:
[Android Apps and Games] three west:
installed on my stock X2

works better than any other 'flashlight' application (including 2.0.4) I've found yet

it also replaced the alpha install instead of installing the beta seperately
[Android Apps and Games] TheUntouchable:
Perhaps you should upload it to the market..? It's annoying to check this thread if there is an update..
[Android Apps and Games] Grim Reaper:
Great app. One thing I did notice is that it stooped working for my Infuse as of yesterday. Any ideas as of why?

Sent with my Infused Infuse using XDA Premium App
[Android Apps and Games] Jays2Kings:
Great app. It would be nice if the motorola widget looked like the new motoblur style

Because one signature isn't enough.
[Android Apps and Games] EricJD:
Works perfectly on my brand new Motorola Triumph. Love it!
[Android Apps and Games] 3x4d:
TeslaLED 3.0 beta

-----------------

It works on Xperia NEO, but first must by change settings "LED Method:" from "Auto" to "Standard".
[Android Apps and Games] Vulpix:
So when can we use our phones like Tesla coils and zap annoying colleagues? :D
[Android Apps and Games] TheUntouchable:
Any news on this app?
[Android Apps and Games] three west:
works great on my X2 with gingerbread update
[Android Apps and Games] bgcngm:
Thank you very much for this application! This was exactly what I was looking for. :)

By the way, can you tell me if I can change toggleState function (from my SystemUI.apk \ FlashlightButton.smali) so that it can directly use TeslaLED? This was linked to CyanogenMod torch (net.cactii.flash2) which is not working properly on my phone.

.method protected toggleState()V
.locals 6

.prologue
const-string v5, "net.cactii.flash2.TOGGLE_FLASHLIGHT"

.line 53
iget-object v3, p0, Lcom/android/systemui/statusbar/powerwidget/PowerButton;->mView:Landroid/view/View;

invoke-virtual {v3}, Landroid/view/View;->getContext()Landroid/content/Context;

move-result-object v0

.line 61
.local v0, context:Landroid/content/Context;
invoke-virtual {v0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

move-result-object v2

.line 62
.local v2, pm:Landroid/content/pm/PackageManager;
new-instance v3, Landroid/content/Intent;

const-string v4, "net.cactii.flash2.TOGGLE_FLASHLIGHT"

invoke-direct {v3, v5}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

const/4 v4, 0x0

invoke-virtual {v2, v3, v4}, Landroid/content/pm/PackageManager;->queryBroadcastReceivers(Landroid/content/Intent;I)Ljava/util/List;

move-result-object v1

.line 64
.local v1, l:Ljava/util/List;,"Ljava/util/List<Landroid/content/pm/ResolveInfo;>;"
invoke-interface {v1}, Ljava/util/List;->isEmpty()Z

move-result v3

if-nez v3, :cond_0

.line 65
new-instance v3, Landroid/content/Intent;

const-string v4, "net.cactii.flash2.TOGGLE_FLASHLIGHT"

invoke-direct {v3, v5}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

invoke-virtual {v0, v3}, Landroid/content/Context;->sendBroadcast(Landroid/content/Intent;)V

.line 68
:cond_0
return-void
.end method
[Android Apps and Games] trixnix:
Nice app!

Sent from my GT-I9100
[Android Apps and Games] kevin@TeslaCoil:
Very unique request. Actually I think I can do better. Untested as I don't have CM7 installed anywhere right now, but you can give this beta a try: https://plus.google.com/u/1/b/107603899862984674678/107603899862984674678/posts/5SKN1yRrXPP and then enable Settings > CM7 Torch Receiver ? That will have TeslaLED listen for net.cactii.flash2.TOGGLE_FLASHLIGHT .
[Android Apps and Games] bgcngm:
Amazing! Simply amazing!

It really works. Was it too much if I ask you to also implement a broadcast in TeslaLED so that it provides the actual status of the flashlight? Do you need the code from CM Torch?

Flashlight off:

Flashlight on:

As you can see, the flashlight is turned on when I press the widget button, but the button still shows as disabled. Let me try to find the code that listens for the status of the flashlight.

Thank you very much for this.

EDIT: I belive this is the code that updates the icon status...

.method protected updateState()V
.locals 5

.prologue
const/4 v4, 0x0

const/4 v3, 0x1

.line 26
iget-object v1, p0, Lcom/android/systemui/statusbar/powerwidget/PowerButton;->mView:Landroid/view/View;

invoke-virtual {v1}, Landroid/view/View;->getContext()Landroid/content/Context;

move-result-object v1

invoke-virtual {v1}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v1

const-string v2, "torch_state"

invoke-static {v1, v2, v4}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v1

if-ne v1, v3, :cond_0

move v0, v3

.line 27
.local v0, enabled:Z
:goto_0
if-eqz v0, :cond_1

.line 28
const v1, 0x7f02002e

iput v1, p0, Lcom/android/systemui/statusbar/powerwidget/PowerButton;->mIcon:I

.line 32
const v1, 0x7f020040

iput v1, p0, Lcom/android/systemui/statusbar/powerwidget/PowerButton;->mBackground:I

.line 34
iput v3, p0, Lcom/android/systemui/statusbar/powerwidget/PowerButton;->mState:I

.line 47
:goto_1
const v1, 0x7f080037

iput v1, p0, Lcom/android/systemui/statusbar/powerwidget/PowerButton;->mText:I

.line 49
return-void

.end local v0 #enabled:Z
:cond_0
move v0, v4

.line 26
goto :goto_0

.line 36
.restart local v0 #enabled:Z
:cond_1
const v1, 0x7f02002d

iput v1, p0, Lcom/android/systemui/statusbar/powerwidget/PowerButton;->mIcon:I

.line 40
const v1, 0x7f02003f

iput v1, p0, Lcom/android/systemui/statusbar/powerwidget/PowerButton;->mBackground:I

.line 42
const/4 v1, 0x2

iput v1, p0, Lcom/android/systemui/statusbar/powerwidget/PowerButton;->mState:I

goto :goto_1
.end method
[Android Apps and Games] Felimenta97:
What's new on 3.0 from 2.x? (was using it about 2 months ago, but deleted because of space and my ROM came with a pre-installed flashlight app?

Sent using Mini CM7 Pro by Paul
[Android Apps and Games] bgcngm:
This new version FC on the first system restart after the install. It stopped working at all, so I had to uninstall and reinstall. After that, I had no more FC's. Maybe I needed to clean the data from the previous version...

Anyway, have you seen my request regarding the status of the flashlight? Do you think that the code I posted here helps you? Can that be achieved?
[Android Apps and Games] dark4light:
this version work nice thank you
[Android Apps and Games] kevin@TeslaCoil:
Unfortunately this requires permission to modify the system settings. If I release an update with new permissions people will see the camera permission (which has been there since TeslaLED 1.0, the flash is connected to the camera) and think I'm spying on them and send angry emails and 1 star comments. (Speaking from experience). So for a relatively small use case it's not worth adding the permission. If I'm adding that permission, or other permissions, for another reason, I might include this too. It also would be possible for a different app (with more permissions) to get the broadcast and toggle the state.

New interface, more widget styles, support for more devices.
[Android Apps and Games] bgcngm:
I totally understand your concerns. Thanks anyway for replying and once again thanks for supporting my initial request.

I know it's not the proper way to do it, but I guess I can use toggleState function (the one that sends the broadcast to toggle the flashlight) to update "torch_state". What do you think?

EDIT: Just remembered now... Is there any variable that I can check within TeslaLED to get the actual status of the flashlight?
[Android Apps and Games] skymera:
Doesn't appear to work on Galaxy Tab 7".

Either FCs or does nothing..
[Android Apps and Games] bgcngm:
One more last request. Given that I wanted to release my ROM with your app integrated, I wished that CM7 Torch Receiver was enabled by default... I noticed that /data/data/com.teslacoilsw.flashlight/shared_prefs/Flashlight.xml does not contains that preference... :(
[Android Apps and Games] kevin@TeslaCoil:
I didn't want it enabled by default as it could conflict weird if someone actually has the CM Torch and TeslaLED together (both would try to turn on the led). I agree that not showing on the indicator is annoying.

TeslaLED 3.0.2 now on the Market removes that option completely, but supports the TeslaLEDCM7Receiver which acts as the cactii receiver and also has the system settings permission to update the indicator: http://teslacoilsw.com/tmp/TeslaLEDCM7Receiver.apk

Source is dead simple:

package com.teslacoilsw.teslaledcm7receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.provider.Settings;

public class CactiiReceiver extends BroadcastReceiver {

@Override
public void onReceive(Context context, Intent intent) {
if (intent == null)
return;
if ("net.cactii.flash2.TOGGLE_FLASHLIGHT".equals(intent.getAction())) {
Intent i = new Intent("com.teslacoilsw.intent.FLASHLIGHT");
i.putExtra("toggle", true);
context.startService(i);
} else if ("com.teslacoilsw.flashlight.ON".equals(intent.getAction())) {
Settings.System.putInt(context.getContentResolver(), "torch_state", 1);
} else if ("com.teslacoilsw.flashlight.OFF".equals(intent.getAction())) {
Settings.System.putInt(context.getContentResolver(), "torch_state", 0);
}
}

}
[Android Apps and Games] steveeJ:
hey kevin,

nice app you got there :)

would you mind sharing the code-snippet which turns on the flashlight in standard+ mode?

i'm rather new to android development and wrote an app which uses the camera LED on HTC Legend, which worked, but doesn't work on Samsung Galaxy Nexus.

Thank you :-)