GithubHelp home page GithubHelp logo

hmlendea / gfn-electron Goto Github PK

View Code? Open in Web Editor NEW
489.0 11.0 61.0 8.63 MB

Linux Desktop client for Nvidia's GeForce NOW game streaming service

License: GNU General Public License v3.0

JavaScript 100.00%
geforcenow electron linux nvidia linux-gaming game-streaming flatpak snap

gfn-electron's Introduction

Donate Build Status Latest GitHub release

About

Unofficial client for Nvidia's GeForce NOW game streaming service, providing a native Linux desktop experince and some additional features such as Discord rich presence.

Disclaimer

This project and its contributors are not affiliated with Nvidia, nor it's GeForce NOW product. This repository does not contain any Nvidia / GeForce NOW software. It is simply an Electron wrapper that loads the official GFN web application page, just as it would in a regular web browser.

Installation

Get it from the AUR Get it from FlatHub

Note: The main version of this project, which receives the most support, is the flatpak version hosted on FlatHub!

Manual Installation

  • Go to the latest release.
  • Download the specific file that best fits your disto.

Note: Manual installations are possible but not supported. Please use the flatpak version if you have any trouble with the manual installation!

Usage

Building from source

Requirements

You will need to install npm, the Node.js package manager. On most distributions, the package is simply called npm.

Cloning the source code

Once you have npm, clone the wrapper to a convenient location:

git clone https://github.com/hmlendea/gfn-electron.git

Building

npm install
npm start

On subsequent runs, npm start will be all that's required.

Updating the source code

Simply pull the latest version of master and install any changed dependencies:

git checkout master
git pull
npm install

Links

gfn-electron's People

Contributors

andro404-mc avatar dependabot[bot] avatar dubfib avatar hmlendea avatar igorkvasn avatar ilovespicynoodles avatar jonathantreffler avatar kaizoho avatar konradmb avatar lamemonster82 avatar lleyton avatar markuskreukniet avatar mrskyea avatar psy-q avatar ranoke avatar roypen avatar sk4lli avatar softwarerat avatar tealk avatar xor-128 avatar zeglius avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gfn-electron's Issues

Brightness is low with hardware acceleration

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

Cannot Login with Google Account

Hi,
today I install new via snap and AppImage. Problem is, that I cannot login with google. After I enter my account name, message appears that the browser it not "safe" enough.

Using Fedora and try AppImage and snap version 1.1.1

regards Tino

Web page instead of an app

I haven't been using it for some time and today when I opened it I was greeted with nvidia "geforce now" web page (which is unsupported) instead of usual list of games I can play. I've looked everywhere, some link maybe but it's just ordinary web page, if I login I will see my account and all options, I can even go deeper and open any other page on nvidia site.
I deleted all config folders and nothing happened.
Is it me doing something wrong?
I'm on Manjaro, installed through https://aur.archlinux.org/packages/geforcenow-electron/

Screenshot_20210824_220745

Full Screen Glitching

The full screen mechanics for this app seem to be really weird. It isn't clear how to easily get in and out of full screen on Ubuntu 20.04.1 LTS and pressing escape doesn't work. Sometimes, the cursor can be trapped inside a small box of the window without an easy way to get out. The solution for this I have been using for now is opening a terminal with Control + T but this is a really bad solution. Perhaps I am missing something? Please let me know if you have any other questions as I am happy to provide more information.

Flatpak seems to be broken

Hi,
I'm trying geforcenow-electron using flatpak and the app does not start.

$ flatpak run io.github.hmlendea.geforcenow-electron
[2 zypak-helper] exec failed for /app/geforcenow-electron/node_modules/electron/dist/electron /app/geforcenow-electron/geforcenow: No such file or directory (errno 2)

I'm running Fedora 34 Gnome with Wayland. I installed geforcenow-electron from the Gnome Software boutique. Other flatpak work fine.

Please let me know if you want more details about my setup :)

Input lag and performance issues

quake II rtx and scrap mechanic, while fully working in windows, in the linux version has major unplayable input lag, maybe a minor video lag, tested on windows 8.1, same hardware

Problem with fullscreen

Hello, this is my first post in Github so very sorry if I make mistakes!

I installed geforce-electron on Fedora 34 via flathub.

The problem is that when I launch a game, Geforce propose me to enter in full screen by clicking "continue" (your server is ready - enter in fullscreen mode - continue), the full screen appears (behind), but the proposal remains. If I hit ESC, the proposal disapears but I'm not anymore in full screen. Am I clear? ;)

I made some screenshots.

Capture d’écran du 2021-05-08 15-07-46

Capture d’écran du 2021-05-08 15-08-20

Capture d’écran du 2021-05-08 15-08-42

Thank you very much for this port.

Wayland?

Hi, I am using Linux Mint 20.1, and I have input delay/lag in Nvidia Geforce Now with Fortnite, and was told to switch to Wayland. I am still quite new to Linux, and I need help with this. Please help!

Desktop launcher for the .deb installer

Currently the .deb installer does not provide a .desktop launcher for this application.

This is a problem since it breaks the user's experience, as well as that of the desktop environment.

Keyboard layout missing in settings

Hello, I have issue with this problem.

When I run GFNow from Ubuntntu, "GNOME Software" and choose flatpak version (1.0.8), than I can change layout in settings, but when I change app to snap (1.1.1) than I cannot change my keyboard layout. The option is missing in settings tab.

Both app is installed from "GNOME Software" I didn't tested deb variant, but I think, it will be same as snap version.

I already search some info about that and find this. I hope that it will help.
https://www.nvidia.com/en-us/geforce/forums/discover/435830/keyboard-layout-missing-in-gfn-settings/

Launch Issues?

I am running the Debian Distro Parrot OS on my laptop and I use this on my trip and I wanted to get GeForce now for it and as I was getting everything I needed and when I tried launching the app I ran into an issue, I made sure Chrome-Sandbox is set to Root Owner and on 4755. I'll add a screenshot of my Terminal window and my log. Thanks in advance for any help.
Screenshot at 2021-04-12 13-32-44
2021-04-12T17_32_30_482Z-debug.log

ESC key not working since last commit

Hi,
Before, it was exiting the full-screen mode and now it simply doesn't do anything (I use Manjaro with KDE).
I don't know much about electron but it will be nice if there is an option to only exit the full-screen if you hold ESC key, just like in chromium(the browser).
Thanks.

Error on specific screen resolutions in arch based distros

Hi !

The issue is when launching a game and the desktop's resolution is at 1280*720 there's a weird javascript error coming up, and the game won't launch.

My friend has the same issue, except his screen can only go up to 720p.

There's part of a stack trace when the error dialog comes up, but no specific error.

Thanks for reading this.

Escape does not work

Hi,
I am using GeForceNow-Electron for a couple of days and I found first issue. When GeForceNow-Electron is running my Escape button does not work. It happens not only inside games but in my operating system too.

I am using KDE neon 5.19.4 with Linux Kernel 5.4.52-generic

[Call for help] Debian User Repository

Hello,

Is someone interested to create and maintain a PKGBUILD for the Debian User Repository (DUR)?

One already exists for the Arch User Repository (AUR) and I feel like the DUR would be a nice place to have this application available on as well.

I don't use Debian or Debian-based distros on any of my machines so I don't feel comfortable doing this myself.

Example AUR package: https://aur.archlinux.org/packages/geforcenow-electron/

Can't get past "your rig is ready" screen

The "continue" button is not clickable
OS: OpenSUSE Leap 15.3
The only way to exit from geforce now is to open a terminal and kill the pid with "kill -9".

Workaround: Super+F to fullscreen to change screen size forces it to accept the "continue".

Cannot change language

Hello, in the main screen there is no way to change language (you can change it during login but it won't persist). How can I do?

Thanks.

use voice

do I have to set something specific to use ingame voice via the electron client?

Update the Flatpak version on FlatHub

Hello,

I have no experience whatsoever with flatpaks / FlatHub, and it seems like the maintainer of the flatpak version of this app, hasn't updated it in quite a long time - it's still at v1.0.8, which has several issues that were fixed since then.

I am very tight on time and I would appreciate some help updating that version.

Preferably there would be someone who can take over as a maintainer of that version. But just helping me with info is very much appreciated also.

Thanks!

Google Account login fails due to unsecure browser

I begin by thanking all the contributors that work on this project.
I wanted to point out that if the geforce now account is a Google account linked to the service, the login will fail due to the fact that Google considers the browser opened by the application as unsecure.

Thanks again for your work.

GeForce Now Input Delay

Hi, I am currently using Linux Mint 20.1 and I am getting a strong input delay whilst playing Fortnite Battle Royale.

Does anyone know how to fix this issue?

Esc makes some games impossible to play

Some games require usage of ESC on places where just impossible to avoid. For example in Argo and Hitman. Is there a way to remap it for a different key like scroll lock? Great ,straightforward project

Orange border around fullscreen when clicking while in steam loading state

An orange border around the fullscreen is shown when I click the screen while being in the steam loading window.
Adding the following code to the preload.js DOMContentLoaded seems to prevent the issue, but might have an impact on accessibility as it applies to all elements in all screens.

    const head = document.getElementsByTagName("head")[0];
    const styleTag = document.createElement('style');
    styleTag.innerHTML = ":focus {outline:unset;}";
    head.appendChild(styleTag);

The style should only apply to the fullscreen window that is focused and gets the orange border - but it has been quite a day so I did not get around to checking what selector is needed.

Can't use xbox controller

Hi,
Thanks for this useful app.
I can't use controller in-game (rocket league).
I'm using a xbox gamepad, that is well recognised in gamepadAPI testing websites.
So I guess flatpack sandboxing is blocking it.
Do you have any idea to get it working?
Thanks!

ESC exits fullscreen

In the 1.1.1 snap on Ubuntu 21.04, ESC continues to have the undesired effect of exiting fullscreen.

Unplayable input lag when playing game

When I first launch a game from the app, there seems to be virtually no input lag at all and there seems to be no delay between moving my cursor. However, when I actually click on the game a yellow bow appears around the game and the input lag suddenly becomes unplayable for some reason. I am using Lubuntu 20.04 I can submit a screen recording if necessary.

Video lag

Hi,

How are Geforce Now working for you and what kind of GPU are you using?

I'm experiencing big problems with lag. I had the same problem with Google Stadia.
After installing non-free Intel i965 drivers and configuring Google Chrome with experimental GPU-support, then Google Stadia worked flawlessly. Geforce Now does not :-(.

Geforce Now runs better in Google Chrome for me, but still not good enough.
Could this be a driver issue?

Any tip that might lead me into fixing this will be highly appreciated.

Thanks.

Keyboard layout option disabled (Alt + Shift not working)

Hi,

Ever since I updated to the latest version (same problem on 1.1.5, then 1.1.6) the keyboard layout option is grayed out in the session's settings.

Plus, pressing Alt + Shift in-session doesn't do anything.

This is particularly hindering because I have an AZERTY keyboard. :(

I'm on Ubuntu 20.04.

Google Auth Failed

Hi dev's.
When i try log in on NVidia the google auth screen after write the mail shows the next text:

(es)
Es posible que no sean seguros este navegador o la app. Más información
Inténtalo con un navegador diferente. Si usas un navegador compatible, actualiza la página y accede de nuevo.

(en)
This browser or the app is possible not secure. More info.
Try again with a diferent browser. If you use a compatible browser, refresh the page and log in again

Thanks so much.
Good Day

Failed to load URL | FlatHub

When running:
flatpak run io.github.hmlendea.geforcenow-electron

I get:
electron: Failed to load URL: https://play.geforcenow.com/ with error: ERR_NAME_NOT_RESOLVED

The Geforce NOW window opens, but it is blank.

LSB Version: 1.4
Distributor ID: Arch
Description: Arch Linux
Release: rolling
Codename: n/a

Login Unsuccessful. We are sorry to report we were unable to log you into GeForce NOW.

  1. Download latest release's zip on Arch Linux (geforcenow_1.1.0_linux.zip) or Windows 10 (npm install from repo)
  2. Run the launcher ./geforcenow (or npm start on Windows 10)
  3. Try to log in - in my case it opens a new window saying 'you'll be logged in automatically in 5 seconds' (I logged in before with the same error I'm reporting) then it says:
Login unsuccesful
We are sorry to report we were unable to log you into GeForce NOW. Please try again
[Close] [Retry]

However login works on:

  1. Lutris launcher for GeForce NOW (Arch Linux)
  2. Google Chrome (both Arch and Windows 10)
  3. Windows 10 desktop client

Arch Linux output:

t430 :: ~/Downloads » ./geforcenow
libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null)
GeForce NOW
GeForce NOW
NVIDIA
Sign in with NVIDIA
NVIDIA GeForce NOW

The libva error is probably because I'm on an Intel HD4000 graphics card - but the app launches fine nonetheless and I can proceed until the "Login Unsuccesful" modal. Windows 10 output is the same just that it doesn't have the libva error, so it's probably not that anyways.

Remove the ChromeOS User Agent

Some time ago a GamingOnLinux article reported that GFN works well with Linux without spoofing the User Agent string to a ChromeOS one.
Since then that continued to be the case and it seems like the spoofed UA is not necessary anymore.

If all goes well, it should be removed in the next version.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.