Black screen and nivida GPU

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Post Reply
Justwant2playsc2
Level 1
Level 1
Posts: 5
Joined: Mon Feb 26, 2024 4:51 am

Black screen and nivida GPU

Post by Justwant2playsc2 »

Hi hope you can help made the switch across recently to linux. The issue I have run into seems to be a conflict of some kind with my nivida graphics. I am on a laptop that's had both and Intel and a 850m geforce graphics card. I am using virgina run the update manager and download the graphics drivers - grapics setting nivida on demand. Restarted all good.

Went to play starcraft low graphics setting seem that the Intel was taking the primary slot - so I change the graphics settings to nivida only. Restart required. Black screen on load up. Can get into bios lunch recovery mode etc no change. Seems obvious that's its the GPU settings that had caused this but now I'm stuck and don't know what to do had previously had this issue but had not updated things step by step so couldn't isolate the problem did a fresh install and started again. can anyone help what's my next step.

Thanks in advance.

OK so I don't know how or why but I haven't touch my system since posting orginal edit (sunday 25th)didn't realize I had left it on since opened it up to a lunched OS but it had frozen. Looking at the time it had frozen at 730am this morning reset and its working now 😑 🙃 only issue is before sc2 would launch now it doesn't
[

Code: Select all

Host: us-W65-67SJ Kernel: 5.15.0-97-generic x86_64 bits: 64
    Desktop: Cinnamon 6.0.4 Distro: Linux Mint 21.3 Virginia
Machine:
  Type: Laptop System: Notebook product: W65_67SJ v: N/A
    serial: <superuser required>
  Mobo: Notebook model: W65_67SJ serial: <superuser required>
    UEFI: American Megatrends v: 1.03.03 date: 02/21/2014
Battery:
  ID-1: BAT0 charge: 27.9 Wh (100.0%) condition: 27.9/62.2 Wh (44.9%)
CPU:
  Info: dual core Intel Core i5-4310M [MT MCP] speed (MHz): avg: 2741
    min/max: 800/3400
Graphics:
  Device-1: Intel 4th Gen Core Processor Integrated Graphics driver: i915
    v: kernel
  Device-2: NVIDIA GM107M [GeForce GTX 850M] driver: nvidia v: 535.154.05
  Device-3: Chicony USB 2.0 Camera type: USB driver: uvcvideo
  Display: x11 server: X.Org v: 1.21.1.4 driver: X:
    loaded: modesetting,nvidia unloaded: fbdev,nouveau,vesa gpu: i915
    resolution: 1920x1080~60Hz
  OpenGL: renderer: NVIDIA GeForce GTX 850M/PCIe/SSE2
    v: 4.6.0 NVIDIA 535.154.05
Network:
  Device-1: Intel Centrino Wireless-N 135 driver: iwlwifi
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    driver: r8169
Drives:
  Local Storage: total: 476.94 GiB used: 75.62 GiB (15.9%)
Info:
  Processes: 256 Uptime: 35m Memory: 7.64 GiB used: 2.09 GiB (27.3%)
  Shell: Bash inxi: 3.3.13[
So I since downloaded a few system updates that include a nivida flat pack from the device manager service starcraft 2 now launchs and all looks good but then freezes my whole system a little after load the main screen

So further poking around and it seems that Starcraft 2 is crashing while doing shaders compliation.

So in an attempt to fix the shaders issue I installed an update from drivers manger for the nivida (recommend) 535.... and low and behold laptop is stuck on black screen we are back to the beginning......
Last edited by Justwant2playsc2 on Tue Feb 27, 2024 4:22 pm, edited 3 times in total.
seasons
Level 4
Level 4
Posts: 373
Joined: Fri Nov 17, 2023 5:00 pm

Re: Black screen and nivida GPU

Post by seasons »

Make sure you are in ondemand mode and then launch sc2 on the nvidia GPU like:
viewtopic.php?p=2406728#p2406728
Justwant2playsc2
Level 1
Level 1
Posts: 5
Joined: Mon Feb 26, 2024 4:51 am

Re: Black screen and nivida GPU

Post by Justwant2playsc2 »

[so this is the output from the command
but i dont really know what im looking at here

Code: Select all

us@us-W65-67SJ:~$ glxinfo -B
nvidia-optimus-offload-glx glxinfo -B
name of display: :0
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: Intel (0x8086)
    Device: Mesa Intel(R) HD Graphics 4600 (HSW GT2) (0x416)
    Version: 23.2.1
    Accelerated: yes
    Video memory: 1536MB
    Unified memory: yes
    Preferred profile: core (0x1)
    Max core profile version: 4.6
    Max compat profile version: 4.6
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.2
OpenGL vendor string: Intel
OpenGL renderer string: Mesa Intel(R) HD Graphics 4600 (HSW GT2)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 23.2.1-1ubuntu3.1~22.04.2
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.6 (Compatibility Profile) Mesa 23.2.1-1ubuntu3.1~22.04.2
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile

OpenGL ES profile version string: OpenGL ES 3.2 Mesa 23.2.1-1ubuntu3.1~22.04.2
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

name of display: :0
display: :0  screen: 0
direct rendering: Yes
Memory info (GL_NVX_gpu_memory_info):
    Dedicated video memory: 2048 MB
    Total available memory: 2048 MB
    Currently available dedicated video memory: 1995 MB
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: NVIDIA GeForce GTX 850M/PCIe/SSE2
OpenGL core profile version string: 4.6.0 NVIDIA 535.161.07
OpenGL core profile shading language version string: 4.60 NVIDIA
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.6.0 NVIDIA 535.161.07
OpenGL shading language version string: 4.60 NVIDIA
OpenGL context flags: (none)
OpenGL profile mask: (none)

OpenGL ES profile version string: OpenGL ES 3.2 NVIDIA 535.161.07
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
also tried the later commands but no luck there

Code: Select all

us@us-W65-67SJ:~$ nvidia-optimus-offload-glx <command>
bash: syntax error near unexpected token `newline'
us@us-W65-67SJ:~$ nvidia-optimus-offload-glx <command>
bash: syntax error near unexpected token `newline'
us@us-W65-67SJ:~$ nvidia-optimus-offload-glx <command>
bash: syntax error near unexpected token `newline'
us@us-W65-67SJ:~$ nvidia-optimus-offload-glx <command>
bash: syntax error near unexpected token `newline'
Justwant2playsc2
Level 1
Level 1
Posts: 5
Joined: Mon Feb 26, 2024 4:51 am

Re: Black screen and nivida GPU

Post by Justwant2playsc2 »

ok so game is running but is using the intel integrated GPU to do it so everything is in low as possible, im going to test to see how the game preforms in a match up - happy to stay in low settings if needed to play but would love to know the Nividia card is not being used at all
seasons
Level 4
Level 4
Posts: 373
Joined: Fri Nov 17, 2023 5:00 pm

Re: Black screen and nivida GPU

Post by seasons »

No, you are not literally supposed to use <command>. You substitute the command there. So put whatever command starts sc2 in place of <command>.

If sc2 is a steam game, try this in its launcher options (and this time, you do copy/paste the %command% part):

Code: Select all

__NV_PRIME_RENDER_OFFLOAD=1  __GLX_VENDOR_LIBRARY_NAME=nvidia __VK_LAYER_NV_optimus=NVIDIA_only %command%
Justwant2playsc2
Level 1
Level 1
Posts: 5
Joined: Mon Feb 26, 2024 4:51 am

Re: Black screen and nivida GPU

Post by Justwant2playsc2 »

so id like to thank you for your help thus far and i apologize for my lack of knowledge here i have only been using Linux for about a week still trying to gt to grips with it all you most likely going to chuckle at this next one but here it goes

I'm Running lutris through which i installed battle.net to finally install Starcarft 2
below are the commands i have tired obviously im missing the mark here
could you please let me know what im a missing im aware this is potentially frustrating for you and again i apologies for my lack of insight

Code: Select all


us@us-W65-67SJ:~$ __NV_PRIME_RENDER_OFFLOAD=1  __GLX_VENDOR_LIBRARY_NAME=nvidia __VK_LAYER_NV_optimus=NVIDIA_only baTTLENET
baTTLENET: command not found
us@us-W65-67SJ:~$ __NV_PRIME_RENDER_OFFLOAD=1  __GLX_VENDOR_LIBRARY_NAME=nvidia __VK_LAYER_NV_optimus=NVIDIA_only lutris
Command 'lutris' not found, but can be installed with:
sudo apt install lutris
us@us-W65-67SJ:~$ __NV_PRIME_RENDER_OFFLOAD=1  __GLX_VENDOR_LIBRARY_NAME=nvidia __VK_LAYER_NV_optimus=NVIDIA_only battle.net.exe
battle.net.exe: command not found
us@us-W65-67SJ:~$ __NV_PRIME_RENDER_OFFLOAD=1  __GLX_VENDOR_LIBRARY_NAME=nvidia __VK_LAYER_NV_optimus=NVIDIA_only battle.net launcher.exe
battle.net: command not found
us@us-W65-67SJ:~$ __NV_PRIME_RENDER_OFFLOAD=1  __GLX_VENDOR_LIBRARY_NAME=nvidia __VK_LAYER_NV_optimus=NVIDIA_only /home/us/Games/battlenet/drive_c/Program Files (x86)/StarCraft II/StarCraft II.exe
bash: syntax error near unexpected token `('
us@us-W65-67SJ:~$ __NV_PRIME_RENDER_OFFLOAD=1  __GLX_VENDOR_LIBRARY_NAME=nvidia __VK_LAYER_NV_optimus=NVIDIA_only StarCraft II.exe
StarCraft: command not found
us@us-W65-67SJ:~$ 
seasons
Level 4
Level 4
Posts: 373
Joined: Fri Nov 17, 2023 5:00 pm

Re: Black screen and nivida GPU

Post by seasons »

I told you how to launch a program on the Nvidia GPU and what to paste in the Steam launcher options if you're launching it that way. I don't know anything about Lutris and I don't know anything about Starcraft. Maybe someone who runs those can help you further. Good luck.
User avatar
grndplane
Level 4
Level 4
Posts: 247
Joined: Tue Jan 12, 2010 4:08 pm
Location: Sunny California - Where everything cost's twice what it should.

Re: Black screen and nivida GPU

Post by grndplane »

Just launch Steam from the menu, then pick the game you want to play from your library.
-grndplane (Mike)
Linux Mint 21.x 64-bit
Kernel: 6.X-liquorix-amd64
WM: LeftWM
User avatar
SMG
Level 25
Level 25
Posts: 32007
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Black screen and nivida GPU

Post by SMG »

Justwant2playsc2 wrote: Mon Feb 26, 2024 5:06 amSo I since downloaded a few system updates that include a nivida flat pack from the device manager service starcraft 2 now launchs and all looks good but then freezes my whole system a little after load the main screen
I don't know if you have this working yet, but I want to help clarify some of your statements.

Driver Manager provides the system level Nvidia drivers. Those drivers are not flatpaks.

If you are getting flatpak nvidia runtimes, those are needed for whatever flatpak program you have downloaded. Those runtimes are only for the flatpaks and are not part of the system drivers.

I do not game and don't know what Starcraft 2 is, but games often times have different settings related to graphics which are separate from the operating system drivers.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
Justwant2playsc2
Level 1
Level 1
Posts: 5
Joined: Mon Feb 26, 2024 4:51 am

Re: Black screen and nivida GPU

Post by Justwant2playsc2 »

I haven't resolved the issue with my nivida drivers it seems that they are moslty disabled the game is running but using the integrated graphics card (intel) which mean I have to use the lowest setting which isn't really a big deal for me.

OK so what your saying makes alot of sense desktop wise and activities within run no problem and seem to access the higher end card although I'm not 100% sure at this moment if that's true but response/load times graphical displays video all seem to work fine. I have yet to test any other games using different platforms as my mission was always to get Sartcraft 2 to run on a laptop I thought had died ( windows 11 killed it multiple and constant system crashes) I'll take a look out there to see if there are any specific fixes for just SC 2 but I had yet to see any. Thanks for the reply.
seasons
Level 4
Level 4
Posts: 373
Joined: Fri Nov 17, 2023 5:00 pm

Re: Black screen and nivida GPU

Post by seasons »

See the Lutris section here. https://www.tuxedocomputers.com/en/PRIM ... ide.tuxedo
Justwant2playsc2 wrote: Wed Mar 13, 2024 8:03 am desktop wise and activities within run no problem and seem to access the higher end card although I'm not 100% sure at this moment if that's true
In ondemand mode, the intel GPU is used for everything unless you specify otherwise. This is what you want. Running everything on the Nvidia GPU would waste battery, generate extra heat, make more fan noise, etc. The Intel GPU is sufficient (and more efficient) for basic desktop use.
User avatar
SMG
Level 25
Level 25
Posts: 32007
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Black screen and nivida GPU

Post by SMG »

Justwant2playsc2 wrote: Wed Mar 13, 2024 8:03 am OK so what your saying makes alot of sense desktop wise and activities within run no problem and seem to access the higher end card although I'm not 100% sure at this moment if that's true but response/load times graphical displays video all seem to work fine.
On-demand mode means both drivers are available and if you tell a program to use Nvidia then it will, but otherwise it will use Intel.

You can right-click a program in the menu and if the app allows it, you can select "run with Nvidia" (which would be for that program only). See the "Nvidia Optimus" section of Linux Mint 20 Cinnamon: New Features for a screenshot (second screenshot in that section).

I don't know if that works for Lutris or Steam. Some programs have settings within the program itself to specify the GPU which I think it more likely for gaming (but I don't game so I don't know for sure).
Image
A woman typing on a laptop with LM20.3 Cinnamon.
Post Reply

Return to “Graphics Cards & Monitors”