Git Product home page Git Product logo

lenovo-x1-shell's Introduction

联想个人云X1 刷群晖 深度优化状态灯与风扇控制

黑裙系统我这里用的7.1.1, 可能6.0有部分不兼容我没去测试。

安装

1. 先ssh登陆,切换到root账户。运行 sudo -i 

2. 把全部文件copy到任意目录,运行 ./install.sh

3. 群晖里需要把网络设置成bond模式。独立网卡模式检测不了网络状态。

重启对应的服务。(开机运行20天左右碰到过一次服务卡死,网络状态灯显示一直闪烁重启就行。)
LED重启命令:systemctl restart led-monitor
风扇重启命令:systemctl restart fan-monitor

运行测试程序 状态灯

内部逻辑修改

# ==============================================================================
# by mu3517
# 
# 本脚本修改及程序移植于 X1 系统。 仅供学习参考。(由于没有其他机型硬件,应该X1s也是可以用的)
#
# 状态灯部分:
# 1. 取消了硬盘错误状态监测, 盘位更新各种监测。
# 2. 只检测盘位是否正常加载。 后续慢慢更新!
# 3. 网络部分完全正常,正常白灯拔掉网线蓝灯闪烁。只是反应没那么即时。
#
# 风扇部分:
# 1. 完整移植了 X1 内部控制算法,但是与群晖的界面控制还是不兼容。
# 2. 具体温度控制可以参考
#
# 电源部分:
# 暂时只是copy了 power-ctl 通过脚本可以使长按电源3s关机生效。 这里没加入后续更新。
#
# 喇叭提示部分:
# 由于群晖需要编译驱动暂时没研究搭建编译(有点懒,主要是群晖系统太麻烦了各种缺少文件。)
#
# ==============================================================================

关于test_temp.sh

这个脚本用来测试显示cpu、硬盘温度,风扇当前转速。

X1s兼容

这个没硬件不好测试,但是应该是一样的。因为硬件差异不大。

碰到问题

直接到isuse里发布吧。我会经常看看。刷了黑裙还有不少兼容问题,只是不影响使用。有时间慢慢研究再更新。

lenovo-x1-shell's People

Contributors

mu3517 avatar

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.