- 05-19-2011, 11:49 PM #1
Itty Bitty Modder
- Join Date
- May 2007
- Posts
- 14
- Thanks
- 5
- Thanked 1 Time in 1 Post
- Downloads
- 222
- Uploads
- 0
Notification led custom blinking rate
I have shared link to the kernel.
http://download452.mediafire.com/1g1...nel_signed.zip
It is a signed .zip and can be installed through recovery. Try it when u get time. It is motorola Base 2.1 kernel so no additional features other than this. No need for wipe since it updates only kernel. But make sure u nandroid backup everything before u do this. Try it with your own risk I'm not responsible if any harm happens to your phone.
Driver accepts two patterns. Each pattern has an On time and Off time. Both the values are in milliseconds. I have created a script for setting these values easily (see attached).
Format is
#/sdcard/set_led.sh 'ONtime1 OFFtime1 ONtime2 OFFtime2'
for example if u type
#/sdcard/set_led.sh '100 1500 100 100'
you will get a heartbeat pattern.
and if you type
#/sdcard/set_led.sh '1000 1000'
led will blink as 1sec on and 1sec off. it accepts either two values or four values all other are invalid. for example
#/sdcard/set_led.sh '100 100 1000' is invalid
Once set it will override phone's settings.
type
#/sdcard/set_led.sh '0 0'
to disable this feature.Last edited by jakjoseph; 05-22-2011 at 12:31 AM.
-
The Following User Says Thank You to jakjoseph For This Useful Post:
sublime1184 (05-31-2011)
- 05-20-2011, 12:36 AM #2
have a talk with [MENTION=3108341]ngiordano[/MENTION] and [MENTION=16979]jass[/MENTION]yCliq. They might be really interested in your findings..It mite get incorporated into CM7...
Sent from my CM7'd Cliq using Tapatalk
Last edited by adlx; 05-22-2011 at 02:45 AM.
- 05-20-2011, 11:29 AM #3
I think it sounds awesome
I'm thinking of it being like a app but I can be set through the settings only
so its an app that doesn't appear in the launcher
Talk to [MENTION=3108341]ngiordano[/MENTION] though unless you require some kernel tweak then ill implement
Sent from my CLIQ using Tapatalk
- 05-21-2011, 01:02 PM #4
Itty Bitty Modder
- Join Date
- May 2007
- Posts
- 14
- Thanks
- 5
- Thanked 1 Time in 1 Post
- Downloads
- 222
- Uploads
- 0
I am glad to know that you are interested. I will post the kernel soon. I did the modding on the Motorola 2.1 kernel. at present state blinking rates should be set from terminal with root access. I am thinking of building an app for that but I am not very familiar with apk building. I will need some help :-)
- 05-21-2011, 01:31 PM #5
- 05-21-2011, 01:34 PM #6
That would be a great feature! I like the Desk Clock Feature on CM7 but I hate when the LED Light stays on.. Maybe an option to turn it off while charging?
Sent from my CM7'd Cliq using Tapatalk
- 05-21-2011, 01:47 PM #7
- 05-21-2011, 11:24 PM #8
Itty Bitty Modder
- Join Date
- May 2007
- Posts
- 14
- Thanks
- 5
- Thanked 1 Time in 1 Post
- Downloads
- 222
- Uploads
- 0
Since I cannot attach the kernel here due to size limit I'm attaching only the driver module. Please try it when u get time. It is compiled with gcc4.2.1.
For using this driver u should rebuild your kernel with led driver as loadable module.
run $make menuconfig in your kernel directory. Goto Device drivers->LED support and set M for the Fairchild FAN5646 LED Driver. Save the configuration and rebuild the kernel. Flash the new kernel in any method you prefer. Then extract the attached zip file to /sdcard of your phone. In Terminal Emulator type
#insmod /sdcard/leds-fan5646.ko to insert the module into the kernel.
Driver accepts two patterns. Each pattern has an On time and Off time. Both the values are in milliseconds. I have created a script for setting these values easily(inside the zip).
Format is
#/sdcard/set_led.sh 'ONtime1 OFFtime1 ONtime2 OFFtime2'
for example if u type
#/sdcard/set_led.sh '100 1500 100 100'
you will get a heartbeat patter.
and if you type
#/sdcard/set_led.sh '1000 1000'
led will blink as 1sec on and 1sec off. it accepts either two values or four values all other are invalid. for example
#/sdcard/set_led.sh '100 100 1000' is invalid
Once set it will override phone's settings.
type
#/sdcard/set_led.sh '0 0'
to disable this feature.
If u can tell me how to attach larger files I can share the kernel so that rebuild mess can be avoided...
- 05-21-2011, 11:31 PM #9
Itty Bitty Modder
- Join Date
- May 2007
- Posts
- 14
- Thanks
- 5
- Thanked 1 Time in 1 Post
- Downloads
- 222
- Uploads
- 0
Last edited by jakjoseph; 05-21-2011 at 11:31 PM. Reason: Automerged Doublepost
- 05-21-2011, 11:35 PM #10
To host a larger file upload it to another host site then just give the link through pm...
Sent from my CM7'd Cliq using Tapatalk
-
The Following User Says Thank You to Double0EK For This Useful Post:
jakjoseph (05-21-2011)
- 05-21-2011, 11:39 PM #11
Itty Bitty Modder
- Join Date
- May 2007
- Posts
- 14
- Thanks
- 5
- Thanked 1 Time in 1 Post
- Downloads
- 222
- Uploads
- 0
which host site u can advice me?
is it paid?
- 05-22-2011, 12:22 AM #12
-
The Following User Says Thank You to j@$$yCliq For This Useful Post:
jakjoseph (05-22-2011)
- 05-22-2011, 02:47 AM #13
Interesting stuff!
Sent from my Defy running adlxmod using TapatalkDownload my 1-click Recovery Flasher to flash a custom or stock recovery to your phone: Cliq, CliqXT, Backflip, ...
Like my work? Support me:
& visit my adlxmod site and follow me on Twitter
Tambien me puedes encontrar en Movilzona (Esp)


LinkBack URL
About LinkBacks
Reply With Quote



