Coder Social home page Coder Social logo

fontivan / fedora-wayland-nvidia-suspend-fix Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 9 KB

A short script to apply a work around to fixing suspend on Fedora when using the Nvidia proprietary driver and wayland

License: MIT License

Shell 100.00%

fedora-wayland-nvidia-suspend-fix's Introduction

fedora-wayland-nvidia-suspend-fix

A short script to apply a work around to fixing suspend on Fedora when using the Nvidia proprietary driver and wayland

How do I know if I need this

You can try this script if:

  1. You are using a relatively recent Fedora release (e.g. 36 at time of writing)
  2. You are using a relatively recent Nvidia proprietary driver (e.g. 515.57 at time of writing)
  3. You are using Wayland
  4. When you use suspend one of two problems occur:
    1. The screen goes dark for about 30 seconds, the computer never goes into suspend, and you are returned to the lock screen
    2. Suspend works but when you come back the video memory is completely corrupt and requires a window manager restart or computer restart

How does it work

This script combines two separate work arounds:

  1. A fix from https://github.com/robswc/ubuntu-22-nvidia-suspend-fix-script to fix issue #1 above
  2. A fix to ensure the power configuration from xorg-x11-drv-nvidia-power is applied to fix issue #2 above

How do I use this

Script usage can be found by running with no arugments, e.g.

$> ./fedora-wayland-nvidia-suspend-fix.sh
fedora-wayland-nvidia-suspend-fix.sh help
 * If no arguments are specified, print this help message
 * If an unrecognized argument is specified, print this help message.
 * If an argument of i or I is specified, uninstall the workarounds.
 * If an argument of u or U is specified, uninstall the workarounds.

To install the workarounds using the script directly from github, you can do:

curl -s "https://raw.githubusercontent.com/fontivan/fedora-wayland-nvidia-suspend-fix/main/src/fedora-wayland-nvidia-suspend-fix.sh" | sudo bash -s -- i

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.