dde-pstate:Deepin dock 的 intel pstate 管理插件
Tofloor
poster avatar
septemberhx
deepin
2020-05-15 18:52
Author
本帖最后由 septemberhx 于 2020-5-19 00:40 编辑

dde-pstate 0.1.0

2020/05/19 更新:打包成 deb,下载 https://github.com/SeptemberHX/dde-pstate/releases/download/0.1.0/dde-pstate_0.1.0_all.deb 安装即可。

另:本人电脑是 i7-8565u + UHD620,无独显,在近几年intel处理器的电脑上应该都工作正常。AMD无法起作用,显卡频率只能调整intel显卡
另另:其实 plasma-pstate 是有 nvidia 显卡模式调整的,是通过 nvidia-settings -q GpuPowerMizerMode 进行模式调整的,但是我没有N卡,所以没发测试,就没加上这个功能。


-----------------


更新:加入GPU频率控制以及中文翻译



---------------

dde-pstate 0.0.1


之前用 KDE 的时候,plasma-pstate(https://github.com/jsalatas/plasma-pstate) 给我的印象很深刻,不过它是KDE的插件,不能直接在 DDE 上用,所以照着改成了 Deepin 版本——布局以及关键脚本都是它的!



  • CPU 最大最小频率调整
  • CPU Turbo Boost 调整
  • CPU Governor 模式调整:性能模式,[按需模式],省电模式;参考 Arch WIKI
  • 电源性能模式调整:默认模式,性能模式,平衡-性能模式,平衡-电源模式,电源模式;参考 x86_energy_perf_policy

用了 Intel pstate 相关,所以请参考 plasma-pstate:https://github.com/jsalatas/plasma-pstate 里面的内容安装必备组件

地址:https://github.com/SeptemberHX/dde-pstate
安装:参考 https://github.com/SeptemberHX/dde-pstate 中的 Install#From release 部分

Reply Favorite View the author
All Replies
1 / 2
To page
avatar
septemberhx
deepin
2020-05-16 03:30
#1
捞一下
Reply View the author
avatar
走钢丝
deepin
2020-05-16 03:53
#2
不错,支持一下。
Reply View the author
avatar
神末shenmo
deepin
Spark-App
Q&A Team
2020-05-16 04:08
#3
请汉化。。。
发错区了
食我警告!
Reply View the author
avatar
septemberhx
deepin
2020-05-16 06:14
#4
https://bbs.deepin.org/post/194310
请汉化。。。
发错区了
食我警告!

啊哈,我的问题,以后注意。
后面我会加上汉化的
Reply View the author
avatar
jingle
deepin
2020-05-16 13:52
#5
不错
Reply View the author
avatar
神末shenmo
deepin
Spark-App
Q&A Team
2020-05-19 03:36
#6
优质项目,顶上去
Reply View the author
avatar
jingle
deepin
2020-05-19 04:32
#7
septemberhx 发表于 2020-5-15 22:14
啊哈,我的问题,以后注意。
后面我会加上汉化的

issues看看
Reply View the author
avatar
q77190858
deepin
2020-05-19 05:22
#8
牛逼,好项目
Reply View the author
avatar
septemberhx
deepin
2020-05-19 06:05
#9

看见了,晚点就去修bug+尝试打包
Reply View the author
avatar
jingle
deepin
2020-05-19 17:19
#10
https://bbs.deepin.org/post/194310
看见了,晚点就去修bug+尝试打包

dock上面hover上去还是英文

建议红框部分 鼠标hover上去分别表示xxx
Reply View the author
avatar
neko
deepin
Ecological co-builder
Q&A Team
2020-05-19 17:25
#11
这个很赞
Reply View the author
avatar
septemberhx
deepin
2020-05-19 17:31
#12
https://bbs.deepin.org/post/194310
dock上面hover上去还是英文

建议红框部分 鼠标hover上去分别表示xxx

红框那些我其实加了 tip 文本说明,正常的窗口来说,鼠标放上去一秒应该就能显示 tip 文本,但是放到dock上就完全不显示了,不知道为啥,我再研究研究,不行就在下面加一行文字。

dock上的英文我确实忘掉了,后面会改掉,还会把CPU频率设置这些信息都加上去。

还有,为啥你的显卡频率那三行滑块都在最左边?可以执行 /opt/dde-dock/scripts/set_pref.sh --read-all 看一下结果么?
Reply View the author
avatar
jingle
deepin
2020-05-19 18:14
#13
https://bbs.deepin.org/post/194310
红框那些我其实加了 tip 文本说明,正常的窗口来说,鼠标放上去一秒应该就能显示 tip 文本,但是放到dock ...
  1. jingle@jingle:/opt/dde-dock/scripts$ ls
  2. set_prefs.sh
  3. jingle@jingle:/opt/dde-dock/scripts$ pwd
  4. /opt/dde-dock/scripts
  5. jingle@jingle:/opt/dde-dock/scripts$ ./set_prefs.sh
  6. Usage:
  7. 1: set_prefs.sh [ -cpu-min-perf |
  8.                   -cpu-max-perf |
  9.                   -cpu-turbo |
  10.                   -gpu-min-freq |
  11.                   -gpu-max-freq |
  12.                   -gpu-boost-freq |
  13.                   -cpu-governor |
  14.                   -energy-perf |
  15.                   -thermal-mode |
  16.                   -lg-battery-charge-limit |
  17.                   -lg-fan-mode |
  18.                   -lg-usb-charge |
  19.                   -powermizer ] value
  20. 2: set_prefs.sh -read-all
  21. jingle@jingle:/opt/dde-dock/scripts$
Copy the Code




你给的命令sh脚本少了一个s
Reply View the author
avatar
septemberhx
deepin
2020-05-19 19:07
#14
本帖最后由 septemberhx 于 2020-5-19 11:10 编辑
https://bbs.deepin.org/post/194310
你给的命令sh脚本少了一个s

啊,是我记错了。
看一下输出
  1. set_prefs.sh -read-all
Copy the Code


还有
  1. ls /sys/class/drm/card*
Copy the Code
的输出

Reply View the author
avatar
jingle
deepin
2020-05-19 19:39
#15
https://bbs.deepin.org/post/194310
啊,是我记错了。
看一下输出
  1. jingle@jingle:/opt/dde-dock/scripts$ ./set_prefs.sh -read-all
  2. cat: /sys/class/drm/card0/gt_min_freq_mhz: 没有那个文件或目录
  3. cat: /sys/class/drm/card0/gt_max_freq_mhz: 没有那个文件或目录
  4. cat: /sys/class/drm/card0/gt_RP1_freq_mhz: 没有那个文件或目录
  5. cat: /sys/class/drm/card0/gt_RP0_freq_mhz: 没有那个文件或目录
  6. cat: /sys/class/drm/card0/gt_boost_freq_mhz: 没有那个文件或目录
  7. cat: /sys/class/drm/card0/gt_cur_freq_mhz: 没有那个文件或目录
  8. {"cpu_min_perf":"19","cpu_max_perf":"100","cpu_turbo":"true","gpu_min_freq":"","gpu_max_freq":"","gpu_min_limit":"","gpu_max_limit":"","gpu_boost_freq":"","gpu_cur_freq":"","cpu_governor":"performance","energy_perf":"performance","available_gov":["performance","powersave"],"available_energy":["default","performance","balance_performance","balance_power","power"]}
  9. jingle@jingle:/opt/dde-dock/scripts$ ls /sys/class/drm/card*
  10. /sys/class/drm/card0:
  11. card0-HDMI-A-1  card0-VGA-1  dev  device  power  subsystem  uevent

  12. /sys/class/drm/card0-HDMI-A-1:
  13. device  dpms  edid  enabled  modes  power  status  subsystem  uevent

  14. /sys/class/drm/card0-VGA-1:
  15. device  dpms  edid  enabled  modes  power  status  subsystem  uevent
Copy the Code
Reply View the author
avatar
septemberhx
deepin
2020-05-19 20:29
#16

明白了,你的显卡不能调整这些东西(可能是驱动,也可能就是存粹不支持)
后面我回加个判断,对不支持的隐藏掉。
Reply View the author
avatar
临之
deepin
2020-05-19 21:57
#17
补充下,需要重启下才能生效。
Reply View the author
avatar
zyk1354072995
deepin
2020-09-23 06:24
#18
重启后设置 就恢复了 怎么破
Reply View the author
avatar
septemberhx
deepin
2020-09-23 18:33
#19
https://bbs.deepin.org/post/194310
重启后设置 就恢复了 怎么破

这个设置确实只是临时的。不过也能做成开机自动重新设置的,看后面有没有时间写。
Reply View the author
avatar
zyk1354072995
deepin
2020-09-23 20:24
#20
https://bbs.deepin.org/post/194310
这个设置确实只是临时的。不过也能做成开机自动重新设置的,看后面有没有时间写。 ...

好吧   感谢大佬了~~~~~~~
Reply View the author
1 / 2
To page