Giter Site home page Giter Site logo

Comments (4)

 avatar commented on June 11, 2024 1

I use the command line because as far as I know that's the only way to do it. There is technically a UI for the screensaver settings with an an option for changing "current screensaver" but if you select that option it only lists Amazon's own app and nothing else so I'm not entirely sure why they even bothered having it there.

In an case I've made the changes and can confirm your screensaver now works again so case closed there, wasn't a bug afterall just my settings were wrong! Thanks very much for the help anyway, I appreciate it. I'll close this when I comment.

from aerialviews.

theothernt avatar theothernt commented on June 11, 2024

Sorry to hear that latest build isn't working, nothing was specifically changed but the conversion to Kotlin and some tidying up may have broken something. That said, the code that shows the preview/test and the full screensaver should be the same!

If you can, can you tell me if any of the video formats work? also, what version of Android is the Fire TV 4K running?

from aerialviews.

 avatar commented on June 11, 2024

Hi, thanks for checking this out. I think I've found the issue actually but to answer your questions first I have tried all the video formats and none work, I'm not entirely sure what version of android it uses but it's apparently based on 7.1.2 according to wikipedia.

It occurred to me (not sure why it didn't before) to use logcat and watch the output when the screensaver was supposed to start to see what gets logged and sure enough I got this output after a while:

04-23 20:21:14.377 611 636 I PowerManagerService: Nap time (uid 1000)... 04-23 20:21:14.380 611 636 W DreamManagerService: Dream ComponentInfo{com.amazon.ftv.screensaver/com.amazon.ftv.screensaver.app.services.ScreensaverService:com.codingbuffalo.aerialdream/.AerialDream} does not exist 04-23 20:21:14.381 611 636 W DreamManagerService: Falling back to default dream ComponentInfo{com.codingbuffalo.aerialdream/com.codingbuffalo.aerialdream.AerialDream} 04-23 20:21:14.381 611 636 I DreamManagerService: Entering dreamland. 04-23 20:21:14.381 611 636 I PowerManagerService: Dreaming... 04-23 20:21:14.382 611 629 I DreamController: Starting dream: name=ComponentInfo{com.codingbuffalo.aerialdream/com.codingbuffalo.aerialdream.AerialDream}, isTest=false, canDoze=false, userId=0 04-23 20:21:14.383 611 629 W ActivityManager: Unable to start service Intent { act=android.service.dreams.DreamService flg=0x800000 cmp=com.codingbuffalo.aerialdream/.AerialDream } U=0: not found 04-23 20:21:14.383 611 629 E DreamController: Unable to bind dream service: Intent { act=android.service.dreams.DreamService flg=0x800000 cmp=com.codingbuffalo.aerialdream/.AerialDream } 04-23 20:21:14.383 611 629 I DreamController: Stopping dream: name=ComponentInfo{com.codingbuffalo.aerialdream/com.codingbuffalo.aerialdream.AerialDream}, isTest=false, canDoze=false, userId=0

So I realised that the black screen isn't actually the screensaver; that's just the fire tv turning the screen off after a period of inactivity which it does anyway, the screensaver isn't starting at all because it can't be found for whatever reason according to that log.

To set the screensaver in the settings I used this code;

adb shell settings put secure screensaver_components com.amazon.ftv.screensaver/.app.services.ScreensaverService:com.codingbuffalo.aerialdream/.AerialDream settings put secure screensaver_default_component com.codingbuffalo.aerialdream/.AerialDream

This works for 0.94, but I assume with 0.95 now I need to flesh out the bit after the / if it can't find it, unless something else has changed? I know the actual app name is the same as I found it when I did pm list packages.

Cheers!

from aerialviews.

theothernt avatar theothernt commented on June 11, 2024

Ahh, I see the problem. I was also wondering why I didn't have the same issue as I run the builds for weeks at a time to make sure they're stable, etc.

I don't have a Fire TV stick - is there no UI to configure a screensaver, or do you prefer the command line method?

Either way, the name of the screensaver intent (ie. the name of the class that's executed) has changed so your command needs to be updated. It's changed to com.codingbuffalo.aerialdream/.ui.screensaver.DreamActivity. So I think the new command is...

adb shell settings put secure screensaver_components com.amazon.ftv.screensaver/.app.services.ScreensaverService:com.codingbuffalo.aerialdream/.ui.screensaver.DreamActivity settings put secure screensaver_default_component com.codingbuffalo.aerialdream/.ui.screensaver.DreamActivity

Let me know if that works for you!

I'll add that to the install instructions in future. Also, the name of the app will change in future!

from aerialviews.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.