Turbo Mode

This forum is for topics specific to the Raspberry Pi and Arch Linux ARM

Re: Turbo Mode

Postby pepedog » Mon Oct 01, 2012 4:39 pm

If you point me to the script ....
cat /sys/class/thermal/thermal_zone0/temp
That should work now
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Turbo Mode

Postby stronnag » Mon Oct 01, 2012 5:18 pm

$ uname -a
Linux alarmpi 3.2.27-8-ARCH+ #1 PREEMPT Wed Sep 26 22:18:31 UTC 2012 armv6l GNU/Linux

$ cat /sys/class/thermal/thermal_zone0/temp
cat: /sys/class/thermal/thermal_zone0/temp: No such file or directory

Am I missing something (as ever ...)?

$this->bbcode_second_pass_code('', '#!/bin/bash

GOV=`cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor`
MIN=`cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq`
MAX=`cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq`

echo "$GOV $MIN $MAX" | awk '{ printf "Governor: %s\nMin Freq: %4dMhz\nMax Freq: %4dMhz\n\n", $1, $2/1000, $3/1000 }'

while [ true ]; do
C=`cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq`
T=`cat /sys/class/thermal/thermal_zone0/temp`
echo "`date +%H:%M:%S` $C $T" | awk '{ printf "%s: %4dMhz, %-.2fC\n",$1, $2/1000,$3/1000 }'
sleep 2
done
')
stronnag
 
Posts: 44
Joined: Sat Sep 22, 2012 6:51 am

Re: Turbo Mode

Postby pepedog » Mon Oct 01, 2012 6:03 pm

I copied and pasted what you wrote, don't have rpi on at the moment.
Let's try this, make that script into something you call with ./govv
nano govv
Paste the script into it
Ctrl o
Ctrl x
chmod +x govv
./govv

As easy as that!
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Turbo Mode

Postby stronnag » Mon Oct 01, 2012 6:14 pm

Actually, my point is not that I don't know how to make an executable script (I do), rather that:

$this->bbcode_second_pass_code('', '$ cat /sys/class/thermal/thermal_zone0/temp
cat: /sys/class/thermal/thermal_zone0/temp: No such file or directory')

fails to find the quoted /sys file (in fact fails to find the /sys/class/thermal hierarchy at all).

I'd like to know what magic incantation is necessary to make /sys/class/thermal appear; that's all.
stronnag
 
Posts: 44
Joined: Sat Sep 22, 2012 6:51 am

Re: Turbo Mode

Postby pepedog » Mon Oct 01, 2012 8:12 pm

/opt/vc/bin/vcgencmd measure_temp
works well
I cannot find any clue in https://github.com/asb/raspi-config/blo ... spi-config
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Turbo Mode

Postby stronnag » Mon Oct 01, 2012 8:19 pm

Thanks. I'm not going quite as gaga as I feared. vcgencmd does the job just fine.
stronnag
 
Posts: 44
Joined: Sat Sep 22, 2012 6:51 am

Re: Turbo Mode

Postby pepedog » Mon Oct 01, 2012 8:38 pm

I'm going to write to Dom, find out if some rc script enables
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Turbo Mode

Postby ezyclie » Tue Oct 02, 2012 4:17 am

Hi,

Any milestone or timeline for Turbo mode binary?
ezyclie
 
Posts: 23
Joined: Tue Jul 24, 2012 2:29 pm

Re: Turbo Mode

Postby pepedog » Tue Oct 02, 2012 8:54 am

The 4th post in this thread shows how viewtopic.php?f=31&t=3819#p21529
All you do is choose one of the settings, paste the 4 items in /boot/config.txt, and if kernel and firmware are up to date, reboot and it's running.
As I said, Dom reviewed that post, and I have wrote to him again to clarify about the sys/class thing
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Turbo Mode

Postby ezyclie » Tue Oct 02, 2012 10:41 am

Means there will be no separate image for this? cool then, thanks a lot!
ezyclie
 
Posts: 23
Joined: Tue Jul 24, 2012 2:29 pm

PreviousNext

Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 5 guests