Conky and frequency scaling

Hello.
I have couple of computers with conky and cpufreq working. All fine there. It was so also on my notebook, which had Ubuntu 9.04 installed. I reinstalled to 9.10 and since then my conky reports full frequency.
There was a lot of other issues, so I decided to finally remove Ubuntu and take the time to install Arch. Things are much better with Arch on this notebook, but I did not get rid of the frequency scaling problem. It is Thinkpad X31 btw.
According to powertop and cpufreq-info, the frequency scaling is working. Conky reports 1400Mhz all the time.
Here is my cpufreq-info:
cpufrequtils 005: cpufreq-info (C) Dominik Brodowski 2004-2006
Report errors and bugs to [email protected], please.
analyzing CPU 0:
driver: acpi-cpufreq
CPUs which need to switch frequency at the same time: 0
hardware limits: 600 MHz - 1.40 GHz
available frequency steps: 1.40 GHz, 1.20 GHz, 1000 MHz, 800 MHz, 600 MHz
available cpufreq governors: ondemand, performance
current policy: frequency should be within 600 MHz and 1.40 GHz.
The governor "ondemand" may decide which speed to use
within this range.
current CPU frequency is 600 MHz.
cpufreq.conf
#configuration for cpufreq control
# valid governors:
# ondemand, performance, powersave,
# conservative, userspace
governor="ondemand"
# valid suffixes: Hz, kHz (default), MHz, GHz, THz
min_freq="0.5GHz"
max_freq="3GHz"
lsmod | grep freq
cpufreq_ondemand 7400 1
acpi_cpufreq 8648 0
freq_table 3740 2 cpufreq_ondemand,acpi_cpufreq
processor 36076 2 acpi_cpufreq
Running this script clearly shows that freq is changing
#!/bin/bash
while [ "1"=="1" ]; do
echo `cpufreq-info | grep "current CPU frequency"`
sleep 2
done
conkyrc
update_interval 2
background yes
use_spacer left
double_buffer yes
short_units yes
pad_percents 3
own_window yes
own_window_type normal
own_window_transparent yes
gap_x 4
gap_y 30
draw_shades no
draw_outline no
draw_borders no
stippled_borders 10
color0 black
color1 white
default_shade_color white
default_outline_color white
own_window_hints undecorated, below, skip_taskbar, skip_pager
alignment bottom_left
TEXT
${alignc}${color1}$nodename
${alignc}$sysname $kernel on $machine
${color1}$hr
${color1}CPU: $color0${cpu cpu0}%
${color0}${cpugraph cpu0 15}
${cpubar cpu0 4}
${color1}RAM :$color0 $memperc% ${membar 4}
${color1}Swap :$color0 $swapperc% ${swapbar 4}
${color1}Processes :$color0 ${exec printf "%3d" `ps -A | wc -l`}/$running_processes ${color1}Uptime :$color0 $uptime_short${color1}
${color1}Frequency :$color0 ${exec cpufreq-info | grep "current CPU frequency" | cut -c28-35} ${freq}${color1} ${if_existing /sys/class/power_supply/BAT0}${if_existing /sys/class/power_supply/BAT0/present 1}
${color1}$hr
Battery : $color0${battery_bar 4 BAT0}
${battery_time}${alignr}${battery}${endif}${endif}
${color1}$hr
${if_existing /sys/class/net/eth0/operstate up}${color1}IP :${alignr}${color0}${addr eth0}${color1}
Wired connection
${color0}${downspeedgraph eth0 12,108} ${upspeedgraph eth0 12,108}
${color1}Down : $color0${downspeed eth0} ${color1} Up: $color0${upspeed eth0}${color1}k/s ${else}${if_existing /sys/class/net/wlan0/operstate up}${color1}IP :${alignr}${color0}${addr wlan0}${color1}
Wifi :$color0${wireless_link_qual wlan0}% ${wireless_link_bar 4,0 wlan0}
${color0}${downspeedgraph wlan0 12,108} ${upspeedgraph wlan0 12,108}
${color1}Down : $color0${downspeed wlan0} ${color1} Up : $color0${upspeed wlan0}${color1}${else}
${endif}${endif}
${color1}$hr
${color1}CPU :$color0 ${ibm_temps 0} ${color1}C HDD :$color0 ${ibm_temps 2}${color1} C
${color1}GPU :$color0 ${ibm_temps 3} ${color1}C BAT :$color0 ${ibm_temps 4} ${color1}/${color0} ${ibm_temps 6} ${color1}C
${color1}$hr
${color1}Top: PID CPU% MEM%
${color0 white} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color0 white} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color0 white} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color0 white} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
As you can see I even put that part of script, which takes values from cpufreq-info into conky, but it still does show wrong values.
When I manually set frequency to 600Mhz, it shows up in conky.
With Ubuntu 9.04 this was working fine, so I wonder what has recently changed that could have resulted in this behaviour.

Archiee wrote:[...]
- Frequency step size is configurable (default to 100MHz/step) (cpufreq doesn't support this)
If I'm not mistaken it's the CPU that tells the utility what frequencies it can switch to; not the other way around. Remember each frequency has a voltage tied to it. Also, he's not asking about a way to manage his cpuf requency management, just about a glitch in actualy frequency reporting.
@ topic starter: why are you grepping cpufreq-info if you can have conky just read it out for you? It's a hardcoded conky feature...
From their documentation:
freq    (n)    Returns CPU #n's frequency in MHz. CPUs are counted from 1. If omitted, the parameter defaults to 1
@ Archiee: I checked with powernowd:
root@hermes # powernowd -v
powernowd: PowerNow Daemon v1.00, (c) 2003-2008 John Clemens
powernowd: Settings:
powernowd: verbosity: 1
powernowd: mode: 1 (AGGRESSIVE)
powernowd: step: 100 MHz (100000 kHz)
powernowd: lowwater: 20 %
powernowd: highwater: 80 %
powernowd: poll interval: 1000 ms
powernowd: about to return count = 1
powernowd: Found 2 scalable units: -- 1 'CPU' per scalable unit
powernowd: cpu0: 800Mhz - 1200Mhz (2 steps)
powernowd: step1 : 1200Mhz
powernowd: step2 : 800Mhz
powernowd: cpu1: 800Mhz - 1200Mhz (2 steps)
powernowd: step1 : 1200Mhz
powernowd: step2 : 800Mhz
root@hermes # cpufreq-info
cpufrequtils 006: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to [email protected], please.
analyzing CPU 0:
driver: acpi-cpufreq
CPUs which run at the same hardware frequency: 0 1
CPUs which need to have their frequency coordinated by software: 0
maximum transition latency: 10.0 us.
hardware limits: 800 MHz - 1.20 GHz
available frequency steps: 1.20 GHz, 800 MHz
available cpufreq governors: userspace, powersave, ondemand, performance
current policy: frequency should be within 800 MHz and 1.20 GHz.
The governor "userspace" may decide which speed to use
within this range.
current CPU frequency is 800 MHz (asserted by call to hardware).
analyzing CPU 1:
driver: acpi-cpufreq
CPUs which run at the same hardware frequency: 0 1
CPUs which need to have their frequency coordinated by software: 1
maximum transition latency: 10.0 us.
hardware limits: 800 MHz - 1.20 GHz
available frequency steps: 1.20 GHz, 800 MHz
available cpufreq governors: userspace, powersave, ondemand, performance
current policy: frequency should be within 800 MHz and 1.20 GHz.
The governor "userspace" may decide which speed to use
within this range.
current CPU frequency is 800 MHz (asserted by call to hardware).

Similar Messages

  • Cpu frequency scaling not working and hdd powers down

    Hi,
    I recently made a fresh reinstall on my laptop keeping only my user settings (home directory) but no system-wide settings (/etc).
    Now I have the following issues:
    1) CPU frequency scaling does not work. KDE's PowerDevil tells me, my CPU does not have scaling capability and when I try to start cpufreq, I get this error message:
    # /etc/rc.d/cpufreq start
    :: Setting cpufreq governing rules , cpu 0 1Error setting new values. Common errors: [BUSY] - Do you have proper administration rights? (super-user?)ble_governors: No such file or directory
    - Is the governor you requested available and modprobed?
    - Trying to set an invalid policy?
    - Trying to set a specific frequency, but userspace governor is not available,
    for example because of hardware which cannot be set to a specific frequency
    or because the userspace governor isn't loaded?
    The governor modules are loaded:
    # lsmod | grep cpufreq
    cpufreq_userspace 2096 0
    cpufreq_powersave 942 0
    cpufreq_ondemand 7990 0
    freq_table 2339 1 cpufreq_ondemand
    cpufreq_conservative 9172 0
    This used to work out-of-the box with the previous install so I'm a bit puzzled.
    2) My hard drive powers down after a few seconds of inactivity, just to power up a few seconds later when it's accessed again. The hard drive never powered down on my previous installation. I do not have any power management daemons running and this behavior starts right after booting the machine, before I log in.
    I would like to disable this "feature" since I think it's rather bad for the hard drive's health as well as battery life.
    Any ideas?:)
    EDIT: Cpu frequency scaling is fixed now, forgot to load the acpi_cpufreq module.:rolleyes: There's still the issue with the hard drive, though.
    Last edited by Vortex375 (2010-06-28 14:54:27)

    The HDD thing is caused by upowerd, dunno why though.
    You can try: hdparm -B 254 <disk device>, but that wont solve the problem permanently, only till you plug and unplug again the AC supply.
    you can also try killing upowerd and things will (at least that was the case for me) be alright.
    Maybe this is upowerd bug?
    Last edited by kralyk (2010-06-29 20:44:24)

  • [SOLVED] Systemd and laptop-mode-tools frequency scaling

    Hi all.
    After a long time with no arch updates (november 2011) for various reasons, I decided to reinstall Arch from point 0 on my Clevo laptop.
    I was pleased to see nothing went bad, all is now set like I want. I installed systemd yesterday. All very straightforward for me, I only have a problem with CPU frequency scaling plus some minor glitches.
    Before systemd, everything went fine. Ondemand governor, set up like I wanted.
    Now when on AC the system uses ondemand, but when on battery it uses the conservative governor. What's more, it does not go over 1.6GHz (2.54GHz max).
    Here are some infos about it:
    [adriano@M735T ~] cpupower frequency-info
    analyzing CPU 0:
    driver: acpi-cpufreq
    CPUs which run at the same hardware frequency: 0 1
    CPUs which need to have their frequency coordinated by software: 0
    maximum transition latency: 10.0 us.
    hardware limits: 800 MHz - 2.53 GHz
    available frequency steps: 2.53 GHz, 2.53 GHz, 1.60 GHz, 800 MHz
    available cpufreq governors: ondemand, performance
    current policy: frequency should be within 800 MHz and 1.60 GHz.
    The governor "ondemand" may decide which speed to use
    within this range.
    current CPU frequency is 1.60 GHz.
    boost state support:
    Supported: yes
    Active: yes
    [yes this is all come out of the cpupower command, no mention of CPU 1. Is this normal?]
    Of course LMT is set up correctly
    CONTROL_CPU_FREQUENCY="1"
    BATT_CPU_MAXFREQ=fastest
    BATT_CPU_MINFREQ=slowest
    BATT_CPU_GOVERNOR=ondemand
    BATT_CPU_IGNORE_NICE_LOAD=1
    LM_AC_CPU_MAXFREQ=fastest
    LM_AC_CPU_MINFREQ=slowest
    LM_AC_CPU_GOVERNOR=ondemand
    LM_AC_CPU_IGNORE_NICE_LOAD=1
    NOLM_AC_CPU_MAXFREQ=fastest
    NOLM_AC_CPU_MINFREQ=slowest
    NOLM_AC_CPU_GOVERNOR=ondemand
    NOLM_AC_CPU_IGNORE_NICE_LOAD=0
    [adriano@M735T ~] sudo systemctl status laptop-mode-tools.service
    laptop-mode-tools.service - Laptop Power Saving Tools
    Loaded: loaded (/usr/lib/systemd/system/laptop-mode-tools.service; enabled)
    Active: active (exited) since Sun, 02 Sep 2012 17:03:45 +0200; 4h 34min ago
    Main PID: 367 (code=exited, status=0/SUCCESS)
    CGroup: name=systemd:/system/laptop-mode-tools.service
    Sep 02 17:03:43 M735T laptop_mode[367]: /usr/sbin/laptop_mode: line 198: /dev/fd/1: No such device or address
    Sep 02 17:03:44 M735T laptop_mode[367]: /usr/sbin/laptop_mode: line 198: /dev/fd/1: No such device or address
    Sep 02 17:03:44 M735T laptop_mode[367]: /usr/sbin/laptop_mode: line 198: /dev/fd/1: No such device or address
    I wonder why LMT status is "exited"
    OK bin that, I just now see something is wrong. I said it used conservative, but I'm on battery and it now says ondemand (still 1.6GHz max). However it seems it does so casually.
    ACPI:
    [adriano@M735T ~] acpi
    Battery 0: Discharging, 53%, rate information unavailable
    This may be (?) or may not be linked with nother problem I have: when unplugging the AC the KDE battery monitor does not update. It says AC is plugged and it will not activate power saving features (screen dimming, suspend...)
    Note that this battery monitor problem occurred even before systemd, so it should not be linked to the above problem. However I'm not 100% sure the above problems did not occur before installing systemd since I only had the system up and running for a comple of days. I seem to recall I checked and it worked fine.
    Any idea why all this happens?
    Last edited by OdinEidolon (2012-11-20 08:56:31)

    Ok rebooted and this is the output of the pm-powersave log file:
    (AC IN, no battery)
    (pastebin)
    http://pastebin.com/Kf2Lx7UQ
    If I grep cpupower:
    Running hook /usr/lib/pm-utils/power.d/cpupower false:
    Setting cpupower frequency governor to ondemand...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower false: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower true:
    Setting cpupower frequency governor to conservative...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower true: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower false:
    Setting cpupower frequency governor to ondemand...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower false: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower true:
    Setting cpupower frequency governor to conservative...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower true: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower true:
    Setting cpupower frequency governor to conservative...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower true: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower true:
    Setting cpupower frequency governor to conservative...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower true: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower true:
    Setting cpupower frequency governor to conservative...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower true: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower true:
    Setting cpupower frequency governor to conservative...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower true: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower false:
    Setting cpupower frequency governor to ondemand...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower false: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower true:
    Setting cpupower frequency governor to conservative...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower true: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower false:
    Setting cpupower frequency governor to ondemand...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower false: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower false:
    Setting cpupower frequency governor to ondemand...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower false: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower true:
    Setting cpupower frequency governor to conservative...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower true: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower true:
    Setting cpupower frequency governor to conservative...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower true: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower false:
    Setting cpupower frequency governor to ondemand...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower false: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower true:
    Setting cpupower frequency governor to conservative...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower true: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower false:
    Setting cpupower frequency governor to ondemand...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower false: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower true:
    Setting cpupower frequency governor to conservative...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower true: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower false:
    Setting cpupower frequency governor to ondemand...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower false: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower false:
    Setting cpupower frequency governor to ondemand...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower false: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower true:
    Setting cpupower frequency governor to conservative...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower true: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower false:
    Setting cpupower frequency governor to ondemand...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower false: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower true:
    Setting cpupower frequency governor to conservative...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower true: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower false:
    Setting cpupower frequency governor to ondemand...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower false: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower false:
    Setting cpupower frequency governor to ondemand...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower false: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower true:
    Setting cpupower frequency governor to conservative...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower true: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower false:
    Setting cpupower frequency governor to ondemand...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower false: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower true:
    Setting cpupower frequency governor to conservative...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower true: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower false:
    Setting cpupower frequency governor to ondemand...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower false: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower true:
    Setting cpupower frequency governor to conservative...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower true: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower true:
    Setting cpupower frequency governor to conservative...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower true: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower true:
    Setting cpupower frequency governor to conservative...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower true: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower true:
    Setting cpupower frequency governor to conservative...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower true: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower true:
    Setting cpupower frequency governor to conservative...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower true: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower true:
    Setting cpupower frequency governor to conservative...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower true: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower true:
    Setting cpupower frequency governor to conservative...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower true: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower true:
    Setting cpupower frequency governor to conservative...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower true: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower false:
    Setting cpupower frequency governor to ondemand...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower false: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower true:
    Setting cpupower frequency governor to conservative...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower true: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower false:
    Setting cpupower frequency governor to ondemand...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower false: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower true:
    Setting cpupower frequency governor to conservative...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower true: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower true:
    Setting cpupower frequency governor to conservative...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower true: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower false:
    Setting cpupower frequency governor to ondemand...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower false: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower true:
    Setting cpupower frequency governor to conservative...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower true: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower false:
    Setting cpupower frequency governor to ondemand...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower false: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower true:
    Setting cpupower frequency governor to conservative...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower true: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower false:
    Setting cpupower frequency governor to ondemand...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower false: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower true:
    Setting cpupower frequency governor to conservative...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower true: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower false:
    Setting cpupower frequency governor to ondemand...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower false: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower false:
    Setting cpupower frequency governor to ondemand...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower false: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower false:
    Setting cpupower frequency governor to ondemand...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower false: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower true:
    Setting cpupower frequency governor to conservative...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower true: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower false:
    Setting cpupower frequency governor to ondemand...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower false: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower true:
    Setting cpupower frequency governor to conservative...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower true: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower false:
    Setting cpupower frequency governor to ondemand...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower false: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower false:
    Setting cpupower frequency governor to ondemand...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower false: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower false:
    Setting cpupower frequency governor to ondemand...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower false: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower true:
    Setting cpupower frequency governor to conservative...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower true: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower false:
    Setting cpupower frequency governor to ondemand...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower false: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower true:
    Setting cpupower frequency governor to conservative...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower true: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower false:
    Setting cpupower frequency governor to ondemand...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower false: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower true:
    Setting cpupower frequency governor to conservative...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower true: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower true:
    Setting cpupower frequency governor to conservative...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower true: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower false:
    Setting cpupower frequency governor to ondemand...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower false: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower false:
    Setting cpupower frequency governor to ondemand...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower false: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower false:
    Setting cpupower frequency governor to ondemand...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower false: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower true:
    Setting cpupower frequency governor to conservative...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower true: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower false:
    Setting cpupower frequency governor to ondemand...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower false: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower true:
    Setting cpupower frequency governor to conservative...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower true: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower false:
    Setting cpupower frequency governor to ondemand...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower false: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower false:
    Setting cpupower frequency governor to ondemand...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower false: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower false:
    Setting cpupower frequency governor to ondemand...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower false: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower true:
    Setting cpupower frequency governor to conservative...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower true: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower true:
    Setting cpupower frequency governor to conservative...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower true: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower false:
    Setting cpupower frequency governor to ondemand...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower false: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower true:
    Setting cpupower frequency governor to conservative...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower true: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower true:
    Setting cpupower frequency governor to conservative...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower true: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower true:
    Setting cpupower frequency governor to conservative...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower true: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower false:
    Setting cpupower frequency governor to ondemand...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower false: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower true:
    Setting cpupower frequency governor to conservative...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower true: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower true:
    Setting cpupower frequency governor to conservative...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower true: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower true:
    Setting cpupower frequency governor to conservative...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower true: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower false:
    Setting cpupower frequency governor to ondemand...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower false: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower true:
    Setting cpupower frequency governor to conservative...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower true: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower false:
    Setting cpupower frequency governor to ondemand...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower false: success.
    Running hook /usr/lib/pm-utils/power.d/cpupower false:
    Setting cpupower frequency governor to ondemand...Setting cpu: 0
    /usr/lib/pm-utils/power.d/cpupower false: success.
    right now:
    1) cpupower reports ondemand and 2.54GHz (right)
    2) acpi -bi reports nothing as it should (battery is disconnected)
    3) acpi -a reports AC in as it should
    4) all KDE stuff works OK
    Now I plug the battery in:
    1) cpupower reports ondemand and 2.54GHz (right)
    2) acpi -bi reports nothing, which is wrong
    3) acpi -a reports AC in as it should
    4) KDE battery monitor reports no battery in, as signaled by acpi
    5) if performing acpi_listen ,it reports nothing interesting
    Now I unplug AC:
    Absolutely nothing changes (not even in the log file) but:
    1) cpupower reports ondemand and 1.6GHz (wrong)
    2) acpi -bi reports nothing, which is wrong
    3) acpi -a reports no AC as it should
    4) KDE battery monitor reports no battery in, as signaled by acpi,  but it also reports AC is inserted

  • How to calculate rms voltage, rms current and frequency from real time data?

    Hello,
    I need to calculate the real time rms voltage, rms current and frequency of the received voltage and current graphs using visa read. Actually am trying to monitor the voltage and current parameters of AC load, in this case, am using a set of 4 light bulbs at the moment. Expected frequency is 50 Hz, and rms voltage close to 240v AC, current about 1A. 
    Attached is the vi picture of what I have been able to achieve so far, courtesy of labview forums. But I need to finally finish this vi by calculating the Vrms, Irms and frequecy. The front panel shows the voltage (Chart V) and current (Chart I) after scaling. Chart VI represents ADC value 0 ~ 1023 of received data. Aray V & I show the binary bits received up to 10 bits of useful data from ADC. Each sine wave from ADC is sampled at 25 samples for the ADC conversion, and sampling frequency of 1.28kH.
    I have tried using the RMS vi, but seems I don't know how to configure it correctly to get desired results. Also when I make changes like switching of one of the bulbs so that their is current change, I need to refresh the SERIAL port first before changes show up on the VI. Any ideas on how to improve on this are highly appreciated.
    Otherwise, I would appreciate if somebody helps me MODIFY my VI to read the rms values and frequency from received data. This is the last piece of my project, I do appreciate all the help rendered. Am currently using labview labview 2014, student version!
    Gavin.
    Attachments:
    Test_revised1.vi ‏39 KB
    Test_frontpanel.png ‏196 KB
    Test_blockdiagram.png ‏187 KB

    hello,
    note that peak voltage (Vpeak) is (240 * 1.414) = 399 V and peak current about 1.414 if intended rms current is 1A.
    Gavin.

  • Need help with ...adding frequency scaling modules

    Hi!  I'm new to Arch and in the middle of installing.  So far, so good. I just completed installing cpufrequtils and editing the rc.conf file to show the min_freq and max_freq to match my systems cpu spec.
    What I don't understand is the following per the Beginners Guide...
    "Add the frequency scaling modules to your /etc/rc.conf modules line (e.g. speedstep_centrino for Pentium M processors or powernow-k8 for the Athlon 64). Load the module with
    modprobe <modulname>
    Where do I need to do with this, it's confusing.  If I skip that section and run "/etc/rc.d/cpufreq start" I get the following...
    ::Setting cpufreq governing rules
    wrong, unknown, or unhandled CPU?
    ...which points back to the scaling modules, but I'm not sure how to exactly add them to the rc.conf modules section correctly.  anyone have any ideas?
    Thanks!
    Eis!

    modprobe <modulename> will load a module into the kernel. To have a module loaded automagically on boot, you can add <modulename> to the modules line in /etc/rc.conf.
    If you have the entries in your /etc/rc.conf, there is no need to use the modprobe command as the modules will already be loaded.
    To get frequency scaling working using cpufrequtils, you'll need to load the proper frequency scaling module (e.g., for Intel Core Duo: acpi_cpufreq). The exact module depends on your processor though. What's your CPU?
    In addition to loading the CPU frequency scaling module, you _may_  need to also load your desired governor by adding it to the modules line of /etc/rc.conf (cpufreq_ondemand, cpufreq_conservative, cpufreq_performance, cpufreq_userspace, cpufreq_powersave) and editing /etc/conf.d/cpufreq to use your desired governor.
    You can also have the cpufreq daemon start automagically on boot by adding 'cpufreq' to the daemons line in /etc/rc.conf.
    Last edited by arbrown (2007-05-19 06:26:43)

  • [solved] GNOME cpu frequency scaling monitor applet doesn't work

    Hello,
    i have installed everything successfully (i come from fedora), but now i have a problem
    I want to add the cpu frequency scaling monitor applet to the panel, but i can't see it. When i rightclick on this place, the submenu with settings and so on is displayed, and i can choose the other cpu1 instead of cpu0, then the applet appears. But the applet shows 0 Mhz and i can't choose a frequency or something.
    I start GNOME with xinit and have added exec ck-launch-session gnome-session to ~/.xinitrc, because shutdown wasn't displayed at the beginning and automouting permission problems.
    What's the problem?
    Edit: My system is a netbook with intel atom cpu
    Last edited by scenox (2010-07-19 18:11:59)

    the problem is that the modules are not loaded automatically for cpu scaling and you have to explicity add them into rc.conf, MODULES array.
    MODULES=(...acpi-cpufreq cpufreq_ondemand...)

  • Problems with CPU frequency scaling

    Hello!
    I'm having problems following this wiki page in order to set up frequency scaling. My CPU is an AMD Athlon 64 X2 5000+, so I tried to load the powernow-k8 module. However, the device couldn't be found. Turning AMD Cool'n'Quiet fixed that, but soon after loading the module, my computer would crash. Changing CPU frequency profiles in BIOS only changed if my computer would crash immediately or a few seconds after loading the module. My motherboard is Asus M2N SLI.
    Could someone help me fix this?

    Thanks for your reply!
    Unfortunately, I can't seem to even do that. I just ran this after setting the BIOS profile to Auto:
    sudo modprobe powernow-k8 && dmesg | grep powernow > dmesg.txt && lsmod | grep powernow > lsmod.txt
    As soon as I pressed return, the command seemed to have executed successfully, basically this is what happened:
    [davor@kompika ~]$ sudo modprobe powernow-k8 && dmesg | grep powernow > dmesg.txt && lsmod | grep powernow > lsmod.txt
    [davor@kompika ~]$
    And the system froze. Upon pressing the reset key and booting the system normally, a dmesg.txt file was indeed created in my home dir, but was empty. An lsmod.txt file was nowhere to be found.
    I have tried the Standard and Manual (with settings set to defaults) profiles, and they resulted in immediate reboots. I will try a few more times, because I seem to remember the system being able to run at least a few seconds before finally crashing/freezing.
    EDIT:
    Did it! Since the command did, in fact, execute entirely, I figured the problem must've been the lack of a clean unmount. So I created a small ext4 partition and ran as root:
    mkdir /root/logs
    mount /dev/sda1 /root/logs
    modprobe powernow-k8 && dmesg | grep powernow > /root/logs/dmesg.txt && lsmod | grep powernow > /root/logs/lsmod.txt && umount /dev/sda1
    I realize this is bad practice, but I figured running commands directly as root instead of running them through sudo would maybe save a few milliseconds.
    Regardless, it worked! Here is dmesg.txt:
    [ 327.826619] powernow-k8: Found 1 AMD Athlon(tm) 64 X2 Dual Core Processor 5000+ (2 cpu cores) (version 2.20.00)
    [ 327.826948] powernow-k8: fid 0x12 (2600 MHz), vid 0xa
    [ 327.826950] powernow-k8: fid 0x10 (2400 MHz), vid 0xc
    [ 327.826952] powernow-k8: fid 0xe (2200 MHz), vid 0xe
    [ 327.826953] powernow-k8: fid 0xc (2000 MHz), vid 0x10
    [ 327.826955] powernow-k8: fid 0xa (1800 MHz), vid 0x10
    [ 327.826957] powernow-k8: fid 0x2 (1000 MHz), vid 0x12
    And here is lsmod.txt:
    powernow_k8 13360 1
    mperf 1275 1 powernow_k8
    processor 26144 1 powernow_k8
    Last edited by Davor (2012-06-10 21:01:20)

  • Frequency scaling on Intel Core 2 Duo 6300

    May you help me setting up frequency scaling on a Intel Core 2 Duo E6300? I just don't know what module should I load. Also I don't know whats the min_freq and max_freq of my cpu.... tried cpufreq-info but only got this:
    analyzing CPU 0:
      no or unknown cpufreq driver is active on this CPU
    analyzing CPU 1:
      no or unknown cpufreq driver is active on this CPU
    [alvaro@arch ~]$

    Well, here is what I did:
    1. Installed  cpufrequtils
    2. Edited /etc/rc.d/cpufreq as said in that link you posted:
    if [ "$params" != "" ]; then
    cpufreq-set -c 0 $params
    cpufreq-set -c 1 $params
    stat_done
    3. Set governor="conservative" on the same file and commented out minimum & maximum frequencies lines.
    4. Added on rc.conf cpufreq (in deamons) and speedstep_centrino (in modules)
    But when I tried modprove speedstep-centrino, I got this error:
    [root@arch alvaro]# modprobe speedstep-centrino
    FATAL: Error inserting speedstep_centrino (/lib/modules/2.6.21-ARCH/kernel/arch/x86_64/kernel/cpufreq/speedstep-centrino.ko): Device or resource busy

  • [solved] Issue with conky and Kde 4

    I have a small issue with conky and KDE 4.2. I start conky with a script which I stored under ~/.kde/Autostart. The script is simple and looks like this..
    conky -c ~/.conkyrc_kde4
    This works fine. But when I restart the first KDE and check with ps, I have 2 instances of conky running. The instances keep on growing with the number of restarts.
    I think kde tries to restart all the apps which were running when the session was terminated. Is there a way to change this behavior in general or all the programs or for only a specific program like conky ?
    Last edited by rangalo (2009-07-28 19:02:17)

    I did
    Systemsettings > Advanced > Session Manager > Start with an empty session
    and put everything you want in Autostart

  • I am trying to configure my SCXI-1540 card for excitation voltage and frequency using MAX - but it is not giving me that option when I click on the card and then properties​, am I looking in the wrong place?

    I am trying to configure my SCXI-1540 w/1315 card for excitation voltage and frequency using MAX - but it is not giving me that option when I click on the card and then properties, am I looking in the wrong place?
    I have LabVIEW Express 7.0 Professional - SCXI-1000 Chassiss - along with SCXI-1112, and SCXI 1520/1314 - cable to the PCI-6052E is attached to the 1520 card.
    MAX says it recognizes all the cards in the chassiss.

    Jeremy, Thanks for the reply.
    I tried to set up the system as DAQmx.
    I had MAX auto-detect the set-up - and it recognized all the cards - but did not select the 1315 accessory on the 1540 card - I had to do that manually - but in the configuration section I would select the accessory and it would deselect itself. I had to get out of the set-up and then right click on the 1540 card and click on the "Accessories" tab and select the 1315 terminal block that way.
    It didn't seem right that the system should behave that way, but I pressed onward.
    I then tried to create a new DAQmx Task
    When I create new DAQmx task and then click on Analog Input no "Position" Tab appears for me to select, all I get are:
    Analog>>Voltage
    Analog>>Temperature
    Ana
    log>>Strain
    Analog>>Current
    Analog>>Resistance
    Analog>>Frequency
    Analog>>Custom Voltage with Excitation
    Do you think there might be something wrong with either my hardware or perhaps my configuration that is not allowing it to recognize the 1540/1315 in DAQmx?
    I had included the system report of what programs I am using, etc. as attached file nireport.txt
    After the DAQmx did not work I tried installing everything as Traditional DAQ and it did let me set-up the 1540 Card with Excitation Voltage and Frequency and gain - I then went in to the VI that I had built and tried to use the Express DAQ Assisant to read the channel that I am connected to on the 1315/1540 - when I try to use DAQ Assistant it gives me an error saying that "Device not available in NI-DAQmx. It is possible that the device is being use by traditional NI-DAQ"
    Which I guess it is since both configurations are now set-up in MAX.
    I would PREFER to use the DAQmx set-up, but I am confused as to WHY it won
    't come up with
    Analog input>>POSITION>>LVDT
    When I try to create a new DAQmx task.
    Thanks for the help so far! As you can probably tell I am new at this.
    Ryan
    Attachments:
    nireport.txt ‏2 KB

  • Find monitor instance name , device name , resolution and frequency of multiple monitors (VGA and HDMI)

    hi,
    In my system multiple monitors are connected (VGA and  HDMI). In need to know the
    monitor instance name , device name , resolution and frequency of each monitor.. any solution?
    i used wm class 'WmiMonitorConnectionParams'  to determine Video output technology connection type and InstanceName.
    But i didn't get the device name , resolution and frequency of each monitor.??
    There are other wmi class like :
    WmiMonitorBrightnessEvent 
    WmiMonitorConnectionParams 
    WmiMonitorRawEEdidV1Block 
    WmiMonitorListedFrequencyRanges 
    WmiMonitorDigitalVideoInputParams 
    WmiMonitorAnalogVideoInputParams 
    WmiMonitorID 
    WmiMonitorBrightnessMethods 
    WmiMonitorBasicDisplayParams 
    WmiMonitorColorCharacteristics 
    WmiMonitorDescriptorMethods 
    WmiMonitorListedSupportedSourceM… 
    WmiMonitorBrightness 
    WmiMonitorColorXYZinCIE 
    WmiMonitorSupportedDisplayFeatures
     WmiMonitorBasicDisplayParams
     Win32_VideoController
    Win32_VideoConfiguration
    Win32_VideoSettings Win32_DisplayControllerConfiguration
    Win32_DisplayConfiguration
    But unable to determine monitor having  its corresponding values? please help me to find a solution .
    is there any other method to get multi monitor details?
    thank  you

    Hi sumith,
    I read some documents about WmiMonitorConnectionParams class, it should be able to get the video putput technology by the D3DKMDT_VIDEO_OUTPUT_TECHNOLOGY enumeration.
    D3DKMDT_VIDEO_OUTPUT_TECHNOLOGY enumeration
    So what happens when you are using WmiMonitorConnectionParams class? What prevent you? Anyway, please see a example of using WmiMonitorConnectionParams class, maybe you could get some hints on it.
    http://stackoverflow.com/questions/10085900/querying-wmi-for-d3dkmdt-video-output-technology
    Best regards,
    Shu Hu
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Conky and top reporting differently

    Here are some screen caps of conky and terminal running top command. The part I am interested in is the processes, one says 85 while the other says 105?
    I question this because when I had gnome-system-monitor installed it would always show gnome-keyring-daemon as being open multiple times when I would logout and log back in. But, a fresh reboot would fix the issue.
    what exactly is going on? How can I keep uninstalling things and when I reboot my processes in conky keep going up and up?
    I am now running xfce and trying to rid myself of things I don't need like gnome based programs. The only thing stopping me from ridding myself of this gnome-keyring is GDM? But what login manager would I use if I don't use GDM, Any suggestions?
    How do I post pictures?
    Last edited by jacko (2007-12-03 17:37:30)

    jacko wrote:I am now running xfce and trying to rid myself of things I don't need like gnome based programs. The only thing stopping me from ridding myself of this gnome-keyring is GDM? But what login manager would I use if I don't use GDM, Any suggestions?
    I use Xfce and Slim.  Search the wiki for slim.

  • The caption on an annotation is off the plot area. Even if I cahnge the x and y scaling I still can't see the annotation caption. How can I change it so that I can see it?

    The caption on an annotation is off the plot area. Even if I cahnge the x and y scaling I still can't see the annotation caption. How can I change it so that I can see it?

    Try calling SetCoordinates on the annotation's Caption property. This method lets you explicitly set the x and y coordinates of the caption.
    - Elton

  • Need to make # of periods and frequency required for certain prod category

    We have a requirement to make the # of periods and frequency fields required for a certain product category. I know I need to use a field validation for this but my issue is that the product category and product name fields are non-editable. I tried putting the validation on the product ID field but it is not working properly. It still throws the error even when values are entered and regardless of the category. Here is the expression I am trying to use:
    IIf(FieldValue('<ProductCategory>')="XYZ", [<NumberOfPeriods>] is not NULL, FALSE)
    Any ideas?

    You can add the read-only token ($RO$) after any of the segments in the list. For example, the ($RO$) designator below sets Segment1 in structure code 1 to be read-only:
    Structure code1|Segment1($RO$)|Segment2...
    P.S: After I posted this message, I realized this was not what you are looking for. After all, this may help somebody.
    Edited by: dbhat1 on Dec 8, 2008 3:55 PM
    Edited by: dbhat1 on Dec 8, 2008 3:56 PM

  • Converting to real and imaginary from amplitude and frequency

    basically there is a control of the amplitude and frequncy, so as to changes with resoect of real and imaginary

    See the attachment, if this is what you require.
    I ve enabled the Unit Label for the Freq control on the FP. Just rt-click & select to enable the Unit Label feature to dorectly key in the Deg [angle] value for the frequency parameter. Normally it takes frequency [or phase angle] in radians in LV.
    - Partha
    LabVIEW - Wires that catch bugs!
    Attachments:
    converting to real and imaginary from amplitude and frequency.vi ‏8 KB

Maybe you are looking for