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

Failsafe is always set after "cold" start #88

Open
Bodenseematze opened this issue Feb 2, 2022 · 23 comments
Open

Failsafe is always set after "cold" start #88

Bodenseematze opened this issue Feb 2, 2022 · 23 comments
Labels
bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request

Comments

@Bodenseematze
Copy link

I have a brand new LG OLED48C17LB with WebOS 6.2.2 which I rooted and installed the homebrew app.

I always shutdown my TV with its remote (standby mode is not set) and then cut it from the power (socket-outlet with a switch).
When I then switch it on again, it always starts in failsafe mode (with annoying message at TV screen) and I have to switch it off manually in the homebrew app and reboot the device.
After that the failsafe mode is gone until I cut the device completely from power again...

@Informatic
Copy link
Member

Informatic commented Feb 2, 2022

This will probably be fixed when we merge in and release a version with #80

However, can you quickly check contents of these files / results of these commands, after connecting to the TV over telnet or ssh:

cat /media/cryptofs/apps/usr/palm/services/com.palmdts.devmode.service/start-devmode.sh

cat /mnt/lg/cmn_data/wam/extra_conf.sh

cat /var/lib/webosbrew/startup.sh

ps aux | grep -i startup

(You can use Putty or a somewhat-default Windows/Linux/OSX ssh command to connect to the TV with SSH enabled, ssh root@TV_IP, default password is alpine)

@Wtcheesecakes
Copy link

Just to add to this as well, it is not a good idea to cut the power at the socket after switching off as the TV attempts to do a pixel refresh in this time :)

@Bodenseematze
Copy link
Author

Bodenseematze commented Feb 6, 2022

First of all: I enabled the ssh server in HBC - but it seems it is not running after power on.
So I had to enable telnet as well (and reboot the TV system) to get at the command prompt...
EDIT: after resetting the failsafe mode flag in HBC and doing a reboot, the sshd was started...

This will probably be fixed when we merge in and release a version with #80

hope it'll be soon ;-)

However, can you quickly check contents of these files / results of these commands, after connecting to the TV over telnet or ssh:

cat /media/cryptofs/apps/usr/palm/services/com.palmdts.devmode.service/start-devmode.sh

File does not exist.
Inside /media/cryptofs/apps/usr/palm/services/com.palmdts.devmode.service/ there is only a sub directory "binaries-armv71" and inside that "opt/ and inside that the two directories "openssh" and "devmode".
All of the directories are empty and no files inside.

cat /mnt/lg/cmn_data/wam/extra_conf.sh

see attached file "extra_conf.sh.txt"
extra_conf.sh.txt

cat /var/lib/webosbrew/startup.sh

see attached file "startup.sh.txt"
startup.sh.txt

ps aux | grep -i startup

root 3815 0.0 0.0 4456 536 ? S 10:50 0:00 sh /var/lib/webosbrew/startup.sh
root 5347 0.0 0.0 4456 756 pts/2 S 10:58 0:00 sh /var/lib/webosbrew/startup.sh
root 5753 0.0 0.0 4456 704 pts/2 S+ 11:03 0:00 grep -i startup

@Bodenseematze
Copy link
Author

Just to add to this as well, it is not a good idea to cut the power at the socket after switching off as the TV attempts to do a pixel refresh in this time :)

I thought current OLED TVs don't need that anymore?
For energy savings reasons I'll continue to switch my TV (and the other devices like BluRay, network switch, amplifier, subwoofer, ...) off - but I'll do a manual pixel refresh from time to time...

@Wtcheesecakes
Copy link

Just to add to this as well, it is not a good idea to cut the power at the socket after switching off as the TV attempts to do a pixel refresh in this time :)

I thought current OLED TVs don't need that anymore? For energy savings reasons I'll continue to switch my TV (and the other devices like BluRay, network switch, amplifier, subwoofer, ...) off - but I'll do a manual pixel refresh from time to time...

https://youtu.be/dHwB1IDVzZU will tell you about it 😁

@jospezial
Copy link

I had the failsafe issue when i restart or poweroff the tv too often in short time. Waiting for the new release.
@Bodenseematze
I have been 3 years in tv repair service. LG does not give you warranty on the panel if you don't have the optimal refreshes count/hours. It is listed in the service menu.

@ccvh
Copy link

ccvh commented Feb 22, 2022

Is there a quick way to fix this before the next release? It‘s kinda annoying, especially because the failsafe mode is activated again on every power loss, even if it’s unchecked at the settings..

@Bodenseematze
Copy link
Author

Is the issue fixed with the 0.5.0RC/RC-2 releases?
If yes, how can I update the HBC 0.4.0 with the RC version(s)?
The "Update" button is still grayed out and a way to switch from "Release Channel" to "Beta" seems not to be present?!

@Informatic
Copy link
Member

Informatic commented Feb 24, 2022

You need to connect over ssh or telnet and run the following command:

luna-send -i 'luna://org.webosbrew.hbchannel.service/install' '{"ipkUrl":"https://github.com/webosbrew/webos-homebrew-channel/releases/download/v0.5.0-rc2/org.webosbrew.hbchannel_0.4.0_all.ipk","ipkHash":"d4b4a7d3bc6c13b2f85cb05c7987195a91188ef2d2b643ed68e06d2bc626f637"}'

(version will still be listed as v0.4.0 in Settings because it's a release candidate...)

Otherwise, I'll push out that version as an available update officially this evening. (in ~10 hours)

Notable changes here:
https://github.com/webosbrew/webos-homebrew-channel/blob/v0.5.0-rc1/CHANGELOG.md#unreleased

@Informatic
Copy link
Member

v0.5.0 has been released - now you can update by going to Homebrew Channel → Apps list → Homebrew Channel → Update.

@Bodenseematze
Copy link
Author

inbetween I updated to v0.5.0 - which doesn't solve this issue: it just "changes" ;-)

Now I have a really big dialog after cold starting my TV saying that the TV started in failsafe mode and it asked whether I want to reboot now or later...

So it's now easier to switch the failsafe mode off - but the issue that the TV goes to failsafe mode after powering it off is still present :-(

@Informatic
Copy link
Member

Sure, we made a bunch of other changes that could've helped (but they didn't ;))

Can we sit down and try to debug this together in private? You can reach me on matrix (@informatic:hackerspace.pl), openlgtv discord (infowski), irc (inf @ libera.chat), or, as a last resort, via email (informatic at hackerspace.pl)

@nnmdd
Copy link

nnmdd commented Jun 30, 2022

im not sure if this same problem
but after any power loss my tv will boot in failsafe mode. quickstart+ disabled.
tv not running any internal routines, (come true even after few days without swithching on)

webos 6.2.0
hbc 0.5.0

@goodlucknow
Copy link

I have been experiencing the same issue.

@ccvh
Copy link

ccvh commented Jul 20, 2022

Any news? Everything else works like a charm, but I use an zigbee outlet to power off all multimedia Standby by night and it’s so annoying 😔

@bendingunit
Copy link

I'm getting the same repeating message after each cold start of my LG UK7550LLA - v05.40.26 with latest webosbrew installed :-(

@mcdachpappe
Copy link

I'm facing the same issue. Is there any place where i can find the log output to see what's causing the issue?

modelName : OLED55C8LLA (rooted)
firmwareVersion : 05.50.10
homebrew version: 0.6.3

@rdzviper
Copy link

regularly facing that issue
LG C2, latest firmware
homebrew version: 0.6.3

Is there a way to fix it? It is pretty annoying to restart tv each time

@rjd22
Copy link

rjd22 commented Dec 26, 2023

This is just an observation and someone with more knowledge than me needs to confirm the following.

I was looking at the code and saw sync is called when writing the failsafe file here:

touch /var/luna/preferences/webosbrew_failsafe
sync

Might the issue be caused by the fact that sync is not called when removing the file? Causing the file to stay on the filesystem?

rm /var/luna/preferences/webosbrew_failsafe
luna-send -a com.webos.service.secondscreen.gateway -f -n 1 luna://com.webos.notification/createAlert '{"sourceId":"webosbrew","message":"<b>Homebrew Channel</b> - Failsafe mode<br />A crash has occured during previous startup - root-related system customizations have been temporarily disabled.<br /><br /> System should go back to normal after a reboot.<br />Would you like to reboot now?","buttons":[{"label":"Reboot now","onclick":"luna://com.webos.service.sleep/shutdown/machineReboot","params":{"reason":"remoteKey"}},{"label":"Reboot later"}]}'

rm /var/luna/preferences/webosbrew_failsafe
fi

@throwaway96
Copy link
Member

throwaway96 commented Feb 2, 2024

I added sync in #164. I don't think it will resolve this issue, but it may help in a few cases.

We need to improve the documentation around failsafe mode: what it is, how/why it gets enabled, what to do about it, etc.

@throwaway96 throwaway96 added bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request labels Feb 2, 2024
@mcdachpappe
Copy link

I added sync in #164. I don't think it will resolve this issue, but it may help in a few cases.

We need to improve the documentation around failsafe mode: what it is, how/why it gets enabled, what to do about it, etc.

I'm ready an looking forward to test it

@irishj
Copy link

irishj commented May 28, 2024

Same issue here, LG C9 (OLED55C9PLA) - webOS 4.9.7-17 / Software 05:30:40

Would really like a solution if possible, restarting every time I start my tv is annoying.

@wisukind
Copy link

Hello there,

Not sure if it's the same problem, but for some reason I can't disable fail-safe mode at all. I can grey it out, makes a cold restart, but it always come back. My TV is rooted using the latest DejaVuln exploit.

"hardware_id": "HE_DTV_W22H_AFADATAA",
"product_id": "75QNED866QA",
"core_os_release": "7.4.0-1901",
"webos_manufacturing_version": "04.40.91",

Using latest release of homebrew.

I'm asking this because my TV keeps asking for installing available updates (while it is turned off in homebrew), and I suspect this is due to fail-safe mode not being properly disabled.

Thanks for any help / hint !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests