Go Back   Android Forums > Android Phones > LG Optimus Elite

New Forums: Nexus Player | Nexus 9
Like Tree2Likes
  • 1 Post By giantpune
  • 1 Post By DsyMnapTic

test: Reply
 
LinkBack Thread Tools
Old December 16th, 2012, 12:16 PM   #1 (permalink)
Senior Member
Thread Author (OP)
 
DsyMnapTic's Avatar
 
Join Date: Apr 2011
Location: The rocky mountains
Posts: 1,006
 
Device(s): Optimus VM696 running: (phenomx4/CM9 alpha)
Carrier: Not Provided

Thanks: 289
Thanked 123 Times in 107 Posts
Default True that camera has to be running?

Is it true that the camera had to be running in the background somewhere in order for the LED to be on?
I just emailed the developer of notification toggle, wondering why the camera was operating in the background of Handcent messaging when I had the LED on.


Edit: oh and he told me that there's nothing he could do about it and the camera has to be running in order to have the LED on.

Advertisements
__________________
SpiritMolecule
DsyMnapTic is offline  
Reply With Quote
sponsored links
Old December 16th, 2012, 12:37 PM   #2 (permalink)
AF Contributor
 
Artine's Avatar
 
Join Date: Jul 2012
Location: The Moon
Posts: 1,303
 
Device(s): LG Optimus Elite (Harmonia 2.03, Sleipnir 2.4.0.5), SG Victory 4G LTE (???)
Carrier: Virgin Mobile

Thanks: 551
Thanked 589 Times in 359 Posts
Default

Quote:
Originally Posted by DsyMnapTic View Post
Is it true that the camera had to be running in the background somewhere in order for the LED to be on?
I just emailed the developer of notification toggle, wondering why the camera was operating in the background of Handcent messaging when I had the LED on.


Edit: oh and he told me that there's nothing he could do about it and the camera has to be running in order to have the LED on.
Nope. I have a flashlight app that turns on the LED and the camera is not running in the background. The dev might just need to improve his code.
__________________
Sleipnir Developer. Author of the [FAQ-GUIDE] for CWM for the OE, and [GUIDE] to Removing Stock Apps for the OE, threads.
Artine is offline  
Reply With Quote
The Following User Says Thank You to Artine For This Useful Post:
DsyMnapTic (December 16th, 2012)
Old December 16th, 2012, 12:38 PM   #3 (permalink)
AF Contributor
 
Dark One's Avatar
 
Join Date: Jan 2012
Posts: 786
 
Device(s): LG Optimus Elite
Carrier: Helio

Thanks: 358
Thanked 189 Times in 152 Posts
Default

What LED?
Dark One is offline  
Reply With Quote
Old December 16th, 2012, 12:43 PM   #4 (permalink)
Senior Member
Thread Author (OP)
 
DsyMnapTic's Avatar
 
Join Date: Apr 2011
Location: The rocky mountains
Posts: 1,006
 
Device(s): Optimus VM696 running: (phenomx4/CM9 alpha)
Carrier: Not Provided

Thanks: 289
Thanked 123 Times in 107 Posts
Default

Quote:
Originally Posted by Dark One View Post
What LED?
The flash on the back of the phone
DsyMnapTic is offline  
Reply With Quote
Old December 16th, 2012, 12:47 PM   #5 (permalink)
Senior Member
Thread Author (OP)
 
DsyMnapTic's Avatar
 
Join Date: Apr 2011
Location: The rocky mountains
Posts: 1,006
 
Device(s): Optimus VM696 running: (phenomx4/CM9 alpha)
Carrier: Not Provided

Thanks: 289
Thanked 123 Times in 107 Posts
Default

Quote:
Originally Posted by Artine View Post
Nope. I have a flashlight app that turns on the LED and the camera is not running in the background. The dev might just need to improve his code.
Here's the thing though Artine, I never would've known it was running if it hadn't have glitched out Handcent. There was nothing showing that any camera app was running, so I couldn't stop it unless I shut the LED off
DsyMnapTic is offline  
Reply With Quote
Old December 16th, 2012, 01:07 PM   #6 (permalink)
AF Contributor
 
Dark One's Avatar
 
Join Date: Jan 2012
Posts: 786
 
Device(s): LG Optimus Elite
Carrier: Helio

Thanks: 358
Thanked 189 Times in 152 Posts
Default

You could try freezing your camera and then see if your flashlight works.
Dark One is offline  
Reply With Quote
Old December 16th, 2012, 04:06 PM   #7 (permalink)
Member
 
Join Date: Jun 2012
Posts: 452
 
Device(s):
Carrier: Not Provided

Thanks: 4
Thanked 474 Times in 174 Posts
Default

The camera doesnt need to be running to turn on the flashlight. In fact, you dont need any java running it all. You can even turn on the camera led from within recovery, where the entire android operating system is not running.

Code:
#include <fcntl.h>
#include <sys/ioctl.h>


int main(int argc, char** argv)
{
    // open camera device
    int led_status;
    int dev = open( "/dev/msm_camera/config0", O_RDONLY );
    if( dev < 0 )
    {
        perror( "open" );
        return 1;
    }
    puts( "opened device" );

    led_status = 1;
    if( ioctl( dev, _IOW( 'm', 22, unsigned *), &led_status ) )
    {
        perror( "ioctl on" );
        close( dev );
        return 1;
    }

    puts( "flashlight on" );
    sleep( 1 );

    led_status = 0;
    if( ioctl( dev, _IOW( 'm', 22, unsigned *), &led_status ) )
    {
        perror( "ioctl off" );
        close( dev );
        return 1;
    }

    puts( "flashlight off" );

    close( dev );
    return 0;
}
Artine likes this.
giantpune is offline  
Reply With Quote
The Following 2 Users Say Thank You to giantpune For This Useful Post:
Artine (December 16th, 2012), DsyMnapTic (December 16th, 2012)
Old December 16th, 2012, 04:22 PM   #8 (permalink)
AF Contributor
 
Artine's Avatar
 
Join Date: Jul 2012
Location: The Moon
Posts: 1,303
 
Device(s): LG Optimus Elite (Harmonia 2.03, Sleipnir 2.4.0.5), SG Victory 4G LTE (???)
Carrier: Virgin Mobile

Thanks: 551
Thanked 589 Times in 359 Posts
Default

Quote:
Originally Posted by giantpune View Post
The camera doesnt need to be running to turn on the flashlight. In fact, you dont need any java running it all. You can even turn on the camera led from within recovery, where the entire android operating system is not running.
Exactly what I thought.
Artine is offline  
Reply With Quote
Old December 16th, 2012, 05:01 PM   #9 (permalink)
Senior Member
Thread Author (OP)
 
DsyMnapTic's Avatar
 
Join Date: Apr 2011
Location: The rocky mountains
Posts: 1,006
 
Device(s): Optimus VM696 running: (phenomx4/CM9 alpha)
Carrier: Not Provided

Thanks: 289
Thanked 123 Times in 107 Posts
Default

Quote:
Originally Posted by Artine View Post
Exactly what I thought.
See that's what I figured as well. So the developer of notification toggle doesn't know what he's talking about.
DsyMnapTic is offline  
Reply With Quote
Old December 20th, 2012, 05:59 AM   #10 (permalink)
Senior Member
 
MacFett's Avatar
 
Join Date: Mar 2011
Location: Sietch Tabr
Gender: Male
Posts: 3,227
 
Device(s): OnePlus One (Stock CM 11) & Samsung Galaxy Tab3 8" (CM11)
Carrier: T-Mobile

Thanks: 389
Thanked 740 Times in 559 Posts
Default

I've never been able to get the camera to start if I have the LED on. I've tried with several different apps. I've always figured the two are connected.
__________________
Sign up for dropbox and we each get a bonus 500megs

"The world is indeed comic, but the joke is on mankind," H.P. Lovecraft 1890-1937
MacFett is offline  
Reply With Quote
sponsored links
Old December 20th, 2012, 12:09 PM   #11 (permalink)
AF Contributor
 
Artine's Avatar
 
Join Date: Jul 2012
Location: The Moon
Posts: 1,303
 
Device(s): LG Optimus Elite (Harmonia 2.03, Sleipnir 2.4.0.5), SG Victory 4G LTE (???)
Carrier: Virgin Mobile

Thanks: 551
Thanked 589 Times in 359 Posts
Default

Quote:
Originally Posted by MacFett View Post
I've never been able to get the camera to start if I have the LED on. I've tried with several different apps. I've always figured the two are connected.
They may be connected in that the camera app of choice is calling upon the LED feature, and expecting it to be off when it calls for it. And if it's already on, they don't know what to do, and freak out and refuse to start. At least that's my guess anyway - and if it's right, then developers need to update their camera app coding to start taking into considerations exceptions like these (though I can't imagine they'd typically need to).
Artine is offline  
Reply With Quote
Old December 20th, 2012, 01:27 PM   #12 (permalink)
Senior Member
Thread Author (OP)
 
DsyMnapTic's Avatar
 
Join Date: Apr 2011
Location: The rocky mountains
Posts: 1,006
 
Device(s): Optimus VM696 running: (phenomx4/CM9 alpha)
Carrier: Not Provided

Thanks: 289
Thanked 123 Times in 107 Posts
Default

From what I figured out allot of flashlight app developers say that they need access to the camera in order for the LED to work. Just look around at some on the market. I've also found out, that it doesn't run any app (atleast that I know of) when the light is on. The only way you'd know is when a glitch occurs. I.E. like the one I had in the background of handcent messaging OR now actually I get a glitch of my camera picking up images between screen animations in ADW launcher.
I'm using Tesla LED by the way.
DsyMnapTic is offline  
Reply With Quote
Old December 20th, 2012, 01:36 PM   #13 (permalink)
Senior Member
Thread Author (OP)
 
DsyMnapTic's Avatar
 
Join Date: Apr 2011
Location: The rocky mountains
Posts: 1,006
 
Device(s): Optimus VM696 running: (phenomx4/CM9 alpha)
Carrier: Not Provided

Thanks: 289
Thanked 123 Times in 107 Posts
Default

I'm even surprised that more of you haven't noticed a decent amount of battery drain while using the LED. Theoretically if the LED is being used by itself it should cause very minimal battery drainage.
Artine likes this.
DsyMnapTic is offline  
Reply With Quote
Old December 21st, 2012, 10:14 AM   #14 (permalink)
Junior Member
 
Join Date: Nov 2012
Posts: 66
 
Device(s):
Carrier: Not Provided

Thanks: 1
Thanked 3 Times in 2 Posts
Default

Quote:
Originally Posted by Artine View Post
Then developers need to update their camera app coding to start taking into considerations exceptions like these (though I can't imagine they'd typically need to).
I haven't been able to get the stock camera app to work when the flash is already on....
mrjello is offline  
Reply With Quote
Old December 21st, 2012, 12:29 PM   #15 (permalink)
AF Contributor
 
Artine's Avatar
 
Join Date: Jul 2012
Location: The Moon
Posts: 1,303
 
Device(s): LG Optimus Elite (Harmonia 2.03, Sleipnir 2.4.0.5), SG Victory 4G LTE (???)
Carrier: Virgin Mobile

Thanks: 551
Thanked 589 Times in 359 Posts
Default

Quote:
Originally Posted by mrjello View Post
I haven't been able to get the stock camera app to work when the flash is already on....
Which is more testament to what I and giantpune said; they need to update their coding.
Artine is offline  
Reply With Quote
Reply

LG Optimus Elite
Current Rating:
Rate this Phone:

The LG Optimus Elite is the first entry-level NFC enabled device to be offered on a pre-paid wireless carrier here in the states. The Optimus Elite will feature specs typical of an entry level device like a 3.5-inch 480×320 reslution display,... Read More



Go Back   Android Forums > Android Phones > LG Optimus Elite
Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 03:17 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.