jfredrickson / disable-c6 Goto Github PK
View Code? Open in Web Editor NEWA systemd service to disable the C6 state upon system boot, preventing Ryzen freezes.
License: MIT License
A systemd service to disable the C6 state upon system boot, preventing Ryzen freezes.
License: MIT License
โ 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
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.
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?
a simple error fixed like this:
-ExecStart=/usr/local/bin/zenstates.py --c6-disable
+ExecStart=python3 /usr/local/bin/zenstates.py --c6-disable
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.
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?
When I put my machine to suspend or hibernate and resume the system afterwards, C6 states will be enabled, because systemctl will not re-run the disable-c6 service.
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?
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.