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

No signal customization #2

Open
Informatic opened this issue Jan 7, 2022 · 2 comments
Open

No signal customization #2

Informatic opened this issue Jan 7, 2022 · 2 comments

Comments

@Informatic
Copy link
Member

Informatic commented Jan 7, 2022

Surprisingly, both webOS 3.8 and webOS 6.2 (and probably everything inbetween) have very similar inputcommon qml layouts:
/usr/palm/applications/com.webos.app.inputcommon/qml/TvComponent/ScreenSaver/...

We could probably inject some custom code there as well.

@abjugard
Copy link

I would very much be interested in this. Anyone had a look at it?

@abjugard
Copy link

abjugard commented Jan 10, 2024

In an attempt to remove the long text under "No Signal" on my OLED C9 I modified some QML files and made a very crude /var/lib/webosbrew/init.d/99-kill-the-text with the following contents:

#!/bin/sh

set -e -o pipefail

STR_MOUNT_TARGET="/usr/palm/applications/com.webos.app.inputcommon/qml/StringResource/ScreensaverString.qml"
STR_QML_PATH="/media/developer/mods/com.webos.app.inputcommon/qml/StringResource/ScreensaverString.qml"

if [[ ! -f "$STR_MOUNT_TARGET" ]]; then
    echo "[-] Target file does not exist: $STR_MOUNT_TARGET" >&2
    exit 1
fi

if ! findmnt "$STR_MOUNT_TARGET"; then
    mount --bind "$STR_QML_PATH" "$STR_MOUNT_TARGET"
    echo "[+] StringResource mounted succesfully" >&2
else
    echo "[~] StringResource mounted already" >&2
fi

MDL_MOUNT_TARGET="/usr/palm/applications/com.webos.app.inputcommon/qml/Model/ScreensaverModel.qml"
MDL_QML_PATH="/media/developer/mods/com.webos.app.inputcommon/qml/Model/ScreensaverModel.qml"

if [[ ! -f "$MDL_MOUNT_TARGET" ]]; then
    echo "[-] Target file does not exist: $MDL_MOUNT_TARGET" >&2
    exit 1
fi

if ! findmnt "$MDL_MOUNT_TARGET"; then
    mount --bind "$MDL_QML_PATH" "$MDL_MOUNT_TARGET"
    echo "[+] Model mounted succesfully" >&2
else
    echo "[~] Model mounted already" >&2
fi

Rebooted the TV, and also tried killing com.webos.app.inputcommon, but unfortunately the text remains. I'm thinking that there must be a compiled version of the QML files for this app, and that probably happens too early in the boot process for my changes to take effect.

Anyone have any ideas how to get the TV to use the modified QML files?

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

No branches or pull requests

2 participants