![]() ![]() I wrote a method to automatically kill all of them and wait for them to finish cleanly before killing the next, but that's a topic for another question. You should kill them sequentially from left to right. Note, the order of the PIDs from getfamilypids is reversed. Then you can get the child processes of the PID you get back: getfamilypids _PID_FROM_ABOVE_ To get the PID of the kodi process you started, you can do this: pgrep -f kodi First, create a function to get all child PIDs of a given PID: getfamilypids() -1 z>-1 z-)) do To get all the pids of kodi and its children, you can do something like this (in bash). The situation for emulationstation is similar - killing all the children will solve the other issue. Killing kodi and all its child processes will return you back to the console. The screen goes black because kodi is effectively half-dead. Just doing pkill kodi orphans the child, but doesn't kill it. So what's the best way to stop emulationstation (and any emulators it's running) from the command line?Ī child process of kodi still has control of vt 1. Also, game play was occasionally freezing, which I suspect was due to previously having killed emulationstation in this fashion and starting it back up. I had a game running and tried killing emulationstation, but the game remained on the screen. ![]() I discovered recently that the way I'm killing emulationstation ( pkill emulationstatio) doesn't actually stop all its components. Note, manually stopping these apps using the GUI works fine and I get back to a visible console, but I want to be able to control it via a command line call in homebridge-commander. Loading a ROM in RetroPie is equivalent to putting a cartridge in a video game console. What is a ROM A ROM contains a copy of the data from a read-only memory chip (in this case, a video game cartridge). How do I stop Kodi in a way that returns VT1 back to a working console screen? RetroPie comes preloaded with a ton of different emulators, and even more can be downloaded from within the operating system. So I think VT1 is getting into a strange state and I figure it must have something to do with the way I’m killing Kodi using pkill. (Note, simply typing sudo chvt 1 does not work. I also discovered that if I type sudo chvt 2 sudo chvt 1 I can get back to a console I can see. One manual fix I’ve learned is to type alt+F1. I have functions to switch the app in one call, but I want to be able to simply stop whichever app is running and get to the console. I can use the connected keyboard (and type without seeing what I'm typing) or ssh and start up another OS, but stopping one of these apps still results in a black screen. I wrote a function for each system to stop that system, but I have 2 problems.Įach OS will stop, but if I've run Kodi at some point, I don’t see the console when I stop whichever one is currently running. ![]() My intent is to use them in homebridge-commander so that I can switch between these apps using Siri. I’ve written a bunch of shell script functions that allow me to switch between these 3 apps which require exclusive access to a vt channel: raspbian, emulationstation(/RetroPie), and kodi. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |