GithubHelp home page GithubHelp logo

jfredrickson / disable-c6 Goto Github PK

View Code? Open in Web Editor NEW
87.0 87.0 6.0 12 KB

A systemd service to disable the C6 state upon system boot, preventing Ryzen freezes.

License: MIT License

Shell 100.00%

disable-c6's Introduction

Hello!

disable-c6's People

Contributors

jfredrickson avatar rainoffallingstar avatar schaueho 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

Watchers

 avatar  avatar  avatar  avatar  avatar

disable-c6's Issues

Doesn't work in Debian 11

โ— disable-c6.service - Ryzen Disable C6
Loaded: loaded (/usr/local/lib/systemd/system/disable-c6.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2021-09-01 02:44:34 CEST; 7s ago
Process: 2461 ExecStart=/usr/local/bin/zenstates.py --c6-disable (code=exited, status=203/EXEC)
Main PID: 2461 (code=exited, status=203/EXEC)
CPU: 1ms

wrz 01 02:44:34 debian-pc systemd[2461]: disable-c6.service: Failed at step EXEC spawning /usr/local/bin/zenstates.py: No such file or directory
wrz 01 02:44:34 debian-pc systemd[1]: Starting Ryzen Disable C6...
wrz 01 02:44:34 debian-pc systemd[1]: disable-c6.service: Main process exited, code=exited, status=203/EXEC
wrz 01 02:44:34 debian-pc systemd[1]: disable-c6.service: Failed with result 'exit-code'.
wrz 01 02:44:34 debian-pc systemd[1]: Failed to start Ryzen Disable C6.

The file is clearly there
$ ls -a /usr/local/bin
. .. zenstates.py

msr module not loaded

The service (or better: the zenstates.py script) will fail without the msr module being loaded. I think it would be a good idea to mention in the README that adding a line containing "msr" to /etc/module.d/modules.conf (or msr.conf) would be helpful.

After resume from suspend, AMD integrated GPU temps not available

Manjaro kernel 5.13 and 5.12, after installing Disable-c6, after resuming from suspend and when running command "sensors" it shows:

amdgpu-pci-0600
Adapter: PCI adapter
vddgfx: N/A
vddnb: N/A
edge: N/A
power1: N/A

but when i start system normally i can see all these temperatures correctly instead of N/A, what could be the issue?

Add a service to enable c6 before sleep(suspend/hibernate)

First of all, thanks for your project saving my laptop from annoying Ryzen freeze/ random reboot.

I hope that there's a enable-c6 service (running before suspend/hibernate). Otherwise my laptop will sleep lighter (maybe?) and consuming more power.

Here's a sample service i found . Hope it will help.

C6 should be re-enabled on reboot and shutdown

I have been playing around with zenstates, and I have found that if I try to shutdown or reboot the system with C6 disabled, the system hangs for about 90 seconds to 2 minutes. This doesn't happen if I re-enable C6 first. Could you add this capability to this module?

zenstates.py not included upon git cloning?

Upon doing:
git clone https://github.com/jfredrickson/disable-c6.git

The zenstates.py file is nowhere to be found. The disable-c6/lib/ZenStates-Linux/ directory is simply empty. Shouldn't it be in that folder?

submodule update permission issue

The command is not helpful as it is having a permission issue as stated directly in the terminal.

sanket@sanket-Lenovo-ideapad-330-15ARR:~/disable-c6$ git submodule update
Cloning into '/home/sanket/disable-c6/lib/ZenStates-Linux'...
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
fatal: clone of '[email protected]:r4m0n/ZenStates-Linux.git' into submodule path '/home/sanket/disable-c6/lib/ZenStates-Linux' failed
Failed to clone 'lib/ZenStates-Linux'. Retry scheduled
Cloning into '/home/sanket/disable-c6/lib/ZenStates-Linux'...
[email protected]: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
fatal: clone of '[email protected]:r4m0n/ZenStates-Linux.git' into submodule path '/home/sanket/disable-c6/lib/ZenStates-Linux' failed
Failed to clone 'lib/ZenStates-Linux' a second time, aborting

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.