FS#33277 - [xmobar] eats up battery
Attached to Project:
Community Packages
Opened by Edward O'Callaghan (evocallaghan) - Thursday, 03 January 2013, 00:42 GMT
Last edited by Jelle van der Waa (jelly) - Saturday, 08 April 2017, 14:50 GMT
Opened by Edward O'Callaghan (evocallaghan) - Thursday, 03 January 2013, 00:42 GMT
Last edited by Jelle van der Waa (jelly) - Saturday, 08 April 2017, 14:50 GMT
|
Details
Description:
XmoBar is coming up near the top of powertop. This could be a misconfiguration on my part, I do not know. However I have followed documentation to the letter and assume this could be related to some kind of polling issue perhaps? Power est. Usage Events/s Category Description 5.16 W 32.9% Device Display backlight 1.27 W 0.0 pkts/s Device Network interface: wlan0 (iwlwifi) 110 mW 4.8 ms/s 24.4 Process xmobar ----<snip> Additional info: * package version(s) Version : 0.16-4 * config and/or log files etc. └──╼ cat .xmobarrc Config { font = "-misc-fixed-*-*-*-*-10-*-*-*-*-*-*-*" , bgColor = "black" , fgColor = "grey" , position = Top , persistent = True , lowerOnStart = True , commands = [ Run Weather "CYQY" ["-t","<station>: <tempC>°C","-L","18","-H","25","--normal","green","--high","red","--low","lightblue"] 36000 , Run Network "eth0" ["-L","0","-H","32","--normal","green","--high","red"] 10 , Run Network "wlan0" ["-L","0","-H","32","--normal","green","--high","red"] 10 , Run Wireless "wlan0" ["-t","wlan0: %","-L","0","-H","32","--normal","green","--high","red"] 10 -- , Run Battery ["-L","50","-H","75","--high","green","--normal","yellow", "--low", "red", "--template", "bat:<left>"] 100 , Run Battery ["-L","50","-H","75","--high","green","--normal","yellow", "--low", "red", "--template", "bat: <left>%"] 100 -- , Run Volume "default" "Master" [] 10 --, Run AlsaVolume "Master" ["--template", "vol:<vol>"] 10 --, Run Com "/home/edward/.bin/volume.sh" [] "vol" --, Run Com "/home/edward/.bin/wireless.sh" [] "wifi" 30 , Run Cpu ["-L","3","-H","50","--normal","green","--high","red"] 10 , Run Memory ["-t","Mem: <usedratio>%"] 10 , Run Swap [] 10 , Run Date "%a %b %_d %Y %H:%M:%S" "date" 10 , Run StdinReader ] , sepChar = "%" , alignSep = "}{" , template = "%StdinReader% }{%cpu% | %memory% * %swap% | %eth0% - %wlan0% | %battery% | <fc=#ee9a00>%date%</fc>| %CYQY% " } Possibly related issue: Anything else needed please let me know, Kind Regards, Edward. |
This task depends upon
Closed by Jelle van der Waa (jelly)
Saturday, 08 April 2017, 14:50 GMT
Reason for closing: No response
Saturday, 08 April 2017, 14:50 GMT
Reason for closing: No response
Also your two wifi/vol commands might cause much polling:
--, Run Com "/home/edward/.bin/volume.sh" [] "vol"
--, Run Com "/home/edward/.bin/wireless.sh" [] "wifi" 30
"
Config
{ font = "xft:Inconsolata:size=10:antialias=true:weight=bold"
, commands =
[ Run Com "bat-info" [] "battery" 100
, Run Date "%c" "date" 10
, Run StdinReader
]
, template = "%StdinReader% }{ %battery% * %date%"
}
Powertop indicates 100 wakeups per second caused by xmobar alone (another 100 by xmonad), which an order of magnitude higher than the most I would expect.
(This issue also still affects xmonad.)
http://code.google.com/p/xmobar/issues/detail?id=43
Anyway, I'm closing this bug, because optimization is an upstream task.
Please refer to:
https://github.com/jaor/xmobar/issues/89