Hello XDA
I have been a passive reader to XDA for a very long time. Finally came the day when “search” is not enough. :angel:
Short story. I’ve installed BT/USB Joystick Center. Configured it, and then I realized I have a problem.
For the right stick axis are messed up. Z is switched with Rotate Z so they are like rotated 90 deg to the left.
I have made some research and found out it can be fixed by specific .kl file.
After checking my Vendor and Product ID (0xf30 and 0x112) converting it from hexadecimal to decimal (3888 and 0274) and changing file name (Vendor_3888_Product_0274.kl) I’ve pasted it to system/usr/keylayout. At the end I removed all files form the folder (ofc except Generic.kl).
Many users reported it did the trick for them but for me it didn’t.
Any ideas how to fix it?
Phone: GT N7100
Rom: stock 4.1.2 + root
Kernel: stock
Pad: Saitek P380
Part of .kl file that should fix the problem:
key 0x122 BUTTON_A
key 0x121 BUTTON_B
key 0x123 BUTTON_X
key 0x120 BUTTON_Y
key 0x126 BUTTON_L1
key 0x127 BUTTON_R1
key 0x124 BUTTON_L2
key 0x125 BUTTON_R2
key 0x128 BUTTON_SELECT
key 0x129 BUTTON_START
key 0x12a BUTTON_THUMBL
key 0x12b BUTTON_THUMBR
axis 0x00 X
axis 0x01 Y
axis 0x05 Z
axis 0x03 RZ
axis 0x10 HAT_X
axis 0x11 HAT_Y
Bump
Bump
Related
Hi, I am trying to determine the physical screen resolution of my Desire, but it always returns 320x533 ???
Should not it be 480x800?
It's a simple code i use:
Code:
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
WindowManager w = getWindowManager();
Display d = w.getDefaultDisplay();
int width = d.getWidth();
int height = d.getHeight();
DisplayMetrics metrics = getApplicationContext().getResources().getDisplayMetrics();//new DisplayMetrics();
int mh = metrics.heightPixels;
int mw = metrics.widthPixels;
TextView mainText = (TextView) this.findViewById(R.id.textview);
mainText.setText("Width:" + width + "\nHeight:" + height + "\nMetrics.Height:"
+ mh + "\nMetrics.Width:" + mw + "\n");
}
I just run the HellowWorld example in eclipse, with the Desire attached.
It always returns 320x533
Never mind. I had to set in the manifest :
<supports-screens android:anyDensity="true"/>
Then it returns expected resolution.
I'm trying to find out if there's a way to adjust the brightness of the keyboard light and capacitive buttons light. I know it can be done with the galaxy 2 by using extweaks with the siyah kernel. Is there any way to do the same thing with the captivate glide?
yes, look at https://github.com/spyke555/android_device_samsung_i927/blob/master/liblights/lights.c
You can simply
echo 5 >file
Where file one of those:
char const*const PANEL_FILE = "/sys/class/backlight/pwm-backlight/brightness";
char const*const BUTTON_FILE = "/sys/class/misc/melfas_touchkey/brightness";
char const*const KEYBOARD_FILE = "/sys/class/sec/sec_stmpe_bl/backlight";
char const*const NOTIFICATION_FILE_BLN = "/sys/class/misc/backlightnotification/notification_led";
And number is adjustment of the light, I'm not sure witch light support different value.
Thought i'd post this useful hidden feature to test/check your digitizer/s-pen as well as pressure on Note 8 (should likely work for mouse too)
It can be enabled/toggled under Settings > Developer options > Input > Show Pointer location
It will draw cross hairs at your touch location as well as give you some data points.
such as described below
P =1 when touched; Otherwise P=0
dx/dy (delta x, delta y) (offset between location touched and location released, basically drag/stroke offset)
X,Y Screen Co-Ordinates of your touch location (when touched).
Xv/Yv (velocity tracker values for Hori/ Vert resp)
Prs: Pressure Level (0>P<=1 for s-pen, P=1 for finger ) (max pressure i have been able to achieve is around 0.88 that too by adjusting the internal controller inside the s-pen.)
Size: size of your touch region co-ordinate (with finger) value is Zero when using s-pen.
Hope it helps the curious!
for those who want to look into some details , nothing better than the android source code (java) :
https://android.googlesource.com/pl...roid/internal/widget/PointerLocationView.java
I have a A505FN with the rom A505FNXXS4BTCA - XEF. I flashed my device with the TWRP patched and the custom splash screen.
It was a success because I'm rooted now, but not whitout problem.
Since I have an important border on my device.
https://zupimages.net/up/20/20/uvwe.jpg
I have for example + 8mm of border on the bottom of the screen..And I can't remove it.
It's an important problem. I restored the rom stock, but the border remained... Could you help me ?
I taped the commande in adb dumpsys display | grep mBaseDisplayInfo
The answer is:
mBaseDisplayInfo=DisplayInfo{"Écran intégré, displayId 0", uniqueId "local:0", app 1080 x 2340, real 1080 x 2340, largest app 1080 x 2340, smallest app 1080 x 2340, mode 1, defaultMode 1, modes [{id=1, width=1080, height=2340, fps=60.000004}], colorMode 0, supportedColorModes [0], hdrCapabilities [email protected], rotation 0, density 420 (403.411 x 404.326) dpi, layerStack 0, appVsyncOff 0, presDeadline 17666666, type BUILT_IN, address {port=0}, state DOZE_SUSPEND, FLAG_SECURE, FLAG_SUPPORTS_PROTECTED_BUFFERS, removeMode 0}
Thank you
It seems to be normal for me, may it be you had a dark background image before? 8mm including the navigation bar? You can put your phone under some ligth and see the reel edges of the screen, if you see an extra black border then you have a problem .there is ~3mm buttom border in the A50 .
Looks normal to me
Hi Guys,
Just wondering if there is a way to change the accessibility binding on a S20 Ultra.
At the moment I have it set on the default (i think),
where on power+vol-up = reverse colour (negative view)
and power+vol-down = take screenshot.
Is it possible to reverse this so the power+vol-down = reverse colour, or set the reverse colour (negative view) to the double power press, instead of the camera.? Why? because i toggle between the regular view and negative often, but don't need the screenshot. And pressing, the power+vol-down with the thumb is allot easier.
Thank you.