This script works around the annoying feature of LG webOS TVs which automatically change the sound mode to "Game optimizer" when Game optimizer is selected as the video mode.
It works around it by setting it back to a user-selected mode every 5 seconds in case it changed to something else.
To install it your TV needs to be rooted. See RootMyTV and WebOSBrew.
Make sure the TV date and time are up to date.
Then you can connect to your TV using SSH or the WebOSBrew Device Manager app and run the following to install it:
curl -L https://gist.githubusercontent.com/depau/de07e9424abac532d2d11eaeeac99a2b/raw/2-install.sh > /tmp/install.sh && bash /tmp/install.sh
To uninstall it, run instead:
curl -L https://gist.githubusercontent.com/depau/de07e9424abac532d2d11eaeeac99a2b/raw/5-uninstall.sh > /tmp/uninstall.sh && bash /tmp/uninstall.sh
To temporarily pause and restart the mod you can run:
systemctl stop force-sound-mode
systemctl start force-sound-mode
Thanks! This was a huge pain point for me, at least until I finally get an external speaker setup lol.