yashsingh1/xdaforums huggingface dataset:
[Atrix 4G Android Development] rhcohen:
battery stats with latest kernel?

I installed [MENTION=4641721]krystianp[/MENTION]'s latest kernel (2014_02_03_01_17) from dropbox; so far it does seem to improve speedtest results somewhat. (I haven't run long enough yet to report on stability). But I notice on this and the last one I used (from Jan 31) a kind of strange battery behavior; I am wondering if anyone else has noticed this. If I leave the phone plugged in for a long time, it registers full voltage (4.196 Volts) but shows as only 68% full. If I run the battery_fix app, which has usually fixed that sort of thing, the reported voltage drops to about 4.14 - 4.15 Volts and the percentage stays at 68%. Possibly coincidence, and my battery is starting to fail? (Not a charger problem, get same result with two different chargers). Or maybe something peculiar with the latest kernels? Or, expected? This was not a problem for me on the previous kernels (early January) that I had tried.

UPDATE: Tried also with a different battery -- this one registers a lower voltage (around 4.10) but a higher percentage (in the 90's). With both batteries, ran the battery fix and restarted battd).
[Atrix 4G Android Development] jisse44:
I have 2 modem drops in 40 mins with kernel-2014_02_02_18_25_atrics while I was driving with Waze.

Flashing kernel-2014_02_03_01_18_atrics right now.
[Atrix 4G Android Development] krystianp:
Your method is fine:) We want those drops either in low or high usage.

All the panel settings used in tests are here. You can test each version by writing values directly to files in /sys/kernel/olympus/dsi/. You have to use recent kernels not old ones, sysfs interface was introduced AFTER all hporch* kernels. Try one of the latest (but not the latest from 2014_02_03).

That is strange, I haven't changed a bit of camera related code.

Same as above... Is it failing to enter DS or is draining a lot of batt?

I have the same wierd batt experience. It must be something in kernel then (I also thought it's my batt dying), probably pinmux,

I've updated bug spreadsheet. Please report there (if you need more fields just add it).
[Atrix 4G Android Development] saiftheboss7:
There's no downloading option for kernel v1 to v11. How am I supposed to test? And you said I have to test with new kernel. Whenever I'll flash the kernel, I'd lose the ability to boot. Give me some flashable zips panel settings to test! :(
[Atrix 4G Android Development] krystianp:
Come on:mad: You CAN'T install test kernel (v1-v11) and use sysfs panel settings. It's NOT COMPATIBLE. Use adb (with recent kernel) to access console. Let's say you want to test v2 settings...

adb root
adb shell
cd /sys/kernel/olympus/dsi
echo 4 > h_ref_to_sync
echo 4 > v_ref_to_sync
echo 16> h_sync_width
echo 8 > v_sync_width
echo 32 > h_back_porch
echo 12 > v_back_porch
echo 32 > h_front_porch
echo 12 > v_front_porch

That's all!!! Now press power button twice and it's done. If it works then that is your solution, if not then try next one. You can always verify if it was written correctly using e.g.

cat v_ref_to_sync

And I won't give you anything. I'm not working for you. We were doing tests and there was time to participate. If you don't want to follow those simple steps, you can can always edit board-olympus-panel.c and edit panel settings and compile kernel for yourself. It's also not very difficult task.
[Atrix 4G Android Development] thecjan:
thanks K, then which is hporch32 panel settting? make thing easier not to try v1-v11?
[Atrix 4G Android Development] krystianp:
I don't know which one is THE hporch32 panel setting. It was internal cm10.1 solution. I wasn't following it. Basically it's either h_back_porch or h_front_porch value (or both). Look in cm10.1 thread for exact values, I'm sure it's there somewhere. I won't be making them again and I don't have backup copies of them. Maybe someone else has them...
[Atrix 4G Android Development] saiftheboss7:
Come on K! Let's cool down. We know how hard you are working on the kernel. But for noobs, going on to adb and those things is NOT THAT EASY what it seems to you. Cause you're a developer.

We are not giving up on you. We know you are the only hope of us. We are just asking that if WE also want to get a taste of JB. :(

However, you were saying I wasn't present at the participation. Let me tell you, I was having exams at that time... :( I didn't have time to test it. Let me help you.. I think I have found THE Hporch32 Kernel

Can you make the flashable zip out of it?
[Atrix 4G Android Development] krystianp:
I won't make separate kernel for you. BUT I can help you setup adb and make it work. Contact me over hangout @ my address and I'll guide you through that.
[Atrix 4G Android Development] thecjan:
K, how about build a profile-hporch32.zip like E did?
[Atrix 4G Android Development] ravilov:
Noobs have no business even looking at any of this this stuff, let alone trying it out. This is still considered highly experimental software and some knowledge on the users' part is definitely assumed. Working with adb and Linux shell is the minimum skill anyone who wants to try this stuff out should manage.

Please take your demandiness elsewhere, such attitude is not appreciated.

He already said no, plus he explained how to do it yourself. Don't be lazy.
[Atrix 4G Android Development] saiftheboss7:
I have no knowledge of ADB Shell and still I could use the kernel until K changed the way of display panel. I reported logcat and other logs too. Appreciate it or don't appreciate it, even now it's too late for reporting display error, how the hell can you say it'll be appreciated after beta/final release? Who guaranties you will not say "NAH! IT IS NOT TIME TO REPORT DISPLAY CONFIG NOW. WE HAD THIS BEFORE AND YOU DIDN'T PARTICIPATE. WE ARE ABANDONING"

Sounds nice? :\

Besides, it's not just me. Others having the problem too. Already 2/3 people agreed about their panel errors too.
[Atrix 4G Android Development] krystianp:
Seriously?? You can't even edit file on your phone? You don't need dev skills to do it... I'm willing to help you learn but I won't make it for you, just because you don't want to spend 30 minutes on learning how to configure and use adb.
[Atrix 4G Android Development] overboard1978:
When i try to install kernel-2014_02_03_01_17_cm10_1.zip reports back (Bad) and aborts install in cwm.

edit: recopied and works
[Atrix 4G Android Development] jisse44:
kernel-2014_02_03_01_18_atrics:

I have run about 10 speedtest and switched on/off airplane mode and providers antennas, no data drop for now

Strange batt for me too. Very very slow charging, and it seems screen wake up at every percent.

Send from my Atrix 4G
[Atrix 4G Android Development] krystianp:
I won't change anything with panel settings in kernel. Problem is solved but solution requires some user interaction. If you are not willing to learn basics of ADB, the only solution I can think of is someone making recovery backup of his atrix with panel settings set to those that you want. I won't make it though... But as I said, I can teach you basics of adb, if you want.

---------- Post added at 01:49 PM ---------- Previous post was at 01:47 PM ----------

Will clean up pinmuxes with next kernel. Also please report to bug spreadsheet. This way we can see visually if there is some improvement or not. Relying on xda posts might be misleading and hard to follow.
[Atrix 4G Android Development] saiftheboss7:
That's so sweet of you Krystian. I'm now downloading the 480MB Android SDK. Hopefully I'll be able to set it up. My speed is slow so it'll take time. Nevertheless, for some weird reason, can't connect to hangout.

BTW is there any way to pull the display config from the hporch32 kernel after booting into CM10.1? (from Filemanager? maybe?) Just a noobish question to ask though!
[Atrix 4G Android Development] krystianp:
If it is old kernel without sysfs interface then it's very hard (requires disassembling kernel). If it has /sys/kernel/olympus/dsi, then you can read values out of the files there.
[Atrix 4G Android Development] saiftheboss7:
Problem is, adb devices not showing any devices. Though I've enabled USB Debugging from menu. Using hporch32. Want to get access of ADB first then I'd flash the new kernel and push the new settings. But ADB doesn't see my device :(
[Atrix 4G Android Development] ravilov:
I'm just saying some level of knowledge is fully expected if you want to deal with this stuff. If you're not willing to put what is considered the absolute minimum of effort into this, then you are of no help, you are just in the way. Also, if you have a problem, report it in a constructive way instead of demanding a dev to solve your problem for you. This is what experimental means - EVERYONE should participate, and not just by testing and reporting. You were given the instructions on how to deal with an issue, if you are unable to follow that is your own problem.

I am also fully aware many people are trying this stuff out but have no sufficient technical background. This goes for them as well - they really should not be even looking at this stuff. Here is the most recent example. It just makes the devs' work that much harder while bringing no value to the development process. However, the kernel is fully open-sourced and there's nothing to stop just about anyone from using it, including people who really shouldn't. That's why we have what we have now.

This is not me inventing stuff and just talking, this is the way it is. It's a fact, not open to debate. Take it or leave it.

So yes. Stop being lazy and stop expecting everything to be served to you on a silver platter.

---------- Post added at 02:06 PM ---------- Previous post was at 02:04 PM ----------

Either install ADB drivers correctly (there are guides and instructions everywhere), or use Linux which requires no drivers.
[Atrix 4G Android Development] krystianp:
Check if in device manager you have ADB Interface installed (you should see Android label with warning). I had to install it too because it wasn't recognized correctly. I assume of course that you have installed this
[Atrix 4G Android Development] saiftheboss7:
Just got into ADB. Wanted to apply what K said. However, just after pressing adb root

it says root access is disabled in system settings!
[Atrix 4G Android Development] ravilov:
So um, enable it then? What are you waiting for? It even tells you where to find the option needed...

Also you don't really need to post screenshots, plain adb messages are sufficient.

Another thing, what ADB reported up there is the serial number unique to your device. You might want to conceal it and not put it out for public view like that.
[Atrix 4G Android Development] krystianp:
It says you have to enable root access for ADB in System Settings/Developer Options (third option from top).
[Atrix 4G Android Development] thecjan:
SORRY, i think i can done with adb, what i mean is when kernel beta/stable will out then quiet user will return, why not give them a profile ( not along kernel ) then everybody happy.

besides, why you doing such hard work if no one use A4g? its just a smart phone right? in 2014 today lots 8-core phone come out here (China) about US$150.

sorry bother you, maybe i should join '[All-in-one] Dedicated Goodbyes/ Thanks thread' .
[Atrix 4G Android Development] runekock:
I think the hporch32 settings changed with time. See http://xdaforums.com/showthread.php?p=45020507

[MENTION=2315905]ravilov[/MENTION]: you are of course right in what you say, but do you need to use so hard a tone? It makes for a negative experience for everyone reading.
[Atrix 4G Android Development] saiftheboss7:
maybe it was usual. After getting into adb I pressed power button and magically screen appeared. However, entered adb as root

and when I enter the command

cd /sys/kernel/olympus/dsi

it says the system cannot find the path specified
[Atrix 4G Android Development] ravilov:
Some people only ever respond to yelling. This is something I've been saying for a long time, and yet people don't seem to want to listen. So I'm trying the yelling method now. Sorry for the inconvenience.

---------- Post added at 02:38 PM ---------- Previous post was at 02:37 PM ----------

Try entering each directory separately and see where it "stops".

cd /
cd sys
cd kernel
cd olympus
cd dsi
[Atrix 4G Android Development] krystianp:
All panel settings (used in cm10.1) have been tested and even some more. It's available to all. What profile I should make? What if someone needs 4th or 5th configuration. It's pointless. If you want to use new kernel, you have to deal with it. It's not official software, so it doesn't have to follow idiotproof policy.

I do it because I use A4G. I'm glad that people can use it but I'm not here to make everybody happy. I'm here to learn how this device works, to understand how code is written, what it does and why. To prove myself that I can do it.

It's your decision. I won't be making it for you. I'm always willing to help but I won't be doing basic tasks for everybody. I'm sure that if you ask nicely [MENTION=4146662]saiftheboss7[/MENTION] will make a backup copy of his system when he gets working values for him.
[Atrix 4G Android Development] ravilov:
I think this wraps it up very nicely. The XDA-Developers Forum is (or is at least meant to be) a place where developers meet and talk about highly technical details and exchange knowledge. Again, developers. It even says so in the forum name. The devs do the things they do because they enjoy doing it, and also to learn and grow. They do NOT do it to make random users happy, and random users not involved in the actual development have no right to make any demands. Random everyday users are of course welcome to join in and participate, hopefully some of them will grow into becoming devs themselves, but again, they can make

NO DEMADS

.
[Atrix 4G Android Development] saiftheboss7:
the cd command is changing directory within windows. Not in my device's. See log.
[Atrix 4G Android Development] thecjan:
thanks, i had experience Z's 4.3.1 hporch32-rom with no screen problem, btw.
[Atrix 4G Android Development] ravilov:
You forgot adb shell.

Make sure you follow the steps carefully and precisely.
[Atrix 4G Android Development] overboard1978:
Im with you. I have had my atrix for 3 years now. It was top of the line when it came out. Hardware is still very capable of running lastest versions of android but motorola stopped updating. I am glad to see someone with your level of knowledge taking up this cause and have learned alot being a part of this. many thanks for your hard work and for sharing your knowledge.
[Atrix 4G Android Development] krystianp:
You haven't entered shell on your phone. So first do "adb devices" to see if your phone is recognized (on the list). If it is then do "adb shell" you should see "shell@android:/ $" prompt. Then you can change paths.
[Atrix 4G Android Development] saiftheboss7:
Oh how silly! Doing for the first time.. :( Tried kernel 2.. Didn't work. Now trying kernel 3.. Will update which one works!
[Atrix 4G Android Development] krystianp:
When I bought Atrix I knew next to nothing about Android. When I was unlocking bootloader and flashing first files my heart was pumping, as I was barely knowing what I was doing. In may 2012 I was noob. After 6 months I started playing with kernel development. I wanted to help others like faux123 or mvniekerk. I've joined mmontuori's project. I've learned all from the basics. I just had some coding knowledge and some linux experience. If someone told me in 2012 that I'd be developing kernel I wouldn't belive.

---------- Post added at 02:55 PM ---------- Previous post was at 02:54 PM ----------

Be sure to check if values are there (using "cat" with parameter name).
[Atrix 4G Android Development] thecjan:
one more question, from beginning E provided hporch32-rom then 3-panels, why abandon it?
[Atrix 4G Android Development] ravilov:
It was for testing purposes at that specific development stage. It is not sustainable anymore.
[Atrix 4G Android Development] krystianp:
Because it wasn't working for all. There was no way of distinguishing which atrix needs what parameters (that was main purpose of panel settings tests). There were groups that had atrix like that needing hporch32 but it didn't work for them but it worked with defaults. So I made those settings adjustable from userspace. This way everybody can have their own settings.
[Atrix 4G Android Development] thecjan:
Z's 4.3.1 provided hporch32-rom too after E's months and work for me, so there some value for this device, why is testing purposes?

btw, i am over 10 posts now, with argue K and yell some...:p
[Atrix 4G Android Development] saiftheboss7:
Kernel 9 Worked but didn't work after

I started trying from kernel 2's settings... It booted once with no.4 kernel and then no. 9 worked ! No 9 worked several times. I booted several time to test. Suddenly it restarted and got black screen again! :( Now flashing 9 again don't get me a working screen.
[Atrix 4G Android Development] krystianp:
Bare in mind that setting values works only till next reboot. So if you reboot you have to write them again OR you can place them in script config (so it will be loaded at each boot).
[Atrix 4G Android Development] saiftheboss7:
Only till next reboot means after writing through adb the immediate next 1 reboot?

Ok, K!

I may have found it! Kernel 3's config worked and after 1 reboot, it rebooted me to CM10.1. How to make it as script so it'll load by default for me?
[Atrix 4G Android Development] Feche:
Phone is failing to enter DS mode, CPUSpy isn't showing DS mode as used. (Yes was AC/USB discconected)

EDIT: I did a reboot and now is working
[Atrix 4G Android Development] krystianp:
You don't reboot the phone after entering values. You just press off/on like you would do for waking from sleep. Each reboot resets values. You might have been just lucky that it booted, values are reset on each system start.
[Atrix 4G Android Development] saiftheboss7:
So, how do I make it sticky? How do I load the script so that it doesn't change? My current system which booted even after reboot.I don't wanna lose it! :cowboy:

Update. Kernel 3's config - Double pressed power button. Jittered display.

Kernel 4's config - double pressed power button. It's showing display.

How do I test that if kernel 4s config can boot me to a working display config panel from cold boot?
[Atrix 4G Android Development] Feche:
Create a new file and write the code, copy it to sdcard, then move the file to /etc/init.d with Root Explorer or any other file manager app.
[Atrix 4G Android Development] saiftheboss7:
any file? .txt with the code inside will work?
[Atrix 4G Android Development] Feche:
There you go (unzip it first), change the values at your needs and then copy it to /etc/init.d
[Atrix 4G Android Development] rhcohen:
RE battery stats

Wow, a lot of posts during the U.S. night!... too bad you (@krystianp) had to get drawn into that, I'm sure you have many better things to do. Amazing what you have accomplished, everyone reading this forum should be grateful for that.

I have a further observation about the battery stats problem, which might provide a clue. After the phone sat on the charger all night the battery fix app was reporting about 4.14 V and still 68% charged, as last night. But what I found was that within the battery fix app, if I pressed the "fix battd" button followed by "restart battd", and repeated this sequence, the reported voltage would toggle between close to full (4.194 V) and something around 4.14 V, and each time it reported close-to-full, the reported percentage would increase by 1 percent. Repeating this a bunch of times I got the reported percentage up to 100% and then finally the phone would report itself as "charged" as opposed to "charging". I will report this on the spreadsheet.
[Atrix 4G Android Development] saiftheboss7:
didn't work bro. changed the settings.. Copied to /etc/init.d fixed permission. Still seeing blank screen while rebooting! :( Works fine just after I write values through adb!

it's quite late in my country. Almost 12PM. I gotta go to sleep now. Enough experimenting.

Good news: Got the right panel settings.

Bad News: Couldn't set it on boot.

Anyone knows how to set this value to be set by default on boot? My config is:

echo 4 > h_ref_to_sync
echo 2 > v_ref_to_sync
echo 16> h_sync_width
echo 4 > v_sync_width
echo 32 > h_back_porch
echo 8 > v_back_porch
echo 32 > h_front_porch
echo 8 > v_front_porch

Will see it tomorrow.

Thanks so much Krystian, Ravilov, Fetche - for helping me out today. hope to fix the panel issue tomorrow.
[Atrix 4G Android Development] Feche:
Did you set permissions? (755)
[Atrix 4G Android Development] saiftheboss7:
Yeah. See
[Atrix 4G Android Development] Feche:
Did you unzip it? look at the icon, is not text as the other ones.
[Atrix 4G Android Development] krystianp:
Let's start modem testing from the beginning. I prepared fresh kernels.

Pinmuxes restored to defaults.
[Atrix 4G Android Development] Feche:
Installed, what should I do now?
[Atrix 4G Android Development] krystianp:
Look for anything suspicious, anything working better or worse. Warmup the phone and then do some speedtests via modem (if your data plan allows).
[Atrix 4G Android Development] Batschmirne:
Not modem related, but my screen turns off after a few seconds even though Iset screen timeout to 30 mins.

And screen only turns on if I press the power button a few times.

Btw I'm using cm9 with newest kernel, the ones before where all right.
[Atrix 4G Android Development] overboard1978:
Did have phone freeze after a phone call during speed test. was stuck on ping screen. rebooted hasnt happened again. able to run 3 back to back speed test after with no modem drops. will update if anything changes

edit running cm10.1 latest kernel
[Atrix 4G Android Development] Harrson:
Modem drop after about 1 hour of inactivity following successful speedtest runs.

Added block for new kernel to spreadsheet on modem drops page.

If helpful, I can do a full wipe, reinstall CM9 ROM, install kernel, and try again.
[Atrix 4G Android Development] PolesApart:
(was about sd-card speed)

I didn't see any difference. On the positive side, I had no random reboot. But also had hard modem drops, and the flashlight didn't work
[Atrix 4G Android Development] Harrson:
Happened again after a reboot (have _not_ wiped and reinstalled). Rand speedtest several times, let it sit for a while (an hour or more), and tried speedtest again.

This time the modem drop happened in the middle of the test, not while the phone was idle. Froze during the upload portion, and hung the app. OS was responsive as always, but a reboot was required to restore mobile data.
[Atrix 4G Android Development] krystianp:
It would be good to make modem tests with adb streaming kernel log. There's a lot of clock info there. To get streaming kernel log you can use cat /proc/kmsg
[Atrix 4G Android Development] overboard1978:
Kind of off topic from modem issue after flashing latest kernel battery dropped from 65 to 25% tried charging 6 hrs still at 25% then tried atrix battery fix and phone was stuck at 5%. did full wipe and reinstalled cm10.1 phone back to 100%
[Atrix 4G Android Development] tonglebeak:
Disregard. The log isnt right
[Atrix 4G Android Development] rhcohen:
battery stats

This seems to be the same issue that several people (including me) reported and noted on the GoogleDocs bug testing spreadsheet (which I notice now has been reformatted and all old data removed). If you were having the same problem as I was, your voltage would rise to the proper level but the reported percent charge would not. I managed to "solve" the problem by running the battery fix app and repeatedly applying the battd fix -- for every two times I would apply it the reported percentage rose by 1 percent. After getting the reported charge for my fully charged phone to 100% the problem has not returned. This was for one of the Jan 31 kernels; I've tried two more kernels today and battery stats remain normal.