XiaoMi bluetooth remote keylayout files - Nexus Player Accessories

Hope they will be useful to get Xiaomi remote working with Nexus player
Vendor_2717_Product_32b0.kl and Vendor_2717_Product_3200.kl
# Copyright (C) 2013 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# BLE Remote layout file for xiaomi Remote keyboards.
# This file is intentionally very generic and is intended to support a broad rang of keyboards.
# Do not edit the generic key layout to support a specific keyboard; instead, create
# a new key layout file with the required keyboard configuration.
#
key 158 BACK
key 127 MENU
key 108 DPAD_DOWN
key 103 DPAD_UP
key 102 HOME
key 105 DPAD_LEFT
key 106 DPAD_RIGHT
key 115 VOLUME_UP
key 114 VOLUME_DOWN
key 235 SWITCHRESOLUTION
key 28 ENTER
key 116 POWER WAKE
key 97 DPAD_CENTER
key 232 DPAD_CENTER

does this works for you? I add this keylayout to my NP but it doesn´t works. For Nvidia works, with the issue that you have to pair every time when the Nvidia shut off.

thanks for great information..

mposadzy said:
Hope they will be useful to get Xiaomi remote working with Nexus player
Vendor_2717_Product_32b0.kl and Vendor_2717_Product_3200.kl
# Copyright (C) 2013 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# BLE Remote layout file for xiaomi Remote keyboards.
# This file is intentionally very generic and is intended to support a broad rang of keyboards.
# Do not edit the generic key layout to support a specific keyboard; instead, create
# a new key layout file with the required keyboard configuration.
#
key 158 BACK
key 127 MENU
key 108 DPAD_DOWN
key 103 DPAD_UP
key 102 HOME
key 105 DPAD_LEFT
key 106 DPAD_RIGHT
key 115 VOLUME_UP
key 114 VOLUME_DOWN
key 235 SWITCHRESOLUTION
key 28 ENTER
key 116 POWER WAKE
key 97 DPAD_CENTER
key 232 DPAD_CENTER
Click to expand...
Click to collapse
Hey, do you know hot to out the Xiaomi Bluetooth remote in pairing mode?

Can anyone confirm that this is working? @mposadzy, @icthamza3

Related

[Q] sipdroid

i have setup a sipdroid, ipkall, pbexes, and sipsorcery account. however when i try and make a call it keeps asking for a password...?
i am not sure what i have done wrong and have followed the guide on this site and was wondering if someone could help?
also not sure how i need to configure gv or if that may have anything to do with it?? cause when you call my gv number it goes directly to gv and does not ring my mobile
Ok I have just told gv to use every time I make a call. Wasn't sure if that was something I should do or not? Also the password I entered for all my accounts this time worked, yet it said the call could not be completed?
***Edit***
Ok I think I have gotten alot further... It is no longer asking me for a password and is just now saying the call cant be completed as dialed. I have checked my sipsorcery account and it appears that im having an error loading my dial plan??? here is a copy of the plan i have below. also how can i get google to verify my sip number to forward my gv calls to the correct number?
appreciate all the help as i was just transferred to amsterdam and was looking for a low cost way to keep in touch with family and friends.
PHP:
# Copyright(c) 2010 Mike Telis
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations under
# the License.
# Click "View raw file" in the lower right for the best copy/paste view
AREA_CODE = '843' # my area code
GV_USER = '*********' # my GV e-mail address ([email protected])
GV_PASS = '*********' # my GV password
CB_NUMBER = '12064247339' # my 11-digit SIP number (only one)
SPEED_DIAL = { # my speed dial numbers
'1' => '19879879876', # Mom
'123' => '12345678901', # Work
'45' => '17479876543', # Gizmo BFF
'411' => '8004664411', # Google 411
'266' => '[email protected]', # CNN Headlines
}
begin
sys.Log "** Call from #{req.Header.From} to #{req.URI.User} **"
if sys.Out # if outbound call
num = req.URI.User.to_s # Get a string copy of the number to dial
num = SPEED_DIAL[num] || num # Substitute with speed dial entry, if any
case num
when /@/ then sys.Dial num # URI dialing
when /^[2-9]\d{6}$/ # Local call, 7-digit number
num = '1'+ AREA_CODE + num # prefix it with country and area code
when /^[01]?([2-9]\d{9})/ # US number with or without country code
num = '1' + $1 # add country code and truncate number to 10-digit
when /^(011|00|\+)(\d{9,})/ # international number
num = '+' + $2 # GoogleVoiceCall works with '+' prefix only
else sys.Respond 603, 'Wrong number, check & dial again'
end
sys.Log "Calling #{num} via Google Voice"
sys.GoogleVoiceCall GV_USER, GV_PASS, CB_NUMBER, num, '.*', CB_NUMBER =~ /^1747/ ? 7 : 1, 30
else # sys.Out
sys.Dial "#{sys.Username}@local"
end
rescue
sys.Log("** Error: " + $!) unless $!.to_s =~ /Thread was being aborted./
end

[MOD][SK17i][Ver:1][ALPHA] Playstation GamePad 14/8/12

First: I am not responsible if this mod destroys your device!
WARNING: It is only for the Xperia Mini Pro (sk17i)
PlayStation GamePad​
This mod just remaps the hardware keyboard's buttons to look like the playstation one's.
Remaped Buttons:
W --> up
A --> left
Z --> down
D --> right
I --> triangle
M --> cross
J --> square (Actually "BACK" button)
L --> circle
Q --> R1
BackSpace --> L1
< --> start
> --> select
Requirements:
ES file explorer (Market Link: https://play.google.com/store/apps/...sMSwxLDEsImNvbS5lc3Ryb25ncy5hbmRyb2lkLnBvcCJd )
Root
Terminal Emulator (Market Link: https://play.google.com/store/apps/...251bGwsMSwxLDEsImphY2twYWwuYW5kcm9pZHRlcm0iXQ.. )
ClockWorkMod Recovery.
The attached file below.
This mod will place two files in the system folder
Gamepad (at /system) . It is a script that backups the qurrent keyboard mapping and replace it with the gamepad mapping!
gamepad.kl (at /system/usr/keylayout) Actually the new buttons
How to install:
Backup ROM.
Flash the attached file at ClockWorkMod Recovery.
Install Terminal Emulator and ES File Manager.
Open ES File Manager, go to Settings, Check "Root Explorer", "Mount File System", "Backup System App".
Pess "Allow".
Go to the terminal Emulator and type "su".
Press "Allow".
Then type "sh system/gamepad".
The device will reboot. Once it boots open a game and...
Enjoy!
How to uninstall:
Uninstall works only since you haven't changed ES File Manger Settings from the "How to install" proccess.
Open ES File Manager.
Press "HOME" button.
Open Terminal Emulator and type: "su".
Press Allow if needed.
Type "sh system/gamepad".
The device reboots...
Done!
I'm telling you to open the ES File Managen in order to mount the /system Read-Write! I will fix it in a later version!
Credits to:
BPaul (for the idea!)
Download: PS_Gamepad_v1.zip
Tested only on stock ics 4.0.4...
ChangeLog:
Version 1: Initial Release
this is your mod ? thanks anyway
Why everyone is so suspicious here? The original idea came from: http://forum.xda-developers.com/showthread.php?t=1503977 . I modded BPaul's files so they meet our device, taken his permissions and voila!
can you change deleting gamepad.kl? then we can change normal and gamepad mode without always paste gamepad.kl sorry for my bad english i'm from poland...
hye friend
this is work for ics custom rom,,i use ics serenity v2.1,,thanks for anwers:fingers-crossed:
It's Not Working on Some Key since there's a change, i've edit "gamepad.kl" to this
Code:
# Copyright (c) 2009, Code Aurora Forum.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
#
key 102 HOME WAKE
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
key 528 FOCUS
key 212 CAMERA WAKE
key 17 DPAD_UP WAKE_DROPPED
key 44 DPAD_DOWN WAKE_DROPPED
key 30 DPAD_LEFT WAKE_DROPPED
key 32 DPAD_RIGHT WAKE_DROPPED
key 23 BUTTON_Y WAKE_DROPPED
key 38 BUTTON_B WAKE_DROPPED
key 36 BUTTON_X WAKE_DROPPED
key 50 BUTTON_A WAKE_DROPPED
key 14 BUTTON_L1 WAKE_DROPPED
key 16 BUTTON_R1 WAKE_DROPPED
key 56 MENU WAKE_DROPPED
key 108 BUTTON_START
key 103 BUTTON_SELECT
which game can be play by this mod ?
fifa12 ?pes12?nfs most wanted ?
is it can be use to play ppsspp emulator ?
you can play fifa 12 xperia play version & asphalt seris & virtual tennis
sorry for my bad English
Works on CM 10.1
but buttons are not correst, W is left and Z is right and so on
fchaster said:
which game can be play by this mod ?
fifa12 ?pes12?nfs most wanted ?
is it can be use to play ppsspp emulator ?
Click to expand...
Click to collapse
see here
http://forum.xda-developers.com/showthread.php?t=1217060

[TUT] Disable Capacitive touch buttons+Home key on Xperia 2011 MDPI

[Only for those who don't like Capacitive touch buttons+Home key]
1 First of all make sure you have on-screen
buttons enabled. If you don't have on-screen buttons then just go to this thread to find out how to enable them-
http://forum.xda-developers.com/showthread.php?t=1940842
2 Download a root explorer or any similar explorer like that.
3 Navigate to
system>usr>keylayout, and look for a file named as " cyttsp_key.kl ".
4 Select it and open it as text with Root explorer's text editor.
5 There you will find following lines-
#KEY_MENU, KEY_BACK
key 139 MENU VIRTUAL
key 158 BACK VIRTUAL
6 Now all you have to do put # before these lines as shown below-
#key 139 MENU VIRTUAL
#key 158 BACK VIRTUAL
And done.
Now if you want to disable home key also then-
7 Again navigate to
system>usr>keylayout, and look for a file named as " pm8058-keypad.kl ".
8 Select it and open it as text with Root explorer's text editor.
9 There you will find following lines-
# this corresponds to kernel/arch/arm/mach-msm/keypad-hallon.c
#
# defines for values are in frameworks/base/include/ui/KeycodeLabels.h
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
# KEY_HOME
key 102 HOME WAKE_DROPPED
# CAMERA Related Key
key 212 CAMERA
key 528 FOCUS
10 Now again all you have to do put # before the line " key 102 HOME WAKE_DROPPED" as shown below-
# this corresponds to kernel/arch/arm/mach-msm/keypad-hallon.c
#
# defines for values are in frameworks/base/include/ui/KeycodeLabels.h
key 115 VOLUME_UP WAKE
key 114 VOLUME_DOWN WAKE
# KEY_HOME
#key 102 HOME WAKE_DROPPED
# CAMERA Related Key
key 212 CAMERA
key 528 FOCUS
11 Now just reboot and DONE!
This tutorial should be applicable to Xperia Ray users also because it has same button like our devices.
Press thanks if you think this post is useful to you.
Nice guide, been searching for this while I'm using Paranoid Android ( 3 months ago )
via XDA for Timescape™
Diaz1999 said:
Nice guide, been searching for this while I'm using Paranoid Android ( 3 months ago )
via XDA for Timescape™
Click to expand...
Click to collapse
Mankotialovely said:
Click to expand...
Click to collapse
Are we can disable the "big & ugly" home key with adding "#" in front of HOME_KEY
via XDA for Timescape™
Diaz1999 said:
Are we can disable the "big & ugly" home key with adding "#" in front of HOME_KEY
via XDA for Timescape™
Click to expand...
Click to collapse
Yes my friend, sure.
Home key is also added in this tutorial.
Great but one question, after performing this will keys work in cwm or not ?
vivek856 said:
Great but one question, after performing this will keys work in cwm or not ?
Click to expand...
Click to collapse
Keys will definitely work in cwm.
Disable Home
Thanks for the idea, and it works,
But my Home key is nonfunctional , so i would like to change my home key action into my camera key . IS it possible, I mean when i press camera key i want to wake up my 4n
sesath said:
Thanks for the idea, and it works,
But my Home key is nonfunctional , so i would like to change my home key action into my camera key . IS it possible, I mean when i press camera key i want to wake up my 4n
Click to expand...
Click to collapse
Yes it is possible but before that can you provide me little info about your rom and phone ?
Hello. Can make longpressing the menu button to bring tasks list? (multistak app list). Tq!

[Q] Huawei U8350 Icy Tiramisu Keyboard

I am trying to fix the Physical keyboard to have full functionality (smiley and symbol keys). From what I can tell the issue lies in QWERTY.kl which is missing a few lines from the stock ROM
Code:
#key 11 0
key 11 SMILE
#/* < BU5D09842 weixinghai 20100513 begin */
key 163 MEDIA_NEXT WAKE
key 165 MEDIA_PREVIOUS WAKE
#/* BU5D09842 weixinghai 20100513 end> */
key 194 SYM
Now I've tried editing the qwerty.kl that comes with Icy Tiramisu with various text editors and when I reboot it's as though the keyboard is not being recognised at all. I've even just added 1 line (key 194 SYM) with the same result.
I've had a look at the fixed HuaweiIME.apk that zenaufa made for this ROM and it seems to contain all the correct elements for the smiley and symbol button to work and from what I can tell the changes to qwerty.kl should work. Can anyone give me any insight into what could be going wrong?

Enable On-Screen Btn and Disable hw Btn

First of all, root is required to edit these files.
Basically, all you have to enable the software buttons, is add 'qemu.hw.mainkeys=0' to the build.prop in /system and reboot.
Deactivate the hardware keys.
Go to /system/usr/keylayout and open 'Generic.kl' in a text editor and find the lines that say 'key 139 MENU WAKE_DROPPED', 'key 158 BACK WAKE_DROPPED', and 'key 172 HOME' and place a # at the start of each line like:
#139 MENU WAKE_DROPPED
#158 BACK WAKE_DROPPED
key 172 HOME (I would not recommend and disable home)
Take care here because if you add a # to the wrong line, you won
And last, navigate to system>usr>keylayout. We will be looking for a file called "sec_touchkey.kl".
Out the keys you don't want to work with a #.
So if you are like me and think the home button is fine, it will look like this.
#key 139 MENU
#key 158 BACK
key 102 HOME
key 217 SEARCH
UPDATE: For Customize Navbar Go to Settings-->Buttons
Just remember to remove the # - before you update the Cyanogenmod version to a newer.

Categories

Resources