mirror of
https://github.com/AdnanHodzic/auto-cpufreq.git
synced 2025-07-26 15:14:11 +02:00
fixed driver information display
This commit is contained in:
parent
5f56693683
commit
a7ffed3e93
@ -36,10 +36,6 @@ auto_cpufreq_log_file = "/var/log/auto-cpufreq.log"
|
|||||||
# daemon deployment marker
|
# daemon deployment marker
|
||||||
daemon_marker = "/etc/opt/auto-cpufreq"
|
daemon_marker = "/etc/opt/auto-cpufreq"
|
||||||
|
|
||||||
|
|
||||||
# driver check
|
|
||||||
driver = s.getoutput("cpufreqctl --driver")
|
|
||||||
|
|
||||||
# deploy cpufreqctl script
|
# deploy cpufreqctl script
|
||||||
def cpufreqctl():
|
def cpufreqctl():
|
||||||
# deploy cpufreqctl script (if missing)
|
# deploy cpufreqctl script (if missing)
|
||||||
@ -291,6 +287,9 @@ def sysinfo():
|
|||||||
dist = " ".join(x for x in fdist)
|
dist = " ".join(x for x in fdist)
|
||||||
print("Linux distro: " + dist)
|
print("Linux distro: " + dist)
|
||||||
print("Linux kernel: " + pl.release())
|
print("Linux kernel: " + pl.release())
|
||||||
|
|
||||||
|
# driver check
|
||||||
|
driver = s.getoutput("cpufreqctl --driver")
|
||||||
print("Driver: " + driver)
|
print("Driver: " + driver)
|
||||||
|
|
||||||
# get cpu architecture
|
# get cpu architecture
|
||||||
@ -430,4 +429,4 @@ def cli(monitor, live, daemon, install, log):
|
|||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
# while True:
|
# while True:
|
||||||
cli()
|
cli()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user