Author Topic: Qclockchange  (Read 4045 times)

Mjolinor

  • Full Member
  • ***
  • Posts: 227
    • View Profile
Qclockchange
« on: November 11, 2005, 04:13:22 am »
Can anyone point me at a method of changing the speed from the command line so that I can slow my 6000 down when it's running on batteries. When travelling I mainly use it for reading books and so it can crawl to preserve battery life. There doesn't seem an easy way to do it with pdaXrom so if I had the man page or equivalent I could just write some script to change the speed.

I messed a bit with the overclock utility but had a tense moment when it locked up and I had to take the battery out

gromituk

  • Full Member
  • ***
  • Posts: 207
    • View Profile
Qclockchange
« Reply #1 on: November 11, 2005, 04:35:52 am »
Will it make much difference?  Don't these processors sleep, consuming relatively little power, and isn't the hungry thing the display backlighting?

Mjolinor

  • Full Member
  • ***
  • Posts: 227
    • View Profile
Qclockchange
« Reply #2 on: November 11, 2005, 05:06:00 am »
Quote
Will it make much difference?  Don't these processors sleep, consuming relatively little power, and isn't the hungry thing the display backlighting?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=103267\"][{POST_SNAPBACK}][/a][/div]

I've not used it yet but with my Ipaq I wouldn't have the backlight on and would use the seat light to enable me to see. I don't sleep on planes and it's a real bitch being 8 hours into a 12 hour flight when the battery goes flat, no matter what I could not get the Ipaq to go the distance. I hope the 6000 on slow speed with backlight off will do the full 12 hours (UK to China), fingers crossed.

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Qclockchange
« Reply #3 on: November 11, 2005, 05:42:11 am »
Quote
Will it make much difference? Don't these processors sleep, consuming relatively little power

They do sleep, but it may be more efficient to run the processor at ~100% load (at a lower speed and lower power consumption). I'm also not sure how much the processor would actually sleep when decoding mp3s, etc., I don't know how long the transition from idle to sleep mode takes, etc.

Reading an ebook is a different matter - it would probably benefit from a lower clock speed, but the processor would be sleeping for much of the time I'd assume.

I'd be interested in any comments anyone has (as cpufreq/scaling and reducing power consumption is one of my interests).


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

Mjolinor

  • Full Member
  • ***
  • Posts: 227
    • View Profile
Qclockchange
« Reply #4 on: November 11, 2005, 06:27:45 am »
As far as the backlight goes there are only 6 settings for it with the pdaXrom, this is the same with the Guylhem rom but with the Guylhem you could manually edit the brightness into the conf file at any level between 0 and 255. I haven't found the equivalent place in the pdaXrom and am begining to think it doesn't exist. It may be a matter of hex editing one of the 6 discrete values to a lower number in the binary, I don't know.

clofland

  • Full Member
  • ***
  • Posts: 247
    • View Profile
    • http://www.lofland.net/
Qclockchange
« Reply #5 on: November 11, 2005, 03:48:19 pm »
A command line way to adjust clock speed would still be nice. I would like to be able to build a script that would say, up the clock speed, then run a CPU hungry app, and then put it back to normal after the app shut down.

Kind of like the old overclock utils for the Palm Pilots that could work on a per-application basis.
C-760 Last Running pdaXrom 1.1.0beta3
- Sandisk UltraII 1GB SD card - Socket LP CF LAN card - Socket LP CF WLAN card - Socket CF Bluetooth Card Rev H -

urielka

  • Full Member
  • ***
  • Posts: 178
    • View Profile
Qclockchange
« Reply #6 on: November 11, 2005, 04:13:07 pm »
i tried qclockchange but it seg fault when i try and the System overclock only has 3 modes 416 520 624 i want a lower mode like 208 and 104.

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Qclockchange
« Reply #7 on: November 12, 2005, 05:41:49 am »
Quote
As far as the backlight goes there are only 6 settings for it with the pdaXrom, this is the same with the Guylhem rom but with the Guylhem you could manually edit the brightness into the conf file at any level between 0 and 255.

You should be able to open the device using a userspace program and then choose any of the levels (I can't remember how many there are off the top of my head), this is all a lot easier with 2.6.x using the /sys entries. Take a look at the code, either for my version of bl-0.0 from GPE or at libopie2 from Opie to see the exact devices, etc. (I imagine the info is also somewhere in the pdaXrom build system, I just don't know where).

Quote
I would like to be able to build a script that would say, up the clock speed, then run a CPU hungry app, and then put it back to normal after the app shut down.

Again, 2.6.x will be a pleasant surprise for you; using cpufreq you can choose from a variety of in-kernel governors which will handle this automatically, or you can handle it all in userspace with something like cpufreqd.

Quote
i tried qclockchange but it seg fault when i try and the System overclock only has 3 modes 416 520 624 i want a lower mode like 208 and 104.

Have you tried looking at the source code? I shouldn't think it'd be very hard to hack something together. Regarding your choices of frequency, I don't know what your pxa270 (going from the freqs you state) supports, but you could take a look at the pxa270's source file in the 2.6 kernel source and see what settings cpufreq is allowed to use - this will tell you what frequencies are available.


Si
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

urielka

  • Full Member
  • ***
  • Posts: 178
    • View Profile
Qclockchange
« Reply #8 on: November 12, 2005, 07:52:55 am »
i think that 416 is the minimum(CCCR=0x02000210) but i think that PXA270 suport more types coz in a dell you can go as low as 200MHZ

frobnoid_

  • Newbie
  • *
  • Posts: 37
    • View Profile
Qclockchange
« Reply #9 on: November 12, 2005, 08:23:52 am »
Quote
i think that 416 is the minimum(CCCR=0x02000210) but i think that PXA270 suport more types coz in a dell you can go as low as 200MHZ
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]

104Mhz shouldn't be a problem for the CPU.
[a href=\"ftp://download.intel.com/design/pca/applicationsprocessors/manuals/2800002.pdf]PXA27x dev guide[/url]

urielka

  • Full Member
  • ***
  • Posts: 178
    • View Profile
Qclockchange
« Reply #10 on: November 12, 2005, 08:54:59 am »
which CCCR it need to be 0x2000208/6?

urielka

  • Full Member
  • ***
  • Posts: 178
    • View Profile
Qclockchange
« Reply #11 on: November 12, 2005, 08:59:30 am »
i tried :
echo 2000206 > CCCR
it realy slow the system down so i guess it is 208 or 104 MHZ it can`t even show 1FPS of my movie at 320x240@25FPS but 416 will play it smoothly.
i will try mp3s now.

urielka

  • Full Member
  • ***
  • Posts: 178
    • View Profile
Qclockchange
« Reply #12 on: November 12, 2005, 09:05:20 am »
ok i found the CCCRs for every freq:
0x02000206 for 104MHZ -you can`t play even 5-quality oggs(xmms with full x-server)
0x02000208 for 208MHZ-you can play 5-quality oggs smoothly
0x02000210 for 416MHZ
0x02000214 for 520MHZ
0x02000218 for 624MHZ
it`s realy amazing that we can play oggs with full speed and full X11 at 208MHZ run realy smooth.

EDIT:there is also 0x2000204 so i guess it`s 52MHZ?! it is alot slower than 104mhz ,with 104MHz it is a bit choppy but with 52MHZ it`s unplayble super choppy.

EDIT2:i forgot the 312MHZ option so:
0x02000208 for 312MHZ
0x02000206 for 208MHZ
0x02000204 for 104MHZ
no 52MHZ
« Last Edit: November 12, 2005, 09:22:45 am by urielka »