webosbrew / webos-homebrew-channel

Unofficial webOS TV homebrew store and root-related tooling
MIT License
863 stars 46 forks source link

Failsafe is always set after "cold" start #88

Open Bodenseematze opened 2 years ago

Bodenseematze commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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

Bodenseematze commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

I have been experiencing the same issue.

ccvh commented 2 years ago

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 commented 2 years ago

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

mcdachpappe commented 1 year ago

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 commented 11 months ago

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 commented 10 months ago

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:

https://github.com/webosbrew/webos-homebrew-channel/blob/d1898e8cecca01f64a670ed8255b5fc0fae985c6/services/startup.sh#L43-L44

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?

https://github.com/webosbrew/webos-homebrew-channel/blob/d1898e8cecca01f64a670ed8255b5fc0fae985c6/services/startup.sh#L38-L39

https://github.com/webosbrew/webos-homebrew-channel/blob/d1898e8cecca01f64a670ed8255b5fc0fae985c6/services/startup.sh#L139-L140

throwaway96 commented 9 months ago

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.

mcdachpappe commented 9 months ago

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 commented 5 months ago

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 commented 4 months ago

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 !