powertop为owfs显示40次唤醒/秒,传感器采样仅为每10秒

时间:2016-01-01 17:03:23

标签: raspberry-pi 1wire

我正在运行owfs(1线文件系统),其他一些过程仅每隔10秒对温度数据进行采样。现在{linux}框上的powertop显示owfs进程每秒有40到50个唤醒事件。我假设owfs经常出去调查/采样传感器,这就是我看到这些唤醒的原因。

由于我非常热衷于这台小机器的能量消耗(每一点节省都有帮助),我想知道是否有办法减少这种唤醒频率。

1 个答案:

答案 0 :(得分:0)

如果您在主机上启动owhttpd并浏览端口:2121,您会看到有一个包含超时设置的页面。

您可以尝试调整设置,一旦您满意,请将其放在owfs.conf文件中。我没有这样做但它应该有用。

以下是我网络上列出的设置/超时选项:

directory
          60

ftp 
         900

ha7 
          60

network 
           1

presence    
         120

serial  
           5

server  
          10

stable  
         300

uncached    
           5

volatile    
          15

w1  
          30

# Timeouts (all in seconds) 
# cache for values that change on their own  timeout_volatile = value 
# seconds "volatile" values remain in cache 
# cache for values that change on command  timeout_stable = value 
# seconds "stable" values remain in cache 
# cache for directory lists (non-alarm)  timeout_directory = value 
# seconds "directory" values remain in cache 
# cache for 1-wire device location  timeout_presence = value 
# seconds "device presence" (which bus)  timeout_serial = value 
# seconds to wait for serial response  timeout_usb = value 
# seconds to wait for USB response  timeout_network = value 
# seconds to wait for tcp/ip response  timeout_ftp = value 
# seconds inactivity before closing ftp session