yashsingh1/xdaforums huggingface dataset:
[One (M7) Q&A, Help & Troubleshooting] shaaXo:
Can we reduce the amount of noise in this thread? And I don't mean the purple noise.

Now some good news. I just found a way to try out a weeks old idea of mine, that there is something that "resets" the noise from time to time and you can probably get a nice clean shot directly after a reset, if you're fast enough. 30 minutes ago I noticed that switching into a scene mode causes exactly this "reset" (at least on my One). So I hacked up a tiny camera app that performs autofocus, switches the scene (into "Action", which would shoot with ISO400), switches back and immediately takes a picture. Results are attached, the purple is the preview, the black is the resulting photo. Check the EXIF data, it's a proper ISO2000 1/7s exposure shot.
[One (M7) Q&A, Help & Troubleshooting] UgXvibe:
Well, that is a plus, I do have one gap that is killing me.
[One (M7) Q&A, Help & Troubleshooting] clavin78:
That was just beautiful.
[One (M7) Q&A, Help & Troubleshooting] Macca1980:
that looks good, have you tried in a real setup be good to see those shots too.
[One (M7) Q&A, Help & Troubleshooting] shaaXo:
I'll experiment with it a bit more, this was just a quick test during day with the phone on a table. I even had to load my laptop and put the phone near the exhaust to get it heated up to 40°C, so the tint shows. (I'm lucky, because my replacement phone from 4 weeks ago still takes a long time to tint.)
[One (M7) Q&A, Help & Troubleshooting] UCFour:
Guys i have updated my Developer Edition n sadly Camera (Purple problem) still exists
[One (M7) Q&A, Help & Troubleshooting] vizzy:
Hopefully when Roms get updated to the 3.18 files bilgs has this will all be resolved :)
[One (M7) Q&A, Help & Troubleshooting] ingenious247:
I came to the same conclusion last night. Switched to HDR mode and it was perfect for a few seconds.. then switched back to auto and it was perfect for a few seconds.. which means a software solution is entirely possible. Good share here, thanks for confirming my suspicions
[One (M7) Q&A, Help & Troubleshooting] Macca1980:
does this mean its def software then ? others have been saying its hardware
[One (M7) Q&A, Help & Troubleshooting] opher50:
Well.. Here are 2 examples of the phone with 4.3, facing down a table...

Night Mode:

Regular:

When I switch to HDR it goes crazy, switching shades of purple and red... Its horrible, can't describe it better

BTW - we saved that little kitten at the side ;)
[One (M7) Q&A, Help & Troubleshooting] Tuborg68:
Yeah, and I just earlier this day sent mine off to service, convinced that it´s a hardware issue after trying to get some conclusion from reading this thread. And now there seems to be conclusive evidence that it´s software.

So maybe I have to put up with an iphone 4 loaner for two weeks for nothing.

Muhahaa!:eek:
[One (M7) Q&A, Help & Troubleshooting] Macca1980:
I am phoneless just now too. Hmm. Does this mean that ther will be a 4.3.x patch as I have seen reports that 4.3 isn't fixing it.
[One (M7) Q&A, Help & Troubleshooting] ingenious247:
Well obviously if they put in a better sensor it could also be fixed.. but if there is any sort of software solution, then it can be fixed both ways. Which is pretty much the thinking we have seen in this thread several times, but what shaaXo posted and what I also found is the first real proof IMO that it can be handled with a software tweak - at least for some of us.
[One (M7) Q&A, Help & Troubleshooting] dagrim1:
Do you guys have the latest kernel and software? Because when I switch to HDR and back (InsertCoin 3.5.1 rom) it stays pink n purple going crazy. So that doesn't seem to work here...

When I pick up the phone after putting it down like this it goes hella bright quickly and then white balance is back to normal btw.
[One (M7) Q&A, Help & Troubleshooting] UgXvibe:
Wow, this is the first official reply from HTC I've heard that actually confirms there is a problem..

"Taking step to resolve.." as in they know that the update is not fixing all the phones? :confused:
[One (M7) Q&A, Help & Troubleshooting] Ericj418:
I'm taking mine to HTC China for repairs tomorrow. Last time I went in the guy put me in the book for a repair despite the fact that I was relocked not Locked. (Had rooted mine)

I'm running the dual sim variant 802w - the purple issue has been pretty bad and I'm not willing to wait for a software solution. I'm in the "It's got to be hardware camp". My buddy's had his One since june, rooted and everything. He doesn't have the purple issue at all and he uses his phone all the time. It heats up like no tomorrow when he plays games and he shoots lots of photos for instagram. It still works perfectly.

My HTC service guy said they'll do the repair at the service center, and that they will be taking apart my phone and replacing the sensor, he said (i'm inclined to hope and trust him) that the cosmetic damage will be minimal...He said it'll take about 2-3 hours to fix it...So i can get it the same day.

I'll update my situation when I get my phone back. If there are any Chinese translations that need to be done, post it! i'll translate as soon as possible. Google translate gets the bulk of it all but a human translation is still better.

Courtesy of a few friends of mine, I'll be rocking a 5S for the next few weeks...if this doesn't fix my phone, I might swap over to the dark side.
[One (M7) Q&A, Help & Troubleshooting] Macca1980:
let us know.

in spite of all these purple issues, kinda still want HTC ONE over any other phone out there just now... even a 5s.
[One (M7) Q&A, Help & Troubleshooting] ipmanwck:
Purple tint is pretty bad but has anyone checked camera under fluorescent lights here. It's awful and prevents me doing the filming I purchased thing thing for.
[One (M7) Q&A, Help & Troubleshooting] Ericj418:
Definitely.

I'm Taiwanese (Chinese with Taiwan heritage) and one of my uncles works at HTC as marketing exec (we don't talk often...) I've gotta support HTC and Taiwan. I've been in gadget love with the company since the G1.

The only reason I'm getting a 5S to play with as a loaner is because I work in the media. I've played with nearly every smartphone out there and something about the One just made me want to put down money for it. Call it my foolish Taiwan pride/allegiance but the only other phones I've ever preferred have been the iPhones or the Nexus line.

HTC needs to make a Nexus again...Google would make sure a debacle like this doesn't happen.
[One (M7) Q&A, Help & Troubleshooting] Macca1980:
I think you should get talking to your Uncle again.
[One (M7) Q&A, Help & Troubleshooting] shaaXo:
This is just a crude workaround for the hardware (or sensor firmware) problem. If the sensor gets purple again within the 0.14s (or 0.3s in night mode), it will still be purple, but probably much less. I also had to put in a 1 second delay, otherwise it didn't work (haven't tried values between 500ms and 1000ms), so it also introduces considerable delay between pressing the button and actually making the picture. You probably don't want the workaround active all the time. Implementing the same thing directly in the firmware is likely much quicker.

I also experimented a bit with integrating it into the CM camera, but the autofocus behavior is different and I could not get it work withing an hour or so. What apparently works is to start autofocus, wait for autofocus to complete, switch into SCENE_MODE_ACTION, sleep 1000ms, switch back, let the camera take the picture.
[One (M7) Q&A, Help & Troubleshooting] Macca1980:
what percentage of HTC one has this fault you think ?

I know it looks high because off this thread poll, but majority of normal users, may simply not notice, attribute it to something else or not care about photos.

I sent [MENTION=1941826]HTC_[/MENTION]UK 2 tweets, one mentioned purple issue. the other didnt . guess which one they replied to
[One (M7) Q&A, Help & Troubleshooting] trungkent:
I just got back my One from Support Center as well. My problem has been fixed.

New camera module is : st vd6869(1.0) cinesensor 2013-08-13. My camera module seems newer than you.

I also tested as everyone in here suggested: open camera for at least 10mins, switch to HDR mode then switch back to Normal. After those tests, camera still worked as it should. No purple/red/blue tint.

Hopefully camera wont get any trouble later.

Below is my pictures before and after get repaired camera.
[One (M7) Q&A, Help & Troubleshooting] UgXvibe:
Oh goodie, now we are back to being a hardware issue again.. What a rollercoaster ride.
[One (M7) Q&A, Help & Troubleshooting] ac3kill:
I'm on the hardware ride bout to send mine in and specify i want a camera august or newer

That one person that sent his in and got purple back still was a June camera.

I better hurry and send it In before HTC gets flooded and the wait is longer which I suspect will happen when carriers release 4.3
[One (M7) Q&A, Help & Troubleshooting] dqniel:
Just got off the phone with HTC myself. Firstly, they stated that they knew about the red/purple tint issue and were working on a software fix, but couldn't tell me when that fix would be available. They couldn't even give me an estimate.

Secondly, I opened a repair ticket with them but am hesitant to send it in. They said it will take up to two weeks to repair it and that they "can't guarantee the repair will fix the issue." Sweet. Way to inspire confidence, HTC warranty support.

It's ridiculous that their own tech support people don't know the best course of action for remedying the issue. It seem people on this forum are closer to figuring out the proper course of action (which is perhaps a software fix in combination with installation of a camera module manufactured after August?) than HTC.
[One (M7) Q&A, Help & Troubleshooting] Macca1980:
this sounds like a software update could fix although further down the line. (or until we forget/HTC SUPERONE released with better camera)

I dont know what to do... im sitting looking at a good deal online. I have already contacted seller who says no purple issue with camera. Problem is, he may not really understand what I mean or it may naturally develop further down the line. (which may or may not be fixable)

HTC One is phone I want, but I dont know if I can take the risk... sigh...

Iphone screen too small, lumia rubbish store, s4 is mince. its frustrating as I dont want to blow ££ on a faulty item. just so happens the faulty item is best faulty item ever. I'm really on the fence as to click "add to cart"
[One (M7) Q&A, Help & Troubleshooting] rn2011:
Firmware 3.22

Hi

Did anyone tried to flash new firmware 3.22 see if it has any affect on this annoying camera issue?
[One (M7) Q&A, Help & Troubleshooting] UgXvibe:
Well, now that my 30-day new exchange has expired my only course is to wait for the software. If that does not work I guess I would have to send it to Verizon to be replaced with a 'Like-New' One. I really want to avoid that at all costs.. I think I would rather replace the camera module myself first.

There's a good business for ya. Get on Ebay, buy up all the camera modules out there @ $30. each, leave the back off of a One and keep installing camera modules separating the crap from the good and sell them to HTC for $200.

:victory:
[One (M7) Q&A, Help & Troubleshooting] koenkokes:
Nice!

Lets hope it stays that way.

I did some more testing, and it is exactly the same problem as before.

Funny because the report says " after the replacement your camera passed the low light test "

I don't know what to do now, send it in for repair right away, and lose my ONE again for 2 weeks.

Or wait for a "software fix" and if that doesn't help, sending it in anyway.

Forgot to mention they scratched the back of my phone a little bit.
[One (M7) Q&A, Help & Troubleshooting] LeClair:
You can write a procedure for individual points?

I do not understand.

A friend sent HTC service center.

He got a new piece ONE.

Also be purple !!! :confused:

I talk with HTC support and they say it is a software error. Only some countries. Other chip supplier.
[One (M7) Q&A, Help & Troubleshooting] shaaXo:
Sorry to disappoint, but I just tried it out again with a real image instead of pure black. Apparently, the ISO/exposure time information in the EXIF is wrong. The image was much darker, so it was probably shot with ISO400 instead of 2000, so right now it's a useless workaround. Will try again with some additional delays and/or multiple shots soon.

Some technical information, if others want to retry. You could only try it, by implementing the appropriate API calls in an android app.
[One (M7) Q&A, Help & Troubleshooting] Riyal:
Just ask him to get a picture of the phone with the camera lens covered and tell him/her to send it to you. That should solve your issue :)

And oh like I said this is a hardware issue that is fixable by software(maybe). I'm 100% sure of that and it ain't a guess it's 100% scientific :)

---------- Post added at 08:41 AM ---------- Previous post was at 08:36 AM ----------

Then HTC denies you're offer haha! :fingers-crossed:

Meh this is already getting ridiculous... Perhaps if HTC could opensource the camera fix they are applying maybe some of us here who knows things could assist them with calibrating the said fix to work with the issues.
[One (M7) Q&A, Help & Troubleshooting] chrisyng:
I do not understand why people continue to try and give people hope that this issue can be fixed with software.. it gives people false hopes..many of them will hang on their device in hopes for a miracle fix which will never happen. Many people will end up past their device or warranty return window and end up stuck with a flawed phone..
[One (M7) Q&A, Help & Troubleshooting] slashas69:
Well personally I am waiting because I have still 23months of warranty and problem is unknown, some devices came back from service centres with replaced cam and still with purple tint, maybe there is needed some time for supplier to improve these parts.
[One (M7) Q&A, Help & Troubleshooting] UgXvibe:
My one year warranty does not run out until August 22, 2014 due to Verizons decision to make us wait so long.. that may have actually paid off now because I will have this fixed regardless by that time.
[One (M7) Q&A, Help & Troubleshooting] Ericj418:
Whoa?? his new one is still purple??

I'm sitting at one of HTC's Beijing service centers waiting for my phone to be "fixed". They said it'll have a gap on the top and the bottom but it should fix it. Takes about 30 minutes.

If this doesn't work, I'll be running Apple later this afternoon ;-;

******

The HTC Clerk just told me that they've had loads of camera issues and some people have returned to get it fixed a second time. The repair may not fix the camera issue completely... SO....let's hope that the software update will work....(even if it does, it'll take forever for me to get it since I'm in china anyway...)
[One (M7) Q&A, Help & Troubleshooting] wireroid:
How can software ever correct this? Remember that the purple tint is not just a tint, it's actually colored noise that's also reducing the amount of detail in the photo. Even if you can tweak the color balance so that the tint goes away, it's still going to have gray luminance noise and software postprocessing will remove the noise along with all the detail. What you'll end up with are blurry and dull low-light photos compared to the sharp and contrasty photos you get with a working camera.

I've tried doing color correction in Photoshop. It's impossible to get rid of the noise/tint because it's spread unevenly throughout the photo and the edges where the noise is most severe are smeared because of what I explained above.
[One (M7) Q&A, Help & Troubleshooting] khandelwalsiddharth:
Any one from India who got their camera module replaced ?? If yes reviews please.
[One (M7) Q&A, Help & Troubleshooting] Riyal:
Buddy check the 1st pages of this thread... Look for my posts. I have made a fix for this issue and provided screenshots months ago the only problem is I may have fixed the purple issue but comes the green tint flickering issue.

Check here for the fix...

http://xdaforums.com/showpost.php?p=42481789&postcount=31

Now look at the green flickering tint issue that came out on daylight shots...

Now tell me that it's not fixable through software after the limited work I have done? :)

The only reason why this green tint is showing up is because I only have the capability to tweak the kernel but not the camera libraries.

---------- Post added at 01:50 PM ---------- Previous post was at 01:40 PM ----------

And oh... I am not doing any color calibration with hue nor color balance or even contrast like what HTC is trying to do... I am directly altering the preset values of the digital gain of the sensor on the kernel level.

#define REG_DIGITAL_GAIN_GREEN_R 0x020E
#define REG_DIGITAL_GAIN_RED 0x0210
#define REG_DIGITAL_GAIN_BLUE 0x0212
#define REG_DIGITAL_GAIN_GREEN_B 0x0214

#define STAGGERED_HDR_LONG_REG_DIGITAL_GAIN_GREEN_R 0x32F3
#define STAGGERED_HDR_LONG_REG_DIGITAL_GAIN_RED 0x32F5
#define STAGGERED_HDR_LONG_REG_DIGITAL_GAIN_BLUE 0x32F7
#define STAGGERED_HDR_LONG_REG_DIGITAL_GAIN_GREEN_B 0x32F9

#define STAGGERED_HDR_SHORT_REG_DIGITAL_GAIN_GREEN_R 0x32E8
#define STAGGERED_HDR_SHORT_REG_DIGITAL_GAIN_RED 0x32EA
#define STAGGERED_HDR_SHORT_REG_DIGITAL_GAIN_BLUE 0x32EC
#define STAGGERED_HDR_SHORT_REG_DIGITAL_GAIN_GREEN_B 0x32EE

#define STAGGERED_HDR_SHORT_REG_CUT10_DIGITAL_GAIN_GREEN_R 0x32F3
#define STAGGERED_HDR_SHORT_REG_CUT10_DIGITAL_GAIN_RED 0x32F5
#define STAGGERED_HDR_SHORT_REG_CUT10_DIGITAL_GAIN_BLUE 0x32F7
#define STAGGERED_HDR_SHORT_REG_CUT10_DIGITAL_GAIN_GREEN_B 0x32F9

#define STAGGERED_HDR_LONG_REG_CUT10_DIGITAL_GAIN_GREEN_R 0x32E8
#define STAGGERED_HDR_LONG_REG_CUT10_DIGITAL_GAIN_RED 0x32EA
#define STAGGERED_HDR_LONG_REG_CUT10_DIGITAL_GAIN_BLUE 0x32EC
#define STAGGERED_HDR_LONG_REG_CUT10_DIGITAL_GAIN_GREEN_B 0x32EE

https://bitbucket.org/Don2x/mod-ker...drivers/media/video/msm/sensors/vd6869_v4l2.c

The 2 problems that stopped me from fixing this is

1. Limited access to the whole firmware... I need to alter camera libs which is closed source.

2. I'm not some professional photographer and I have no experience with balancing RGB values to fix this issue.
[One (M7) Q&A, Help & Troubleshooting] wireroid:
Like I said, even if you tweak the individual color channels to balance away the tint, you still have the grayscale luminance noise left over. Take a look at your picture - it's washed out and lacks detail despite the lack of purple, and the noise pattern is still clearly visible. A normal One in the same conditions will be sharper and show proper contrast between the light and dark areas, not the strange fuzzy gray pattern you see there in areas that are supposed to be pitch black.
[One (M7) Q&A, Help & Troubleshooting] opher50:
Dude,

You must contact those idiots in Taiwan and tell them you've found a fix for the problem they've been trying to figure all this time.
[One (M7) Q&A, Help & Troubleshooting] Riyal:
[MENTION=4980071]wireroid[/MENTION]

I have 2 HTC Ones the other one doesn't have the purple tint issue and believe me that powdery artifact in the image still exists on the other device. Also when I took that picture at that time I didn't use any flash at all and it's alot more darker with just using my eyesight alone. These noise is already very considerable if only you know how dark was it at that time.

Also if you really insist that the tweak I made causes those grey artifacts to come out then could you explain to me why it doesn't appear on the third picture I uploaded in this link?

http://xdaforums.com/showpost.php?p=42481789&postcount=31

Check the EXIF of the pure black image :)

[MENTION=3243079]opher50[/MENTION]

dude believe me... The day I discovered that fix to now I like mailed HTC for almost 10+ times and posted this on facebook for who knows how many times yet it's getting ignored.
[One (M7) Q&A, Help & Troubleshooting] Macca1980:
feck it.... Im not taking a chance. Gonna get a lumia or iphone, at least they can take photos.

good luck everyone.
[One (M7) Q&A, Help & Troubleshooting] dagrim1:
Interesting, how have you been able to get this working on your own phone? Have you been able to compile/make a custom kernel and if so, is it available? I have no problem at all trying to flash a kernel to see if it improves things...

THing is I'm also wondering if tweaking values which work for your phone also work for other phones and if it doesn't mess up situations where the camera would otherwise work fine in it's original state...
[One (M7) Q&A, Help & Troubleshooting] wireroid:
I can't exactly tell without a picture of a real scene, but when you adjust gain, you're adjusting the sensitivity of all photosites of that color. On the second picture it looks like you turned down both red and blue gain, and for the third it seems you turned down all three, which basically has the same effect as lowering the ISO. ISO is related to sensor gain so the EXIF data becomes meaningless if you're adjusting variables in a way that makes the actual calculated ISO lower than the value the software is programmed to display.

Again, I've been trying to explain that it's a combination of a color tint and luminance noise. For the tint, no big deal, you can tweak the color balance until it's less apparent. You can't get rid of luminance noise unless you lower the sensitivity to the point where it's useless in low light.
[One (M7) Q&A, Help & Troubleshooting] Riyal:
1st yes I have compiled a custom kernel out of this that's why I managed to create samples. I compiled like 20 to 30+ revisions of the kernel before I reached to that point. Regarding availability sorry no. I deleted it a week after I gave up as I was annoyed I couldn't perfectly fix it and nobody would volunteer with me on fixing the issue. Ask [MENTION=5235636]VictorCozmei[/MENTION] on how hard we're trying to get this thread noticed back then haha! And regarding others trying the kernel it's another no as at that time only a handful of users are encountering the issue and most of them won't even dare to try a custom kernel for it. But logically speaking it should have the same results as long as you're experiencing purple tint issues. Problem is I already forgot the values I set on the driver to reproduce these things and have been waiting for HTC since on fixing this issue :p And yeah haha! It's like almost 5months and counting now... :D
[One (M7) Q&A, Help & Troubleshooting] vizzy:
At least we know it is possible to solve though.
[One (M7) Q&A, Help & Troubleshooting] LeClair:
All:

I hope that HTC's SW will solve.

Talk with HTC support and they say it is a software error. Only some countries. Other chip supplier.

Yes brand new and still purple.
[One (M7) Q&A, Help & Troubleshooting] marvdmartian:
To those that have the problem, does it get worse the more you use the camera?
[One (M7) Q&A, Help & Troubleshooting] koenkokes:
"Thanks for your patience " Yeah right xD

__________________________________________________________________________________________________________________

Spoke with HTC care again. they are very sorry that the repair didn't work out as expected, and they are gonna pick my phone up again, tomorrow.

When i told him about the date codes on the modules, that a august module did work etc. he stated that it was untrue, didn't say why.

Was scared that he went full software after that, but instead he blaimed the repairmen.

Lets hope it gets fixed now.
[One (M7) Q&A, Help & Troubleshooting] ahmedhzaki:
I believe so. The more I use just the phone not the camera does it deteriorate. I used to have minimal pink hue. Now it turns pink like it has been covered while it isnt. And there is pink even at iso 100 and 200. I wish it was software as Id hate to send to repair but I just can't seem to imagine how software may become worse with time and use
[One (M7) Q&A, Help & Troubleshooting] loperano_19:
simply because it is software, hardware and seems to have htc comes out expensive the replacement of the damaged part, so we cheat, because htc perfection must know the architecture of your HTCOne, and have them manufactured
[One (M7) Q&A, Help & Troubleshooting] marvdmartian:
really? it deteriorates even when the camera isn't used?