[Q] key layout and lirc - Android Q&A, Help & Troubleshooting

I've got an Ouya running CM11.
For input I'm using both a lenova n5901 and a Logitec K700.
I've given then both device specific .kl's for the lenova turning the orange key to menu and home to home, on both turning win key to search.
My question would be utilizing all the extra keys on the k700. I'd like to use em to control other devices over irda.
There are apps like irdroid and External Keyboard Helper Pro that would seem to able to handle it. Problem being that the Ir blasters for android use a stereo jack, which the ouya lacks.
So, would it work with a usb sound card, or will it work with a usb/usb-serial-irda adapter?
I can recompile the kernel if additional drivers are needed.
Alternately is there any useful droid keys beyond home, menu and search in kitkat?

Bump
No-one using a PC keyboard? These droid set top boxes are getting common, control scheme is underutilized

Related

[Q] USB keyboard 'ctrl' key issue

One of the reasons I got my g table is to use it as a substitue for my labtop.
Even though my laptop is small enough, sometimes it is hard to cary it arround, as I keep it by my side 24/7. As I do most of my work on the super computer using ssh, I though the 'g tablet' can replace my laptop. USB keyboard seemed to work just fine until I tried control key on the keyboard. Control key simple does not work at call on g Tablet(Probably on all android system), and ctrl key is so critial to me as I use emacs! Emacs user would know what no control key means to emacs. Thus, I wonder if anyone knows how to utiliza the control key on the USB keyboard. Softkeybord can not be a solution considering I would use control key more than 1000 times per connection. Thank you.
Is Bluetooth keyboard working better?
I have seen lots of posts about using bluetooth keyboard.
I wonder if ctrl key and alt key are working with bluetooth keyboard.
Anyone?

[Q] Using USB Gamepad plugged in PC to control phone

Hello to all, sorry for the long title but i wanted to make it clear.
Here's the situation, I sometimes play emulated games on my Galaxy S3 and as you may realize, the virtual on-screen gamepad isn't very comfortable when on my home (it gets the job done if i'm using it as a portable console) so I decided that i wanted to use an USB Gamepad i own to play my games in a more comfortable way. I know i can just go and get an OTG cable, and i will try to get one these days, but I fear they might not sell them here and I'm not a fan of buying stuff online.
My initial solution was to use My Mobiler for Android , as it allows to use the pc keyboard and mouse on the phone after connecting via wifi or usb, together with Xpadder, a software to map my gamepad to keyboard keys. While this gets me to the point of being able to navigate my phone using the gamepad, when i try to set up the Input in the emulators they will make a distinction between the arrows and Return keys (which seem to be taken as the Hardware DPAD buttons, that's why i can navigate the phone and use those functions in-game) and the other keys in my physical keyboard, which won't work if mapped to game buttons (A,B,L,R, etc) but will work if mapped to emulator options such as Savestates or Fastforward.
This is really disappointing as I actually thought i could save on the OTG cable by using this, but being things as they are, I'd like to ask if anyone can give me a hint on how to make this work the way I want it, or if by any chance someone (devs specially) would be up to the task of developping a server/client app that would work as Gamepad-to-Phone version of Xpadder (mapping the gamepad buttons as Phone-Hardware keys (Camera, Power, Back, Menu, Volume Up, Volume Down, DPAD) with MyMobiler's capabilty to connect with the phone via wifi and send remote input to it by installing an "Input Method" as well. I know this might require root but my phone is rooted already so that'd be fine for me, and I'm sure I'm not the only one that would use such an app to play games more easily without buying extra cables, which is why i'd ask anyone that decides to take on such a project to make it free because it isn't a very profitable project as people would rather buy an OTG cable or use other bluetooth/wireless controllers to play instead.
So any help/suggestion/advice will be greatly appreciated
Sorry for the double post, but I thought this would be better for those who already saw the topic, in case they're interested on doing the same I did.
In the end I managed to make it work with My Boy (Gba emulator) by using MyMobiler's hardware mapping for volume +/-, back, search and menu buttons and the DPAD (F10,F9, ESC, F2, F3, arrows and Enter) and now i can more or less play emulated games, as long as they don't require any buttons aside from select, start and 4 other buttons. As I said, emulator's own actions such as save, load, fast forward or opening emulator settings can be mapped to any other non-hardware key.
Still it would be great if there was an Input Method that would make the emulators recognize other hardware keys (as if there was a complete hardware keyboard for example), I've tried GBC.Emu with my workaround and it's useless.. It recognizes the volume +/-, menu and search buttons as Virtual; and only the Back and DPAD as mobiler_keyboard. making it unplayable this way (you'd need at least 4 buttons aside from the Dpad).
Exactly what I was looking for....
This is somewhat similar to what I am looking for.I am searching for a tool that would send information to my android over local Wifi (same router) via usb. For example, I want to connect my xbox360 controller to my pc and use it as a game controller for my android over wifi. I tried OTG, but unfortunately my hardware dont support it...and I wondered if at all this idea would work. Any help here?

WORKING: Sony NSG-MR5U Bluetooth Remote

I was able to successfully pair my Sony NSG-MR5U Remote (from my old Google TV NSZ-GS7)
Keypad works great, directional pad works but the center button on the pad does not function as the "select" button. If you press the "
Enter" key, that serves as the select button as well as the play/pause option on youtube. The mouse/touch pad also does not seem to work as well. The back button and the home button work fine as well. Still playing around with it trying other buttons to see what they do in other apps.
To enable or force pair mode:
Hold Fn + the center button between the navigation arrows on the remote side. you will notice the green light flashing in a slightly different pattern than while pressing the buttons.
The 1st try found the remote but failed when trying to pair. I played around with the Fn + center button a couple more times during paring mode and it finally paired successfully.
This will more than likely work with NSG-MR7U as well.
chibluboy said:
This will more than likely work with NSG-MR7U as well.
Click to expand...
Click to collapse
I can verify that all that you have said is true for the NSG-MR7U as well. Tried it all this morning.
Someone from the kodi forums seems to have worked on a patch for the Linux Kernel, but it seems abandonned as the last threads are pretty old.
Here is the informations I've found :
The kodi forum (look the jflatt post where he says everything but the accelerometer works) : http://forum.kodi.tv/showthread.php?tid=153504
The patch (by Jason Flatt, or jflatt) : http://www.spinics.net/lists/linux-input/msg26324.html
I don't have any coding abilities, maybe some xda-dev could help create a working module for Android.
Yes...mine works as well, however the center ok button on the directional pad does not work for some reason...very annoying.
Select/OK Button
Well I got the select button in the middle of the direction pad working by installing External Keyboard Helper an app in the play store (web play store!). I then created a custom keyboard layout and programmed the select button as enter!!! Almost perfect, but still no mouse!
I would totally buy one of these if there was a way to get the mouse working! This remote was very well designed and would go great with my NP
I had been trying to get this damned remote to work with my stuff for years. short of finding a developer to create a proper working driver for it, i dont think we will have much success getting it to work completely functional with anything.
Although, i wonder if anyone with the original google tv player this remote works with, can somehow find and pull the android drivers from it? maybe someone here can tweak the driver to make the mouse and other functions work with the nexus player?
I've been playing around trying to figure something out with a different device, and found that in the root directory, going into /system/usr/keylayouts brings up a few files with a .kl extension to them. Its in these kl files that some devices are configured with scan codes. If we can find the proper scan codes for this remote, as well as the device and vendor ID, I think we might be able to create our own kl file specifically for this remote to make it do whatever we want. I think for everything except the mouse/touchpad unfortunately.
Personally im busy and wont be able to jump right onto looking into this, but if anyone is willing to beat me to it, a little research might help configure it. i dont think the mouse/touchpad is affected by this file though: there was only one other file in the folder for a device with an existing mouse/touchpad (the logitech revue, to be exact) and i dont recall seeing any sort of settings related to a touchpad or mouse other than the left and right mouse buttons, but its a step in the right direction.
You can find the device and property ID by pairing the remote to your windows pc, going into device manager and looking in properties for the remote. Not sure how to find scancodes, but if anyone is familiar with Event Ghost, I seem to recall being able to play with the remote in that program (paired to my pc) and i think i was able to pull up scancodes through the programs log. not positive though. just mentioning all of this because unless someone beats me to it, i might not be able to get to it for another month myself.
do you all think that a PS3 or PS4 remote will connect to the nexus player
Not working for me
Any idea why?
I Hold Fn + the enter key between the navigations buttons on the NSG-MR7U, hit the "add accessory" button on the Nexus Player, but it just goes on searching for accessories without finding anything. The led on the remote's side panel is blinking quickly, but as said nothing seems to be happening.
Thanks,
Roy
With the Sony Nsz gs7 remote, will I be able to control my TV & Sony audio system all by itself without connecting the Sony google tv? I understand Sony google tv has loop through and IR sensor which could be programmed for our devices. My requirement with TV & audio system is going to be very limited like power, input toggle & volume controls. Can anybody please confirm?
shahul_555 said:
With the Sony Nsz gs7 remote, will I be able to control my TV & Sony audio system all by itself without connecting the Sony google tv? I understand Sony google tv has loop through and IR sensor which could be programmed for our devices. My requirement with TV & audio system is going to be very limited like power, input toggle & volume controls. Can anybody please confirm?
Click to expand...
Click to collapse
You will not be able to control other items of equipment like you did when it was connected to the NSZ-GS7. The remote is a Bluetooth remote only. It was able to do so because the NSZ-GS7 had the ability to transmit IR. I use it connected to my media server PC, which also has an IR receiver/transmitter, and Event Ghost to turn on/off my system, control volume, and switch inputs (and d-pad and transport controls if I'm using Windows Media Center or Power DVD). But it can only be connected to a single device at a time, so I still use the stock remote to control the Nexus Player. Yeah, it's not a single remote solution, but it's the best I could come up with.
ninja_rancher said:
You will not be able to control other items of equipment like you did when it was connected to the NSZ-GS7. The remote is a Bluetooth remote only. It was able to do so because the NSZ-GS7 had the ability to transmit IR. I use it connected to my media server PC, which also has an IR receiver/transmitter, and Event Ghost to turn on/off my system, control volume, and switch inputs (and d-pad and transport controls if I'm using Windows Media Center or Power DVD). But it can only be connected to a single device at a time, so I still use the stock remote to control the Nexus Player. Yeah, it's not a single remote solution, but it's the best I could come up with.
Click to expand...
Click to collapse
Thanks for the detailed response. I hoped Sony ps3 remote would solve my problem but unfortunately I was not able to pair to Nexus player because of the pairing code issue. If only it had worked it would have been my ideal single remote.
---------- Post added at 05:15 AM ---------- Previous post was at 05:11 AM ----------
ninja_rancher said:
You will not be able to control other items of equipment like you did when it was connected to the NSZ-GS7. The remote is a Bluetooth remote only. It was able to do so because the NSZ-GS7 had the ability to transmit IR. I use it connected to my media server PC, which also has an IR receiver/transmitter, and Event Ghost to turn on/off my system, control volume, and switch inputs (and d-pad and transport controls if I'm using Windows Media Center or Power DVD). But it can only be connected to a single device at a time, so I still use the stock remote to control the Nexus Player. Yeah, it's not a single remote solution, but it's the best I could come up with.
Click to expand...
Click to collapse
Thanks very much for this info. I am yet another person who loves this little remote. I have the MR7U and am attempting to use it with my windows 7 Pc running Kodi. So far I got it paired to my Samsung Note 5 just to play around with. I still need a Bluetooth dongle for my PC, are there any you recommend? Also, I am interested in what you used as an IR transmitter for your PC. I read about Eventghost and have an idea of what it's about. I did notice what you said about the "ok" button not working. I have a harmony remote with IR and RF but I really need the keyboard so I've committed to the idea of using the MR7U and retiring the Harmony. I'm confident I can get the MR7U to do what I want with kodi, but I want to be able to use it to also transmit IR to my Sony receiver and Bravia TV. Can I use the PC IR transmitter to turn on the TV, control the volume on my receiver and control Kodi simultaneously? Any info shared is greatly appreciated!
Jaygatesny said:
Thanks very much for this info. I am yet another person who loves this little remote. I have the MR7U and am attempting to use it with my windows 7 Pc running Kodi. So far I got it paired to my Samsung Note 5 just to play around with. I still need a Bluetooth dongle for my PC, are there any you recommend? Also, I am interested in what you used as an IR transmitter for your PC. I read about Eventghost and have an idea of what it's about. I did notice what you said about the "ok" button not working. I have a harmony remote with IR and RF but I really need the keyboard so I've committed to the idea of using the MR7U and retiring the Harmony. I'm confident I can get the MR7U to do what I want with kodi, but I want to be able to use it to also transmit IR to my Sony receiver and Bravia TV. Can I use the PC IR transmitter to turn on the TV, control the volume on my receiver and control Kodi simultaneously? Any info shared is greatly appreciated!
Click to expand...
Click to collapse
Even though it's slightly off-topic for using the MR5U/MR7U with the Nexus Player, I'll try and answer some of your questions. First, as far as the PC Bluetooth dongle goes, I just bought a generic cheap one off of eBay for under $5 (USD). Just search for 'usb bluetooth dongle' or 'usb bluetooth adapter'. As far as the "OK" button not working, I believe that was only when it was directly paired with the Nexus Player. All buttons seem to work fine for me when paired with my PC.
Second, I am using a Gateway USB IR receiver (like http://www.ebay.com/itm/GATEWAY-USB...967892?hash=item33ad7cc714:g:PUIAAOSwnH1WWmvY). Also cheap, also off of eBay. It used to be used for receiving IR as well when I had the Sony NSZ-GS7 and I had it blasting its TV and receiver IR codes to my PC instead. But now I just use it as an IR emitter controlled by EventGhost.
You should be able to do everything you want as far as device and app control. The only gotcha I encountered is that I had to disable the Windows 'Human Interface Device Access' service (hidserv). Because the remote pairs as a HID device, there are some buttons that Windows was interpreting automatically. Like the volume and menu buttons. If you want volume to control your receiver, then you need to disable the service to prevent Windows from adjusting its own volume. But it's all very doable. I use the MR5U remote to power my enter system on (TV, receiver), change volume of my receiver, switch inputs on my receiver, and control Windows Media Center or PowerDVD when I have to switch away from the Nexus Player to watch live TV or play a physical disc that I haven't ripped into Plex yet. Just have to have the time and the determination to do it.
ninja_rancher said:
You will not be able to control other items of equipment like you did when it was connected to the NSZ-GS7. The remote is a Bluetooth remote only. It was able to do so because the NSZ-GS7 had the ability to transmit IR. I use it connected to my media server PC, which also has an IR receiver/transmitter, and Event Ghost to turn on/off my system, control volume, and switch inputs (and d-pad and transport controls if I'm using Windows Media Center or Power DVD). But it can only be connected to a single device at a time, so I still use the stock remote to control the Nexus Player. Yeah, it's not a single remote solution, but it's the best I could come up with.
Click to expand...
Click to collapse
ninja_rancher said:
Even though it's slightly off-topic for using the MR5U/MR7U with the Nexus Player, I'll try and answer some of your questions. First, as far as the PC Bluetooth dongle goes, I just bought a generic cheap one off of eBay for under $5 (USD). Just search for 'usb bluetooth dongle' or 'usb bluetooth adapter'. As far as the "OK" button not working, I believe that was only when it was directly paired with the Nexus Player. All buttons seem to work fine for me when paired with my PC.
Second, I am using a Gateway USB IR receiver (like Also cheap, also off of eBay. It used to be used for receiving IR as well when I had the Sony NSZ-GS7 and I had it blasting its TV and receiver IR codes to my PC instead. But now I just use it as an IR emitter controlled by EventGhost.
You should be able to do everything you want as far as device and app control. The only gotcha I encountered is that I had to disable the Windows 'Human Interface Device Access' service (hidserv). Because the remote pairs as a HID device, there are some buttons that Windows was interpreting automatically. Like the volume and menu buttons. If you want volume to control your receiver, then you need to disable the service to prevent Windows from adjusting its own volume. But it's all very doable. I use the MR5U remote to power my enter system on (TV, receiver), change volume of my receiver, switch inputs on my receiver, and control Windows Media Center or PowerDVD when I have to switch away from the Nexus Player to watch live TV or play a physical disc that I haven't ripped into Plex yet. Just have to have the time and the determination to do it.
Click to expand...
Click to collapse
I'm determined! Haha. I'm going to be ditching cable TV for a few months so Kodi and ps4 will be my only devices. I'm following everything you've said and am very confident at this point. The last question I have is, how do you make the PC's IR emitter send the correct codes to the TV and receiver (on/off, volume, input)? Is there software I would need to learn/program the correct codes to blast? I'm mean there has to be right? Thanks!
Jaygatesny said:
I'm determined! Haha. I'm going to be ditching cable TV for a few months so Kodi and ps4 will be my only devices. I'm following everything you've said and am very confident at this point. The last question I have is, how do you make the PC's IR emitter send the correct codes to the TV and receiver (on/off, volume, input)? Is there software I would need to learn/program the correct codes to blast? I'm mean there has to be right? Thanks!
Click to expand...
Click to collapse
There are a couple of ways to accomplish this--assuming you are using EventGhost. The most fool-proof way is if you can find the Pronto remote HEX codes for the device(s) you want to control (the Files section of remotecentral.com is your friend). EventGhost has the ability to enter these codes for emitting IR. Otherwise, depending on the IR receiver/transmitter you buy, the IR plugin for EventGhost will allow you to "learn" a code from a remote. I've found this route to be a bit trial-and-error, though. As there are things that can affect the accuracy of the capture, like distance, the time you hold the remote button down for, etc. If you use this method, expect your workflow to be capture/test until you actually get the captured waveform to control your device.
ninja_rancher said:
There are a couple of ways to accomplish this--assuming you are using EventGhost. The most fool-proof way is if you can find the Pronto remote HEX codes for the device(s) you want to control (the Files section of remotecentral.com is your friend). EventGhost has the ability to enter these codes for emitting IR. Otherwise, depending on the IR receiver/transmitter you buy, the IR plugin for EventGhost will allow you to "learn" a code from a remote. I've found this route to be a bit trial-and-error, though. As there are things that can affect the accuracy of the capture, like distance, the time you hold the remote button down for, etc. If you use this method, expect your workflow to be capture/test until you actually get the captured waveform to control your device.
Click to expand...
Click to collapse
You have been an extraordinary help. I think I'm ready to start ordering what I need and getting my hands dirty. One last thing. Does the IR emitter you have come with software or just drivers? The only gap in my fully understanding this is how to tell Event Ghost to tell this emitter what codes to push once I have them? Thanks again, and I will report back with any info I encounter that could help others.
Jaygatesny said:
You have been an extraordinary help. I think I'm ready to start ordering what I need and getting my hands dirty. One last thing. Does the IR emitter you have come with software or just drivers? The only gap in my fully understanding this is how to tell Event Ghost to tell this emitter what codes to push once I have them? Thanks again, and I will report back with any info I encounter that could help others.
Click to expand...
Click to collapse
There are no drivers or software for the IR receiver/emitter. Windows is able to recognize it directly. From EventGhost, you will use the 'Microsoft MCE Remote - Vista/Win7' plugin (plus a service that it installs) in order for EventGhost to generate events on incoming IR and to send out IR (either from Pronto HEX codes or via capture). To use the MR5U/MR7U, you will use the 'Generic HID' plugin to perform actions on the button press events. The list of EventGhost plugins can be found here: http://eventghost.org/docs/pluginlist.html (some have links to individual documentation posts). So neither the IR receiver/emitter nor the Bluetooth dongle needed any extra drivers...they just worked out of the box.
ninja_rancher said:
There are no drivers or software for the IR receiver/emitter. Windows is able to recognize it directly. From EventGhost, you will use the 'Microsoft MCE Remote - Vista/Win7' plugin (plus a service that it installs) in order for EventGhost to generate events on incoming IR and to send out IR (either from Pronto HEX codes or via capture). To use the MR5U/MR7U, you will use the 'Generic HID' plugin to perform actions on the button press events. The list of EventGhost plugins can be found. (some have links to individual documentation posts). So neither the IR receiver/emitter nor the Bluetooth dongle needed any extra drivers...they just worked out of the box.
Click to expand...
Click to collapse
Understood. I watched some tutorials about event ghost and have a basic understanding now. Also won that gateway ir blaster just now. Just gotta order the bluetooth dongle tonight. Should be good to go soon! Will report back in a couple weeks. Thanks greatly!!

Mouse wheel on any button

Hello,
I have searched the web but without any solution that I am able to understand.
I have bought an android box from china which comes with a ir-remote.
As I am plannig to use this box as a desktop replacement as soon as i am able to get my new NAS up to speed I want to be able to use this box comfortably, even from my couch.
I use some sites to read comics and most of them work with arrow keys on chrome. Some have limited support for this so I need to be able to use the mouse (or at least a leftklick) and the mousewheel to navigate this sites if they dont support arrow keys.
The box has an ir receiver and bluetooth so I have multiple controll options avaliable.
Now to the remapping of keys:
I have found this:
source(dot)android(dot)com -> Keyboard Device
with this table and the vendorxxx.kl file I should be able to remap buttons.
now the caviat: arrow does not work propperly on every site and page_up/down jumps too far.
is there a way to confiure page_up/down in a way that it doesn't jump as far so i could use multiple clicks to jump as far as i need or is there a way to emulate a mouse wheel scroll with a analoge stick from a bluetooth controller?
I have as I said a ir remote and a generic usb controller and this:
Baofeng Monji 4 Bluetooth Controller (wireless Nunchuck style)
I would prefere the mouse wheel as it hase more use but a substitute would be fine.
I hope someone can help me

Controlling android OS with directional pad / joystick / keyboard over USB

Hello,
I have a PCB that is communicating with an android handheld via an FTDI chip and USB UART connection.
The PCB handles a d-pad over a serial connection, also has a few other un-mapped hard keys. These button depresses are currently sent up to the android level as a single event command.
What is the best way of having the android OS recognize the d-pad controls natively, as in I would like to map a home button, back, menu etc as well as the d-pad
It seems as though there are already provisions made within the android OS to handle full external keyboards and joysticks etc
If someone has achieved something similar, such as connecting a serial joystick/dpad/keyboard over USB bridge, please chime in.
Thank you for everyones help in advance.
BUMP!!
willing to pay for someone to help figure this out!
$$$$$$$$$$$$

Categories

Resources