Raspberry pi powertop显示owfs每秒40次唤醒,传感器采样仅每10秒一次

Raspberry pi powertop显示owfs每秒40次唤醒,传感器采样仅每10秒一次,raspberry-pi,1wire,Raspberry Pi,1wire,我正在运行owfs(1-wire文件系统),其他一些进程仅每10秒采样一次温度数据。现在,该linux设备上的powertop为owfs进程显示每秒40到50次唤醒事件。我假设owfs经常出去轮询/采样传感器,这就是我看到这些唤醒的原因 由于我对这台小型机器的能耗非常感兴趣(每节约一点都有帮助),我想知道是否有办法降低这种唤醒频率。如果您启动owhttpd并浏览端口:2121在主机上,您将看到一个带有超时设置的页面 您可以尝试调整设置,一旦您满意,就将其放入owfs.conf文件中。我没有这样做

我正在运行
owfs
(1-wire文件系统),其他一些进程仅每10秒采样一次温度数据。现在,该linux设备上的
powertop
owfs
进程显示每秒40到50次唤醒事件。我假设
owfs
经常出去轮询/采样传感器,这就是我看到这些唤醒的原因


由于我对这台小型机器的能耗非常感兴趣(每节约一点都有帮助),我想知道是否有办法降低这种唤醒频率。

如果您启动
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

如果启动主机上的
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

嗯,嗯。我已经在上检查了owfs.conf的文档,唯一适用的超时似乎是
timeout\u volatile
,这似乎不会影响唤醒率。嗯,好吧。我已经在上检查了owfs.conf的文档,唯一适用的超时似乎是
timeout\u volatile
,这似乎不会影响唤醒率。