hmlendea / gfn-electron

Linux Desktop client for Nvidia's GeForce NOW game streaming service
GNU General Public License v3.0
500 stars 62 forks source link

Brightness is low with hardware acceleration #79

Closed ilovespicynoodles closed 2 years ago

ilovespicynoodles commented 2 years ago

This is not limited to the app, but i don't know where else to find people working on Linux Geforce NOW issues. So the issue is that when hardware acceleration is on (which is necessary to play without incredible input lag), the brightness in Geforce NOW is way to low and its hard to play certain games. This issue does not happen on windows. Screenshot from 2021-09-09 20-02-39

Screenshot from 2021-09-09 20-01-48

As you can see, the top one, where hardware acceleration is enabled with the LIBVA_DRIVER_NAME=iHD environment variable, is dark and can be incredibly hard to play with.

The bottom picture is without hardware acceleration and has normal brightness, but is unplayable because of input lag.

I remember having this issue in the beginning too and i fixed it, but i don't remember how i did it. I'm using Nvidia optimus which is a nvidia gpu with a intel integrated graphics that i can switch between.

The same issue happens in a chromium browser if i use the flags in the commandline to launch it with hardware acceleration. for example:

chromium --enable-gpu-rasterization --enable-oop-rasterization --enable-zero-copy --ignore-gpu-blocklist --use-gl=desktop --enable-accelerated-video-decode

If i take away --use-gl=desktop, then it runs without hardware acceleration and everything is bright but with massive input lag.

I remember it working on KDE and XFCE4 before but i don't remember how? I was able to just install the intel-media-driver and start up the geforcenow-electron app and it would work perfectly with normal brightness. but now its all dark.

Here are my graphics processors and other system info:

*-display                 
       description: 3D controller
       product: GP107M [GeForce GTX 1050 Mobile]
       vendor: NVIDIA Corporation
       physical id: 0
       bus info: pci@0000:01:00.0
       version: a1
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list rom
       configuration: driver=nvidia latency=0
       resources: irq:146 memory:a3000000-a3ffffff memory:90000000-9fffffff memory:a0000000-a1ffffff ioport:4000(size=128)
  *-display
       description: VGA compatible controller
       product: CoffeeLake-H GT2 [UHD Graphics 630]
       vendor: Intel Corporation
       physical id: 2
       bus info: pci@0000:00:02.0
       version: 00
       width: 64 bits
       clock: 33MHz
       capabilities: pciexpress msi pm vga_controller bus_master cap_list
       configuration: driver=i915 latency=0
       resources: irq:143 memory:a2000000-a2ffffff memory:b0000000-bfffffff ioport:5000(size=64) memory:c0000-dffff

image

sgtnasty commented 2 years ago

I had a similar issue with GFN, I turned off HDR on my monitor and all the brightness was fixed in my GFN games.

ilovespicynoodles commented 2 years ago

I had a similar issue with GFN, I turned off HDR on my monitor and all the brightness was fixed in my GFN games.

I sadly don't have HDR on my laptop screen :(

rramirezacosta commented 2 years ago

I have the same problem on fedora 35, HD Graphics 520.

hmlendea commented 2 years ago

Does this issue still apply on the latest version? Please feel free to reopen if that is the case.