Forum Replies Created
-
AuthorPosts
-
10/10/2015 at 19:21 in reply to: Input Bugs when launched any way other than manual bash command #107614pancakeykakesParticipant
This is the behavior when using the scripts I have here: github.com/pancakeykakes/TriPi
10/09/2015 at 23:12 in reply to: Input Bugs when launched any way other than manual bash command #107561pancakeykakesParticipantAlso, I have a hunch about something.
Do you know how to tell it to emulate the press of the “enter” key via bash script?I feel like that may have something to do with it, based on having to press enter to get a ‘pi@raspberrypi’ prompt to show up after executing a different, unrelated script.
10/09/2015 at 23:03 in reply to: Input Bugs when launched any way other than manual bash command #107560pancakeykakesParticipantDaemon won’t run.
‘internal signalling write failed’ libusbx10/09/2015 at 20:51 in reply to: Input Bugs when launched any way other than manual bash command #107556pancakeykakesParticipantOn the machine. I know SSH can cause issues.
I’ll try that next when my son calms down.
10/09/2015 at 20:39 in reply to: Input Bugs when launched any way other than manual bash command #107554pancakeykakesParticipantWait a minute. What if I just launch xboxdrv in /dev/tty ?
10/09/2015 at 20:26 in reply to: Input Bugs when launched any way other than manual bash command #107553pancakeykakesParticipantLaunching directly made no difference.
10/09/2015 at 20:25 in reply to: Input Bugs when launched any way other than manual bash command #107552pancakeykakesParticipantSo if xboxdrv doesn’t run at all, it functions fine, but that removes my ability to attach commands to the controller buttons which is the whole purpose of my script– to be able to send a kill command to ES in order to launch Kodi, effectively eliminating the need for a keyboard.
Sure it squashes the input bug, but makes my scripts pointless.
10/09/2015 at 19:46 in reply to: Input Bugs when launched any way other than manual bash command #107545pancakeykakesParticipantWell remember, even if I just run a test script that contains
#!/bin/bash
emulationstationby typing
$ ./testscript.shThis still happens. Effectively eliminating xboxdrv interference.
10/09/2015 at 19:40 in reply to: Input Bugs when launched any way other than manual bash command #107542pancakeykakesParticipantSo then change the line that says
emulationstation
To
emulationstation /dev/tty
Yes?
I tried that just now, and although ES launched, the issue is still there.
10/09/2015 at 18:50 in reply to: Input Bugs when launched any way other than manual bash command #107536pancakeykakesParticipantWhat code would you say I should use to call it directly?
10/09/2015 at 18:42 in reply to: Input Bugs when launched any way other than manual bash command #107532pancakeykakesParticipantJust noticed your suggestion about calling it directly.
I didn’t realize the “Emulationstation” call was itself a script. That /could/ be it, but the weird part is I have a similar script for Kodi and it is called the same way. In fact the dev of Kodi explicitly states to call using the “startkodi” script he provides and to not call it directly, so I couldn’t say if your suggestion is right until I can test it.
10/09/2015 at 18:37 in reply to: Input Bugs when launched any way other than manual bash command #107531pancakeykakesParticipantTest script:
#!/bin/bash
EmulationstationFor testing purposes, I executing via bash by typing
$ ./test.sh
If I launch Emulationstation manually like this:
$ Emulationstation
The bug does not exist.
The end-goal is to have it bound to RB on my controller. But for now I need to be able to figure out how to avoid this bug when launching via script.
This is the script I wrote that is executed when pressing RB on the controller:
#!/bin/bash
echo
echo “$(tput setaf 2)Cleaning up…$(tput sgr 0)”
(sleep 1)
sudo killall emulationstation
(sleep 1)
sudo killall -9 retroarch
(sleep 1)
sudo killall -9 kodi.bin
(sleep 1)
sudo killall xboxdrv
(sleep 1)
xboxdrv –trigger-as-button –wid 0 –led 3 –detach-kernel-driver –ui-buttonmap RB=exec:/home/pi/emu.sh –ui-buttonmap LB=exec:/home/pi/kodi.sh –ui-buttonmap GUIDE=exec:/home/pi/killswitch.sh –quiet –silent & sleep 1
(sleep 1)
fbset -depth 8 && fbset -depth 16
(sleep 1)
echo “$(tput setaf 2)Ready.”
(sleep 1)
echo “Launching Emulationstation. Game on.$(tput sgr 0)”
(sleep 1)
emulationstation -
AuthorPosts