Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Conky slow reaction on battery status change
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
smartass
Apprentice
Apprentice


Joined: 04 Jul 2011
Posts: 189
Location: right behind you ... (you did turn around, didn't you?)

PostPosted: Sun Jun 30, 2013 5:41 pm    Post subject: Conky slow reaction on battery status change Reply with quote

Hi,

I'm migrating from i3status to Conky.

I've found that when the AC adapter is (un)plugged i3 status reacts instantly, but Conky takes several seconds to notice the change and updates battery values also slowly. Everything else updates immediately.

I have bot update_*interval set to 1, so that shouldn't be the case.

Files in /proc/acpi/battery/BAT1/* also update instantly.

Conky config:

Code:

alignment top_right
gap_x 0
gap_y 0
double_buffer yes
out_to_x yes
own_window yes
own_window_type panel
short_units yes
update_interval 1
update_interval_on_battery 1
use_xft yes
use_spacer left
font DejaVu Sans Mono:size=9:weight=bold
minimum_size 800, 10
# Colors

own_window_colour 3f3f3f
default_color c3bf9f

#TODO: battery time to charge/remaining, IP address display, FS free, volume
TEXT
$alignr CPU: ${cpubar cpu0 9,20} $loadavg | W: ${wireless_link_bar 9,20 wireless0} ${wireless_essid wireless0}| T: $acpitemp°C | MEM: $mem ${membar 9,20} | BAT: ${battery_bar 9,20 BAT1} ${battery_time BAT1} | IO: $diskio | $tztime


i3status config:
Code:

general {
        output_format = i3bar
        colors = true
        interval = 1
}

order = "disk /"
order += "disk /home"
order += "wireless wireless0"
order += "ethernet ethernet0"
order += "battery 1"
order += "cpu_temperature 0"
order += "cpu_usage"
order += "volume master"
order += "time"

wireless wireless0 {
        format_up = "W: (%quality @ %essid) %ip"
        format_down = "W -"
}

ethernet ethernet0 {
        # if you use %speed, i3status requires root privileges
        format_up = "E %ip"
   format_down = "E -"
}

battery 1 {
        format = "%status %percentage %remaining"
        low_threshold = 30
        threshold_type = time
}

time {
   format = "%Y-%m-%d %H:%M:%S"
}

load {
   format = "%1min"
}

cpu_temperature 0 {
   format = "%degrees °C"
}

disk "/" {
   format = "/ %avail"
}

disk "/home" {
   format = "~ %avail"
}

volume master {
    format = "♪ %volume"
    device = "default"
    mixer = "Master"
    mixer_idx = 0
}

cpu_usage {
    format = "%usage"
}
Back to top
View user's profile Send private message
smartass
Apprentice
Apprentice


Joined: 04 Jul 2011
Posts: 189
Location: right behind you ... (you did turn around, didn't you?)

PostPosted: Mon Jul 01, 2013 10:07 am    Post subject: Reply with quote

The strange thing is that nobody seems to be experiencing this as I haven't found such reports on the Internet.

I dug deeper into the source code and apparently there is this on line 1632 in src/linux.c :
Code:

/* don't update battery too often */
   if (current_update_time - last_battery_time[idx] < 29.5) {
      set_return_value(buffer, n, item, idx);
      return;
   }


So it might be a feature, not a bug.
I will definitely file a enhancement request on conky, this should be settable.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum