WM Behavior Hack
When starting an external program from Mythfrontend it doesn't put the program on top. This is extremely frustrating if your using LIRC to interact with the system because you need to dig up a keyboard.
You launch an external program from Mythfrontend, such as Netflix and it appears that your system has locked up. sometimes you see Mythfrontend and can't interact with it, sometimes you will see the new program but can't interact with it
What is happening:
For some reason the window manager is not putting the new program on top, there is some documentation of it online but not much.
On your keyboard hit
Alt-Tab it should cycle the spawned window to the top. You may have to hit it a few times to get the new program window to the top. If this works for you read the fix.
sudo apt-get xautomation
Edit lirc config file:
Add the following command to an unused key in ~/.lirc/mythtv on my system there was no entry for the "KEY_CLEAR" button on my remote
begin remote = mceusb prog = irexec button = KEY_CLEAR config = xte 'keydown Alt_L' 'key Tab' && xte 'keyup Alt_L' repeat = 0 delay = 0 end
you may need to change the "remote =" and the "button =" to match what you want on your remote
Add irexec to your startup:
- Open your System Settings
- Open Session and Startup
- Select the Application Autostart tab
- select Add
- Name: irexec
- Descreption: doesn't matter
- Command: irexec -d ~/.lircrc
- Click Ok or Save.
- Close your way back out
Now the clear button on the remote is the same as hitting Alt-Tab
A little bit of lirc help:
to find out your remote and button name:
open up a Terminal and run
irw Point the remote at your ir receiver and push a button you never use. It will give you a response that looks something like this:
000000037ff07bf5 00 KEY_CLEAR mceusb
the last part of the entry is your remote, in this case
The second to last part is your button, in this case
make sure there isn't an entry for your remote with that button and your good to go.