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

Issues with turning the screen off. #16

Open
Riksu9000 opened this issue Mar 21, 2022 · 12 comments
Open

Issues with turning the screen off. #16

Riksu9000 opened this issue Mar 21, 2022 · 12 comments
Labels
help wanted Extra attention is needed

Comments

@Riksu9000
Copy link
Contributor

When the screen turns off while InfiniSim is launched with the status window, the screen freezes, instead of turning the screen black and reading "Screen is OFF".

When InfiniSim is launched without the status window, the Interface is entirely black, and when the screen turns off, the "Screen is OFF" text is shown. This text doesn't go away when trying to wake it up.

These issues aren't present on my Pinebook Pro. I have an Nvidia gpu and the issue is present on wayland and xorg, if that means anything.

I thought these issues might be related, so I'm posting them in a single issue.

Kooha-03-21-2022-13-44-26.mp4
@NeroBurner
Copy link
Collaborator

could you try with the settings.dat file moved or removed?

@Riksu9000
Copy link
Contributor Author

I tried removing the file, but the issue persists.

@Riksu9000
Copy link
Contributor Author

This issue also happens in builds created by github actions on InfiniTime, which should rule out issues in the build.

@NeroBurner
Copy link
Collaborator

Thanks for checking. I'll need to reproduce locally and investigate

@NeroBurner
Copy link
Collaborator

can't reproduce on current InfiniSim main branch d6cc748 and InfiniTime develop branch InfiniTimeOrg/InfiniTime@1c4a56b

Can you test with those exact commits?

tried with and without the status screen. A right mouse-click always wakes the screen up for me

I'm on Arch Linux, KDE Plasma 5.24.3 on with Wayland compositor and a AMD Radeon RX 580. Don't have a NVidia card to test it

@Riksu9000
Copy link
Contributor Author

Tried those commits, no difference. I should clarify that the simulator keeps working even with this issue. Waking it up it refreshes the screen and it keeps working, and even when the screen is entirely black, I think it's still running correctly according to the status messages when right clicking.

I checked that the code execution does enter the part where the screen off objects get created by adding printfs, yet the objects can't be seen on screen. Could they be offscreen somehow?

Lastly I made an interesting discovery. I tried this on another machine with an nvidia card and it worked at first. Then I switched from nouveau drivers to the proprietary ones, and now it has the issue as well!

@NeroBurner NeroBurner added the help wanted Extra attention is needed label Mar 21, 2022
@NeroBurner
Copy link
Collaborator

does the window update if you minimize and maximize it?

do other opengl windows work as expected on nvidia drivers?

@Riksu9000
Copy link
Contributor Author

Minimizing doesn't help either. I can't say I have never encountered issues, but pretty much everything works "as expected" on the proprietary drivers as far as I can tell. I can't remember having encountered anything like this before.

@Da-Viper
Copy link

This seems to be a nvidia proprietary drivers problem, I disable the nvidia card from the BIOS and it turns off properly but when I enable it the issues persists.

@NeroBurner
Copy link
Collaborator

does this issue still exist or did SDL or NVidia maybe fix the problem?

@Da-Viper
Copy link

Da-Viper commented May 3, 2023

does this issue still exist or did SDL or NVidia maybe fix the problem?

Yes this issue still occurs, I am on
SDL2 version: 2.26.5
Nvidia Driver version: 530.41.03

@NeroBurner
Copy link
Collaborator

Could you try the original lvgl simulator with NVidia hardware. I'd like to try narrowing down if InfiniSim does something wonky, or the lvgl-simulator InfiniSim is based on, or SDL2

https://github.com/lvgl/lv_port_pc_eclipse/tree/dev-7.0 (please try the lvgl7 branch dev7)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants