Posts by eg.wdtv
-
-
-
In fact I did try the pyton sleep command, but it did not work.
And this xbmc sleep command is not documented here : List of built-in functions - Official Kodi Wiki
I did try it, and it finally work:
To change output :
Pythonimport xbmc, xbmcgui xbmc.executebuiltin('Dialog.Close(all,true)') xbmc.executebuiltin("ActivateWindow(systemsettings)") xbmc.executebuiltin("Action(Right)") xbmc.executebuiltin("Action(Select)") xbmc.sleep(4000) xbmc.executebuiltin("Action(Left)") xbmc.executebuiltin("Action(Select)") xbmc.sleep(2000) xbmc.executebuiltin("Action(Back)")
And to apply work around (change skin, and change it back. Prerequisite : having 2 skin installed):
Python
Display Moreimport xbmc, xbmcgui xbmc.executebuiltin('Dialog.Close(all,true)') xbmc.executebuiltin("ActivateWindow(interfacesettings)") xbmc.executebuiltin("Action(Right)") xbmc.executebuiltin("Action(Select)") xbmc.executebuiltin("Action(Down)") xbmc.executebuiltin("Action(Select)") xbmc.executebuiltin("Dialog.Close(all,true)") xbmc.sleep(2000) xbmc.executebuiltin("Action(Left)") xbmc.executebuiltin("Action(Select)") xbmc.sleep(2000) xbmc.executebuiltin("Action(Select)") xbmc.executebuiltin("Action(Down)") xbmc.executebuiltin("Action(Select)") xbmc.executebuiltin("Dialog.Close(all,true)") xbmc.sleep(2000) xbmc.executebuiltin("Action(Left)") xbmc.executebuiltin("Action(Select)") xbmc.sleep(1000) xbmc.executebuiltin("Action(Back)")
-
vpeter : it seems to work like that, thank you
I created restart_kodi.py that call shell script
And trigger it from a key configured in
-
Hello,
I know that to restart kodi from ssh, you have to use following command :
systemctl restart kodi
I would like to be able to trigger such a command from kodi but I did not manage to do it.
1st Try : Trigger a pyton script from /storage/.kodi/userdata/keymaps/remote.xml
Python script :
import xbmc, xbmcgui
xbmc.executebuiltin('System.Exec(systemctl restart kodi)')
=> It does not work
2nd Try : Trigger a .sh script from /storage/.kodi/userdata/keymaps/remote.xml
And .sh file is :
systemctl restart kodi
It does not work neither.
Does anyone know how to make it work?
-
Hello.
As there is a bug when switching output (cf Display bug when switching output from hdmi to dvi or dvi to hdmi) , I would like to script output change + applying work around.
The script is launched from a keyboard shortcut configured in /storage/.kodi/userdata/keymaps/remote.xml
Here is what I did so far :
1st pyton script that change output :
import xbmc, xbmcgui
xbmc.executebuiltin('Dialog.Close(all,true)')
xbmc.executebuiltin("ActivateWindow(systemsettings)")
xbmc.executebuiltin("Action(Right)")
xbmc.executebuiltin("Action(Select)")
xbmc.executebuiltin('Dialog.Close(all,true)')
It works, but I don't manage to close last dialogbox by confirming "Yes"Then I apply my workaround (change skin by script) :
import xbmc, xbmcgui
xbmc.executebuiltin('Dialog.Close(all,true)')
xbmc.executebuiltin("ActivateWindow(interfacesettings)")
xbmc.executebuiltin("Action(Right)")
xbmc.executebuiltin("Action(Select)")
xbmc.executebuiltin("Action(Down)")
xbmc.executebuiltin("Action(Select)")
xbmc.executebuiltin("Dialog.Close(all,true)")
But same problem, I don't manage to confirm and close last dialogbox (Cf ConfirmSkinSwitch.jpg).
Does anyone know how I could emulate confirmation to those dialogbox using xbmc.executebuiltin within my script?
Thanks
-
Attached the output after changing output : AfterSwitch_Milhouse-20171228214630.jpg
The only way to get kodi working again is to restart it : systemctl restart kodi
Unfortunately, I don't know how to launch such a command from kodi ( I did try
xbmc.executebuiltin('System.Exec(systemctl restart kodi)') but it does not work).
Conclusion : I revert back to 8.2. I will create another topic to enhance scripting of switching output + applying workaround
-
-
Summary :
When I used OpenElec with an older version, I was able to switch from DVI to HDMI and HDMI to DVI, without any display issue.
Now, I am still able to switch, but the display becomes horrible. I have to apply a work around to make it usable.
If initial openelec version is needed please let me know. I would need to restore it to have its version.
Full hardware specs (GPU is most important) :
============================================
Giada Cube N3 HDMI ION Atom 33
CPU
- Intel Atom N330 - 1.6GHz
- Chipset NVIDIA ION Graphics
Connecteurs :
- USB2.0 : x 5
- DVI : x 1
- VGA : Adaptateur DVI / VGA
- HDMI : x 1
- E-SATA : x 1
- Lecteur de cartes : 3 en 1
- Audio In/Out : x 1
- 100/1000M Lan : x 1
The LibreELEC version you are running :
=================================
8.2.2
In most cases a full debuglog
========================
Please Find it attached : kodi.log
Tell us the complete steps how to face the issue, so we can try to reproduce
==============================================================
Initial state : display on DVI
Go to System/Settings/Display
You will get output : BeforeSwitching.jpg
Click on "Monitor" to switch (switch to hdmi then switch back to dvi )
It work, but you will get output : AfterSwitching.jpg (horrible, can't read most of label)
WorkAround :
===========
Go to Interface / Settings / Skin
Switch to another skin (confluence in the example)
Display is fixed : AfterChangingSkin.jpg
I can then change back to the intial skin, and it is still ok
Maybe if skin was automatically reinitialized after switching from an output to another it would work?