• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Help Request for help from G2X owner for software development: need dir listing + contents of file

tliebeck

Well-Known Member
Dec 6, 2009
211
123
android.nextapp.com
Hello,

I wanted to ask if someone with a G2X could run a few commands for me and post the results here. I'm trying to determine where the information on current CPU speed is provided such that our SystemPanel app can fully support this device.

If anyone has time, I'd greatly appreciate seeing the results of the following on this device. Run the following in a terminal emulator as a normal user (NOT ROOT, just such that there is ZERO possibility of damage due to typoing).

Code:
find /sys/devices/system/cpu > /sdcard/cpudata.txt

The command should complete within a second or two. It's just recursively listing subdirectories beneath /sys/devices/system/cpu and copying them to a file "cpudata.txt" on the SD card.

Then copy the file /sdcard/cpudata.txt to your PC and post it here.

Greatly appreciate it, and please just ignore this message if you're not familiar with using a terminal emulator or feel any way uncomfortable doing this.

Thanks!
 
One more favor to ask if anyone has time...just wanted to see the results of the following:

Code:
cd /sys/devices/system/cpu/cpu0/cpufreq

cat cpuinfo_min_freq cpuinfo_max_freq
cat scaling_min_freq scaling_max_freq
cat cpuinfo_cur_freq

I'm trying to diagnose an issue with SystemPanel where it reports 0 as the processor speed. Different Android devices provide different levels of information about CPU speed. SystemPanel queries these files in a certain order, "falling back" if certain files don't exist. For some reason the Optimus 2X/G2X seem to be confusing it, even though it works on other Tegra devices. (This is not a problem with the LG product, from what I can tell there's no specification on how this is supposed to be done).
 
Upvote 0
Thanks everyone, really appreciate it.

Everything you both posted indicated there shouldn't be any kind of problem, so I took a trip down to the local T-Mobile store to try it out. It turns out cpuinfo_cur_freq can only be read by root. This may be specific to T-Mobile's G2X. I also happened upon a Dell Streak 7 at the same store with the same behavior. I've never seen another phone besides these two that had this behavior.

Regrettably I so far can't find a way to get CPU speed at all in SystemPanel on these devices. Getting ready to release an updated version which will just not display the CPU speed meter if it can't be detected.

Anyway thanks much again, and after seeing one of these I'm envious of the display on this thing!
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones