Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

psplash: Add support for animated gifs during boot #76

Merged
merged 4 commits into from
Nov 14, 2021

Conversation

MagneFire
Copy link
Member

@MagneFire MagneFire commented Nov 9, 2021

Add support for showing an animated gif located at /usr/share/psplash.gif.
This is enabled by default and can be disabled on a per device basis if this proves problematic on some platforms.

Many credits go to @eLtMosen for providing the animated gifs!
This work is based on tano-systems/psplash-tn@67394ea

Demo:

psplash-gif.mp4

Also worth noting that if a watch needs a different solution the following can be used in a bbappend recipe:

do_install:append:sturgeon() {
    install -m 0755 ${WORKDIR}/psplash-img-400-220.gif ${D}/usr/share/psplash.gif
}

Now also distribute the Disable-double-buffering.patch patch here instead of the different watch layers (https://github.com/AsteroidOS/meta-ray-hybris/blob/master/recipes-core/psplash/psplash/0001-Disable-double-buffering.patch, https://github.com/AsteroidOS/meta-skipjack-hybris/blob/main/recipes-core/psplash/psplash/0001-Disable-double-buffering.patch, also for sawfish (oreo +) and catfish).

Additionally, instead of restarting psplash and starting msm-fb-refresher with some delay. We can also start msm-fb-refresher before psplash to solve the garbled display issue (AsteroidOS/asteroid#101 (comment)).

This has now the ability to disable the progressbar, so no need to patch psplash anymore.
MagneFire and others added 3 commits November 9, 2021 19:43
Add support for showing an animated gif located at /usr/share/psplash.gif.
This is enabled by default and can be disabled on a per device basis if this proves problematic on some platforms.

Many credits go to @eLtMosen for providing the animated gifs!
This work is based on tano-systems/psplash-tn@67394ea

Co-authored-by: Timo Könnecke <koennecke@mosushi.com>
… fix screen noise issue.

On some watches (Mostly msm8909 and Android kernels 8.0 and up) double buffering results in only garbled pixels.
Disabling double buffering and using FBIOPAN_DISPLAY solves this partly, be the framebuffer needs to be opened once to workaround this completely.
Some watches need some assistance to setup the framebuffer. Adding the same code into psplash alone does not solve this.
It needs to be a separate binary that is executed before psplash.
@FlorentRevest
Copy link
Member

Eheh this is very cool :) Let's see if we can come up with more cool animations.

@FlorentRevest FlorentRevest merged commit 453b1e7 into AsteroidOS:master Nov 14, 2021
@MagneFire MagneFire deleted the psplash-gif branch January 9, 2024 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants