batocera-linux / batocera.linux

batocera.linux
https://batocera.org
Other
1.94k stars 501 forks source link

Nvidia GPU - Black Screen after updating from 37 to 38 #10214

Closed J1mb0987 closed 11 months ago

J1mb0987 commented 11 months ago

Hi All,

Having an issue with black screen after upgrading from 37 to 38.

After the final splash screen (just before it should load the GUI) it just sits on a black screen. If I press ctrl,alt,del and F3 it displays the following;

X Error of failed request: BadValue (interger parameter out of range for operation) Major opcode of failed request: 151 (GLX) Major opcode of failed request: 3 (X_GLXCreateContext) Value in failed request: 0x0 Serial number of failed request: 118 Current serial number output stream: 119 set eDP-1 as primary /usr/bin/xrandr 0bt-Message: failed to open input method 0bt-Message: failed to open input method 0bt-Message: failed to open input method 0bt-Message: failed to open input method

Am using a hybrid laptop that has both intel and NVidia GPU, I've changed to conf file to force over Nvidia same issue, I've also updated from within linux/37 to 38 and the same thing happens.

Not sure how to pull the logs out for nvidia & display but id someone can point me in the right direction I'll upload them.

Cheers

muyesuyes commented 11 months ago

@muyesuyes excellent, thanks. ok, we now have some stuff to work better with. I'm uploading 39-dev-1548dac599 2023/10/22 07:55 it will be there in 20mins from now. Same share, try again when you can & let me know. It should boot now.

I'm sorry, but the result is still the same... Although it gives the same error as in the attached picture, new logs are also attached. I also tried all possible alternatives in batocera-boot.conf file, still got black screen.

amd.log batocera.log display.log mpv.log nvidia.log

dmanlfc commented 11 months ago

@muyesuyes try 39-dev-42479f041e 2023/10/22 22:41 it will be there in 20mins

dmanlfc commented 11 months ago

Hi @dmanlfc

I just finish testing your latest version (39-dev-1548dac599) and I am sorry to report that the problem is still there for my setup (I am attaching the logs which I got with default settings so you can check your code). logs.zip

I also thought to try something else in this version. Since I notice something about VGA-1 in the logs I tried setting in /userdata/system/batocera.conf with global.videooutput=HDMI-0

After reboot nothing happened but then I tried to run emulation station from ssh shell and it started up. However it was extremely extremely slow. Any change on my controller it takes at least 30 seconds to respond on my TV. I manage to open system information and I notice that in this case the video drivers are mesa drivers.

Then i tried to make changes in the batocera-boot.conf files by setting nvidia-driver=true (along with the global.videooutput=HDMI-0 in /userdata/system/batocera.conf but nothing happened.

Then again I tried nvidia-driver=legacy (instead of nvidia-driver=true) and everything started up correctly. Emulation station started up on its own and it was responding normal. In this scenario the drivers that seem to be loading in batocera (under system information was version 470.xxxx which is different that the current production drivers version 5XX).

I still think that the latest nvidia drivers are not loaded or not working correctly on the v38 version and the latest v39 versions but I am no expert on this so I am waiting for your input.

Thanks

ok, very strange. do you have VGA-1 connected on any GPU?? it's odd because this card works for me...

what is the output of mpv --drm-connector=help from the terminal or ssh?

phanosp commented 11 months ago

Hi @dmanlfc I just finish testing your latest version (39-dev-1548dac599) and I am sorry to report that the problem is still there for my setup (I am attaching the logs which I got with default settings so you can check your code). logs.zip I also thought to try something else in this version. Since I notice something about VGA-1 in the logs I tried setting in /userdata/system/batocera.conf with global.videooutput=HDMI-0 After reboot nothing happened but then I tried to run emulation station from ssh shell and it started up. However it was extremely extremely slow. Any change on my controller it takes at least 30 seconds to respond on my TV. I manage to open system information and I notice that in this case the video drivers are mesa drivers. Then i tried to make changes in the batocera-boot.conf files by setting nvidia-driver=true (along with the global.videooutput=HDMI-0 in /userdata/system/batocera.conf but nothing happened. Then again I tried nvidia-driver=legacy (instead of nvidia-driver=true) and everything started up correctly. Emulation station started up on its own and it was responding normal. In this scenario the drivers that seem to be loading in batocera (under system information was version 470.xxxx which is different that the current production drivers version 5XX). I still think that the latest nvidia drivers are not loaded or not working correctly on the v38 version and the latest v39 versions but I am no expert on this so I am waiting for your input. Thanks

ok, very strange. do you have VGA-1 connected on any GPU?? it's odd because this card works for me...

what is the output of mpv --drm-connector=help from the terminal or ssh?

@dmanlfc No I do not have anything connected to the VGA-1. In fact my graphic card does not have a VGA-1 output (it has dp and hdmi). The only vga that I have on my system (but still disconnected) is on the motherboard but I never used it. Does this make any sense?

dmanlfc commented 11 months ago

@phanosp show me the output of mpv --drm-connector=help please

phanosp commented 11 months ago

@phanosp show me the output of mpv --drm-connector=help please

Hi @dmanlfc,

I will get the result when I am home later and sent it you because now I can not.

Thanks

muyesuyes commented 11 months ago

@muyesuyes try 39-dev-42479f041e 2023/10/22 22:41 it will be there in 20mins

Screen 1 Screen 1 Screen 2 Screen 2 Screen 3 Screen 3

I also got a black screen on your new developer version. In this version, unlike other versions, when the error messages in the image named Screen 2 are displayed on the CTRL+ALT+F3 screen, you wait for a certain period of time or press Enter, r, e etc. It was opened via the mesa driver when some keyboard keys were pressed (Intel HD 4000). The sounds worked smoothly. Additionally, when the F1 key is pressed, it goes to the black error message screen and quickly returns to the menu. With the nvidia-driver=true setting, it receives similar errors as in the image named Screen 3 and does not open. Screenshots and logs are attached.

Sorry my bad English.

dmanlfc commented 11 months ago

@muyesuyes try this from the failed terminal:

mkdir -p /usr/lib/nvidia/xorg then cp /usr/share/nvidia/xorg/libglx.so.390.157 /usr/lib/nvidia/xorg/libglx.so.390.157 and then batocera-save-overlay finally reboot

muyesuyes commented 11 months ago

@muyesuyes try this from the failed terminal:

mkdir -p /usr/lib/nvidia/xorg then cp /usr/share/nvidia/xorg/libglx.so.390.157 /usr/lib/nvidia/xorg/libglx.so.390.157 and then batocera-save-overlay finally reboot

When I followed the commands you gave, I was able to get an image when CTRL+ALT+F3 was pressed, both with the nvidia-driver=true setting active and inactive. In both options, the system displayed images with Intel Mesa. F1 key gives a black screen again and returns to the main screen. Additionally, although it appeared to be disabled in the voice settings, voice navigation was activated and could not be turned off.

Sorry my bad English.

phanosp commented 11 months ago

Hi @dmanlfc

This is what I get when I run the command you suggested

`[root@BATOCERA /userdata/system]# mpv --drm-connector=help Available connectors for card 0 (/dev/dri/card1): VGA-1 (connected)

Available connectors for card 1 (/dev/dri/card0): DP-1 (disconnected) DP-2 (disconnected) HDMI-A-1 (connected) DP-3 (disconnected)

[root@BATOCERA /userdata/system]# `

Please note that although VGA-1 says I have something connected to it I do not have any cables connected on this.

dmanlfc commented 11 months ago

@muyesuyes: I have moved your issue here - https://github.com/batocera-linux/batocera.linux/issues/10283 @phanosp: I have moved your issue here - https://github.com/batocera-linux/batocera.linux/issues/10284

Closing this thread to get separation.