[MOD] Use the backlight botton for NOTIFICATIONS... - Galaxy S I9000 Android Development

Hi all,
as you can see in this video,
http://android.hdblog.it/2010/06/20...a-della-presentazione-italiana-del-24-giugno/
Click to expand...
Click to collapse
there are two backlighted bottons on our Galaxy S; once is the BACK botton, the second one is OPTIONS botton.
Now, probably we can remap the OPTIONS botton for use it like a NOTIFICATION LED!
I suppose that: if we have one message/email or one unaswered call, the light of the option botton could PULSE..!!!
I think that this is the best solution for our NON-LEDED-PHONE...
What do you think?? Probably we can work on!!
Let me know!!

great idea.. definitely worth it..
one thing nice about i9000 is the home button wakes the phone

raspdeep said:
great idea.. definitely worth it..
one thing nice about i9000 is the home button wakes the phone
Click to expand...
Click to collapse
Thanks mate, i've contacted OBrian, as soon as possible I start to try and work on it...
First of all i need the source but i don't know why i cant download it from samsung. Somebody can upload the source on another server?
Second, i'll try to find the files that map the bottons
In the end, if is possible (but i need the help of our cheefs) i can work on it...
Waitin'...

socket84 said:
Thanks mate, i've contacted OBrian, as soon as possible I start to try and work on it...
First of all i need the source but i don't know why i cant download it from samsung. Somebody can upload the source on another server?
Second, i'll try to find the files that map the bottons
In the end, if is possible (but i need the help of our cheefs) i can work on it...
Waitin'...
Click to expand...
Click to collapse
definitely worth it !!!!!! thank you in advance

Archius said:
definitely worth it !!!!!! thank you in advance
Click to expand...
Click to collapse
If somebody wants to help me, is appreciated!!
Fist of all we have to discover where the botton configuration files are..

Great Idea i'll download the source and try for a look but im not too good

it will take a while, till the file ist uloaded but i'll edit my post and add the link
is netload ok ?

Jonas.M said:
it will take a while, till the file ist uloaded but i'll edit my post and add the link
is netload ok ?
Click to expand...
Click to collapse
Thanks man, never mind, i've downloaded it... I'm searching the files...

kk i'm searching too

Jonas.M said:
kk i'm searching too
Click to expand...
Click to collapse
Tried to search "key", there are alot of file in kernel folder, but they seems to be unusefull...
Probably we need a dump, not the source...
Searchin'....

does it light up while booting?

Jonas.M said:
does it light up while booting?
Click to expand...
Click to collapse
I don't know... I'm waitin' two Galaxy S for early July, so we need to wait somebody that have the phone right now...
But i can search on youtube...

it seams, that they only light up if you use them
but i cant find any video that shows the booting properly

Jonas.M said:
it seams, that they only light up if you use them
but i cant find any video that shows the booting properly
Click to expand...
Click to collapse
Yes, but they light up, i think this is enough
I saw a video of the boot on youtube but i don't find it... damn!

Boot:
http://www.youtube.com/watch?v=n_G51c7hxbU
Click to expand...
Click to collapse
No lights up...but maybe the part of the video that we need is too short..

They do not light up under the boot.
But you can trigger them/use them while booting.

Elinsa said:
They do not light up under the boot.
But you can trigger them/use them while booting.
Click to expand...
Click to collapse
Probably, but we need to activate them any time we loose a call or we have a message/email...
I see that the bottons are capacitives, not phisicals...

Yes, they are touchbuttons. If you need any help from me since I have the phone already let me know.

Code:
case ACPI_BUTTON_NOTIFY_STATUS:
input = button->input;
if (button->type == ACPI_BUTTON_TYPE_LID) {
acpi_lid_send_state(button);
} else {
int keycode = test_bit(KEY_SLEEP, input->keybit) ?
KEY_SLEEP : KEY_POWER;
input_report_key(input, keycode, 1);
input_sync(input);
input_report_key(input, keycode, 0);
input_sync(input);
}
acpi_bus_generate_proc_event(button->device, event,
++button->pushed);
break;
is the KEY_SLEEP the back key ?

Jonas.M said:
Code:
case ACPI_BUTTON_NOTIFY_STATUS:
input = button->input;
if (button->type == ACPI_BUTTON_TYPE_LID) {
acpi_lid_send_state(button);
} else {
int keycode = test_bit(KEY_SLEEP, input->keybit) ?
KEY_SLEEP : KEY_POWER;
input_report_key(input, keycode, 1);
input_sync(input);
input_report_key(input, keycode, 0);
input_sync(input);
}
acpi_bus_generate_proc_event(button->device, event,
++button->pushed);
break;
is the KEY_SLEEP the back key ?
Click to expand...
Click to collapse
No, this is the sleep/power phisical button...

Related

(Req) App to route a volume button to camera

Would be nice to be able to have a hard key for the camera. I always thought I just had to have a front facing camera. But I hardly ever use it. Quality to low for me. I'd pay sum good $ for a way to do this. Is it even possible
seconded. Asked for this awhile ago from the guy that was making all those sweet zip mods but i guess he never figured it out.
wampuscat said:
Would be nice to be able to have a hard key for the camera. I always thought I just had to have a front facing camera. But I hardly ever use it. Quality to low for me. I'd pay sum good $ for a way to do this. Is it even possible
Click to expand...
Click to collapse
Here you go bud, unzip and push the file inside to /system/usr/keylayout and enjoy having Volume Up or Search key as a camera button! Should work on any ROM. Please note these files are NOT signed, if someone would like to sign them for me that would be great!
bmxrider4444 said:
Here you go bud, unzip and push the file inside to /system/usr/keylayout and enjoy having Volume Up or Search key as a camera button! Should work on any ROM. Please note these files are NOT signed, if someone would like to sign them for me that would be great!
Click to expand...
Click to collapse
Thanks bmx. Youda Man
wampuscat said:
Thanks bmx. Youda Man
Click to expand...
Click to collapse
No problem, how is it working for you and what ROM? Both are working for me on CM6.
So is this a simple copy and paste or you do mean push it with adb
I'm on baked snack 1.5 BTW
wampuscat said:
So is this a simple copy and paste or you do mean push it with adb
Click to expand...
Click to collapse
Well if you have Root Explorer, you can copy paste, but you need to adb push it if not. Just run
Code:
adb remount
adb push /system/usr/keylayout/
adb reboot
Awesome , I've got root explorer. You my friend deserve a beer
wampuscat said:
Awesome , I've got root explorer. You my friend deserve a beer
Click to expand...
Click to collapse
Well thanks, i don't drink but i guess i could put up a donate link or something if you'd like.
*Edit* Added donate link to my signature.
Well , for some reason it broke all my capacitive buttons. Had to restore to fix em.
Also, don't you lose the volume function of your phone?
wampuscat said:
Well , for some reason it broke all my capacitive buttons. Had to restore to fix em.
Click to expand...
Click to collapse
Hmm, downloading BS 1.6 to check to see if there is a difference in the files.
Bradart said:
Also, don't you lose the volume function of your phone?
Click to expand...
Click to collapse
Yes you do lose the function of them, but some people don't care, but for the ones that do i added the search button one, because i know lots of people don't use/want it.
Here try these.
retro camera app in the market lets you do this but it doesn't let you take full 8mp pictures... maybe you could pull that apart and see how its done then we could possibly see about making a new camera app that allows the larger images? just a thought
Bmx I tried the second one you posted. It does the same to the buttons. After reboot they won't work. It does do Sumpin tho , when I press volume up it makes the center frame turn blue like its gonna do the auto focus thing but then nuthin happens. I appreciate your help
wampuscat said:
Bmx I tried the second one you posted. It does the same to the buttons. After reboot they won't work. It does do Sumpin tho , when I press volume up it makes the center frame turn blue like its gonna do the auto focus thing but then nuthin happens. I appreciate your help
Click to expand...
Click to collapse
Hmm that is really odd, could you pull the supersonic-keypad.kl file for me and post it so i can take a look at it, everything seems to work fine on mine, i do notice i have to tap a little longer on the capacitive buttons, but i didn't change anything but the function of the press, i will have to look more into it for you, sorry it's causing so many issues for you.
bmxrider4444 said:
Here you go bud, unzip and push the file inside to /system/usr/keylayout and enjoy having Volume Up or Search key as a camera button! Should work on any ROM. Please note these files are NOT signed, if someone would like to sign them for me that would be great!
Click to expand...
Click to collapse
here ya go
I'm just having no luck with this tweak. The copy ,paste didn't work. The flashable signed zips didn't work(thanks nichalaas) and can't figure out term. Emulator. When I enter adb recount ,it says access denied. Crapola. I want ,need this tweak as me and the misses are always snapping self portraits of each other
Will this work on stock units at all?

[Q] Unlock screen

Good day, all, this is my first post.
Is there anyway to wake up the screen with other hard buttons instead of the the power button?
I don't feel like pressing the power button so often every time I want to use the device.
Is there any application or setting to change that?
It would be of great help. THX
Try to change:
HKCU\\ControlPanel\Keybd\DevicelockWhenSuspend
from 1 to 0 and soft reset.
fighter7139 said:
Try to change:
HKCU\\ControlPanel\Keybd\DevicelockWhenSuspend
from 1 to 0 and soft reset.
Click to expand...
Click to collapse
my registry is by default set to 0, but i have to press always the power button.
so what's the difference?
Takissc5 said:
my registry is by default set to 0, but i have to press always the power button.
so what's the difference?
Click to expand...
Click to collapse
.........?
Can't find one
Sorry, I am a real newb in this.
All I found under HKCU\ControlPanel\Keybd are ChangeBackVKeyCode and ChangeHomeByPostMessage.
I didn't see DeviceLockWhenSuspend.
I use PMH registry.
Where went wrong? Plz instruct me
Great thx
Takissc5 said:
my registry is by default set to 0, but i have to press always the power button.
so what's the difference?
Click to expand...
Click to collapse
Have you got "DefaultKeyLock" under "keybd"?
philton said:
Sorry, I am a real newb in this.
All I found under HKCU\ControlPanel\Keybd are ChangeBackVKeyCode and ChangeHomeByPostMessage.
I didn't see DeviceLockWhenSuspend.
I use PMH registry.
Where went wrong? Plz instruct me
Great thx
Click to expand...
Click to collapse
These are folders. Below them, there must be some dword keys.
fighter7139 said:
Try to change:
HKCU\\ControlPanel\Keybd\DevicelockWhenSuspend
from 1 to 0 and soft reset.
Click to expand...
Click to collapse
fighter7139 said:
Have you got "DefaultKeyLock" under "keybd"?
under "keybd" i have two folders "changebackvkeyCode" and "ChangeHomeByPost".
DeviseLockWhenSuspend is a dword value set by default to 0. Under "keybd" there is something like (Default) and when i tap on it gives me "name" (Default) and "string" which is empty that is no value or letters.What should I do?
Click to expand...
Click to collapse
Sorry man, I don't know.
For some devices works with "DeviceLockWhenSuspend", for some others works with "DefaultKeyLock".
Are you using any 3rd party lock app?
fighter7139 said:
Try to change:
HKCU\\ControlPanel\Keybd\DevicelockWhenSuspend
from 1 to 0 and soft reset.
Click to expand...
Click to collapse
What is the diference making that?
Waking up device with any key.
It works for some devices.
I dont have that pastes...
I really don't know about mini.
For example, see these:
Leo
http://forum.xda-developers.com/showthread.php?t=673424
Topaz
http://forum.xda-developers.com/showthread.php?t=774479
fighter7139 said:
Are you using any 3rd party lock app?
Click to expand...
Click to collapse
no.. i am amateur...
As i said, I don't know which path must be changed for mini.

How to make a screenshot without using any 3rd party apps.

Welcome everyone! I will make simple & clear.
All you need to do is you need to press home button and power button at the same time. Wasn't that simple? Hope you enjoy!
Wow!! I did not know that my cellphone could do it. Thanks by the tip.
yeahhh useful tip thankss
Nice tips....thanks.....
Ermm...another one..if somebody know it already,just shut up...
U can change ur sreen brightness by holding on status bar and slide it..slide to right-hella bright and hella juice suckers..
Slide it to left-yeahh,u know,reduce the brightness.and save ur battery consumption also...
sent from another space
Yep but this method doesn't work with Kezra's ROM.
Sent from my Galaxy W @1.7GHz
Dude...it's working on all ROM..except windows phone..
Ermm..I dunno.from what I kno,it should work..I hve used all kezra's rom v..and do that with no prob at all.
sent from another space
Maybe it's cos I use LauncherPRO as my default launcher and I have deleted the stock one.
RadBFD said:
Maybe it's cos I use LauncherPRO as my default launcher and I have deleted the stock one.
Click to expand...
Click to collapse
I deleted TWLauncher.apk too, and can take screenshots with no problems at all on Kezra v3!
RadBFD said:
Welcome everyone! I will make simple & clear.
All you need to do is you need to press home button and power button at the same time. Wasn't that simple? Hope you enjoy!
Click to expand...
Click to collapse
awesome m8, very good tip
fender90 said:
I deleted TWLauncher.apk too, and can take screenshots with no problems at all on Kezra v3!
Click to expand...
Click to collapse
I was on about changing your screen brightness by swiping your finger on notification bar
thank you! it works!!!
where the photos saved to?
lionfib said:
where the photos saved to?
Click to expand...
Click to collapse
In my case they are saved in the phone memory.
/sdcard/ScreenCapture
Or u just go to gallery..
sent from another space
Thanks!
I love this forum!!
Neat!!! I looked over the internet and found a lot of button combination like home+back+volume up buttons but none of them worked. Thanks! (deletes screen shot app)
Question: why is it that every time I take screenshot of a video, nothing appears?
I have no idea, maybe you can't do it while watching a video.
RadBFD said:
Welcome everyone! I will make simple & clear.
All you need to do is you need to press home button and power button at the same time. Wasn't that simple? Hope you enjoy!
Click to expand...
Click to collapse
thanks RadBFD, I didn't knew its that easy, infact I was searching for this
Woow thanks for the tips..i dont search but for screen capture and brightnes tips is awesome for newbe like me

【DoubleX】make yourGN fullscreen,1280X720

move to http://forum.xda-developers.com/showthread.php?t=1497558
Anyone verify this?
Michigan Jason said:
Anyone verify this?
Click to expand...
Click to collapse
me,you can see my video
h44444ttp://v.youku.com/v_show/id_XMzUyNTgxOTI4.html
This is the shadiest post I've seen in my entire life.
This is cool! I think I will give this a try tomorrow!
EDIT!
Sorry button savior
lazy_ursache said:
This is cool! What apk you use for virtual buttons (I forgot the name)?I think I will give this a try tomorrow!
Click to expand...
Click to collapse
9,DONE ,now you can use it to replace your framework-res.apk
and install button savior。then start the service

[Q] How To Take Screenshots?

I Want To Know To Take Screenshot ? I Know Thr Is Button In Notification Panel But I Want To Know I Thr Any Other Way To Do It?
husen4u said:
I Want To Know To Take Screenshot ? I Know Thr Is Button In Notification Panel But I Want To Know I Thr Any Other Way To Do It?
Click to expand...
Click to collapse
Hold power and vol down together for about 1-1.5 secs.
warea said:
Hold power and vol down together for about 1-1.5 secs.
Click to expand...
Click to collapse
Thanks A Lot Man. :good:
Hi Everyone...I cleaned this thread up and then closed it. I removed all the posts after the point where this thread should have stopped and the arguing began. There were some really helpful posts that got removed and I am sorry for that!
Thanks for trying to understand!

Categories

Resources