Detecting S pen side button - Galaxy Note II Q&A, Help & Troubleshooting

I'm on a mission to detect when a S pen button is pressed. I hope someone with more knowledge will help me.
So what I want to do is make S-pen button trigger something that apps can read (so I could use this with emulators for example).
What I have figured so far:
Freezing FlashAnnotate, SuggestionService and Mini S Note will disable existing side button functionality, so it is not in a way if you would use button for another purpose
Pen will send BTN_STYLUS event to the kernel
E-PEN Side ON (or something like that) shows up in system log (dmesg)
My current idea is to make a background service that will keep reading system log and trigger key events.
But there must be another way?

Related

Maybe I am not asking the right question

Does anybody know where I can get a program that simulates the Back Button on many smartphone and some ppc devices. It is a "Go Back" aka "previous" aka "return" command that could be assigned. I would like to assign it using Hbutton to one of the buttons on my 8125.
I use to have a smartphone and now have a ppc. It is probably the button I used and missed the most. Easy to just go back a step if you made a wrong entry/selection etc, (kindof like the "up" command in file explorer, but different and a little more involved than the Alt-Tab for switching programs)... This would take me to the next level.
Thanks
CG
It's not that you are asking the wrong question, its that there is no answer...
You see all that 'back' button does is send the same code as 'Esc' key on your PC keyboard. (thats 0x27 if you are interested).
There are probably several utilities that can simulate this, but the problem is the whole OS and the apps designed for PPC are not made to take in to account the existence of a 'back' button so they just won't respond to it.
(Well maybe some will, but it will never work as smoothly as on smartphone and may have some undesired side effects).

Disable directional pad

I have an issue, i have the htc wizard running windows mobile 5, left on the directional pad doesn't work when its pressed, but more often than not when you open anything it'll act as if its being pressed constantly, what i'm wondering since i attempted to take it apart and just didn't feel comfortable continuing to that point is, is there a way to just disable that button like in the registry, or if there's a plugin of some kind that allows for advanced button management? thanks
Nevermind, was able to find one, thanks

App for enter key disabling/changing?

Hi guys,
My X1 has developed a really annoying fault. It seems the enter key (the optical joystick button) is getting randomly pressed, which totally messes up my texting (it creates a new line) and my calls (it puts the phone in and out of hold).
This is not fixed by using the "disable optical joystick" option, which just stops the joystick functionality, and not the actual press Enter functionality.
Is there some way or App i can use to fiddle with what this key actually does? Im a newb at all this kind of stuff, but it really is life or death for the phone.
Thanks for any help you can give.
John
Give AE Button a try, could probably help you.
(Do not remembre if it is still free, however the idea is: search the forum for a button mapper program)

Disable button on stylus

I forget the name of the button on the stylus that launches the wheel thingy, but it would be great it it could be disable completely. I use Lecturenotes and it's great that I can disable the wheel pop up, but I can't disable the button completely it seems. So if I am writing and I accidentally press it ( which happens all the time) at least the wheel pop up doesn't appear, but the word I am currently writing does disappear and I have to constantly write it again. I have the Bamboo Feel as well and it's awesome ergonomically speaking, but again it's the same thing. I tend to squeeze tightly when I write and I don't know that I can train myself to not accidentally push the button on the stylus. Would be nice if it could just be completely disabled.
I'm actually interested in this too, drives me nuts sometimes
Same here, I think it was put in a very bad location on the stylus.
Sent from my SM-P600 using xda app-developers app
Just go to Settings and in the tab Controls look for the S pen menu.
There you can disable the air command
Sent from my Samsung Galaxy Tab 10.1 Edition 2014
yeah, that stops the pen from bringing up the menu when you press the button but what we are looking for is what disables the pen button completely. So like, when you are writing the pen doesn't automatically switch into a select mode because you hit the button with your finger.
@arcadiua, JarkMackson & FLGibsonJr: This Samsung-specific functionality is provided by the system, no app can interfere here, as these touch events are not send to the app. I know of LectureNotes' users that have broken the S-pen button to circumvent the problem (either of the original or a second S-pen), but there are less destructive options, for instance to use a different stylus or to place the S-pen inside a `holder´ (which has the pleasant side-effect of increasing the S-pen size to that of a normal pencil).
if you don't mind a permanent solution. just pop off the button - it's pretty easy if you use a razor, just have something to catch the button when you pop it off. you should be able to then modify the button to not push the clicky thing.
while you're in there, you see to pots that you can turn to modify the sensitivity and offset of the pen if you're having any problems with them. i had posted a tutorial in the OG note 10 forum.
madsquabbles said:
if you don't mind a permanent solution. just pop off the button - it's pretty easy if you use a razor, just have something to catch the button when you pop it off. you should be able to then modify the button to not push the clicky thing.
while you're in there, you see to pots that you can turn to modify the sensitivity and offset of the pen if you're having any problems with them. i had posted a tutorial in the OG note 10 forum.
Click to expand...
Click to collapse
It worked!!! Just popped the button off with a razor, and then used that same razor to saw off the little nub at the end of the button that apparently would signal the button press, and then popped the button back on.
No more brief loss of the ability to write when I am in the middle of teaching.
Thank you!
jesus, thats super annoying. I need an eraser button for drawing. Looks like i need to buy a damn 3rd party stylus. Would be nice if the 10.1 at least supported tilt, then it would be worth dropping some money on an intuos pro pen...
I also use Lecture Notes as a student however I love using the stylus button. Lecture notes has the capability of using a single click as an eraser and a double click as undo.
BUT the most recent update has prevented me from using this feature any longer..
Now, every time you click the button it brings up the Air Command wheel and there is no option to turn it off.
Doesn't look like there is a workaround for this.. is there any way I could bring this up somewhere to raise awareness to the devs so they can enable an option to turn it off?
@mojo_jodroid: If you cannot disable `AirView´, the stylus button click is processed by Android/`AirView´ and does not reach LectureNotes.
acadoid said:
@mojo_jodroid: If you cannot disable `AirView´, the stylus button click is processed by Android/`AirView´ and does not reach LectureNotes.
Click to expand...
Click to collapse
i'm not sure what you mean by "the stylus button click is processed by android/android..."
@mojo_jodroid: It means that the input event `user presses stylus button´ is intercepted by Android/`AirView´ and removed from input processing (as if it never happened).

[Q] any app to make hardware buttons (volume) to control touch at a certain point?

This is probably the weirdest question asked but here's my scenario
I work part time at samsung store. My shift starts in the morning when we open. Naturally, we have to turn on all the TV's so i use my HTC's IR blaster (Range is amazing) to turn on all the TV's
What i want: an app (tried searching if it exists. no success) which can make the volume buttons function as if the screen is pressed in that particular point, when app running on background
I.E, if i press volume down, it performs the action as if the top right hand side of my phone is being pressed by my finger (Acts like a mouse i guess?)
The reason i want this is because the IR app i use has the buttons really close to each other, i end up pressing other buttons making the TV do different stuff (My fingers are chunky) and also this method would be very easy as i need to point my phone and press the physical button instead of constantly locating the button (Physical buttons are always awesome)
Maybe assign the volume up as if the left corner of my phone is being pressed, where the mute button is
Please tell me if an app exists or if i'm talking complete nonsense:silly:
If it doesnt make sense, read through again or ask me for a brief explaination. THanks:laugh:

Categories

Resources