mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-19 21:13:19 -07:00
* usr/lib/byobu/fan_speed, usr/share/byobu/status/statusrc,
usr/share/man/man1/byobu.1: - fix fan speed detection for a few models
This commit is contained in:
parent
e72366eb41
commit
a2eebe4eeb
4 changed files with 6 additions and 3 deletions
4
debian/changelog
vendored
4
debian/changelog
vendored
|
@ -1,6 +1,8 @@
|
||||||
byobu (4.25) unreleased; urgency=low
|
byobu (4.25) unreleased; urgency=low
|
||||||
|
|
||||||
* UNRELEASED
|
* usr/lib/byobu/fan_speed, usr/share/byobu/status/statusrc,
|
||||||
|
usr/share/man/man1/byobu.1:
|
||||||
|
- fix fan speed detection for a few models
|
||||||
|
|
||||||
-- Dustin Kirkland <kirkland@ubuntu.com> Mon, 01 Aug 2011 23:46:43 -0500
|
-- Dustin Kirkland <kirkland@ubuntu.com> Mon, 01 Aug 2011 23:46:43 -0500
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@ __fan_speed() {
|
||||||
local i="" speed=0
|
local i="" speed=0
|
||||||
# Let's check a few different probes for fan speed
|
# Let's check a few different probes for fan speed
|
||||||
# This seems to cover most of them:
|
# This seems to cover most of them:
|
||||||
for i in /sys/class/hwmon/*/*/fan1_input; do
|
for i in $FAN /sys/class/hwmon/*/*/fan1_input /sys/class/hwmon/*/device/hwmon/*/fan1_input; do
|
||||||
[ -f "$i" ] || continue
|
[ -f "$i" ] || continue
|
||||||
read speed < "$i"
|
read speed < "$i"
|
||||||
if [ "$speed" -gt 0 ]; then
|
if [ "$speed" -gt 0 ]; then
|
||||||
|
|
|
@ -31,3 +31,4 @@
|
||||||
#TEMP=F
|
#TEMP=F
|
||||||
#DISTRO=Ubuntu
|
#DISTRO=Ubuntu
|
||||||
#SERVICES="eucalyptus-nc|NC eucalyptus-cloud|CLC eucalyptus-walrus eucalyptus-cc|CC eucalyptus-sc|SC"
|
#SERVICES="eucalyptus-nc|NC eucalyptus-cloud|CLC eucalyptus-walrus eucalyptus-cc|CC eucalyptus-sc|SC"
|
||||||
|
#FAN=$(find /sys -type f -name fan1_input | head -n1)
|
||||||
|
|
|
@ -45,7 +45,7 @@ Note that BYOBU_CONFIG_DIR=\fI$HOME/.byobu\fP.
|
||||||
|
|
||||||
\fBrcs_cost\fP \- an estimation of the cost of the current boot of the system in terms of the Rackspace Cloud Server billing model; displayed in the lower bar toward the right in green text on a black background; there is a leading '~' to indicate that this is an estimation, and the monetary units are US Dollars '$'
|
\fBrcs_cost\fP \- an estimation of the cost of the current boot of the system in terms of the Rackspace Cloud Server billing model; displayed in the lower bar toward the right in green text on a black background; there is a leading '~' to indicate that this is an estimation, and the monetary units are US Dollars '$'
|
||||||
|
|
||||||
\fBfan_speed\fP \- cpu or system fan speed as reported by lm-sensors; displayed in the lower bar toward the right in black text on a grey background; there is a trailing 'rpm' for units
|
\fBfan_speed\fP \- cpu or system fan speed as reported by lm-sensors; displayed in the lower bar toward the right in black text on a grey background; there is a trailing 'rpm' for units; you may override the detected fan by setting FAN=/sys/path/to/your/fan1_input in \fI$BYOBU_CONFIG_DIR/statusrc\fP
|
||||||
|
|
||||||
\fBhostname\fP \- the hostname of the system; displayed in the upper bar on the far right in bold black text on a grey background; there is a leading '@' symbol if the username status is also enabled
|
\fBhostname\fP \- the hostname of the system; displayed in the upper bar on the far right in bold black text on a grey background; there is a leading '@' symbol if the username status is also enabled
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue