yashsingh1/xdaforums huggingface dataset:
[Shield Android TV Android Development] hifwafk:
my shield 2019 pro does that too with some streaming (OVP) content

running

lineage-18.1-20221115-nightly-foster

MindTheGapps-11.0.0-arm64-ATV-20220831 (not sure if that has any role to play here)

I've also checked with the nvidia dev build 9.0.0 and there the very same app plays the very same online content OK (and the shield is connected to the same wifi). That's what makes me think something must be wrong or incompatible in the LOS image/setup/settings.

Also with the LOS setup some other videos from the same content provider are playing OK with the very same player app. I've no idea why some play OK and some not (all cases 100 % repeatable). For comparison, the Netflix app has been playing its stuff OK (for what I've tried).

When the playback problem arises (it always does with the same content), the player can even rewind and ff the online stream, but the shield just won't play it at any starting point (the app can decode thumbnails in the stream timeline, though). There are no on-screen error messages from the app or the shield. To me it appears as if the native playback just stalls or fails right in the beginning.

The lineage-18.1-20221214-nightly-foster is out.

will check with that next

if that does not play either then must start diggin' the dirt ...
[Shield Android TV Android Development] Steel01:
If someone can list reproduction steps to a free video app that fails, I can do some debugging. Iirc, the last time this was reported, it was using a country/region locked app that I couldn't access. I try to test a few different things that I've got access to. Namely netflix, youtube (using the smarttube app), and kodi. I don't pay for amazon prime or hulu or disney plus or play movies, etc. Though afaik, all of those work fine.
[Shield Android TV Android Development] cHECKjAM:
Just flashed latest 18.1 - 20221214 on my 2017 pro. All working fine, except... The wireless remote controller...As others menitoned in the past, it works flawlessly on first pair, but at reboot its dead..

I cant even get it to work again by pressing a button during boot.. I kept spamming buttons the entire boot process all the way to home dashboard, still dead.

Also I can not repair it as Im unable to remove the initial pairing to begin with. Just gets stuck at "removing device"... So this is sad indeed...

Any fixes in sight for this, or advice how to get around this? Thanks!
[Shield Android TV Android Development] Steel01:
Okay, I'm seeing enough reports of this that it's starting to worry me. I'd really like to know why I never have issues, though. So, a few questions.

1) Which remote is this?

2) Are there any usb devices attached when the failure happens?

3) Anything else that might be considered unusual or non-standard?

For the 'hang at unpairing', yeah... I don't know what's up with that, I do see that myself. But you can just back out of that screen and go back to accessory pairing.
[Shield Android TV Android Development] brick00444:
Just curious if anyone as got Discovery+ or any of the Go apps like animal planet go or motortrend go, Discovery go etc.
[Shield Android TV Android Development] cHECKjAM:
1. it's the default remote that comes with the 2017 model. Looks like this:

http://www.droid-life.com/wp-content/uploads/2017/01/SHIELD-TV-14.jpg

2. No

3. It's just a pure default build.. I had not done anything else as far as I know to mess it up. One thing to note is that as soon as the lineage OS starts first time it wants to pair a device. as I did not have the device available at that time I skipped this part by just letting it time out, boot me in to the OS, and then pair it a few minutes later from the pair screen.

Once I noticed the issues I looked for another remote and found my 2019 remote that I dont use (since Im using a logitech harmony remote for that one). So I tried that remote and so far it seems to work flawlessly every time. Remote looks like this:

https://images.frandroid.com/wp-content/uploads/2019/10/nvidia-shield-tv-pro-2019-frandroid.png

So as far as I can tell the issue is just with the 2017 remote and not the 2019 remote.
[Shield Android TV Android Development] Steel01:
Oh, hmm. So the issue might be with the older remote(s). I've not used jarvis (2015 remote) or pepper (2017 remote) much recently, so that could be why I've missed issues with them. I'll try to do some specific testing with those.
[Shield Android TV Android Development] kihmathi:
I can confirm I had issues with the 2017 remote and settled for going back to stock, thanks for reporting.
[Shield Android TV Android Development] brick00444:
Ok, I just installed the latest build lineage-18.1-20221214. I can play videos on Natgeo app, History app, Channelsdvr, ABC, NBC, CBS, FOXNOW. I can't play videos on Animalplanet go or Discovery go. When I try to play videos on the AnimalPlanet or Discovery apps they start and play for about 6 seconds then go black screen for about 6 seconds then shows the video paused. When I unpause it it does the same 6 seconds of play. I hope that helps someone to figure out why it does that. I should say that those apps work great on stock firmware.
[Shield Android TV Android Development] cHECKjAM:
Should Dolby Vision, through Kodi, play? Im trying to test out a dolby vision clip through smething called Kodinerds. Kodinerds is a fork of Kodi and is supposedly supporting playing mpv files with dolby vision, on the nvidia shields.

But it does not work on my shield, could it be due to me running Lineage on my shield?

Edit: Ohh wait.. yeah this only works with the 2019 shield and in its original state right? I totally forgot about how ridiculous it is with Dolby Vision for some reason... Glad HDR works fine..
[Shield Android TV Android Development] Steel01:
Correct, dolby vision only works on mdarcy/sif (the 2019 variants) and only when the bootloader is locked. Dolby is stupidly overprotective of their ip. The support is locked behind encrypted libraries that only get decrypted if the support libraries see the bootloader lock prop. I've poked at that a little bit, but not too much since it wouldn't work without lying about bootloader lock status, which I will not do on release builds. Plus that would be a Lineage charter violation.
[Shield Android TV Android Development] cHECKjAM:
Steel: Thank you for the extensive answer.

Yeah it is a shame really.. I have the 2019 shield as well actually (got it cheap) but I set it up with lineage basically the first boot! No way Im running the shield clean, even for Dolby Vision. But it is a bit sad to loose it.. I have a LG Oled CX that is supposed to have stunning picture with Dolby Vision, but I have not yet tried it, not even for a second, since I have no way of playing it..

I hope that some day there will be a work around for Dolby Vision so thtat its not controlled on hardware (?) level, I mean so that it would not notice whatever mods you have done to the hardware/OS etc... And just pass through like any normal format.. So stupid :(
[Shield Android TV Android Development] slutexpress:
Finally got my foster 20221214 version installed onto my 2015 Shield TV.

However a few small issues that didnt occur in a much earlier version, almost 5 year old version of LineageOS.

- No volume indicator when raising or lowering the volume (on a Amazon Fire TV bluetooth remote and on a bluetooth connected speaker, and on a 2.4ghz USB connected wireless remote) volume change works you just cant see it on the top of the screen like before.

- Random freezing to a dark screen in certain apps like Plex / Cinema HD which take a bunch of button mashing to get back to home screen.

- No recent apps menu to kill apps with double tapping the home button on remote

- No possible way to detect USB drive that I could find with stock install

I havent read the past few pages, so hopefully Im not complaining about the same things.

But the fact that Netflix just works on this install is a miracle. With those fixes above corrected, this is a perfect build

I want to thank you @Steel01 for all your work on these builds over the past few years. I just came from a super old LineageOS version to try the newer build out. You've been dedicated to this like no other!
[Shield Android TV Android Development] cHECKjAM:
Sadly I have the same issues in regards to some freezes in Kodi, which is not due to lineage alone. However it becomes an issue since there is no recent apps menu or any other way (that I know of) to kill apps. So you have to bash home menu button couple of times, go to settings, apps, and kill a app from the app list.. :(

@Steel01 is there a way to solve this in an easy way?
[Shield Android TV Android Development] tokoam:
I have a 2015 Nvidia Shield I already have a image backup of my shield I also have a ssd installed . I was thinking of installing Lineageos . I would like to hear your experience of it in the 2015 pro model .
[Shield Android TV Android Development] cHECKjAM:
I'm not the right person to ask this as my usage of the shield is very limited compared to what most other ppl would want to use it for.

I install pure lineage, no micro G, no netflix, no streaming services at all... only KODI + Jellyfin addon, and that's it. Then I disable internet access to it through my firewall. And now it is only a media player for Kodi to reach my local jellyfin library.

I have Shield 2015, 2017 and 2019. All of them run the lineage build.

As long as you do not use the default remote for the 2015 or 2017 shield, which has the above previous mentioned issues, you should be fine. But I dont know for other services and use cases.

The only real issue, if you dont use default remote, is that there is no simple way of killing an application that has frozen, i.e app list and kill app, and that dolby vision will not work. Dolby Atmos will work though if you passthrough the audio to capable receiver that can handle dolby atmos.
[Shield Android TV Android Development] cHECKjAM:
@Steel01 Is there any plans to add a "kill app" functionality? Either a recent app list with possibility to close open apps, or some other way to quickly, with use of remote, kill an app?

It would make the shield so much more wife friendly, otherwise I need to answer phone calls from both wife and parents (Kodi is stuck again when trying to switch profile etc... How can I proceed"

- hit home button, go to settings, go to apps.. etc.. so cumbersome to explain :)
[Shield Android TV Android Development] Kladderadatsch:
@cHECKjAM In the developer options there is an option 'Do not save activities'. If you enable this, every app will be closed immediately when you switch apps or close them. Maybe this will help you with your problem for now.
[Shield Android TV Android Development] Steel01:
To answer a couple of the recent questions:

1) No volume indicator. This is a known issue with cec detection on AOSP R and Lineage inherited it for 18.1. If you're not using a cec capable avr, go to settings->device->input and disable cec volume control. After that, the volume popup will work.

2) Recents menu. A few people have tried to fix this, but no one has been successful yet. Double tap home is mapped to recents on Lineage ATV, it just doesn't work. And we haven't been able to track down why. This has been an issue since 17.1, and still exists on 20.0.

Having to manually kill apps on android, though... That's seriously ugh. Shouldn't be a thing, by design. >< I really *really* like kodi, but I seriously hope the 20 release is more stable than 19.x. We'll see.

3) USB drive not working. That... shouldn't be a thing. Fat, ext2/3/4, and even ntfs should all work. What is the failing drives filesystem type?
[Shield Android TV Android Development] cHECKjAM:
Very interesting indeed... Will give this a try! Thanks

Hey Steel, thank you for your response.

On 2) - Unfortunately the same issue still exists in Kodi 20 .. I have tried the Kodi Nerds (a fork of Kodi with some added features(, which is built on Kodi 20, and the exact same issues occur.. But I will try the advice given in the above quote in regards to Developer option to "Do not save activities", maybe that will work to kill the app if one goes to home screen..

EDIT:

Kladderadatsch advice worked great for me as I only run Kodi basically..If anything hangs I just go back to home, and app is killed once in the background. And reopen Home from the Home dashboard is like opening a totally new instance.

Not optimal for all users and of course some kind of function within lineage would be preferred, but now this is at least very wife friendly in case a application is hung up.
[Shield Android TV Android Development] svenfried:
I also updated my 2015 Shield TV (foster) to 18.1-20221214 (was on 17.1-20220210 before). Everything works as a charm. Many thanks!! I am not bitten by the bluetooth remote control thing because I use an infrared remote with USB receiver that shows up as a HID device.

Unfortunately, I have two apps which only play video for about a second and than behave as if I stopped/paused the video:

de.swr.avp.ard

com.zdf.android.mediathek

These are the official apps of two public german television channels. Both are available free of charge. Since I have a german IP, I cannot say whether there is IP geoblocking in place or not. If it helps, I could provide you with wireguard credentials to use my german IP address. :-)

Both of these apps worked without problems on 17.1-20220210. On 18.1-20221214, video playback starts for a second, then the screen turns black for a second, then the TV shows me that "HDMI 1" is active (as if it was inactive for a second) and then I see the paused video.

To make it even weirder, this problem appeared the day before yesterday. Yesterday, it worked without problems. Today, the problem is back.

I have already tried to enable/disable HDMI CEC options, but without success.

Can I provide you, @Steel01 , with a logcat?

Many thanks!
[Shield Android TV Android Development] Kladderadatsch:
@svenfried

I also had the problem that some apps would briefly start playing a stream and then stop. For me it was Netflix and MagentaTV. With Kodi I had no problems at all. I then found out that you can set a fixed frame rate in Kodi, which you could not do in the other two apps. I then downloaded the app "Refresh Rate". With this you can automatically adjust the display mode to the video bit rate of the respective app. Since I come from Germany and here is usually transmitted with 50 Hz, I have set this value for MagentaTV and Netflix. And voila, since then I have no more problems.

Also with Smarttube and Zapp. Now with fixed 50 Hz no more problems.
[Shield Android TV Android Development] Steel01:
I have reproduced the video issue on discovery go as reported a few posts ago. Hoping this is the same issue that people are seeing on other apps as well. I'm starting to look into it.

@Kladderadatsch Now your report. This doesn't match my experience or as far as I remember any other reports I've seen. I've never seen Netflix just up and hang a video. But I'm also on ntsc standard everything and Netflix doesn't support auto frame rate matching... So it just hangs out at 60hz. If there's issues with 50hz content, that... might be a lot more difficult for me to debug and work on.

I'm also the complete opposite on kodi settings. I've got auto frame rate enabled to match content. That's working quite well, if one has the equipment to take advantage of it.
[Shield Android TV Android Development] MagicMedlar:
Hi @Steel01

First of all, thank you so much for your work!

On the other hand, I see 18.1 builds are stopped. Is there any problem with compilation or some package?

Well, as I said before, thanks again for your time! Because of you, I bought my 2019 Pro and now I'm enjoying it without gapps.

A hug!
[Shield Android TV Android Development] Steel01:
They're not stopped, they're just on monthly now. 18.1 is legacy at this point with both 19.1 and 20.0 shipping. I'd be shipping 19.1 if it wasn't for one single bug: automatic frame rate causes hangs in apps like kodi and smarttube. The issue is an incompatibility in the nvidia closed source libraries, so I can't fix it. I also can't disable the functionality. And I'm not shipping something with a big selling point feature breaking apps. So... we're stuck on 18.1 for now.
[Shield Android TV Android Development] Steel01:
https://review.lineageos.org/c/LineageOS/android_device_nvidia_tegra-common/+/347272

I merged this a few minutes ago. It should fix issues with apps that try to use the standard android frame rate matching api. Nvidias gpu userspace does not support this. I tested against discovery go and it works as expected now, should be at parity with stock (does not match frame rate). This might fix the 50hz issues that were reported as well. And I think it fixes the video playback issues some were seeing on the mobile/tablet builds, but I have not verified this.

foster_tab will build within the next couple days. foster will build this weekend. So those that have video playback issues, please try again after this months update.
[Shield Android TV Android Development] Kladderadatsch:
@Steel01 I have installed the two apps (ARD, ZDF) as a test. The stream only runs for a second and then abruptly stops. When starting the stream, it switches to 50 Hz, but immediately afterwards it switches back to 60 Hz and the stream stops. If I set the values for ARD and ZDF to 50 Hz in the app "Refresh Rate", it works.
[Shield Android TV Android Development] svenfried:
Could you please post the exact name of the app or the play store URL? I find lots of "refresh rate" apps and I'm unsure which one you used. Thanks.
[Shield Android TV Android Development] Kladderadatsch:
It's the app "mobi.bytearray.refreshrate". When you open the app, you can set the "Startup display mode" of the ZDF app to 50 Hz, for example.

Free, no ads, for Nvidia Shield TV

https://www.nvidia.com/en-us/geforce/forums/shield-tv/9/297663/auto-refresh-rate-tool-google-play/

I did a little research again. The problem with the automatic adjustment of the frame rate is already led for years in the Nvidia Shield forum. The automatic adjustment of the frame rate only works from Android TV 12. With Android 11 (on which Lineageos for Nvidia Shield is based), the respective app must support it. Kodi, for example, can do that. Apps like Netflix or MagentaTV etc. unfortunately cannot. For this reason, the app "Refresh Rate" was created. Unfortunately, it has not been developed further for years. Therefore, the automatic adjustment of the frame rate no longer works in the app. However, the adjustment of the frame rate when starting an app still works.
[Shield Android TV Android Development] svenfried:
Wow. To be honest, I did not expect this to solve my problem. In fact, it did. Many thanks, @Kladderadatsch !!
[Shield Android TV Android Development] Steel01:
The update with the refresh rate matching fix built and released today. Those with issues in discovery go and other streaming apps should update and try again.
[Shield Android TV Android Development] Kladderadatsch:
@Steel01

I have installed the update. Unfortunately, none of my streaming apps (MagentaTV, ARD, ZDF, STube) now play a stream. Kodi does not start at all anymore (in Kodi it is set to start with 50 HZ).

I am now for the time being back to version of 14.12.2022.
[Shield Android TV Android Development] Steel01:
Is this with that refresh rate forcing app still enabled? The change I merged disables the android frameworks refresh rate matching functionality, which the nvidia gpu driver does not support. It's possible that the app is using that functionality. This change should eliminate the need for any hack workaround for refresh rate.

Edit: Kodi's refresh change support should still work, though. I have match refresh rate enabled (and graphics buffering set to 2 to match the nvidia gpu driver) and kodi still starts and handles afr as well as it was before. Works on content start, doesn't change back on content end.
[Shield Android TV Android Development] Kladderadatsch:
No, I tried with the app refresh rate disabled. Now the screen just stays black when I try to play content at 50 Hz. With the previous version of Lineage, it would briefly switch to 50 Hz and then immediately switch back to 60 Hz and the screen would stay black. I have Kodi configured to start at 50 Hz (unfortunately it won't start at all).

I think the Shield has problems playing content at 50 Hz/Pal. What happens to you @Steel01 when you configure Kodi to start at 50 Hz?
[Shield Android TV Android Development] brick00444:
I just installed the new build and opengapps. Then discovery go app starts and then gets pixeled on and off for too long. Then I installed the refresh app and set it to only have 50hz and it would clear up the pixeling after about 30 seconds. Just my experience for what its worth.

ps: Works great now I reinstalled Lineage and used opengappstvstock version open_gapps-arm64-11.0-tvstock-20220215 and everthing seems good now. by the way the first time I used the tvmini version and that didn;t work for me. Thank you very much. I didn't need the refresh app either.
[Shield Android TV Android Development] Kladderadatsch:
Discovery is an American steaming service after all. It broadcasts in NTSC, which the Shield has no problems with. So you don't need the RefreshRate app in this case.

I use many German streaming services and they broadcast in Pal. Most of my streaming apps switch from NTSC to Pal when starting a stream, but a second later switch back to NTSC and the picture stays black. For this reason I use the app RefreshRate.
[Shield Android TV Android Development] Steel01:
Don't recall if I mentioned this before or not. But I stopped working on opengapps tv stuff several months back and afaik, no one left around the project cares about atv. So ymmv using anything from there. And there's not likely to be any help with issues. The Lineage wiki now recommends MindTheGapps. See said wiki for more details.
[Shield Android TV Android Development] brick00444:
Thank you for the heads up. Will check out MindTheGapps.
[Shield Android TV Android Development] brick00444:
Reinstalled Lineage and MindTheGapps and works great! Real smooth and works good with another launcher. Hopefully someday someone will figure out the "recent apps" not working or maybe there is some kind of "Force close" app. Thank you for all your work.
[Shield Android TV Android Development] Kladderadatsch:
So, I installed the lineage-18.1-20230114-nightly-foster-signed.zip again. All the german streaming apps work now. The picture does not freeze anymore. Thanks a lot @Steel01.

But I still need the app RefreshRate to force a switch to Pal. It works even if I stay with NTSC but e.g. with news channels the ticker jerks if I do not switch to Pal.
[Shield Android TV Android Development] Steel01:
Yeah, weird stuff is unfortunately expected when source content framerate doesn't match the display panels refresh rate. I suspect this is what happens on stock as well. Which was the reason that refresh rate app got written in the first place. Maybe we can pray that Nvidia releases another major Android version update and has to implement the android framework refresh rate matching api. Then all of this would 'just work'. Probably wishful thinking.

That first test result was pretty weird though. I still have no idea why everything utterly failed. Glad it works better now.
[Shield Android TV Android Development] Not_Rich:
Hi

I am interested in one of these to replace my Minix u9, Is there a full android version available with a tablet style interface / launcher ?
[Shield Android TV Android Development] Kladderadatsch:
LineageOS Downloads

download.lineageos.org
[Shield Android TV Android Development] Not_Rich:
I have read that the default rom on the shield has some restrictions on what can be installed from the play store does this Lineage remove that?

Does this work on the latest model I dont know what the codename is for it.
[Shield Android TV Android Development] dsa13dsa:
Hi, friend!

And what, you can put this firmware on shield 2017?