Join Today
+ Reply to Thread
Results 1 to 8 of 8
  1. #1

    Default E680 navigation LED

    Can anyone point me to where/how the E680(i) blue navigation LED is turned on or off? I just finished the first bits of a Linux LED class driver for the E680(i) and now I want to add the navigation pad LED, but I can't find in the 2.4 source where this is accessed.

  2. #2

    Default Re: E680 navigation LED

    mickeyl, I could'nt download gpiotool from openezx so I cannot confirm this, however if you can do something about it, I'd tell you that application processor's GPIO46 connects to RED and GPIO47 connects to GREEN/BLUE LED somewhere in the unit.

    dunno if it's the one under the logo, or the one under the navigation pad.

  3. #3

    Default Re: E680 navigation LED

    would be cool if there is a simple way to turn it off and on, i think that would make for a much better way to show a missed call, message, could turn it off and on to make it blink, or just turn it on period.
    It's only a phone if you want it to be

  4. #4

    Default Re: E680 navigation LED

    Quote Originally Posted by mickeyl
    Can anyone point me to where/how the E680(i) blue navigation LED is turned on or off? I just finished the first bits of a Linux LED class driver for the E680(i) and now I want to add the navigation pad LED, but I can't find in the 2.4 source where this is accessed.
    Search for schematics on this site, there I hope you'll locate where navi stuff is wired to.

  5. #5

    Default Re: E680 navigation LED

    Thanks for your answers. I have since found the kernel 2.4 code to tweak it in keypad.c (I was blind...). The blue navigation LED is wired to pxa GPIO_TC_MM_EN which is also used for AP->BP communication.

    Since the openezx kernel is still missing some of the initialization, that is probably why the 2.4 code doesn't work yet in 2.6.

  6. #6

    Default Re: E680 navigation LED

    on side note,
    what executable code is used for the led command in the lin script used in funlights?
    or is led a native command in the script?
    E680I_G_0D.C5.ABP, BP:E680I_G_0D.B3.B1P, BPFlex:GSOE680IT674KW007

  7. #7
    Join Date
    Nov 2005
    Location
    Pakistan
    Posts
    860

    Default Re: E680 navigation LED

    led is a native app. if u r interested in led's code, its here somewhere. i saw led.c myself. need to do a search.
    --------------------
    -->E680i... ROX.
    --------------------

  8. #8

    Default Re: E680 navigation LED

    I send you many thanks
    I had it in my archive and didn't realize it

    the original source is credited to cyph

    Code:
    #include <linux/led.h>
    #include <sys/types.h>
    #include <sys/stat.h>
    #include <sys/ioctl.h>
    #include <fcntl.h>
    #include <errno.h>
    #include <string.h>
    
    int main(int argc, char **argv) {
    	int led;
    	struct led_info li;
    	struct led_op lo;
    	int ret;
    
    /*	if(!argv[1]) {
    		printf("Usage: %s <color_code>\n", argv[0]);
    		printf("On e680 <color_code> should be 0-100\n", argv[0]);
    		return(0);
    	}
    */
    	led = open("/dev/led", O_RDWR);
    /*	if(led == -1) {
    		perror("cannot open led device: ");
    		return(0);
    	}
    */
    	ret = ioctl(led, LEDIOC_GETCOUNT);
    //	printf("%d LEDs detected\n", ret);
    
    	li.led_num = 0;
    	ioctl(led, LEDIOC_GETINFO_BY_NUM, &li);
    //	printf("Name : %s\n", li.name);
    //	printf("Type : %d\n", li.type);
    
    	lo.op = SET_LED;
    	strcpy(lo.name, li.name);
    	lo.op_info.bicolor.color = atoi(argv[1]);
    	ret = ioctl(led, LEDIOC_OP, &lo);
    /*	if(ret == -1) {
    		perror("LEDIOC_OP: ");
    	}
    */
    
    	return 0;
    }
    anyone willing to recompile the following for me?
    I commented out some error check and some printf() statements
    so the new compiled code will be a few bytes shorter
    E680I_G_0D.C5.ABP, BP:E680I_G_0D.B3.B1P, BPFlex:GSOE680IT674KW007


 
+ Reply to Thread

Similar Threads

  1. about keypad led !!!!!
    By mehditop in forum E680i General Chat
    Replies: 5
    Last Post: 07-29-2008, 12:54 AM
  2. QeiLock LED NEW VERSION !!
    By sagar420 in forum E6 General Chat
    Replies: 25
    Last Post: 06-13-2008, 02:08 PM
  3. Controlling LED near navigation keys
    By dionua in forum Development
    Replies: 10
    Last Post: 09-11-2006, 12:27 PM
  4. KeyPad LED
    By ask2meet in forum A780 General Chat
    Replies: 2
    Last Post: 08-30-2006, 01:22 AM
  5. e680..no blue led....help
    By exxelyx in forum E680 General Chat
    Replies: 1
    Last Post: 02-15-2006, 12:00 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Single Sign On provided by vBSSO

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1