batocera-linux / batocera.linux

batocera.linux
https://batocera.org
Other
1.84k stars 472 forks source link

[v38] Nvidia GeForce GTX 1660 SUPER with Intel integrated graphics - blackscreen #10284

Closed dmanlfc closed 8 months ago

dmanlfc commented 8 months ago

Batocera build version

v38 or v39 butterfly builds

Your architecture

x86_64

Your Graphic Processor Unit (GPU)

Dedicated (e.g. GTX 1050; Radeon R9 380)

Graphical brand

Nvidia

Issue description

Since v38 Batcoera does not boot with GeForce GTX 1660 SUPER with Intel integrated graphics, only get a black screen.

mpv.log shows VGA1 being used.

Expected result

To be able to boot into ES without issue.

Reproduction steps

GeForce GTX 1660 SUPER with Intel integrated graphics

Logs and data

`[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 8 months ago

following on from: https://github.com/batocera-linux/batocera.linux/issues/10214

@phanosp I will give you a test soon. is this a laptop?

phanosp commented 8 months ago

following on from: #10214

@phanosp I will give you a test soon. is this a laptop?

Hi @dmanlfc ,

no this is a desktop pc that resides on my living room for watching movies and playing games.

Thanks

dmanlfc commented 8 months ago

@phanosp check if there are any graphics related BIOS options. try various settings. It is strange that it's suggesting a VGA adaptor is connected.

On boot, you see the splash screen, no boot video & then it stays blank but if you set global.videooutput to your HDMI port in batocera.conf you get, splash & then video, then blank, correct?

phanosp commented 8 months ago

Hi @dmanlfc ,

I already check the bios since I thought as well that this might be related but the only related option that I could find there was about VGA priority (VGA Priority [Offboard Device]) which I set to the Offboard Device (NVidia graphic card). The motherboard manual can be found here https://dlcdnets.asus.com/pub/ASUS/mb/socket1151/P10S-M/Manual/E14508_P10S-M_UM_V4_WEB.pdf?model=P10S-M and the above option is under page Page 4-16).

Please note that in the past when I reset the motherboard bios I could not see anything from my graphic card on my TV and had to take the living root pc on my bedroom and hook it to an old VGA monitor to make the change and then brought it back down again, so I think this option does what it says.

On boot, you see the splash screen, no boot video & then it stays blank but if you set global.videooutput to your HDMI port in batocera.conf you get, splash & then video, then blank, correct?

Yes during boot I see post messages and I can even enter bios (while only have connected the HDMI-0 port). In Windows I have no problem either and up until batocera v37 everything where working fine.

Now on batocera v38 and v39 betas when I try to boot to batocera I see a message like ...booting in 1 second... and then everything is blank. When I set global.videooutput to my HDMI I do see some video (no sure what you mean by splash) and then black screen again.

In the latest beta you shared (i think 39-dev-1548dac599) if I set the option in batocera-boot.conf, nvidia = legacy I get to enter batocera but in this case I have no sound, I tried all the available options under system in emulation station (including trying to get sound using ARC from my TV) but nothing worked. The loaded driver in emulation station is 470.XXX (which to my understanding this the old legacy nvidia driver)

dmanlfc commented 8 months ago

@phanosp please don't manually set to driver, we need to fix it with the latest driver.

try & set splash.screen.resize=1920x1080@60 in batocera.conf

phanosp commented 8 months ago

@dmanlfc

I will set this when I go home later since there is no way to test now. Should I also set the global.videooutput in batocera.conf or just splash.screen.resize=1920x1080@60?

dmanlfc commented 8 months ago

Both

On Tue, 24 Oct 2023, 21:06 phanosp, @.***> wrote:

@dmanlfc https://github.com/dmanlfc

I will set this when I go home later since there is no way to test now. Should I also set the global.videooutput in batocera.conf or just @.***?

— Reply to this email directly, view it on GitHub https://github.com/batocera-linux/batocera.linux/issues/10284#issuecomment-1776996142, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHYOJKDWJGXBLL25P3DY2SLYA6OMZAVCNFSM6AAAAAA6NH7VHOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZWHE4TMMJUGI . You are receiving this because you were mentioned.Message ID: @.***>

phanosp commented 8 months ago

ok @dmanlfc i will report my results later.

Thanks for the help

phanosp commented 8 months ago

Hi @dmanlfc,

I just finish testing. Even after the change the result are the same. I am attaching the logs from this test

logs.v39.zip

Also I tried the following that may give you more info. Since I already have installed a working version of batocera (v37) I tried running that version and I am attaching the logs for that version too. Maybe it will help you narrow the issue down.

logs.v37.working.zip

Also while running batocera v37 I tried running the command mpv --drm-connector=help and this is the result

Available connectors for card 0 (/dev/dri/card1): VGA-1 (connected)

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

Please note that in this case DP-1 is connected since I am using my yamaha receiver for audio. In version v35 to v37 I had no issue with this so I run the test like this.

In the previous test (v39) I had the yahama receiver disconnected while I was running the test as you requested in the past.

Thanks

phanosp commented 8 months ago

Hi @dmanlfc,

did you had time to view my answer above?

dmanlfc commented 8 months ago

Yes but I'm away currently. I will advise in due course.

phanosp commented 8 months ago

Ok @dmanlfc I will wait for your input when you can. Thank you.

dmanlfc commented 8 months ago

yo @phanosp please try the new version 39-dev-097b3e19ac 2023/10/27 17:07 on my share - https://drive.google.com/drive/folders/1_bqmR7CoZ78i7DolYt5b-RRqB5c-LPyN?usp=drive_link

phanosp commented 8 months ago

Hi @dmanlfc

since you do not mention if I should run the new version with any configured settings I tried to run it on a clean install system. In this case the result is the same. No emulation station. I am attaching the logs

logs.zip

Please let me know if want to run the test with any parameters.

Thank you

dmanlfc commented 8 months ago

@phanosp yes, you have to set the HDMI because the VGA output is saying it's connected.

phanosp commented 8 months ago

Hi @dmanlfc,

ok so I tried this case now. This is what I did:

1) Log in to batocera through ssh and deleted the system folder so I clear any settings (not sure if this equivalent of a clean install) and rebooted 2) Log in to batocera through ssh and set

global.videooutput="HDMI-0"
splash.screen.resize=1920x1080@60

saved and rebooted. Result is the same. I am attaching the logs. logs.zip

Since you only mention set HDMI I then tried the following.

1) Deleted system folder like before and rebooted 2) Log in to batocera through ssh and set
global.videooutput="HDMI-0" 3) Batocera started emulation station with the correct driver and audio playing but the resolution is very low (not sure what the resolution is but much lower than 1920X1080. I am attaching the logs logs.zip

Then I tried to change the resolution within batocera emulation station under "Frontend Developer Options" -> Video Mode. I selected "Maximum 1920 x 1080" although my TV can output 4k in this HDMI-0 (batocera pc directly connected to my TV) without something else video output connected on my PC). You can see picture of available options in the attached image IMG_7946 After changing to default "Maximum 1920 x 1080" I rebooted but batocera never start up emulation station. I am attaching the logs

logs.zip

dmanlfc commented 8 months ago

scroll down the list and choose the resolution & refresh rate you want, don't choose the Maximum option.

phanosp commented 8 months ago

Hi @dmanlfc

I already tried that. I tried 3840x2160@60 and 1920x1080@60 (each time deleting the system folder and setting the resolution) but the result is the same.

Do you need logs for that too?

dmanlfc commented 8 months ago

Just 1920x1080@60

phanosp commented 8 months ago

Hi @dmanlfc,

1) deleted system folder and rebooted 2) set global.videooutput="HDMI-0" and rebooted 3) From batocera emulation station I set 1920x1080@60 at shown below and rebooted IMG_7948 4) Batocera emulation station does not start. I am attaching new logs

logs.zip

dmanlfc commented 8 months ago

@phanosp come talk to me on Discord as it will be quicker.

dmanlfc commented 8 months ago

try the latest from my share @phanosp

dmanlfc commented 8 months ago

fixed :-)