Sorry if this question has already been asked before but as Kodi went from Pyhthon 2 to Python 3 I'm curious whether it will be possible to just update from LE 9 to LE 10 or will it be necessary to install LE 10 from scratch?
Thanks.
Sorry if this question has already been asked before but as Kodi went from Pyhthon 2 to Python 3 I'm curious whether it will be possible to just update from LE 9 to LE 10 or will it be necessary to install LE 10 from scratch?
Thanks.
Any release date planned?
Can't wait for it too
Guys, I finally have localized and resolved the problem. I will post the solution here as maybe and hopefully this will help others too, as the solution was very hard to find:
First of all I have to mention that I am using LibreELEC with multiple profile accounts, so this issue might not occur on everyone's LG TV. But basically my issue was based on the multi profile configuration itself.
One strange behavior that made me feel curious was that after starting LibreELEC, when reaching the login-screen where all user profiles are being offered, the TV was oddly showing a resolution of 3.840x2.160@30Hz when instead I had set a resolution of 1920×1080@50Hz in LibreELEC under Settings --> System --> Display --> Resolution within my personal profile setting. Plus I had limited the whitelist to the following three resolutions:
1920×1080@60Hz
1920×1080@50Hz
1920×[email protected]
Now the obvious question to me was: How can the TV get a resolution that is set nowhere in the LibreELEC environment?
So my next thought was that maybe LibreELEC would get the initial screen setting's resolution from the Master's user profile setting instead of my personal profile's setting (which would be curious to me as you have to enter the Master's user password everytime you want to navigate into LibreELEC's settings screen, which would indicate that those settings are being set globally (I learned it the hard way: they are not!).).
So I logged in with the Master's profile and there I mentioned that under Settings --> System --> Display --> Resolution there was not set anything:
So the next common thing I did was to insert the same settings as in my personal user's profile settings:
1920×1080@50Hz for resolution
and
whitelisted the following resolutions too:
1920×1080@60Hz
1920×1080@50Hz
1920×[email protected]
Rebootet LibreELEC and voilà, the login screen's resolution and refresh rate was in-sync with the TV's resolution display.
Now all stuttering caused by the TV's not being in-sync with the LibreELEC system is gone for all live TV shows and all movies I have tested so far.
Conclusion:
So in the end no suspicious and fancy TV setting (e.g. Upscaling, Cinemamode, Freesync, Instant Game Response, noise filter, or whatever) caused this stuttering issue. I was able to get the TV in-sync with the LibreELEC system temporarly when the resolution/refresh rate was being changed "on-the-fly" while playing the movie (oddly it did not get in-sync when just starting the movie even when Adjust Display Refresh Rate was set to always.), but this was not an acceptable workaround to me.
Even after login with my personal profile the resolution did not change from 3.840x2.160@30Hz to 1920×1080@50Hz though within my personal profile the setting under Settings --> System --> Display --> Resolution was set to 1920×1080@50Hz.
In the end the solution was found in a deeper way of configuration setting within LibreELEC which caused kind of an unpredictable behavior between LibreELEC and the LG TV because this setting's value was in an undefined state.
I am quite happy I found out how to resolve this annoying stuttering issue but still I am curious what exactly is causing this issue in the background of LibreELEC's and my TV's behavior.
Thinking back, in a way it makes sense that the initial login screen caused some issues becaused it's resolution state was just undefined. But then I don't understand why this caused further behavior issues like not being in-sync with the LG TV, even when starting to play a media file with a resolution change in-between.
Maybe some of you LibreELEC/Kodi cracks do have an obvious answer to this.
Salut!
EDIT:
I have now found the confirmation of my guessings here:
Upcoming Kodi 19 and profiles support
The obvious point is coming from the user DarrenHill where he mentions:
"Currently, if you're using the menu to select a profile (rather than having Kodi automatically open a specific profile), then that menu runs under the master profile.
Hence if you have stuff configured under the master profile as well as other profiles, those configurations get loaded and then afterwards whatever you have in the other profile gets loaded once you select it.
So if you have items in the master that are not in the secondary profile, then those will still be used (if stuff is either just in the secondary profile or is in both, then the secondary entry will be used as it will overwrite the version in the master profile where it exists).
The trick is either to keep the master profile completely empty of all settings, or at least only put settings in there that you want to apply to all profiles. Most people make the mistake of using the master profile as just another profile, when in fact it's slightly different for those reasons. If you plan to use profiles at all, it needs to be handled as a special case."
This seems (mostly) to be true but if this is all the case I'm still curious why LibreELEC did not change from 3.840x2.160@30Hz to 1920×1080@50Hz after logging in with my personal profile where the default resolution was set to 1920×1080@50Hz.
Thanks.
Any hints about when HDR will be supported on generic devices?
+1 here. I am having exactly the same issue.
Here's an example of the behavior:
Let's say the refresh rate of an SD based movie (most of my movies are based on SD material) being started in LE is set to 1080p@50Hz (of course this resolution setting is whitelisted within LE).
To resolve this issue, while still playing the movie in background, I have to open the menu and set the exactly same resolution setting manually again which is already set. Then the TV screen turns black for a second, comes back and the picture goes smoothly as it should.
After struggling around for days now I was able to localize the problem: When I enable the the refresh rate display on the TV I can see, after starting the movie, the TV is showing a refresh rate of 30Hz when LE has set it to 50Hz. After setting the resolution on-the-fly manually as described above, the TV shows the correct refresh rate any everything is in-sync.
"Adjust Display Refresh Rate" is set to "always", but also "On Start/Stop" does not change anything according to this weird behavior.
Not sure if this is a LG OLED TV issue (LG GX55 in my case) as in this topic LG TVs were already mentioned or if it's a LibreELEC/Kodi issue.
Any suggestions on how to reslove or workaround this issue would be very appreciated.
Recently there is this great new feature on LE which allows you to set a password on LE settings.
Since the characters are being showed in clear text on the TV screen everytime you login into LE settings it would be nice to have those characters hidden so others cannot see it while typing in, for example like any other password protected KODI settings which are showing points instead of real characters.
When using LibreELEC's backup function via GUI I've read that it basically does backup the following folders:
/storage/.cache
/storage/.config
/storage/.kodi
Since I want to do a scheduled automatic backup onto a remote share via script I'm backing up the following folders via the following command:
As you can see I'm backing up an additional folder called /storage/scripts
Now my question is: When restoring the backup.tar file via GUI, will the additional folder be restored too or do I have to do it manually?
No chance. Still the same annoying message after trying all this suggested solutions here using LE 9.2.1
Well, after messing around with this a while now I did not found the solution but I want to share my workaround with you which will delete the according history file on every system startup, system halt, system reboot and system poweroff/shutdown:
According to this tutorial I have created the two files autostart.sh and shutdown.sh inside the /storage/.config folder:
Content of autostart.sh:
Contect of shutdown.sh:
case "$1" in
halt)
# your commands here
;;
poweroff)
# your commands here
;;
reboot)
# your commands here
;;
*)
rm -rf /storage/.ash_history
;;
esac
Display More
After creating those files with the according content make both files executable:
Maybe this helps someone else but me too.
Copying /etc/profile is not required - I'm using only export PATH on /storage/.profile and all is working.
In my case, /storage/.profile does not exist anymore in LE 9.2.1
Is this normal?
Delete
/storage/.ash_history
Thank you, this works for a one-time erase. But what I really want is to disable history completely.
The command
gives me the following output
so I've tried the following command which is being executed without any error
but after exit and login via SSH the /storage/.ash_history file is being created again.
wget or curl from an LE box, you cannot download in a browser
I'm standing a little in the dark of how I can download a specific addon version for my generic x64 device as a .ZIP file from the official LibreELEC repository by using wget. How can I find out the specific path to a specific version of a specific addon?
I found a way to automate this. What I did:
Create a shell script:
Added the following content:
#!/bin/bash
curl -s -H "Content-Type: application/json" -v -X POST -d '{"jsonrpc": "2.0", "method": "Addons.SetAddonEnabled", "params": { "addonid": "pvr.teleboy", "enabled": false }, "id": 1}' http://localhost:8080/jsonrpc
sleep 1
curl -s -H "Content-Type: application/json" -v -X POST -d '{"jsonrpc": "2.0", "method": "Addons.SetAddonEnabled", "params": { "addonid": "inputstream.adaptive", "enabled": false }, "id": 1}' http://localhost:8080/jsonrpc
sleep 1
curl -s -H "Content-Type: application/json" -v -X POST -d '{"jsonrpc": "2.0", "method": "Addons.SetAddonEnabled", "params": { "addonid": "inputstream.adaptive", "enabled": true }, "id": 1}' http://localhost:8080/jsonrpc
sleep 1
curl -s -H "Content-Type: application/json" -v -X POST -d '{"jsonrpc": "2.0", "method": "Addons.SetAddonEnabled", "params": { "addonid": "pvr.teleboy", "enabled": true }, "id": 1}' http://localhost:8080/jsonrpc
Saved the file, exit the editor and then made the script executable by running the following command:
Now, in my case, as I have multiple kodi profiles, the start of the Teleboy PVR and inputstream.adaptive addon are profile dependent, which means that they are started only after the according user did login.
I found out that it is not possible to run a shell script directly and automatically in the background after a user has logged in so I had to create for every according profile an autoexec.py which is user profile dependent by default and is executed immediately after a user did login. So what I did was:
Create the autoexec.py directly inside the according profile folder...
...and adding the following content:
import time
import subprocess
time.sleep(10)
subprocess.call("/storage/<myScriptFolder>/<myScript>.sh")
Saved the file, exit the editor and then made the autoexec.py executable by executing:
Note: The time function is needed for adding a delay as in this special case it is necessary to wait until the Teleboy PVR and the inputstream.adaptive addons have fully started once. Otherwise, if you interrupt the start processes too early, they will not work correctly after disabling and enabling again.
Hope this workaround helps someone.
This solution worked, thank you.
What I did, was:
Create the autoexec.py directly inside the according profile folder with the following content:
Then made the autoexec.py executable by executing
Try with autoexec.py in user's profile folder. If users has different profile folders then you can have different autoexec.py script for every user and this script is executed after user is log in.
But is a Python script able to run a bash script?
Can you describe that login process a little more? I'm pushing the power button on my RPi, and that's the whole story.
The login screen appears when you create different profiles. In my case for me, wy wife and my kids. Every user has its own profile with its own login.
The problem is I cannot use autostart.sh as it runs the scripts before user login if I got this right.
You could use /storage/.profile to execute commands at ssh login time.
Nah, sorry for not being clear enough. I want the script to be executed everytime a user logs in via the LE GUI on TV, not when logging in via SSH.