MK808B reading CPU temperature - Android Stick & Console RockChip based Computers
Hello.
Today I was testing again my almost forgotten MK808B and I couldn't find an app to tell me de CPU temperature.
I love CoolTool app but the "Ambient temperature" option isn't working.
After googling around I found a way to read the Temperature sensors readings from the command line, which works great with CoolTool's Custom Labels.
So, the temperature readings are on these files:
Code:
/sys/module/tsadc/parameters/temp0
/sys/module/tsadc/parameters/temp1
One can simply test using the "cat" command on the console and use it as a CoolTool's Custom Label.
Regex:
Code:
temp: (\d+) code: (\d+)
I think this should work for all RK3066 devices like MK808, MK808B, iMito MX1, UG802, Probox2, MK802 IIIs and so on...
Hope it is helpfull.
Very interesting!
Could you please explain in a littel more detail how the reading in cooltools works?
DaPhinc said:
Very interesting!
Could you please explain in a littel more detail how the reading in cooltools works?
Click to expand...
Click to collapse
CoolTool queries the given file for the information to display and it applies a Regular Expression to extract/transform the information in the file before presenting it on the screen.
Here's a sample screenshot from the Play Store:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Here are my settings:
Prefix
Code:
CPU:
Postfix
Code:
ºC
Path
Code:
/sys/module/tsadc/parameters/temp0
RegEx
Code:
temp: (\d+) code: (\d+)
Replacement Pattern
Code:
$1
Just install CoolTool, on the app's Settings screen go Labels and on the bottom open "Fine Tuning" and click on a Custom Label to edit it. "OK" your changes and click the button on the left of your edited custom label to enable it.
Thanks, works well!
Related
[Q/Help] WM 6.5.x theming (textbutton color)
Hi guys, I'm very new to theming WM 6.5.x standard themes. I took a standard one and tried to edit them. Pretty easy The only thing I need help is how to change color to the standard text buttons. I found this: http://msdn.microsoft.com/de-de/library/ff599682.aspx I put that REG_DWORD here (as described @ MSDN): HKEY_CURRENT_USER\Software\Microsoft\Today\<myownthemename> COLOR_BTNTEXT = ffffff (Changing the textcolor to white) BUT: I don't get it to work Does anybody know what I did wrong? { "lightbox_close": "Close", "lightbox_next": "Next", "lightbox_previous": "Previous", "lightbox_error": "The requested content cannot be loaded. Please try again later.", "lightbox_start_slideshow": "Start slideshow", "lightbox_stop_slideshow": "Stop slideshow", "lightbox_full_screen": "Full screen", "lightbox_thumbnails": "Thumbnails", "lightbox_download": "Download", "lightbox_share": "Share", "lightbox_zoom": "Zoom", "lightbox_new_window": "New window", "lightbox_toggle_sidebar": "Toggle sidebar" } To make it clear: I want to change the textcolor of the button(s) which are labeled as "Löschen/Durchsuchen"
try using an app called UI Tweaker, it could change some system values without big problems (it is possible to export and import the schemes to verify every step in the modifing procedure)
HKLM,"Software\Microsoft\Color","ThemeValues",0x00000001,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,ef,ef,ef,00,ef,ef,ef,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,ef,ef,ef,00,ef,ef,ef,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,ef,ef,ef,00,ef,ef,ef,00,21,30,43,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,21,30,47,00,ff,ff,ff,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,ef,ef,ef,00,00,00,00,00,00,00,00,00,00,00,00,00 Sorry for my English The role of the color code 56 Group: Select Article options displayed when the current font color, select the state of preparation of the text displayed when the font - the font color (default white FFFFFF) 第56组颜色代码作用: 选择条选择当前字体时显示的颜色、编写文字状态下选择字体时显示的——字体颜色(默认为白色 FFFFFF) Maybe you can read this article, it teaches you how to be a WM6.5 theme WM6.5主题制作详细图文教程,全套制作工具,适合任何分辨率 http://hi.baidu.com/kenchan/blog/item/3e083cdb828ebf6cd1164e25.html
Thank you guys, I'll have a look on it
Couldn't get it to work. I changed the value from: HKLM,"Software\Microsoft\Color","ThemeValues",0x00000001,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,ff,ff,ff,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,ff,ff,ff,00,ff,ff,ff,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,ff,ff,ff,00,ff,ff,ff,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,55,aa,11,00,ff,ff,ff,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,ff,ff,ff,00,00,00,00,00,00,00,00,00,00,00,00,00 to: HKLM,"Software\Microsoft\Color","ThemeValues",0x00000001,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,ff,ff,ff,00,00,00,00,00,00,00,00,00,ff,ff,ff,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,ff,ff,ff,00,ff,ff,ff,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,ff,ff,ff,00,ff,ff,ff,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,55,aa,11,00,ff,ff,ff,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,ff,ff,ff,00,00,00,00,00,00,00,00,00,00,00,00,00 but there's no effect on it Are you sure, it's the right reg-entry?
[Solved] Background Image Quality
I wanted to give my App a nice "Web 2.0" background like the new Twitter for Android has. When I set the image as "Background" everything looks fine in Eclipse but on my Desire the image gets blurry and distorted. kinda like this: { "lightbox_close": "Close", "lightbox_next": "Next", "lightbox_previous": "Previous", "lightbox_error": "The requested content cannot be loaded. Please try again later.", "lightbox_start_slideshow": "Start slideshow", "lightbox_stop_slideshow": "Stop slideshow", "lightbox_full_screen": "Full screen", "lightbox_thumbnails": "Thumbnails", "lightbox_download": "Download", "lightbox_share": "Share", "lightbox_zoom": "Zoom", "lightbox_new_window": "New window", "lightbox_toggle_sidebar": "Toggle sidebar" } Here is the solution: Basicly I created a bitmap and used it as background. 1. create a xml file within /res/drawable ... lets name it bg_texture.xml for this example. Fill it with this code, lets assume the image is called backgroundimage.png Code: <?xml version="1.0" encoding="utf-8"?> <bitmap xmlns:android="http://schemas.android.com/apk/res/android" android:src="@drawable/backgroundimage" android:tileMode="repeat" android:filter="true" android:dither="true" /> 2. Set the "Background" property of the element to @drawable/bg_texture and it should work. You won't see it in Eclipse, but on the phone it looks nice and crisp.
I see a minor difference i guess. You could just save a slice of their bar... like a 1 pixel wide slice, and just set that as background, and itll stretch across?
Does your image use an alpha channel? That might make it look smoother.
its not the fault of the image I guess, because it looks nice in the editor and other images on Android look nice as well... I guess its a bug in the way Android builds the UI. Kinda similar to the bug with artefacts on wallpapers. So I hoped anyone would know a workaround.
Yay I got the solution. It's from this website. Edit: I updated the first post with the solution.
Help plz
I have an android app.I have a preference in my app which allows a user to enter his desired storage location for video recording it can be internal or external now the question is how can i determine if the user has entered the correct storage location path if he didnt enter the right path then how to show a toast and reset the path. This is the preference { "lightbox_close": "Close", "lightbox_next": "Next", "lightbox_previous": "Previous", "lightbox_error": "The requested content cannot be loaded. Please try again later.", "lightbox_start_slideshow": "Start slideshow", "lightbox_stop_slideshow": "Stop slideshow", "lightbox_full_screen": "Full screen", "lightbox_thumbnails": "Thumbnails", "lightbox_download": "Download", "lightbox_share": "Share", "lightbox_zoom": "Zoom", "lightbox_new_window": "New window", "lightbox_toggle_sidebar": "Toggle sidebar" } This is the editext Now if the user enters wrong path for example there are spaces in the path or the path is incorrect for video recording how can i check that
Without seeing some code it would be difficult to show you a way that would be easily integrated in to your app.
zalez said: Without seeing some code it would be difficult to show you a way that would be easily integrated in to your app. Click to expand... Click to collapse Yep, and when is it the "right" path?
The right oath is where a video recording file can be created it can be internal or external
If you've got a file object, you could check these: Code: boolean isFile = myFile.isFile(); boolean isDirectory = myFile.isDirectory();
I would implement a chooser instead of relying on your end user to type the correct path. Take a look at this: http://www.codeproject.com/Articles/547636/Android-Ready-to-use-simple-directory-chooser-dial
zalez said: I would implement a chooser instead of relying on your end user to type the correct path. Take a look at this: http://www.codeproject.com/Articles/547636/Android-Ready-to-use-simple-directory-chooser-dial Click to expand... Click to collapse Oh, you're right. Much more fool proof. :good:
PIT Editor/Viewer from Samsung
"Official" PIT File Editor/Viewer from Samsung { "lightbox_close": "Close", "lightbox_next": "Next", "lightbox_previous": "Previous", "lightbox_error": "The requested content cannot be loaded. Please try again later.", "lightbox_start_slideshow": "Start slideshow", "lightbox_stop_slideshow": "Stop slideshow", "lightbox_full_screen": "Full screen", "lightbox_thumbnails": "Thumbnails", "lightbox_download": "Download", "lightbox_share": "Share", "lightbox_zoom": "Zoom", "lightbox_new_window": "New window", "lightbox_toggle_sidebar": "Toggle sidebar" } I hope you find it useful
Good tool, thanks for sharing !!
:good: Thank you very much. No idea if somewhere newer Version of this Tool. :angel: Looks like this Version have little problem to show correct size in MB... bigger 5000 MB Tested short PITs of: SM-Z130H SM-Z200F SM-Z300H User partition size not correct shown... in MB. But with help of Calculator and blk length... Best Regards
Just made it a little more nice for the eyes Since that tiny Korean fix font is not really nice to read. All changes in detail Code: ggsm_pit_viewer =============== Changes in v1.04: * replaced Korean Font (3 Glyphs) with Courier New 10 * adjusted listview column widths * corrected typo: GGSM_PIT_VIWER_v1.03 => GGSM_PIT_VIWER_v1.03 * partition_id changed from 8 to 2 digits (since there will be probably not ever more than 255 partitions) * In the first line (magic= count= ap_vendor=...) used tabs instead of a space as separator
As I understand, modern Samsung smartphones require verified PIT-files. Does this tool sign modified PIT files? UPDATE: Just checked. It doesn't sign modified PIT-files Does anyone know where I can get a PIT-file editor for modern Samsung smartphones?
Get Fire TV Advanced Options via CommandLine or Libary (dev)
Hello guys, I think many of you know these advanced options of the fire tv stick. For my current project I need to be able to query the displayed video information (especially the color standard) via commandline or some libary. I have almost no experience with android development, but if someone has a solution I should be able to figure the rest out myself. I suppose I would have to root the fire tv stick. After that I have no idea what to do. Since the information can be displayed via the advanced options, I assume that there must be a way to query them via command line or a libary. Maybe someone with more experience in this field has an idea { "lightbox_close": "Close", "lightbox_next": "Next", "lightbox_previous": "Previous", "lightbox_error": "The requested content cannot be loaded. Please try again later.", "lightbox_start_slideshow": "Start slideshow", "lightbox_stop_slideshow": "Stop slideshow", "lightbox_full_screen": "Full screen", "lightbox_thumbnails": "Thumbnails", "lightbox_download": "Download", "lightbox_share": "Share", "lightbox_zoom": "Zoom", "lightbox_new_window": "New window", "lightbox_toggle_sidebar": "Toggle sidebar" }
@chikko80 https://developer.amazon.com/docs/fire-tv/developer-tools.html#snapshot >adb shell "dumpsys activity service com.amazon.ssm/.OverlayService|grep colorstandard" [com.amazon.ssm.multimedia.video.colorstandard]: [BT709_8_SDR]
@Kramar111 Thats exactly what i need! Thank you! I didn't even know that you can do this kind of stuff with adb.. Buts its really cool this way that you can ask remote via adb and run the scripts on another device
@Kramar111 I tested it today, and yeah basically its doing what i need, but the problem is, that i don't want to have open the Advanced Options all the time. The idea was to read out the color standard in the background without limiting the tv experience. So the advanced options menu should not be visible. Do you have another idea?
@chikko80 No