Use adb shell on device, top command not work - General Questions and Answers

Hello
I need to get the cpu usage from my device (Lenovo Tab M8, Android os) and send it via http-request to my server.
I test it with my smartphone.
I found the app macrodroid, which can automatically send data via http-reuest. So the first step is done.
After a long searching i found the "adb shell" app. So i can test my shell command. So the second step is done
I want to use the command "top -n 1" because my devices are not rooted and i got alway "permission denied" with other commands.
The top command show a output.
THERE IS THE PROBLEM:
if i use the top command on my smarthpohne, i don't got a correct output. The %idle is always same like %cpu
if i connect my phone to my pc and run it in the windows command, it shows the correct data.
for example:
the output on the phone:
Code:
[s[999C[999B[6n[u[H[J[?25l[H[J[s[999C[999B[6n[uTasks: 2 total, 1 running, 1 sleeping, 0 stopped, 0 zombie Mem: 3.5G total, 3.4G used, 129M free, 39M buffers Swap: 2.0G total, 1.6G used, 396M free, 1.1G cached800%cpu 0%user 0%nice 0%sys 800%idle 0%iow 0%irq 0%sirq 0%host[7m PID USER PR NI VIRT RES SHR S[%CPU] %MEM TIME+ ARGS [0m[1m 7831 u0_a357 10 -10 36M 3.7M 3.0M R 4.0 0.1 0:00.00 top -n 1[m 7717 u0_a357 10 -10 33M 2.9M 2.4M S 0.0 0.0 0:00.01 sh[?25h[0m[1000;1H[K[?25h[?25h[0m[1000;1H[K
output on the pc:
Code:
Mem: 3.5G total, 3.4G used, 93M free, 40M buffers
Swap: 2.0G total, 1.6G used, 380M free, 1.0G cached
800%cpu 82%user 0%nice 124%sys 594%idle 0%iow 0%irq 0%sirq 0%host
←[7m PID USER PR NI VIRT RES SHR S[%CPU] %MEM TIME+ ARGS ←[0m
2305 u0_a357 10 -10 25G 258M 164M S 64.7 7.1 23:29.96 com.arlosoft.ma+
517 system 5 -15 1.7G 20M 14M S 44.1 0.5 207:08.58 surfaceflinger
←[mm 7844 shell 20 0 36M 4.3M 3.3M R 23.5 0.1 0:00.10 top -n 1
983 system 18 -2 12G 273M 130M S 17.6 7.5 595:30.94 system_server
←[mm 276 root RT 0 0 0 0 R 17.6 0.0 53:19.28 [decon0]
7843 root 20 0 0 0 0 S 11.7 0.0 0:00.20 [kworker/0:1]
488 system -3 -15 506M 4.3M 3.6M S 11.7 0.1 45:01.04 android.hardwar+
7385 root 0 -20 0 0 0 S 8.8 0.0 0:02.53 [kworker/u17:3]
7807 root 20 0 0 0 0 S 2.9 0.0 0:00.90 [kworker/3:2]
7542 root 20 0 0 0 0 S 2.9 0.0 0:00.00 [kworker/4:0]
2291 root 20 0 0 0 0 S 2.9 0.0 0:02.05 [kworker/u16:2]
2188 root 20 0 0 0 0 S 2.9 0.0 0:02.93 [kworker/u16:0]
7088 u0_a237 10 -10 7.4G 159M 75M S 2.9 4.3 95:05.07 com.samsung.and+
1365 radio 20 0 5.7G 43M 30M S 2.9 1.2 40:36.23 com.android.pho+
496 wifi 20 0 63M 2.8M 2.6M S 2.9 0.0 6:31.76 android.hardwar+
7757 u0_a239 20 0 4.9G 93M 79M S 0.0 2.5 0:00.32 com.samsung.and+
7745 u0_a62 20 0 4.9G 88M 74M S 0.0 2.4 0:00.17 com.sec.android+
7717 u0_a357 10 -10 33M 2.9M 2.4M S 0.0 0.0 0:00.01 sh
7628 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 [kbase_event]
←[?25h←[0m←[1000;1H←[K←[?25h←[?25h←[0m←[1000;1H←[Kstarlte:/ $ 0
how can i get this output on my device???

is it so difficult or is my question not good?

:-( i think there is no solution....

Related

Linux for qtek s200? ^^

People exist windows linux for qteks200?
No exist right?
seriously... Windows linux you say? That I'd like to see. Linux linux would be a start...
IMO the life cycle of these devices is to short for it to be worthwhile developing ground-up OS's, but I know very little about this. Obviously there are WM device-linux projects about, but although the prophet's a nice device, due to it's limitations (cpu etc) I don't imagine too many devs with an interest in linux are flocking to develop for it. I'd be happy to be corrected, though...
To s200 i don´t find anything :S but look here: http://www.youtube.com/watch?v=CUy_mUsGjRU
looks great but is only to blue angel...
http://opie.handhelds.org/cgi-bin/moin.cgi/ i think it's a matter of time!
Yeah !!!
I search very for it, and i get it a few. I known that PDA Wizard have OMAP processor too, so I think that it's possible to run this in ower s200.
Download haret and copy in your PDA in /STORAGE/PROGRAM FILES/HARET/ run haret_omap.exe in you Windows Mobile and it's run GNU/Linux
In you computer (GNU/Linux) run
#ifconfig usb0 up 10.226.6.1 netmask 255.255.0.0
#telnet 10.226.6.6
have fun !! Welcome to GNU/Linux in you S200:
Code:
/ # cat /proc/cpuinfo
Processor : ARM926EJ-Sid(wb) rev 3 (v5l)
BogoMIPS : 89.70
Features : swp half thumb fastmult edsp java
CPU implementer : 0x41
CPU architecture: 5TEJ
CPU variant : 0x0
CPU part : 0x926
CPU revision : 3
Cache type : write-back
Cache clean : cp15 c7 ops
Cache lockdown : format C
Cache format : Harvard
I size : 16384
I assoc : 4
I line length : 32
I sets : 128
D size : 8192
D assoc : 4
D line length : 32
D sets : 64
Hardware : HTC Wizard
Revision : 0000
Serial : 0000000000000000
Code:
/ # dmesg
Linux version 2.6.16.27-omap1 ([email protected]) (gcc version 3.3.2) #1 PREEMPT Thu Nov 9 18:52:05 CET 2006
CPU: ARM926EJ-Sid(wb) [41069263] revision 3 (ARMv5TEJ)
Machine: HTC Wizard
Memory policy: ECC disabled, Data cache writeback
On node 0 totalpages: 24576
DMA zone: 24576 pages, LIFO batch:7
DMA32 zone: 0 pages, LIFO batch:0
Normal zone: 0 pages, LIFO batch:0
HighMem zone: 0 pages, LIFO batch:0
Unknown OMAP cpu type: 0x00
OMAP0000 revision 1 handled as 00xx id: 0000000000000000
SRAM: Mapped pa 0x20000000 to va 0xd0000000 size: 0x32000
htc_wizard_map_io done.
CPU0: D VIVT write-back cache
CPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
CPU0: D cache: 8192 bytes, associativity 4, 32 byte lines, 64 sets
Built 1 zonelists
Kernel command line: root=/dev/ram0 init=/linuxrc
htc_wizard_init_irq.
Clocks: ARM_SYSST: 0x1040 DPLL_CTL: 0x2793 ARM_CKCTL: 0x6506
Clocking rate (xtal/DPLL1/MPU): 13.0/195.0/195.0 MHz
Total of 96 interrupts in 3 interrupt banks
OMAP730 GPIO hardware
PID hash table entries: 512 (order: 9, 8192 bytes)
Console: colour dummy device 80x30
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 96MB = 96MB total
Memory: 94592KB available (1684K code, 418K data, 92K init)
Calibrating delay loop... 89.70 BogoMIPS (lpj=448512)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
checking if image is initramfs...it isn't (no cpio magic); looks like an initrd
Freeing initrd memory: 428K
NET: Registered protocol family 16
Tornado init.
OMAP730 Watchdog seems to be activated, disabling it for now.
trying to enable USB.
USB_EN to 0 after 0 tries.
MMC host reset done: remaining tries: 100
OMAP DMA hardware version 1
DMA capabilities: 000c0000:00000000:01ff:003f:007f
Initializing OMAP McBSP system
mcbsp: could not acquire dsp_ck handle.
omapdsp: unsupported omap architecture.
USB: hmc 4, usb0 2 wires (dev)
NetWinder Floating Point Emulator V0.97 (double precision)
io scheduler noop registered
io scheduler deadline registered (default)
HTC Tornado Backlight driver.
VSFB Frame buffer driver for HTC OMAP Based Phones.
vsfb: framebuffer at 0x20001020, mapped to 0xc6800020, size 150k
Console: switching to colour frame buffer device 40x29
TI OMAP Watchdog Timer for OMAP730
RAMDISK driver initialized: 1 RAM disks of 4096K size 1024 blocksize
udc: OMAP UDC driver, version: 4 October 2004 (iso)
udc: OMAP UDC rev 3.6
udc: hmc mode 4, integrated transceiver
udc: fifo mode 3, 648 bytes not used
usb0: Ethernet Gadget, version: May Day 2005
usb0: using omap_udc, OUT ep2out-bulk IN ep1in-bulk STATUS ep3in-int
usb0: MAC ba:aa:57:c0:db:99
usb0: HOST MAC 0a:bb:b8:f9:5e:53
mice: PS/2 mouse device common for all mice
OMAP Keypad Driver
omap_kp_probe.
input: omap-keypad as /class/input/input0
NET: Registered protocol family 2
MMC1: Command timeout, CMD0
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 2, 16384 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
NET: Registered protocol family 15
udc: USB reset done, gadget ether
RAMDISK: Compressed image found at block 0
udc: USB reset done, gadget ether
udc: USB reset done, gadget ether
udc: USB reset done, gadget ether
udc: USB reset done, gadget ether
udc: USB reset done, gadget ether
udc: USB reset done, gadget ether
VFS: Mounted root (ext2 filesystem).
Freeing init memory: 92K
usb0: full speed config #1: 100 mA, Ethernet Gadget, using CDC Ethernet
More .......
With this kernel you have ssh whith dropbear, and nano-X, this is for project LinWizard and run very well in the s200.
ssh -l root 10.226.6.6
Password: root
I think that this is the start point to owner project, then we can compile with opie as in Universal.
Thempra said:
I think that this is the start point to owner project, then we can compile with opie as in Universal.
Click to expand...
Click to collapse
opie needs only minor customizations to run on another device.
IMHO it's more important to make SD and the touchscreen run.
Can you dump the TS and SDHC dlls from the device ?
cr2 said:
Can you dump the TS and SDHC dlls from the device ?
Click to expand...
Click to collapse
No, I can't access to SD memory or I don't know do it. I try to mount /dev/mmc.... by say that it is not here.
I will try to compile de kernel with SD and MMC options ...
Thempra said:
No, I can't access to SD memory or I don't know do it.
Click to expand...
Click to collapse
I meant the wince .dlls. We have already tried it, and it didn't not work
to get them in this way.
I will try to compile de kernel with SD and MMC options ...
Click to expand...
Click to collapse
Look in your logfile, you already have them. And the MMC/SD init command times out
Code:
MMC1: Command timeout, CMD0
Hallo to all... I want to ask a really simple question... I putted linux "HARET" in my s200... it start but... how to have keyboard on screen? Thank all...
sub078 said:
Hallo to all... I want to ask a really simple question... I putted linux "HARET" in my s200... it start but... how to have keyboard on screen? Thank all...
Click to expand...
Click to collapse
You need connect your s200 in USB port and since your computer run
#ifconfig usb0 up 10.226.6.1 netmask 255.255.0.0
#ssh -l root 10.226.6.6
Password: root
So... I need a computer with running linux? I don't have linux on my pc... There is a solution? thanks for answer....
sub078 said:
So... I need a computer with running linux? I don't have linux on my pc... There is a solution? thanks for answer....
Click to expand...
Click to collapse
I dont't try it in windows, but I suppose that you have to run GNU/Linux in the s200 connected to the USB, Windows detected it as network interface and you configure it with IP 10.226.6.1 and netmask 255.255.0.0.
Then with putty conect to ssh at [email protected] with password root.
Thank you... I will try... but... It's possible to install OPIE linux on s200? If yes... where i can find installation guide? My english is not good and I have some problem with the TECNICAL linux guides! Thank all for comprension!
cr2 said:
Look in your logfile, you already have them. And the MMC/SD init command times out
Code:
MMC1: Command timeout, CMD0
Click to expand...
Click to collapse
Ok, i've checked with the wince dlls, the MMC/SD driver is ok.
What you are missing now is the card power gpio, card detect gpio and the irq.
Take the latest haret from http://handhelds.org/~koconnor/haret
read the docs and trace gpio usage.
To know other gpios would be useful too.
This is the output of DUMP GPIO:
HaRET(8)# DUMP GPIO
GPIO# D S A INTER | GPIO# D S A INTER | GPIO# D S A INTER | GPIO# D S A INTER
------------------+-------------------+-------------------+------------------
0 I 1 0 | 21 I 0 0 | 42 O 0 0 | 63 I 0 0
1 I 0 0 | 22 I 0 0 | 43 O 0 0 | 64 I 0 2
2 I 1 0 | 23 I 0 0 | 44 I 0 0 | 65 I 0 2
3 I 0 0 | 24 I 0 0 | 45 I 0 0 | 66 I 0 3
4 I 0 0 | 25 I 0 0 | 46 I 0 0 | 67 I 0 2
5 I 0 0 | 26 I 0 0 | 47 O 0 0 | 68 I 0 0
6 I 0 0 | 27 I 0 0 | 48 I 0 2 | 69 I 0 3
7 I 0 0 | 28 I 0 0 | 49 O 0 2 | 70 I 0 0
8 I 0 0 | 29 I 0 0 | 50 I 0 3 | 71 I 0 2
9 I 0 0 | 30 I 0 0 | 51 O 0 2 | 72 I 0 2
10 I 0 0 | 31 I 0 0 | 52 O 0 0 | 73 I 0 2
11 I 0 0 | 32 I 0 0 FE | 53 O 0 3 | 74 I 0 3
12 I 0 0 | 33 O 0 0 | 54 I 0 0 | 75 I 0 2
13 I 0 0 | 34 I 0 0 FE | 55 O 0 2 | 76 I 0 3
14 I 0 0 | 35 O 0 0 | 56 O 0 2 | 77 I 0 0
15 I 0 0 | 36 O 0 0 | 57 O 0 2 | 78 I 0 3
16 I 0 3 | 37 O 0 0 | 58 I 0 3 | 79 I 0 0
17 I 0 3 | 38 I 0 0 | 59 I 0 2 | 80 I 0 2
18 I 0 3 | 39 O 0 0 | 60 O 0 3 | 81 I 0 2
19 I 0 1 | 40 I 0 0 | 61 O 0 0 | 82 I 0 3
20 I 0 0 | 41 I 0 0 | 62 I 0 3 | 83 I 0 2
Thempra said:
This is the output of DUMP GPIO:
Click to expand...
Click to collapse
This command works only on the Intel PXA CPU.
cr2 said:
This command works only on the Intel PXA CPU.
Click to expand...
Click to collapse
I read, read, read, ..... but..... What is the problem to detect de MMC?? haret or the kernel???
The new version of haret can't run it in s200, do you have the configuration in default.txt file to run it??
could somebody please post instructions for prophet?
Thanks!
Thempra said:
The new version of haret can't run it in s200
Click to expand...
Click to collapse
Try the prophet version from
http://jornada820.sourceforge.net/files/haret
i did not understand what am i supposed to do with harret_prophet.exe

[Q] Android 4.0.4 and high cpu usage of system_server with autorotate on

Hi,
i have nexus S with IMM76D_deodexed. I had preciously 4.0.3, then 4.0.4 - IMM26. Now IMM76D, CWM.
With IMM76D I hoped all will be solved, but not.
before updating to IMM76D I did:
back to factory reset
format SD card
clean Dalvik
clean /system except /boot
Now i think, I'm only one, who has infamous autotate high cpu usage bug
- without autorotate (cpu usage is normal):
Code:
top -m 100 -d 1 -n 1 | head -20
User 0%, System 3%, IOW 0%, IRQ 0%
User 0 + Nice 0 + Sys 4 + Idle 99 + IOW 0 + IRQ 0 + SIRQ 0 = 103
PID PR CPU% S #THR VSS RSS PCY UID Name
11891 0 7% R 1 1000K 396K bg root top
11867 0 0% S 1 0K 0K fg root kworker/0:0
11814 0 0% S 11 273628K 23708K bg app_70 com.google.android.maps.mytracks
132 0 0% S 81 369556K 45464K fg system system_server
330 0 0% S 25 294536K 29760K fg radio com.android.phone
8 0 0% S 1 0K 0K fg root sync_supers
9 0 0% S 1 0K 0K fg root bdi-default
10 0 0% S 1 0K 0K fg root kblockd
11 0 0% S 1 0K 0K fg root khubd
12 0 0% S 1 0K 0K fg root kinteractiveup
14 0 0% S 1 0K 0K fg root kswapd0
15 0 0% S 1 0K 0K fg root fsnotify_mark
16 0 0% S 1 0K 0K fg root crypto
with autorotate - system_server
Code:
top -m 100 -d 1 -n 1 | head -20
User 7%, System 12%, IOW 0%, IRQ 0%
User 6 + Nice 2 + Sys 13 + Idle 85 + IOW 0 + IRQ 0 + SIRQ 0 = 106
PID PR CPU% S #THR VSS RSS PCY UID Name
132 0 14% S 81 369572K 45768K fg system system_server
12030 0 5% R 1 1004K 400K bg root top
200 0 3% S 17 285416K 33964K fg system com.android.systemui
78 0 2% S 8 42944K 16884K fg system /system/bin/surfaceflinger
290 0 0% S 1 2464K 636K fg wifi /system/bin/wpa_supplicant
223 0 0% S 1 0K 0K fg root dhd_dpc
11939 0 0% S 1 0K 0K fg root kworker/0:1
10 0 0% S 1 0K 0K fg root kblockd
11 0 0% S 1 0K 0K fg root khubd
12 0 0% S 1 0K 0K fg root kinteractiveup
14 0 0% S 1 0K 0K fg root kswapd0
15 0 0% S 1 0K 0K fg root fsnoti
again top with Threads
Code:
User 5%, System 12%, IOW 0%, IRQ 0%
User 15 + Nice 3 + Sys 39 + Idle 254 + IOW 0 + IRQ 0 + SIRQ 0 = 311
PID TID PR CPU% S VSS RSS PCY UID Thread Proc
132 146 0 7% D 369572K 45768K fg system system_server system_server
12028 12028 0 4% R 1192K 588K bg root top top
132 166 0 2% S 369572K 45768K fg system er$SensorThread system_server
132 148 0 2% S 369572K 45768K fg system er.ServerThread system_server
132 147 0 1% S 369572K 45768K fg system SensorService system_server
200 200 0 0% S 285416K 33964K fg system ndroid.systemui com.android.systemui
11864 11864 0 0% S 0K 0K fg root kworker/u:2
11939 11939 0 0% S 0K 0K fg root kworker/0:1
78 111 0 0% S 42944K 16884K fg system SurfaceFlinger /system/bin/surfaceflinger
132 187 0 0% S 369572K 45768K fg system WifiService system_server
What should i do?
edit:
strace is writing following block repeatedly like crazy
strace -f -T -v -p 132
Code:
(Timeout) <0.000037>
[pid 147] write(103, "h\0\0\0\0\0\0\0\1\0\0\0\0\0\0\0pe\34d\2340\0\0\354\337\267?>\205\[email protected]\275"..., 104 <unfinished ...>
[pid 166] <... epoll_wait resumed> ) = 1 <0.031740>
[pid 166] read(102, "h\0\0\0\0\0\0\0\1\0\0\0\0\0\0\0pe\34d\2340\0\0\354\337\267?>\205\[email protected]\275"..., 104) = 104 <0.000034>
[pid 166] clock_gettime(CLOCK_MONOTONIC, {53448, 257720074}) = 0 <0.000030>
[pid 166] write(46, "W"..., 1) = 1 <0.000278>
[pid 166] read(102, 0x519ebb80, 104) = -1 EAGAIN (Resource temporarily unavailable) <0.000032>
[pid 166] epoll_wait(0x6a, 0x519eb9f0, 0x10, 0xffffffff <unfinished ...>
[pid 148] <... epoll_wait resumed> ) = 1 <0.029798>
[pid 148] read(45, "W"..., 16) = 1 <0.000038>
[pid 148] clock_gettime(CLOCK_MONOTONIC, {53448, 261245950}) = 0 <0.000035>
[pid 148] getpid() = 132 <0.000090>
[pid 148] getuid32() = 1000 <0.000029>
[pid 148] epoll_wait(0x2f, 0x50787a90, 0x10, 0) = 0 <0.000032>
[pid 148] clock_gettime(CLOCK_MONOTONIC, {53448, 263335575}) = 0 <0.000276>
[pid 148] epoll_wait(0x2f, 0x50787a90, 0x10, 0xa6d7 <unfinished ...>
[pid 147] <... write resumed> ) = 104 <0.008302>
[pid 147] poll([{fd=37, events=POLLIN}, {fd=38, events=POLLIN}, {fd=42, events=POLLIN}, {fd=43, events=POLLIN}, {fd=41, events=POLLIN}], 5, -1 <unfinished ...>
[pid 146] <... write resumed> ) = 16 <0.012667>
[pid 146] ioctl(39, 0x80066108, 0x50587ec0) = 0 <0.016268>
[pid 146] write(36, "\0\0\0\0\0\0\0\0\2\0\0\0]\1\0\0"..., 16) = 16 <0.000044>
[pid 146] write(36, "\0\0\0\0\0\0\0\0\2\0\1\0J\0\0\0"..., 16) = 16 <0.000300>
[pid 146] write(36, "\0\0\0\0\0\0\0\0\2\0\2\0G\1\0\0"..., 16) = 16 <0.000039>
[pid 146] write(36, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 16 <unfinished ...>
[pid 147] <... poll resumed> ) = 1 ([{fd=42, revents=POLLIN}]) <0.021342>
[pid 147] read(42, "\310\320\0\0\352P\4\0\2\0\0\0]\1\0\0\310\320\0\0\333T\4\0\2\0\1\0J\0\0\0\310"..., 512) = 64 <0.000039>
[pid 147] poll([{fd=37, events=POLLIN}, {fd=38, events=POLLIN}, {fd=42, events=POLLIN}, {fd=43, events=POLLIN}, {fd=41, events=POLLIN}], 5, 0) = 0
Hey dude,
No, you are not the only one with the auto-rotate bug. I have it too, but im on stock, non rooted ICS 4.0.4 for the Nexus S. But I can't help you either
Just wanted you to know that you are not alone.
what are the symptoms of this bug? every since i loaded 4.0.4, my phone seems to be eating up battery like crazy, also freezing up and shutting off randomly. sounds like it could be my problem.
should i just disable the auto-rotate setting for now?
00Hensley said:
what are the symptoms of this bug? every since i loaded 4.0.4, my phone seems to be eating up battery like crazy, also freezing up and shutting off randomly. sounds like it could be my problem.
should i just disable the auto-rotate setting for now?
Click to expand...
Click to collapse
It's worth a try, you can't damage anything if you do
I've been using the attached patch (against the stock ICS 3.0 kernel source, but should apply to any Nexus S 2.6.35 ICS or 3.0 kernel), which throttles the orientation sensor device and reduces system_server CPU usage to a more reasonable 2-3% (similar to Gingerbread).
Thanks for confirmation.
based on the confirmation there is new bug from me:
xxxttp://code.google.com/p/android/issues/detail?id=29965
For quick autorotate on and off i'm using quick app:
xxxttps://play.google.com/store/apps/details?id=com.friedflow.autorotate&feature=order_history
Thanks for the kernel patch... but i think, i will not building kernel...
i don't understand, why these bugs are not fixed yet... Like USB slow file transfer...
steven676 said:
I've been using the attached patch (against the stock ICS 3.0 kernel source, but should apply to any Nexus S 2.6.35 ICS or 3.0 kernel), which throttles the orientation sensor device and reduces system_server CPU usage to a more reasonable 2-3% (similar to Gingerbread).
Click to expand...
Click to collapse
How's this patching working out for you? Any side effects to watch out for? Also, did you find anything more refined along the way?
Thanks!
InstigatorX said:
How's this patching working out for you? Any side effects to watch out for? Also, did you find anything more refined along the way?
Click to expand...
Click to collapse
I've been carrying this patch since December with absolutely no ill effects, and given that it works, I haven't bothered to look for better solutions ...
steven676 said:
I've been carrying this patch since December with absolutely no ill effects, and given that it works, I haven't bothered to look for better solutions ...
Click to expand...
Click to collapse
Any hints how to apply this patch?

[Q] High Ram use ??!!

hi
i have china mobile called x310e has 1 gb ram and ICS 4.0.3 .. clone of x310e HTC windows phone .. but it's has ICS
the phone is good to me but i notice something
the free ram is around 200 mb in best case .. from 1gb ram
i dont know if this normal .. so that why i asked
i rooted the device and installed ssh on it
i typed "top" command and this is what i got ..
NB all my apps just take 75 MB
User 1%, System 3%, IOW 0%, IRQ 0%
User 3 + Nice 1 + Sys 10 + Idle 294 + IOW 0 + IRQ 0 + SIRQ 1 = 309
PID PR CPU% S #THR VSS RSS PCY UID Name
19889 0 1% R 1 1016K 416K fg root top
18556 0 0% S 1 1216K 256K fg root /data/data/br.com.bott.droidsshd/files/bin/dropbear
18367 0 0% S 1 0K 0K fg root tx_thread
48 0 0% S 1 0K 0K fg root mmcqd/0
237 0 0% S 81 403620K 66080K fg system system_server
137 0 0% S 1 1124K 440K fg root /system/bin/mobile_log_d
16697 0 0% S 10 289056K 31016K bg system com.android.settings
56 0 0% S 1 320K 172K fg root /sbin/ueventdworkqu
80 0 0% S 1 0K 0K fg root cfg80211
81 0 0% S 1 880K 236K fg system /system/bin/servicemanager
82 0 0% S 3 4184K 548K fg root /system/bin/vold
84 0 0% S 1 732K 220K fg root /system/bin/ccci_mdinit
1 0 0% S 1 632K 488K fg root /init
88 0 0% S 2 2884K 344K fg root /system/bin/netdiag
89 0 0% S 2 2148K 396K fg root /system/bin/mobile_log_d
90 0 0% S 3 3100K 292K fg root /system/bin/debuggerd
92 0 0% S 7 46844K 21476K fg system /system/bin/surfaceflinger
93 0 0% S 4 269936K 21292K fg root zygote
94 0 0% S 3 3040K 348K fg root /system/bin/hald
95 0 0% S 2 19416K 2344K fg drm /system/bin/drmserver
96 0 0% S 12 56712K 6664K fg root /system/bin/mediaserver
97 0 0% S 1 972K 360K fg system /system/bin/mtkGD
98 0 0% S 1 1388K 236K fg bluetoot /system/bin/dbus-daemon
99 0 0% S 1 900K 296K fg root /system/bin/installd
100 0 0% S 1 1832K 448K fg keystore /system/bin/keystore
101 0 0% S 4 6144K 464K fg root /system/bin/mtk_agpsd
102 0 0% S 1 736K 244K fg system /system/bin/6620_launcher
104 0 0% S 2 4528K 464K fg root /system/bin/dm_agent_binder
105 0 0% S 2 4188K 500K fg bluetoot /system/bin/mtkbt
106 0 0% S 1 7164K 780K fg system /system/bin/mdpd
108 0 0% S 2 4520K 448K fg root /system/bin/GoogleOtaBinder
110 0 0% S 2 14284K 1520K fg root /system/bin/em_svr
111 0 0% S 2 4476K 432K fg root /system/bin/nvram_agent_binder
112 0 0% S 2 4512K 440K fg root /system/bin/nvram_backup_binder
120 0 0% S 1 752K 284K fg root /system/bin/memsicd
134 0 0% S 1 2956K 2272K fg root /system/bin/mobile_log_d
135 0 0% S 1 1132K 448K fg root /system/bin/mobile_log_d
136 0 0% S 1 1148K 464K fg root /system/bin/mobile_log_d
138 0 0% S 1 1124K 376K fg root /system/bin/mobile_log_d
163 0 0% S 1 0K 0K fg root pvr_workqueue
166 0 0% S 1 0K 0K fg root mtklfb
311 0 0% S 14 304156K 44644K fg system com.android.systemui
438 0 0% S 39 329860K 43676K fg radio com.android.phone
448 0 0% S 9 279944K 21940K fg app_39 com.mediatek.bluetooth
463 0 0% S 9 278384K 21348K fg app_12 com.google.hfapservice
995 0 0% S 10 279252K 23440K fg radio com.mediatek.mobilelog
16197 0 0% S 1 298124K 23464K fg app_83 berserker.android.apps.sshdroid
16493 0 0% S 16 358064K 99580K fg app_31 com.android.launcher
16563 0 0% S 28 311480K 32672K bg app_24 com.google.process.gapps
16608 0 0% S 13 285064K 28500K bg app_14 android.process.media
16638 0 0% S 1 1128K 364K fg root /system/bin/ccci_fsd
16651 0 0% S 14 14240K 488K fg root /system/bin/gsm0710muxd
16652 0 0% S 1 1232K 448K fg root /system/bin/mdlogger
16722 0 0% S 19 22172K 984K fg radio /system/bin/rild
16965 0 0% S 10 281748K 30364K fg app_30 com.android.inputmethod.latin
17318 0 0% S 1 1368K 392K fg shell /system/bin/aee_aed
18372 0 0% S 1 736K 288K fg log /system/bin/logwrapper
18374 0 0% S 1 2472K 896K fg wifi /system/bin/wpa_supplicant
18376 0 0% S 1 740K 300K fg log /system/bin/logwrapper
18377 0 0% S 1 972K 416K fg dhcp /system/bin/dhcpcd
18557 0 0% S 1 764K 368K fg root -sh
18563 0 0% S 11 282412K 24152K bg app_24 com.google.android.gsf.login
18738 0 0% S 9 278380K 23356K fg radio com.mediatek.mdlogger
19106 0 0% S 1 0K 0K fg root kworker/u:2
19113 0 0% S 15 288948K 29388K bg app_72 com.whatsapp
19242 0 0% S 1 0K 0K fg root kworker/u:3
19296 0 0% S 17 292528K 28944K bg app_11 com.google.android.apps.maps:NetworkLocationService
19330 0 0% S 20 295784K 30860K bg app_11 com.google.android.apps.maps:LocationFriendService
19350 0 0% S 15 296460K 29340K bg app_2 com.android.contacts
19365 0 0% S 14 325248K 48676K bg app_2 android.process.acore
19385 0 0% S 1 0K 0K fg root kworker/0:3
19473 0 0% S 15 297296K 53908K bg app_20 com.android.gallery3d
19554 0 0% S 14 290904K 31284K bg app_17 com.mediatek.filemanager
19584 0 0% S 11 281316K 24744K bg app_36 com.google.android.apps.uploader
19634 0 0% S 16 287628K 27488K bg app_59 com.google.android.talk
19667 0 0% S 9 278356K 23784K bg radio com.android.ActivityNetwork
19679 0 0% S 14 298144K 42288K bg app_37 com.android.mms
19750 0 0% S 19 294672K 30960K bg app_11 com.google.android.apps.maps
19768 0 0% S 1 0K 0K fg root kworker/0:0
19876 0 0% S 10 279424K 24128K bg system com.mediatek.atci.service
87 0 0% S 6 8432K 1096K fg root /system/bin/netd
Click to expand...
Click to collapse
i delete some lines cuz it's has zero use of ram and cpu
waiting the response
murad052 said:
hi
i have china mobile called x310e i phone is good to me but i notice somthing
the free ram is around 200 mb in best case
i dont know if this normal .. so that why i asked
i rooted the device and installed ssh on it
i typed "top" command and this is what i got ..
i delete some lines cuz it's has zero use of ram and cpu
waiting the response
Click to expand...
Click to collapse
That model number is for the HTC Titan, which is a Windows Phone 7 phone...
But anyways, assuming you're on Android, free RAM is wasted RAM. Just because your RAM is filled with apps you're not using doesn't mean they're actually running. And you have to remember the OS itself takes up memory as well. It's the way Linux works; don't worry, it's a very efficient OS.
this is screen shot
but it's abnormal i think .. i used to have orginal s2 and it's show much of ram than this one
Any update
Sent from my X310e using XDA

ADB shell - how to make output wider?

Hello, I decided that I will analyse running processes and figure out why is my battery not lasting more then half a day usually. For that I figured maybe running
adb shell top
will work. I could send this to a file and later make some analysis of the results. The problem is that it looks like this
Code:
800%cpu 10%user 0%nice 17%sys 772%idle 1%iow 0%irq 0%sirq 0%host
←[7m PID USER PR NI VIRT RES SHR S[%CPU] %MEM TIME+ ARGS ←[0m
28364 system 20 0 2.2G 83M 61M S 15.3 2.4 1:08.09 com.samsung.and+
31155 u0_a193 20 0 2.1G 69M 40M S 4.6 2.0 6:00.62 com.facebook.or+
30834 shell 20 0 11M 4.3M 3.3M R 2.3 0.1 0:00.85 top
3246 system 12 -8 1.6G 14M 11M S 2.3 0.4 249:18.01 surfaceflinger
26367 system 10 -10 2.7G 106M 89M S 1.3 3.0 1:14.78 com.samsung.and+
22515 root 20 0 0 0 0 S 1.3 0.0 0:03.16 [kworker/u16:4]
3825 system 10 -10 3.4G 182M 81M S 1.0 5.2 572:07.02 system_server
971 root 20 0 0 0 0 S 1.0 0.0 151:39.30 [kswapd0]
29785 u0_a209 20 0 1.7G 67M 52M S 0.3 1.9 0:03.20 com.microsoft.o+
21383 root 0 -20 0 0 0 S 0.3 0.0 0:00.84 [kworker/1:0H]
20039 u0_a213 20 0 2.9G 56M 47M S 0.3 1.6 9:15.59 com.digibites.a+
3132 logd 30 10 31M 13M 836K S 0.3 0.3 25:29.47 logd
679 root 20 0 0 0 0 S 0.3 0.0 5:34.54 [kcompactd0]
13 root RT 0 0 0 0 S 0.3 0.0 2:00.01 [migration/1]
30749 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 [kworker/u17:2]
30699 u0_a379 20 0 2.2G 98M 82M S 0.0 2.8 0:00.95 org.androworks.+
30670 advmodem 20 0 2.2G 74M 65M S 0.0 2.1 0:00.33 com.samsung.and+
30661 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 [kworker/0:0H]
30652 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 [kworker/7:2H]
30651 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 [kworker/5:0H]
the process names are cut. Is there a way to make top command write wider columns? Linux top knows -w but adb top does not.
Seems like running -b makes it wide enough but it shows all processes and not just the top few which would be enough.
I can see that it's also formatted wrong and the column headers don't match the values below. Jeez...

Repartitioning internal memory

Hey guys,
So i've searched but can't seem to get my terms correct or what im about to ask hasnt been answered... I have a tablet its based on an rk3188 chip which is armv7 and it's running android 4.2.2 with locked bootloader and no custom recovery or access to fastboot... I'm curious to know can i repartition the nand flash, more specifically the /data and /mnt/sdcard one to allocate more space to /data and two to change file system type of mnt to something that isnt as restrictive as vfat? I can access adb while the device is powered off but charging without the system running. I will be posting an output of 'busybox ls -alh /dev/block/mtd/by-name/' so you guys can see how the blocks are setup currently. If you need more info please tell me.
[email protected]:/ # busybox ls -alh /dev/block/mtd/by-name/
total 0
drwxr-xr-x 2 0 0 240 May 16 19:01 .
drwxr-xr-x 3 0 0 60 May 16 19:01 ..
lrwxrwxrwx 1 0 0 20 May 16 19:01 backup -> /dev/block/mtdblock4lrwxrwxrwx 1 0 0 20 May 16 19:01 boot -> /dev/block/mtdblock2
lrwxrwxrwx 1 0 0 20 May 16 19:01 cache -> /dev/block/mtdblock5
lrwxrwxrwx 1 0 0 20 May 16 19:01 kernel -> /dev/block/mtdblock1lrwxrwxrwx 1 0 0 20 May 16 19:01 kpanic -> /dev/block/mtdblock7lrwxrwxrwx 1 0 0 20 May 16 19:01 misc -> /dev/block/mtdblock0
lrwxrwxrwx 1 0 0 20 May 16 19:01 recovery -> /dev/block/mtdblock3
lrwxrwxrwx 1 0 0 20 May 16 19:01 system -> /dev/block/mtdblock8lrwxrwxrwx 1 0 0 20 May 16 19:01 user -> /dev/block/mtdblock9
lrwxrwxrwx 1 0 0 20 May 16 19:01 userdata -> /dev/block/mtdblock6
[email protected]:/ #

Categories

Resources