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

I have a black screen, because I slid the color gamma sliders all the way down to -50 #11

Open
styromaniac opened this issue Sep 29, 2022 · 11 comments

Comments

@styromaniac
Copy link

I can't use vibrantDeck until I find where the config file is and edit or delete it. I didn't mean for it to be set at -50 for all colors. The menu selection went off from the slider and I tried going back but got lost in the pure black screen.

@Scrumplex
Copy link
Member

vibrantDeck uses "Local Storage" of the Steam Deck's webview.
If you are able to run commands, while you are in Deck UI, (SSH for example) you could override the gamma setting set by vibrantDeck and then change the values again.

I think running xprop -display :0 -root -remove GAMESCOPE_COLOR_GAIN and xprop -display :0 -root -remove GAMESCOPE_COLOR_LINEARGAIN should temporarily unset your gamma settings

@styromaniac
Copy link
Author

Thank you. I'm looking into SSH as I've never used it before. Is there a solution I can perform from the desktop?

@Scrumplex
Copy link
Member

Scrumplex commented Sep 29, 2022

I think there might be an even easier way using the Steam Deck's developer mode.

  1. You will need to go into desktop mode and run the command systemctl start steam-web-debug-portforward.service. It will probably ask for your password (You probably set this when installing Decky Loader).

    • Alternatively, if you can still use the Game Mode UI, enable this checkbox in Decky Loader's developer settings:
      20230224111640_1
  2. If you don't know then take note of the IP address of your Deck (In Desktop-Mode: click on the Wi-Fi symbol on the taskbar and open the details of your network).

  3. Now log out of desktop mode, which will switch back to Deck UI.

  4. Open Chrome/Edge/Brave/Vivaldi/Opera (sadly not Firefox) and go to the URL chrome://inspect. Click on Configure and enter <IP of your Deck>:8081.

  5. After that, you should get a few entries on that website. Click Inspect for the entry titled SharedJSContext (or Shared Context presented by Valve™ or SP depending on the version of Steam you are running). Now switch to the Application tab, click on Local Storage, select "https://steamloopback.host" and delete any entries that mention vibrantDeck.
    Now you should be able to restart the Deck, and it should all be fine again

@styromaniac
Copy link
Author

Thank you. I'll be trying this tomorrow. I'll be busy today and I gotta sleep for now.

@Scrumplex
Copy link
Member

For the last few steps (when you clicked Inspect for the "SP" entry), you can also run these three commands in the "Console" tab instead of deleting it manually from local storage and restarting:

DeckyPluginLoader.unloadPlugin("vibrantDeck");
localStorage.removeItem("vibrantDeck");
DeckyPluginLoader.importPlugin("vibrantDeck");

This should be it to reset the settings:
Console

@Jack32X
Copy link

Jack32X commented Feb 23, 2023

I too have mucked up my gamma settings and have a black screen, if I put the device to sleep and back I get a screen again but going back to the plug-in breaks it again, uninstalling and reinstalling does not work. I tried those commands and get the error : xprop: unable to open display :0 and the second method for some reason the SP entry is not visible, though I am using edge, will try on chrome

@Jack32X
Copy link

Jack32X commented Feb 23, 2023

It seems like uninstalling the plugin does not delete its settings, since reinstalling seems to immediately re apply the gamma stuff

@Scrumplex
Copy link
Member

Valve changed the name of the main tab from SP to Shared Context presented by Valve™, just repeat the steps above in that tab instead.

@Scrumplex
Copy link
Member

I updated my comment above with updated instructions

@Scrumplex
Copy link
Member

Valve changed the name of the main tab from SP to Shared Context presented by Valve™

Looks like it was renamed yet again! It is called SharedJSContext now

@MrPatben8
Copy link

Had this same issue. Thanks @Scrumplex for the help!
Uninstalling ought to delete all saved settings. Or just prevent users from blacking out their displays.

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

4 participants