Giter Club home page Giter Club 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

Stargazers

Ethan avatar iFan avatar  avatar  avatar  avatar  avatar  avatar James Qian avatar  avatar  avatar Leo Chen avatar  avatar  avatar Blink avatar  avatar  avatar  avatar  avatar Swizard avatar

Watchers

 avatar  avatar

lenovo-x1-shell's Issues

网络灯闪蓝,风扇不转

群晖DSM 7.1.1-42962 Update 1
网络灯闪蓝,可以正常联网
test_temp.sh不能识别硬盘温度(可能就这个导致风扇不转)

风扇转速没法控制

我的X1风扇转速一直是1150左右,有办法降低吗

root@DS920:/volume1/Download/Lenovo-X1-shell-0.0.2# ./test_temp.sh 
cpu temperature:  45
hdd temperature: 
/dev/sata1: 
/dev/sata2:  37
/dev/sata3:  38
/dev/sata4:  42
fan1:  1151
fan2:  1149

sata1是板载的m.2接口(杂牌)固态硬盘,温度读取不到,不知道跟这个有没有关系

无法看到硬盘温度

您好,我在使用的时候发现硬盘的温度看不到
root@X1:/bin# bash /volume1/x1/Lenovo-X1-shell-0.0.2/test_temp.sh
cpu temperature: 36
hdd temperature:
/dev/sdc:
/dev/sdd:
fan1: 0
fan2: 0

风扇也不转,但是到bin 下./fan-ctl -m 发现风扇会转个几秒钟,然后就停了,您知道这个是怎么回事吗?

x1安装群晖6.2.3,无法使用脚本,报错。

root@DSM:/volume1/download# ./install.sh
copy ctl-files seccuss. \n
copy monitor-files seccuss. \n
copy service-files seccuss. \n
./install.sh: line 49: systemctl: command not found
./install.sh: line 50: systemctl: command not found
添加到服务完成. \n
./install.sh: line 55: systemctl: command not found
./install.sh: line 56: systemctl: command not found
启动完成. \n
root@DSM:/volume1/download#

X1S反馈

X1S,SA6400状态灯不正常,lan和硬盘均不亮灯
大佬,你用的是什么版本的群晖啊?另外想请教下,X1s带了个屏幕,是可以直接把screen文件夹移植过去么?

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.