Is it possible to turn off a Xbox 360 wireless controller ? - Shield Android TV Accessories

The title says it all. Is it possible to turn off the xbox 360 wireless controllers that are used with a dongle? I have a custom built arcade style 2 player controller that is wireless and the rechargeable batteries are not exposed so I can't simply pull the battery tray out of the controller to turn it off. Anyone knows a way to do so? A remapping app maybe ? Or built in another piece of software somewhere?
Thanks in advance.

Can't you just hold the Xbox button until it shuts off? I think it's like 10-15 seconds. I suppose if you didn't expose that button in whatever you built, that won't work =P

Looked into that a couple of years ago - got a wireless 360 controller hooked up via the official USB dongle to my PC - but couldn't find any way of doing it. Pulling the battery seems to be the only option.
Is there any special reason you can't simply patch in an on/off switch somewhere on the battery lines?

Thanks for you input guys. Holding the guide button (which is mapped to home button with a 360 controller) will not turn off the controller. On PC , it is possible to turn off the controller using various methods. If you had all the Xbox 360 software installed , using the guide button you would have the battery level and a means to turn off the controller. Seems other software exist that does the same, but I had never looked for that before since I didn't need to on my PC. The receiver embedded in my PC is built from a 360 Ring of light board taken from a dead xbox, with a microcontroller sending either the sync command or turn off command over a serial connection. So I have 2 buttons on my case , sync and turn off. For the available software, one is a simple executable that you run , and shuts down all controllers. The other shows a little menu with battery level and a turn off option when you press the guide button. Of course I could add a switch to disconnect the batteries from the controller themselves, but that would mean modifying the controllers inside my build, and since I'm using play and charge kits for the controllers , that would mean hacking the controllers on the PCB itself, or at the play and charge kit. All this is possible, but was hoping that a simply software solution would do the trick.
Here is the code for the executable that just turns off all controllers. It seems it should be pretty easy to adapt to Android, but I have very limited programming skills , as I only program in C for microcontrollers (Atmel AVR). I have absolutely no idea what drivers are used on the shield TV to handle the 360 receiver or where I could read on them to figure out if turning off the controller has been implemented. I guess setting the turn off function to a very long press of the guide button would be the simplest way to turn off the controller. I'm leaving the source code here in hope that some Android Guru might read this and quickly come up with a solution. Meanwhile I will start looking at things on my side and see if I can figure out something.
https://sourceforge.net/projects/turnoffxboxcontroller/
Code:
#include "windows.h"
#include "xinput.h"
#pragma comment(lib, "XInput.lib")
int main(int argc, char *argv[])
{
HINSTANCE hXInputDLL = LoadLibraryA("XInput1_3.dll");
if (hXInputDLL == NULL)return 1;
for(short i=0; i<4; ++i)
{
XINPUT_STATE state;
memset(&state, 0, sizeof(XINPUT_STATE));
if(XInputGetState(i,&state)==ERROR_SUCCESS)
{
typedef DWORD (WINAPI* XInputPowerOffController_t)(DWORD i);
XInputPowerOffController_t realXInputPowerOffController=(XInputPowerOffController_t) GetProcAddress(hXInputDLL, (LPCSTR) 103);
realXInputPowerOffController(i);
}
ZeroMemory(&state, sizeof(XINPUT_STATE));
}
FreeLibrary(hXInputDLL);
return 0;
}

Related

Ouya Dead Trigger HowTo Setup 2

There are lots of install instructions for Dead Trigger such as:
http://ouyaforum.com/showthread.php?4069-Dead-Trigger-on-OUYA-(How-to-install)
And more detailed:
http://ouyaforum.com/showthread.php?4107-Sideloading-Dead-Trigger-A-tutorial/
But they miss a couple of important points that took me almost an hour to figure out.
First, the game jumps right into the tutorial mission one and never gives you a chance to configure the game controller. I found two ways to pause the game and open the configuration menu for the game pad.
One, simply plug in a USB keyboard into your Ouya and press the Esc key. I also saw notes that a PS3 remote would do the job but I don't own one of these.
Two, while the game is running put the Ouya into sleep mode by pressing the power button on top of the Ouya once (*not* a long press.) When you wake your Ouya Dead Trigger will be at the pause menu and you can select setup with the touch pad.
The next problem was assigning buttons in the configure game pad screen. This took me forever to figure out. When assigning buttons, hold down the button you want to assign, move the mouse pointer over the assignment square and click (tap the touchpad.) Hold down the button you want the entire time. Don't forget to make use of the two axis buttons on the two joysticks.
kbocek said:
There are lots of install instructions for Dead Trigger such as:
http://ouyaforum.com/showthread.php?4069-Dead-Trigger-on-OUYA-(How-to-install)
And more detailed:
http://ouyaforum.com/showthread.php?4107-Sideloading-Dead-Trigger-A-tutorial/
But they miss a couple of important points that took me almost an hour to figure out.
First, the game jumps right into the tutorial mission one and never gives you a chance to configure the game controller. I found two ways to pause the game and open the configuration menu for the game pad.
One, simply plug in a USB keyboard into your Ouya and press the Esc key. I also saw notes that a PS3 remote would do the job but I don't own one of these.
Two, while the game is running put the Ouya into sleep mode by pressing the power button on top of the Ouya once (*not* a long press.) When you wake your Ouya Dead Trigger will be at the pause menu and you can select setup with the touch pad.
The next problem was assigning buttons in the configure game pad screen. This took me forever to figure out. When assigning buttons, hold down the button you want to assign, move the mouse pointer over the assignment square and click (tap the touchpad.) Hold down the button you want the entire time. Don't forget to make use of the two axis buttons on the two joysticks.
Click to expand...
Click to collapse
Yes I'm late to the party but your explanation of button mapping saved me pulling out my hair!
Will the app save your place and settings without being able to connect to the server? Mine will not connect

HELP! Controller and keyboard won't work!

So here's the deal. I turn on ouya, try to turn on controller, lights blink but it never connects. It just stated this out of the blue. I can use a usb keyboard and USB mouse to move around the launcher but can't select anything such as settings with them. I switched batteries out with fresh batteries and pushed them in snug. I've tried several reboots, I've tried turning it on and off without the USB devices plugged in. The date and time are all jacked up on it now and there's nothing I can do to force it to connect or select a menu. I got the controller to pair over Bluetooth with my phone, but I cant get the phone to find the ouya though. I have it rooted through wonderekin's method and the mod list installed along with a custom ouya launcher. But this problem just started today. No issues til now. Any help?
Sent from my SGH-T989 using Tapatalk
I've searched all over the web and can't find an issue like this where the controller just won't connect. Its driving me crazy. If I could just get the damn thing to factory reset I would try that, but the mouse, keyboard, and controller are all basically useless. I just get a launcher I can move around the main screen but cant relay any button presses via mouse and kb to select anything. I found some method involving a USB keyboard and pressing alt and systreq (print) button but it never worked. I think the thing just wouldn't recognize the button presses.
Sent from my SGH-T989 using Tapatalk
It happened to me few times. What I do is open ouya launcher, go to controller section of ouya settings and then long press the ouya black button until the two central leds are on (pairing mode), after few seconds the controller pair.
To move on the ouya launcher I use a logitech usb mouse and I'm able to click on menus.

Safe way to shutdown/power down Fire TV?

I used to turn off power for any unused devices, even it takes only few watt. There is no menu to shutdown and turn off fire TV before I cut its power. I'm wondering whether it is safe to cut its power at any time. Or it's not necessary to have a menu selection to shutdown system? Thanks.
..
billsam38 said:
I used to turn off power for any unused devices, even it takes only few watt. There is no menu to shutdown and turn off fire TV before I cut its power. I'm wondering whether it is safe to cut its power at any time. Or it's not necessary to have a menu selection to shutdown system? Thanks.
Click to expand...
Click to collapse
It should be safe to just unplug, but if you use it often eventually it could cause a problem either in the firmware or the the connection itself. A simple solution would be something like a Woods wireless remote outlet. The one I have comes with 3 plugs and a remote with a switch for each. The plug can take a bit of room on the surge protector but so does the FTV power cord. I just press and hold the select and play buttons on the FTV remote for about 5 seconds and when the screen goes black I hit the power button for the outlet.
billsam38 said:
I used to turn off power for any unused devices, even it takes only few watt. There is no menu to shutdown and turn off fire TV before I cut its power. I'm wondering whether it is safe to cut its power at any time. Or it's not necessary to have a menu selection to shutdown system? Thanks.
Click to expand...
Click to collapse
Get a Microsoft remote (MCE Remote). The power button on the MCE remote will put the firetv back to sleep. When you hit the power button again it turns back on, or hitting any button on the firetv remote.
I actually prefer the MCE remote because it offers more function when using XBMC and VIMU. I can actually time skip vs ffwd, hit stop, etc... Only complaint is there is no home button. The microsuck button does not take me home, and I have not figured out how to program it on the MCE remote.
mattngsx said:
Get a Microsoft remote (MCE Remote). The power button on the MCE remote will put the firetv back to sleep. When you hit the power button again it turns back on, or hitting any button on the firetv remote.
I actually prefer the MCE remote because it offers more function when using XBMC and VIMU. I can actually time skip vs ffwd, hit stop, etc... Only complaint is there is no home button. The microsuck button does not take me home, and I have not figured out how to program it on the MCE remote.
Click to expand...
Click to collapse
As i've stated in another thread, "sleep" on this is pretty much the same as sleep on a regular android device. It's still fully awake, although the CPU might be downclocked a little.
As for home, you need F12 to get home.
rbox said:
As i've stated in another thread, "sleep" on this is pretty much the same as sleep on a regular android device. It's still fully awake, although the CPU might be downclocked a little.
As for home, you need F12 to get home.
Click to expand...
Click to collapse
I love low watt setups, so I know the mind set for the OP. It would have been nice to be able power off the device! I was told that lab126 felt the footprint was small enough in standby that it wasn't needed. They also wanted to be able to update when not in use, etc...
You could hook it up the ftv to a power strip. I've seen power strips that have one active outlet and shuts off the rest of the outlets when the primary device is not used. That could be another option?
Rbox- Do you know where the MCE remote values are stored in the FIreTV. I want to see if I can modify so the windows button is f12.
mattngsx said:
Rbox- Do you know where the MCE remote values are stored in the FIreTV. I want to see if I can modify so the windows button is f12.
Click to expand...
Click to collapse
Since it shows up as a regular HID keyboard I don't think it has a keylayout file. What I do know, is that the kernel could probably do it. The HID layer has a quirks system that allows you do to funky stuff for individual HID devices. Do you know the usb vendor and device id for the remote? I can take a look at the quirks stuff tonight and see if we can do anything. It might have to wait until custom kernels can be loaded though.
rbox said:
Since it shows up as a regular HID keyboard I don't think it has a keylayout file. What I do know, is that the kernel could probably do it. The HID layer has a quirks system that allows you do to funky stuff for individual HID devices. Do you know the usb vendor and device id for the remote? I can take a look at the quirks stuff tonight and see if we can do anything. It might have to wait until custom kernels can be loaded though.
Click to expand...
Click to collapse
I'm at work but I can pull the HID/Device info when i get home tonight. I will PM you the info, so we're not clogging the OP's thread.
It takes 3 to 4 watts to stream a movie - measured on a Kill a Watt meter. I forgot what the reading was on sleep mode but its not much. The max watts I've seen was 5 watts and that's while installing an app.
mattngsx said:
Get a Microsoft remote (MCE Remote). The power button on the MCE remote will put the firetv back to sleep. When you hit the power button again it turns back on, or hitting any button on the firetv remote.
I actually prefer the MCE remote because it offers more function when using XBMC and VIMU. I can actually time skip vs ffwd, hit stop, etc... Only complaint is there is no home button. The microsuck button does not take me home, and I have not figured out how to program it on the MCE remote.
Click to expand...
Click to collapse
Which MCE remote do you use? I have one from philips but it doesnt work with my ftv.
Enviado de meu GT-N7100 usando Tapatalk
KillerJoeBR said:
Which MCE remote do you use? I have one from philips but it doesnt work with my ftv.
Enviado de meu GT-N7100 usando Tapatalk
Click to expand...
Click to collapse
What gen is it? I heard old mce receivers don't work? My USB receiver is a Phillips/nxp. It came with my zotac mini pc.
I just got my fire TV, rooted and installed a few apps including the firedtv.
I left it over night and realized it never went into sleep (the front led was on). I was able to put into sleep using a keyboard, but I don't want to keep the keyboard near my fire tv all the time.
Do you guys know what is wrong?
minmao said:
I just got my fire TV, rooted and installed a few apps including the firedtv.
I left it over night and realized it never went into sleep (the front led was on). I was able to put into sleep using a keyboard, but I don't want to keep the keyboard near my fire tv all the time.
Do you guys know what is wrong?
Click to expand...
Click to collapse
Try rebooting your box and without loading any external apps, see if it goes to sleep after a certain time. My guest is that an app is still running in the background preventing sleep mode.
When I first installed XBMC that happened too. I found out that XBMC was still running in the background because I didn't properly exit the app. Clicking the home button on the remote just leaves XBMC running in the background. Exit by pressing XBMC power off button and setting the system power saving timer to shut down at a interval during idle works.
ETFoneHome said:
Try rebooting your box and without loading any external apps, see if it goes to sleep after a certain time. My guest is that an app is still running in the background preventing sleep mode.
When I first installed XBMC that happened too. I found out that XBMC was still running in the background because I didn't properly exit the app. Clicking the home button on the remote just leaves XBMC running in the background. Exit by pressing XBMC power off button and setting the system power saving timer to shut down at a interval during idle works.
Click to expand...
Click to collapse
You can also set the power off setting in xbmc to exit after some idle time value.
Sent from my Nexus 5 using XDA Free mobile app
Shinyhead said:
You can also set the power off setting in xbmc to exit after some idle time value.
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
Yea, that's what I said. It's set to 30mins. Works fine.

Best remote for FireTV with keyboard + IR controls for TV power, volume?

I am looking to consolidate my TV remote, keyboard, + FireTV remote to one remote with keyboard + IR controls for my dumb TV power + volume. What is everyone else using? Recommendations?
I've been eyeing the Aerb MX3 and MeLE F10 Deluxe. I'm leaning towards the Aerb because it allows the IR buttons to be used without switching to a TV remote mode. I'm nervous about the air mouse kicking on all the time and selecting things I didn't intend to.
Which one did you get? I just ordered the aerb mx3 as am hoping it works good with stb emulator and am happy that it can turn the tv off and on too.. will do up a review after i get it.
I use a harmony smart keyboard. It can send IR to TV and pairs with FireTV using bluetooth. I also have the basic remote. So I use the basic remote 90% of the time but when I need a keyboard and mouse I use that.
I have the F10 Deluxe and love it to death, but it took some keymap editing to get the thing to stop being more of an annoyance than a help, so if you're not rooted/can't root I really wouldn't bother. If you ARE rooted, however, it's pretty amazing. The keyboard's pretty responsive, the air mouse does what it should and only after I turn it on, and being able to charge it by micro USB is a huge plus in my book. I haven't touched the stock remote in almost two months now and I really don't have any complaints.
For anyone interested in it, here's my modified .kl file for the F10 Deluxe. I fixed the mapping for the home and menu buttons, remapped prev/next track to rewind/fast forward, and removed the F10, F11, and F12 mappings for My Box, STB, and TV respectively. If you don't change those last three mappings then any time you press any of those buttons you will minimize or close your current app, which is a real pain when you just wanted to click the TV button to adjust volume.
I was wondering do any of these remotes work on the fire stick since there's no USB port?
that would be a no. oth of these require a USB dongle..
Also. I got the MX3.. dont get it, it sucks.
air mouse mode turns itself on every time the remote wakes from being dormant.. the OK button does not work for most apps unless mouse mode is turned back off.. super annoying.
the back button has the wrong mapping for the fire tv. acts likes a mouse click. - deal breaker
If you're rooted you can remap the keys and i suppose it would be better, but you will still have the problem of the thing activating mouse mode every time you touch a button after it has been dormant for a bit..
that's a bit discouraging ... this morning I'd been eyeing the bluetooth/IR Aerb IBK02
http://www.amazon.com/gp/product/B00M32PBXO/
(and there seem to be a ton of clones of this, under the usual names like FAVI -- all of them cost more, some even 2x as much lolol. always have to wonder which is the original, which has better guts, which has better quality/durability keys & touchpad, etc. etc.)
and there was one other BT/IR one I saw today, but it seemed a bit forgettable and overpriced, so I can't remember the brand/model.
psycon said:
that would be a no. oth of these require a USB dongle..
Also. I got the MX3.. dont get it, it sucks.
air mouse mode turns itself on every time the remote wakes from being dormant.. the OK button does not work for most apps unless mouse mode is turned back off.. super annoying.
the back button has the wrong mapping for the fire tv. acts likes a mouse click. - deal breaker
If you're rooted you can remap the keys and i suppose it would be better, but you will still have the problem of the thing activating mouse mode every time you touch a button after it has been dormant for a bit..
Click to expand...
Click to collapse
---------- Post added at 02:43 AM ---------- Previous post was at 02:24 AM ----------
I also get tempted by ones like this BT/IR, every now and then:
http://www.amazon.com/Unisen-USA-iPazzPort-Commander-KP-810-18BR-Programmable/dp/B00AQHXQLC/
again, 7 million different brands and clones and variations: RF, BT, IR, laser pointer...
the one I used to have was a Rii (was that the original company for this style?) - bluetooth+laser, it worked rather well, then after a month or two (hoever long just past the return-period expired) some of the bubble-contact-things on the PCB became permanently crunched and there was no way to recover them.
(I actually still have the thing - the charging circuit still works and the laser still works
but also BIG WARNING: the Rii I had worked great with OUYA - but it never paired once with fireTV (that annoying PIN-code-swap-fail many of us have cursed about so many, many times...)
ended up ordering the Aerb IBK-02. because reasons.
no real review yet, giving it a couple hours to charge. at which point I'll complain more or some junk
but -
k, it now claims charged, which is probably a lie, but I turned it on and played a little -
chiclet keys, I can live with. the board itself is very flexy and not solid. but key presses feel much more durable than those mini Rii/FAVI type tiny ones.
- plus: finally micro-usb! we are out of the mini-usb age!
- minus: 250mah battery. seriously??!? this may require some rocket-surgery, I have 400mah batteries small enough to fit in there.
- super-minus: the IR keys go, in order left-to-right: vol- , chan-, "ok", chan+ , vol+ ...... what in the unholy ever-living ****??!?
- minus: incomprehensible "manual" (plus I literally needed a magnifying glass to read some of it...) eh ok I'll figure it all out eventually.
- PLUS!!!: the bizarre manual mentioned the usual about possibly needing to enter PIN codes to pair, which was not encouraging. BUT! using settings.apk, it paired and connected immediately with no problem. both kbd and touchpad working great. BONANZA!!!
time for lunch, so I'll comment back later about getting the IR keys working with the TV (or not, lol)
---------- Post added at 12:55 PM ---------- Previous post was at 12:48 PM ----------
oh, the other IR keys at the top of the trackpad (the ones I'd mentioned are at the bottom) are:
I/O aka power, "A/T" (input?), MENU, M (??!?)
but s'posedly the thing can simply learn (as apposed to "programming" standard remote codes), so you have, like, a total of 9 buttons to assign any IR function you feel like.
we shall see, but for now, lunch.
yeah... long lunch.
so - the IR key programming is pretty easy, but as the tiny-printed tiny-manual sez, you really do have to get your remote right up next to the IR radiator on the kbd - a couple times the programming failed but I think it was just pilot error me not holding the remote close/aligned enough to the kbd. I managed to program on/off and volume and input - all working well enough now, and that's all I needed.
the IR keys are active / work, even if the main power / BT switch is set to OFF. which is unexpectedly sensible/clever.

Help to get back to work my Fire v stick..without remote and reseted device

I have old Fire tv stick with OS 5.2.7 without remote control, I have lost it . I used the app with my smartphone in the same network connected, but, I decided to reset my fire stick and after that I get message the device searching for remote control, and can not continue forward ...how can that be bypassed or something else to do to get it to work condition again
Hello, i have the same issue , did you manage to get it to work ?
You can always use a USB mouse to navigate the screen to get you back on WiF / re-enable the remote.
Once on WiFi your may be able to use the remote function of the FireTV Android app
Thanks i tried but it does only move the mouse and there us is nowhere to go on the screen to reach the settings
How about a USB keyboard. Then you'll have to experiment with key combinations to exit the screen.
Sometimes works with Android
Esc = Go Back
Ctrl+Esc = Menu
Alt+Tab and Alt+Shift+Tab = Switch Tasks
if you reset it and dont have it connected to wifi only way is to use a physical remote control for the first stage after that you can use hdmi cec or android remote control

Categories

Resources