Now overvolting on a long run doesn't seem such a bad idea

No not I2C. Just a memory mapped GPU peripheral.arm2 wrote:"/opt/vc/bin/vcgencmd measure_temp" Presumably this is reading an on chip temperature sensor?
If yes is it on an I2C bus?
If Yes which one and is it LM75 compatible?
Thanks for the info. I see from a Liz tweet that sources to vcgencmd should be released soon, will it have enough info to let RISC OS software to be written? Please!dom wrote:No not I2C. Just a memory mapped GPU peripheral.arm2 wrote:"/opt/vc/bin/vcgencmd measure_temp" Presumably this is reading an on chip temperature sensor?
If yes is it on an I2C bus?
If Yes which one and is it LM75 compatible?
Code: Select all
/opt/vc/bin/vcgencmd measure_volts
volt=1.20V
Code: Select all
current_limit_override=0x5A000020
Code: Select all
# sudo -u zabbix /opt/vc/bin/vcgencmd measure_temp
VCHI initialization failed
markus3141 wrote:What is required to access the temps, frequencies etc.? I've got a user named "zabbix" (only in group "zabbix") that can't read the values
Code: Select all
pi@raspberrypi:~$ ls -l /dev/vchiq
crw-rw---T 1 root video 252, 0 Jan 1 1970 /dev/vchiq
pi@raspberrypi:~$ groups
pi adm dialout cdrom sudo audio video plugdev games users netdev input
Code: Select all
usermod -a -G video zabbix
Ah, thanks! Wouldn't have thought of having it to add to group video (well, I should have checked the device permissions...).dom wrote:markus3141 wrote:What is required to access the temps, frequencies etc.? I've got a user named "zabbix" (only in group "zabbix") that can't read the valuesso:Code: Select all
pi@raspberrypi:~$ ls -l /dev/vchiq crw-rw---T 1 root video 252, 0 Jan 1 1970 /dev/vchiq pi@raspberrypi:~$ groups pi adm dialout cdrom sudo audio video plugdev games users netdev input
might do it.Code: Select all
usermod -a -G video zabbix
ls -l /usr/bin/vcgemcmdslabua wrote:Is it vcgencmd or vcgemcmd? I have the latter command, but in the posts I read the former. Was there a type in the repository maybe?
This worked like a charm!Sander wrote:Tested code:Joshyu wrote: Does anybody know how to use this line in a python script?Code: Select all
import os cmd = '/opt/vc/bin/vcgencmd measure_temp' line = os.popen(cmd).readline().strip() if "error" in line: print "Error ... is your firmware uptodate? Run rpi-update" else: # line now contains something like: temp=41.2'C # to get the temperature, split on =, and then on ' temp = line.split('=')[1].split("'")[0] print temp
Result:
Does this help?Code: Select all
pi@raspberrypi ~ $ python tempie.py 41.2 pi@raspberrypi ~ $
With the introduction of these "*_min" properties, I have to wonder if it would make sense to rename the existing overclock properties (eg. arm_freq) to include the "_max" suffix (keeping the existing non-suffix properties as synonyms of *_max, at least temporarily for backward compatibility but marked as deprecated).dom wrote:You can also reduce the stock settings with:if you would like to underclock.Code: Select all
arm_freq_min gpu_freq_min core_freq_min sdram_freq_min over_voltage_min
If you are going to release your software could you also include support for an I2C connected 'Case' temperature sensor please?markus3141 wrote: I'd like to put temps, frequencies and voltages in my monitoring system.
Markus
Code: Select all
cat /sys/class/thermal/thermal_zone0/temp
46002
Code: Select all
arm_freq=900
core_freq=450
sdram_freq=450
When idle, arm_freq=700, core_freq=250, sdram_freq=400.caravela wrote:so if i get this right the cpu freq will go from min to max but what about the other overclock options?
let's say i have the followingWhat happens to core_freq and sdram_freq when the cpu governor changes frequency ?Code: Select all
arm_freq=900 core_freq=450 sdram_freq=450
do they fluctuate from stock to the defined value or are they just set to the config value ?
Well, it's not my software, its just a Zabbix instance running on my server. But I plan to release a Zabbix-Template for the Raspberry Pi to monitor voltages, temperature, clocks etc.arm2 wrote:If you are going to release your software could you also include support for an I2C connected 'Case' temperature sensor please?markus3141 wrote: I'd like to put temps, frequencies and voltages in my monitoring system.
Markus
Trey wrote:Is it possible to read the value of the the SoC bit that gets flipped after your first overvolt? I have two RPi's and lost track of which one I was using to play around with overvolting.
Code: Select all
cat /proc/cpuinfo
...
Revision : 1000002
How can I use this script within munin?ohrensessel wrote:To monitor the temperature of my pi I wrote a small script that converts the output of vcgencmd measure_temp to the format of lm_sensors, so that it can be used by the munin sensors_ plugin.