yashsingh1/xdaforums huggingface dataset:
[HTC One X] eyosen:
I would need a soldering iron first LOL. The only rechargeable batteries I use is for underwater filming with my video mask. that's all.

Thanks for the suggestion. It's appreciated. But you would agree with me that getting the phone power the connection itself would be a much more elegant solution. I am a patient guy. Waited this long for a kernel with working USB Host. And I thank you for that.

In the meantime, if there is anything I can do to speed up the process, let me know.
[HTC One X] kholk:
Yeah, I absolutely agree, it would be way more comfortable to have power from the One X itself, but don't forget that this means that the power will be sucked from your battery if you'll connect an USB device... and the One X hasn't got an EXCELLENT battery life! :P

Anyway, working on that as soon as I'll solve some things that are rendering this kernel unusable on some ROMs!
[HTC One X] eyosen:
Much appreciated. Thanks.

Here is a small token

5N288279RG209915G
[HTC One X] n3ocort3x:
Hy Kholk and Team Eternity... I´ve added both Kernel to my repack thread for AOSP and AOKP Builds ! Thanks for your work. Just want to let you know
[HTC One X] kholk:
@eyosen

Really many thanks for the beers! :D

@n3ocort3x

Thanks for helping everyone to get this kernel easily working on the various ROMs!

@Everyone else

v0.23 has been released! :P
[HTC One X] starbase64:
Ok. Testing :D
[HTC One X] eyosen:
Repacked it for maXimus 2.0.

I get it to boot until ROM PIN lock screen where it doesn't show the pin keypad. Cant get the unlock ring to slide anywhere. It doesn't move. However, responds to adb commands.

dmesg and last_kmsg are attached
[HTC One X] kholk:
Have you tried to wait ~30 seconds on there?

The modem initialization has been delayed of ~3-4 seconds for boot stability reasons.

Anyway, post a logcat so that I can examine what's going on with your PIN lock: strange enough!
[HTC One X] eyosen:
Yeah I did wait for more than 2 minutes. The phone got really hot. I will retry it when it gets cooler.

EDIT: Logcat attached
[HTC One X] kholk:
Oh, that sounds like a problem, assuming that your ROM is fine.

Unfortunately, I don't use PIN locks on my SIM card, so, never experienced anything like that. Anyway, I'm on the stock hTC 1.29 ROM.....and I'll try to set a PIN lock on my SIM (hoping to find my old PIN somewhere! xD).

Anyway, thanks for your time......and for the logs! :D
[HTC One X] eyosen:
Like to help.

Logcat is above your previous post.
[HTC One X] kholk:
logcat seems to be fine... however, the dmesg looks like incomplete :\

I can see the end of a stacktrace on the first lines.... but the most important part of it is missing :|

Can you try to get it completely? (perhaps, a last_kmsg after a reboot or something like that)

For helping you to have an idea of what I'm talking about, there's an example stacktrace:

[ 34.741997] ------------[ cut here ]------------
[ 34.742006] kernel BUG at fs/dcache.c:474!
[ 34.742014] Internal error: Oops - undefined instruction: 0 [#1] PREEMPT SMP
[ 34.742022] Modules linked in: baseband_xmm_power2 baseband_usb_chr cdc_acm k
ineto_gan wl12xx bnep btwilink hid_magicmouse hidp rfcomm bluetooth gps_drv fm_d
rv(C) st_drv
[ 34.742090] CPU: 1 Tainted: G C (3.4.0-EternityProject-g5e52dc5-
dirty #437)
[ 34.742123] PC is at dput+0x4c/0x2b0
[ 34.742137] LR is at dput+0x40/0x2b0
[ 34.742153] pc : [<c00ef3cc>] lr : [<c00ef3c0>] psr: 60000013
[ 34.742156] sp : d4fc1dc8 ip : 00000000 fp : d364debc
[ 34.742168] r10: 00200200 r9 : d364de94 r8 : 00100100
[ 34.742178] r7 : 00000000 r6 : d3607384 r5 : 00000000 r4 : d364de48
[ 34.742187] r3 : 00000000 r2 : 00000000 r1 : 00002710 r0 : d364de94
[ 34.742199] Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment kern
el
[ 34.742212] Control: 10c5387d Table: 9422804a DAC: 00000015
[ 34.742220]
[ 34.742222] PC: 0xc00ef34c:
[ 34.742230] f34c e5845094 eb121984 e1a0000d ebfffde6 e59f0018 eb121a92 e5943090 e59f000c
(and continuing with a lot of numbers)

Thanks again :D
[HTC One X] eyosen:
When I switch back to 0.22, maXimus 2.05 base boots fine with pin lock and all.
[HTC One X] eyosen:
What happens is, adb devices starts showing offline and that's why dmesg gets truncated.
[HTC One X] jackolus:
for me wifi and osx flash script doesn't work

and which is understood - big power consumption during screen off.

anyway thank you for your hard work
[HTC One X] eyosen:
I just flashed your original 0.23 without repacking, and it worked fine. Strange. I must be doing something wrong with repacking.

Attached are all log files after booting with your boot.img
[HTC One X] starbase64:
Hi,

0.23 makes always bootloop on arhd 7.1.0 :(

cheers

starbase64
[HTC One X] eyosen:
Intermittent WiFi drop still occurs. Attached are the dmesg and logcat files.

Thanks kholk.

EDIT: WiFi now also drops when connected to USB power.
[HTC One X] n3ocort3x:
No Problem, Guys this Team is awesome i can recommend it in every way...

@ Kholk

I´ll send ya a PM tomorow.. i have to ask something about your work !
[HTC One X] Ultravore:
I tried to put the newest 0.23 on InsertCoin Evolution 7.30 with no success.

It's stuck in a bootloop. Yes I used the repacked version made for this ROM.

How I installed:

I went in recovery and installed the ROM, wiped all caches and data

after installation I didn't reboot and only went back to recovery and then used the install script. I replaced the boot.img with the repacked one before.

the installation works and doesn't show any errors.

can anyone tell me what I do wrong? :confused:

I really want to try out the new USB Host Mode I've been waiting for so long now :)

OTG cable and USB hub is ready, just the kernel doesn't want to work :(
[HTC One X] kholk:
@n3ocort3x

Perfect, waiting for your PM ;)

@Ultravore

The only thing I can do is asking a log from your device running that ROM.

After the forced reboot, go in recovery, connect USB and ...

adb shell "cat /proc/kmsg"

Then attach the output in your next post.

That will help me to know what's going on and why your phone isn't booting.

@eyosen

I still can't locate the stacktrace in the latest files :\

Anyway, try to wait for the next fix. Tomorrow I'll set a PIN on my SIM and verify what's going on!

Thanks to everyone!
[HTC One X] dk_zero-cool:
@kholk

I see that you have a lot on your plate at the moment, but could you add one thing to a todo list for later when the current issues is sorted out?

The kernel (2.6.39) is running great, but there is one thing that bugs me. It seams that every One X kernel out there switches to Interactive governor when the screen is turned off. Maybe some HTC thing, I don't know. However it drains a lot of power on standby, mostly I think because the minimum freq is set way to high (475MHz I think). At the moment I am using tasker with a delay to restore it to ondemand (102MHz) on screen state change and I get 5 times better battery life. Is there a way to stop these Sense kernels from switching governor when the screen state changes? It would be nice to be able to set the governor in the ramdisk (Or an init.d script) without having the kernel change it constantly while the device is running.
[HTC One X] kholk:
Theoretically, the interactive governor at suspend is there exactly because it is making the chip to go in the highest LP state for consuming less power.

Have you tried to uninstall battery saver apps?

I can get more than a week from my One X in standby mode.... my battery goes down of ~2% every night (sleep mode.. me and the phone :P).
[HTC One X] timlambo:
Great work thus far again. The new kernel worked on Revonate 2.1 without the need for a repack. It worked fine at first but then later started to bug and get very slow. The soft touch buttons barely worked, only home for some reason. On another note, I flashed back to a different kernel in the meantime, but when I flash a different kernel the wifi keeps giving error. When you try to put it on it says error underneath the wifi. I have to reflash a rom again in order to get wifi to work again.
[HTC One X] kholk:
Nah, that's probably because the other kernel that you're flashing is missing his WiFi modules.

My kernel replaces all the modules, since it's all custom in there, while others are still using HTC's modules, and they're probably not re-copying all of the necessary ones.

About "started to bug and getting very slow" .... also strange issue, because I'm not experiencing anything like that.

Obviously, on hTC 1.29 stock.

Oh, anyway, thanks! :P
[HTC One X] dk_zero-cool:
On mine I get 2% loss over night (About 8 hours) using ondemand, and 10%-15% using interactive. This is not just with your kernel. I used Bricked a few weeks back and had the same problem. Battery would only last a day (12-14 hours). Using ondemand in both screen states, I can between 26-36 hours depending on my usage during the day.

I don't use battery saver apps of any kind. I have access to the hidden power saver settings, but that is build into the ROM that I am using (Charmandar).
[HTC One X] keertikumar_ws:
[KERNEL][USBHOST][24/06] EternityProject Kernel | 2.6.39 v0.92b | - | 3.4.0 v0.23 |

@kholk

I am using MIUI ROM and i couldnt get OTG to work properly.....I might be using faulty cable or hub...BTW I have some questions...

1.How to check whether host mode is trigered?? (Wil help me in finding whether the cable is faulty one)

2.In the video u mentioned about 'mounting manually'..so how can i mount the external storage manually??

3.is there any limit to the size of the external storage that can be mounted?? ( can i mount a 1TB external hard disk????? )

4.The drivers for the mouse or the external storage is it inbuilt..or should i get it from somewhere for the phone to recognize the mouse?

Another important observation ..once i try Host mode....the phone doesnt charge...have to restart to charge the phone...I guess this is expected..rite???

and it goes without saying..u r doing a excellent job...and thanks a lot for ur hard work... ;)
[HTC One X] kholk:
@dk_zero-cool

Very strange for me! Anyway, talking concretely of the problem, yeah, there's a way to maintain ondemand while sleeping, but that's by kernel configuration and also I should revert a lot of changes....

BUT

I can set the interactive limit to 108MHz, so that it won't consume power even if there's something preventing to go into the highest LP mode (forcing the CPU to go).

@keertikumar_ws

1. cat /proc/driver/fsl-tegra-udc

2. The command may vary, but I'm executing

mount -o remount,rw rootfs /
mkdir /mnt/pendrive
mount -t vfat /dev/block/sda1 /mnt/pendrive

3. Nah. You can surely use your 1TB HDD without any problem on there!

4. Built-in. You require only your cable and your devices will get automaGically recognized and hooked up to the built-in drivers.

Anyway, for testing your cable, I suggest to try with an USB mouse first: when it gets recognized, after a movement of your mouse, an arrow pointer will be shown on your display!

That's easier :P

About the charge...uhm...sometimes does, sometimes doesn't. I still haven't been digging in there but as soon as I'll solve the major problems that will be sorted too!
[HTC One X] DeeZZ_NuuZZ:
do you know if this cable http://www.ebay.de/itm/HDMI-Adapter-Kabel-MHL-fur-HTC-One-S-X-Rezound-Sensation-XE-XL-Flyer-Lenovo-S2-/261050174042?pt=DE_Handy_PDA_Kabel_Adapter&hash=item3cc7cd8a5a#ht_1949wt_1037 would work with the HOX ...i mean to charge and connect to a flatscreen at the same time....

yes its german but i'm to lazy to search an english one :D

---------- Post added at 12:41 PM ---------- Previous post was at 12:39 PM ----------

or can someone say me which cable with charge and connect with hdmi at the same time is good if this one is not good...
[HTC One X] kholk:
That's for the MHL functionality, not for USBHost!

Anyway, well... it should.... but even if I don't see any reason why that shouldn't work with the One X MHL, I can't give you a 100% sure reply.
[HTC One X] fredfb:
I'm also getting random reboots sometimes on v0.22

Tried to update to v.023 but the phone didnt boot O_o
[HTC One X] keertikumar_ws:
Hi kholk,

thanks for clarifying my doubts :)

one more doubt....The following setup has to trigger OTG mode and show OTG state as 9(A_HOST) rite ??

pendrive>OTG cable>phone .... i.e without hub and external power.

but in my case OTG state is still 10 (A_SUSPENDED)....and stays in it...i.e it doesnt charge ...till i restart..sometimes restart also hangs at 'restarting..'... btw i am using MIUI ROM... :)
[HTC One X] themono:
Is this downloadable without registering at the other forums?
[HTC One X] mattman83:
Nope

M.
[HTC One X] nonnotopo:
Hello, i would install this kernel on my device but i don't know how to do this passage "REPACK the kernel with your ROM's ramdisk". I use android revolution hd 7.1 and in my pc i have windows 7.

how i can do to resolve this problem?

Sorry for my bad english. thanks
[HTC One X] GuyAdams:
Use my thread, it has all the kernels repacked for ARHD:

http://xdaforums.com/showthread.php?t=1654982

Also just a pointer, if you had read the ARHD thread first post, you would have know that ;)
[HTC One X] kumanyang:
In Wi-Fi Hot Spot mode, there is no any wireless supplicants can get associated with OneX since the Kernel 3.4.0 v0.20. It may be caused by WLAN driver. The attached file is the logcat of a wireless supplicant tried to get associated with OneX.

Thanks for your great job. Hope it's getting better and better.
[HTC One X] IllUMINATUz:
Kohlk.. I have a news but I don't know whether its happened to anyone before or not.. but it happened to me.. just once and never again.. I was using my phone and I kept it on charge and was playing games while it charged.. I normally do that.. at that particular point

My phone was actually charged till 95 and I kept it on charge again so that I could reach 100..

Surprisingly the charge went down to 90 and was not charging. The battery status showed as discharging..

Now this really surprised me.. was there a low voltage and it was discharging..? Or was the battery being sucked out of my phone through the socket.. I have no idea.. sadly I got nothing to prove this.. but it happened... I as running stock kernel and stock sense rom then.. I wonder how it happened.. also there was a loose connection.. the charger won't sit perfect on the socket.. I think there might have been a short circuit also.. I don't know.. I am giving all the info I can and the scenario I was in.. so maybe this could help you in creating the USB otg devices to power itself from the phone rather use external power.. and yes it was discharging right through the USB port charger..
[HTC One X] zvieratko:
Same thing happend to me (and not only me), if you watch dmesg (use OS Monitor and filter the "BATT" tag) you can see that it sometimes takes longer time for the kernel to start charging - and quite often I've seen it not initiating charge for as long as 5 minutes (after which I replugged the charger and all was well). This happened to me on all ROMs, including stock, so there's clearly something wrong in the charging logic. I hope this can be fixed, it should be also possible to have the phone running from the charger if the battery overheats, but it is not implemented...
[HTC One X] sean.trinidade:
Did you check the battery temp? Sometimes when the battery gets too hot, it'll actually stop charging to allow the battery to cool down.
[HTC One X] IllUMINATUz:
Yes.. everything was good then..
[HTC One X] kholk:
I'm still working on other updates for stability and WiFi.

In the meanwhile, if you get high temperatures, try to shutdown your WiFi when you don't need it while playing with the phone: that helps wpa_supplicant to not consume CPU time! :)
[HTC One X] ORStoner:
Is v0.23 stable? If not, what is your most stable kernel with USB Host?
[HTC One X] kholk:
v0.22 seems to have less problems than v0.23, but v0.23 is more compatible with hTC Sense ROMs.

Anyway, after a pause for studying (had an exam this morning... :P ) I'm back on this. A probably huge update should come in some days.
[HTC One X] ORStoner:
I had an exam this morning too! Does v0.92b support USB Host in the way you described?
[HTC One X] nonnotopo:
Hello, i have a problem

the first time that i have installed this kernel everything went well, but now if i try to install again it the phone after the reboot remains locked in the lockscreen with the touch screen that it doesn't work. I have try to wipe all partition e reinstall the rom and kernel but it still does not work. How i can do?
[HTC One X] srashedian:
Hello;

Thanks kholk for your great kernel.

I've tested OTG with a simple mouse and it worked beautifully. However here are my issues, hopefully you or other friends working on project will find some time to help me:

<< I'm sure there are answers to my questions somewhere in the forum, but I can't find it, even a simple link containing my answers would be enough >>

1- Although my mouse works fine on USB OTG, when I connect my keyboard it just powers up for one second and then it will die (the keyboard I mean, it doesn't remain ON) so I can't use a keyboard there...

2- I saw in the how to movie that you mounted a pen drive, as I can't use any pen drive on OTG I think the problem is that. so how can I mount a pen drive in my phone, and with what file manager I can see the mounted drive (currently using ES file explorer)

Thanks in advance
[HTC One X] ORStoner:
I also have tested the OTG with a mouse, which worked perfectly. I Then tried to connect a keyboard also and it did the same thing as the other person.

I reversed thesetup instructions to disconnect it, and noticed that it could not be reconnected. In addition, it would not charge or connect to a computer. These problems were solved by restarting the phone.

After restarting, I tried the keyboard in replacement of the mouse and it worked.

I think the issue is that when it goes into host most, it gets stuck and only for the item connected at start. Perhaps you have a way around it that you could share? Or at least a way of turning host mode off so I can charge it.

Thanks,

ORStoner

ARHD 7.1.0 Eternity Project 3.4 v0.23
[HTC One X] ORStoner:
Phone also doesn't turn off (has to be done by holding Down and power as it just sticks on the HTC screen) and WiFi is always resetting. I'm not complaining, just letting you know.
[HTC One X] paris07121978:
Hello.I flash with commands and I have a bug.The WiFi all the time disconnects..
[HTC One X] themono:
OK - I'm not going to report it (because I'm not a ****) but the XDA rules specifically say you can't have offsite downloads that require registration, and stuff has been removed for that before...

EDIT: Please note I'm not accusing anyone of anything - I'm sure the dev is a great dev and isn't doing anything shady and isn't deliberately breaching the rules. Sorry if I sound paranoid but there's been some terrible XDA blowups in the past and I really don't want them again!
[HTC One X] Jhinta:
+1
[HTC One X] nonnotopo:
why when i install this kernel the phone is stuck on lock screen and the touch doesn't work?

i have used the Kernels & Modules for ARHD 7.x.x Series from http://xdaforums.com/showthread.php?t=1654982

I have do all wipe existents

even the factory reset from the recovery
[HTC One X] kholk:
Thanks for all the reports.

About the WiFi, we aren't relying on the old hTC hackish module, but a whole new opensource driver, modified with quirks for our hTC's hardware bugs.

It still isn't perfect and it still needs some code, but I'm not that far from fixing that properly.

The problem is, I'm working on kernel stability now and I think that's the most important thing to do, prior fixing completely other things: WiFi is anyway working and so is USBHost.

We need to re-reach a stable situation prior complete fixes, mostly because probably when I'll re-reach that stable situation, something will have to be changed in those things for them to work.. so it's almost stupid to fix and rework those drivers for re-fixing and re-reworking them some days later. At least IMHO.

I'm working hard for fixing all the problems relative to the 3.4 kernel, and as I said, prior someone to ask that, nope, it isn't possible to make USBHost to work on the 2.6.39 kernel without huge hacks.

I know that the 2.6.39 branch is the stablest one for now, but since we want new features, let's stick with the 3.4 branch: that'll get stable sooner or later (sooner rather than later, I'd say).

That said, thanks again for your reports and...

...getting back to work on the kernel! :)

The EternityProject Team Manager & Main Developer,

--kholk
[HTC One X] kholk:
The kernel is perfect from the log you've posted. There's something going wrong on your Android system :\

Perhaps, maybe we will discover something more with a logcat while booting!

Oh, thanks!!

Anyway, it's a long time without updates and well, at least, I want to update you all on the status.

I've updated a lot of things in the kernel, so, as said, the next version will contain an HUGE upgrade. After a LONG test, I can confirm that for me that next version is perfectly stable, but prior releasing it, there's an issue to solve.

I've broken the bluetooth layer with all the stability and performance updates.. and I don't think it is convenient to publish the next version as it is.

As soon as I'll solve the bluetooth problem, the next version will be uploaded.

The EternityProject Team Manager & Main Developer,

--kholk
[HTC One X] Ultravore:
Is there any way to give you a log of the boot?

What I gave you is only a log of the boot into recovery, right?

If there is anything I can do to help, please tell me :)
[HTC One X] kholk:
Eh yup... probably it was....

Anyway, I'd say, let's wait for the next version prior trying anything else.

The next one will fix so much little unnoticeable bugs.... and that may automaGically fix the issues that are making that ROM to not boot on there!

EDIT, 01/07 12.43:

V0.24 has been released!

That changes the whole game, probably ;)

Enjoy!
[HTC One X] Jhinta:
please use a correct adb.exe getting server out of date erro's
[HTC One X] kholk:
I'm using the latest available from Android repositories.
[HTC One X] starbase64:
Hi,

i've no gsm and no usb host with 0.24 :(

...but wifi works.

cheers

starbase64
[HTC One X] kholk:
What?!?

Which ROM are you using? lol
[HTC One X] starbase64:
CM9 by tbalden > http://xdaforums.com/showthread.php?t=1706001

Radio: 2.1204.119.17

cheers

starbase64
[HTC One X] kholk:
Have you repacked it?

No problem here on hTC stock 1.29, radio 1.1204.105.14
[HTC One X] kholk:
What the f.... :D

...is happening with all those ROMs?

I'll install that ROM and see what's happening as soon as possible.

In the meanwhile, I can confirm that with the ROM that I'm using everything works wonderfully and flawlessly.
[HTC One X] mdeejay:
we using 2.05 blobs.
[HTC One X] LorD ClockaN:
Yep... New kernel source is needed from htc.. It looks like it

Sent from One X supercharged with AOKP
[HTC One X] mdeejay:
i think htc skip 2.05 and 4.0.4 and jump to 4.1...

so... new source out not soon :D
[HTC One X] LorD ClockaN:
that will be too good and easy for us.. I don't think so :D
[HTC One X] kholk:
Eh guys... unfortunately, I'm still not god :P

Please, use the kernel on compatible libs, not coming from 2.05 :\

I always try to do my best... but I really can do nothing for that until hTC posts the 2.05 kernel changes :(
[HTC One X] n3ocort3x:
@ kholk

Kernel 3.4 works fine here... im on slim ics 4.2 (wich also uses the better gps blops)...

I tested following:

GPS: First lock in 10 secs (!!!) thats pretty awesome but the best thing now: indoor with 7 satellites... i saw this only one time... and that was on a sense rom...xD

WIFI & GSM & HSDPA & 3G >> works

Governors: On demand governor goes back to 1500 / 102 MHz when screen is turned off / on again !

Interactive governor stays with core0 on the frequency you adjust, it wont go under it. Example: adjust max. 1,2 GHz, core0 goes not under it and stays wich result in heavy battery drain.

RAM Usage: normally when I boot a 2.6 Kernel, i´ve got 500 MB free RAM, here it is about 350 MB free...

USB: adb, fastboot, usb Mass storage >> works

really nice work !