yashsingh1/xdaforums huggingface dataset:
[HTC Desire S] amidabuddha:
Hey guys can you check how much space do you have on /system before the install? Maybe this is your problem - insufficient space to copy all the required files (Stable version requires about 360 KB, but the Experimental needs about 4 MB (and the same is used for Virtuous and Sense4))

EDIT: ok I will not bother you with more questions, downloading MIUI now (it has the same install config as Stock) and will test it myself
[HTC Desire S] blueboy2021:
Hi, i have the same problems with the experimental version for official miui roms. My device is s-off.

I installed busybox, how you describe but does not help.

But very nice work, man !
[HTC Desire S] toxic-hero:
93MB free on /system
[HTC Desire S] ben_pyett:
What do you think about the sweep2wake feature?

I like it, but also would like the option to be able disable it - is there any chance it could turn off and on'able from within the ROM?

Otherwise provide an option with and without the feature. Sorry I appreciate that this means twice the work....but you did ask! :D
[HTC Desire S] old.splatterhand:
I also think this would the best (nicest :D) way... :angel:
[HTC Desire S] dan-fish:
Have any of you tried this?

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

I'm on Andromadus at the moment so can't test plus I'm quite a fan of the s2w feature.
[HTC Desire S] leimrey:
I followed the instruction for htcdev users.

Flashed the boot.img in bootloader

Fastboot flash boot boot.img

Copied modules from archive (bcm4329.ko / kineto_gan.ko) to system/lib/modules

Changed screenshot framework on build.prop to false

My wifi is error. I wonder what went wrong?
[HTC Desire S] lowrider82:
Damn, not working with miui V4?Isn't there any way to make it work? I want to have OC 1.5ghz with miui v4 :(
[HTC Desire S] Spazz Monk3y:
Yeah just tried it. Only works on supported kernels at the mo so it doesn't work.
[HTC Desire S] amidabuddha:
The author of this feature provides a so called switch to activate/disable from a command line in a booted system. Unfortunately it is for another touchscreen driver and my attempts to port it to ours resulted in a bootloop.

The app in this link uses this switch.

At this point to provide the same kernel without s2w is very easy because the OC setup is there by default it just has to be enabled. If someone wants to compile one just PM me and I will give him the patched code. It is basically few lines. Most of the code was for the s2w

But for the next version I am planning quite some changes and supporting two versions will take some time and double work. Honestly I am a fan of s2w since it is not affecting the battery life on my setup (I am not sure where this myth came from), the device goes in deep sleep and lowest frequency immediately after locking the screen. Moreover I am sure that soon most of the popular Sense 4 ROMs such as Fallout and Virtuous Infinity will have their own tweaked kernels so it is not worthed the efforts. My goal is to provide something useful quick until this happens and I will stick to the winner result from the poll. I hope you understand

Please check the permissions of the modeles (-rw-r--r--) and flash the boot.img again - a user with similar case reported this as solution

please upload the boot.img form the official MIUI and I will make a test version
[HTC Desire S] glacier1122:
sense 3.6?

??

?
[HTC Desire S] MarlX:
I read in a post here that wifi is not working in 4.3 (other post also says that it is working in 4.1) and you have to manually push the files in order to work. That makes me decide to stay away. lol

Sent from my HTC Desire S
[HTC Desire S] king_josh60:
I can't lower my clocking level,I tried using ROM toolbox and apply on boot but it still keeps going to the maximum of 1.5GHz. I wanted the max to be 1.2 and min to be 300mhz but both keep going to 1.5
[HTC Desire S] kalvin807:
What is the battery drainage after using this kernel?
[HTC Desire S] Googley35:
On Nik Project X, the battery drainage is the same with this kernel
[HTC Desire S] lowrider82:
Hi, boot.img attached! Thanks for this!
[HTC Desire S] leimrey:
Sir Amidabuddha Thank you! Wifi works now.

Flash the boot.img, copy modules (-rw-r--r--) permission, restart DS.

So now, if i s2w it enables automatically OC 1.5Ghz?

*edit*

I used antutu set cpu. Works like a charm!
[HTC Desire S] amidabuddha:
Glad that you did it :)

And s2w and OC are not related to each other. To control the frequency use some app from the Market.

Sent from my HTC Desire S
[HTC Desire S] amidabuddha:
I am using SetCPU and works fine here. After reboot the freqs are ones that are set in the app. So probably it is an issue of ROM Toolbox. Try some other CPU control application

Sent from my HTC Desire S
[HTC Desire S] leimrey:
I tried the antutu cpu master.

Its 3990(OC) from 2980 (w/o OC)

Thanks sir! :good:
[HTC Desire S] amidabuddha:
Try the attached file

As a sidenote - the file you gave me is not the OFFICIAL kernel for MIUI v4. I guess you have flashed some ported version, not going through the Official Installation Guide (that includes firmware flashing).

So the warning still applies: DO NOT use this kernel on the OFFICIAL MIUI v4, it will not boot!
[HTC Desire S] vagiff:
OFFICIAL kernel for MIUI v4

OFFICIAL kernel for MIUI v4
[HTC Desire S] amidabuddha:
Flash the attachment if works I will add it to the OP
[HTC Desire S] jos3ang3l:
Ooppss playing games I get lag and the phone freezes!! Im using the same oc/ov than 7.1 and with it all run perfect. I dont understand it :confused:

Edit: was my fault, I was installing all the modules, now after reinstall only with kineto_Gan and zram, it runs like a ferrari :cool:
[HTC Desire S] holvoetn:
FWIW I have 12 meg free after install
[HTC Desire S] amidabuddha:
Ok I got the issue. There is some kind of permission problem.

I am typing this from

MIUIv4 with Experimental kernel, but after install I got no WiFi too.

The solution was to copy all the files from /bcmdhd/system/etc/firmware and /bcmdhd/system/etc/unit.d manually from the zip to the device and set permissions 644 for the firmware files and 750 for the unit.d files.

The files were there but all of them had size of 0. No idea why I will try to figure this out

Sent from my HTC Desire S
[HTC Desire S] MarlX:
Can't disable sweep2wake? I'm on S-OFF ICE-DS. I already chose to disable it in the installer but it still working after install. Tried to open (-so I can edit) 50-s2wD file and it says "File Open Error".
[HTC Desire S] SamePaul:
I have character encoding problem with CIFS.

If I create file on PC with non-english letters, then on phone it looks like ?????.txt

However if I create file from phone via CIFS, then files is shown correctly on the phone itself:

But not on the Windows!

When I look at same folder from Win XP, then I see the following:

Obviously somehow file name got converted to UTF8 and then to Windows Unicode.

I know for sure this should work, because I use CIFS for long time and didn't encounter such problem on earlier ROMs (prior to 4.0).

I tried to play with "mount" settings of CIFS, but currently without any success.

Any idea what can be done? Is it problem with CIFS itself or with my ROM?
[HTC Desire S] bayusuputra:
Hi, I am on MIUI latest build (2.9.29) and seems that there is a little problem with the s2w function.

It's fine waking the device from sleep with the function, but it's rather hard to turn it to sleep.. I have to sweep a few times to get it right. There was no problem before when I was using the 7.1.

But thanks a lot, man! awesome job!
[HTC Desire S] holvoetn:
The issue is back for me.

Your workaround did not help.

Is it safe to assume this problem is therefor also applicable to Virtuous Infinity beta 1 ?
[HTC Desire S] amidabuddha:
@SamePaul

You need NTFS module too. It will install NLS_UTF8, that will provide the proper encoding

@ bayusuputra

See do you have ro.htc.framework.screencapture line in /system/build.prop and if it is true change it to false. If not add it

@toxic-hero, @MarlX, @halvoetn

Download the attachment fix_perm.zip (it is not a flashable zip!) from the first post, extract it in the folder on your PC, where your adb is, connect the device and double click the fix_perm.bat file. After the script finishes the device will reboot. Disconnect it from the PC and test if it is working properly now.
[HTC Desire S] xxmarkosxx:
Miui 2.9.29 with experimental and i can say that i have working wifi (i updated from v.5)
[HTC Desire S] SamePaul:
In fact I did it already:

root@android:/system/lib/modules # ls -l
ls -l
-rw-r--r-- root root 557116 2008-08-01 15:00 bcmdhd.ko
-rw-r--r-- root root 2531596 2008-08-01 15:00 cfg80211.ko
-rw-r--r-- root root 3118416 2012-10-02 02:14 cifs.ko
-rw-r--r-- root root 29536 2012-10-02 02:14 nls_utf8.ko
-rw-r--r-- root root 2262132 2012-10-02 02:14 ntfs.ko
-rw-r--r-- root root 218212 2012-10-02 02:14 zram.ko
root@android:/system/lib/modules # lsmod
lsmod
bcmdhd 414351 0 - Live 0xbf0ba000
cfg80211 143929 1 bcmdhd, Live 0xbf089000
[B]nls_utf8 1002 0 - Live 0xbf085000
ntfs 207783 0 - Live 0xbf049000[/B]
cifs 223013 2 - Live 0xbf007000
zram 8746 1 - Live 0xbf000000 (C)
[HTC Desire S] amidabuddha:
I think your app is outdated. I just did the same as you described in your previous post with Solid Explorer Beta2, even without any of the modules (cifs, ntfs and nls_utf8) and after that with them. The file name was readable both on the device and PC (Cyrillic проба.txt) I am using Windows 8, but I do not think it matters since you had it working before...
[HTC Desire S] bayusuputra:
Yep, that solves the problem.. stupid me for not realising that line earlier.. Thanks a lot! Running great now..
[HTC Desire S] TatoValverde:
My Bluetooth isnt working, but I'd never tried it before, since I bought my Bluetooth headset today. I'm on fallout v5 and last tweaked 8 kernel, s-off, radio 20.71.30.0833U_3831.17.00.16_M

It turns on, but I cant detect any nearby devices, and neither can they detect me.

Any ideas? Does it have anything to do with any of the kernel's modules? Is it working for everybody else? :confused: Thanks!
[HTC Desire S] amidabuddha:
There was a similar case for an earlier version. The guy changed his recovery from CWM to 4EXT and it worked

EDIT: I am on Fallout 5 too, but with the latest radio from ICS RUU. Kernel installed by Aroma installer, Bluetooth is pairing, sending and receiving files. Are you sure that your device is visible?

Sent from my HTC Desire S
[HTC Desire S] palej:
Does anybody has problems with mobile internet? On previous kernel I had no problems. Now EDGE connecting and in few seconds shut down, and this happens continuously. I restored to defaults APN settings, but it doesn't helps.
[HTC Desire S] toxic-hero:
i ren your script via ADB, it rebooted my phone, but somehow didn't solve the problem (the files in those two folders were stil 0 bytes). so i copied them myself, changed permissions and rebooted. wifi works now!!! :) BIG THANKS!

another thing:

while in /system/etc/init.d i realised that all other files (51-zram, 52-cifs, 54-ntfs, 55-tun...) were also 0 bytes. does that mean that your optional modules also don't work? will they work if i copy those files manualy from the .zip of your kernel and change their permissions?
[HTC Desire S] amidabuddha:
Yes

I still have no idea about these 0 size files, looked through the installation script all is fine, in fact it is the same as it was in the zips of v7.1 but with options. And the fact that the same script works fine on Fallout makes me think that some ROMe have different permission requirements.

Anyway I am glad that you made your WiFi working

Sent from my HTC Desire S
[HTC Desire S] blueboy2021:
So I must do this after I installed the kernel?

Gesendet von meinem Transformer TF101
[HTC Desire S] miz_pimp:
In case anyone was wondering, the native screenshot feature works perfectly on Virtuous Infinity Beta 1, with sweep2wake enabled. Also, sweeping from the Search key to Home takes a screenshot as well :D :thumbup:

Sent from my HTC Desire S
[HTC Desire S] holvoetn:
I don't have my USB cable with me right now but I sort of did this this morning using ES Explorer (root mode).

Files mentioned were not 0 size (I did copy them over just to be sure), some had wrong permissions even after the copy which I corrected.

Still no dice after a reboot.

Will try again this evening at home when I am connected with a cable.
[HTC Desire S] amidabuddha:
According to my experience ES does not work good with such stuff. That is why I always recommend Solid Explorer - it never failed me. And you can change the owner of the file with it too (which has to be 0: root, 2000: shell for init.d scripts)
[HTC Desire S] holvoetn:
Finally got home, here is what I found.

bcm4329.ko was totally missing from /system/lib/modules/ !

I copied it over from the zip file and adjusted permissions but still no luck.

There must be something else missing.
[HTC Desire S] dabado:
Had some issues with busy box, after activating all permissions it works as it should. Don't know if anyone else has experienced this.

Fallout v5, kernel flashed with cache & dalvik wipe

Sent from my HTC Desire S
[HTC Desire S] teadrinker:
Are you using stable for sense 3.6 / miui? If you're using a different version, you should not have bcm4329.ko in modules.
[HTC Desire S] TatoValverde:
It finally works! :victory:

I was visible for sure.

I had to change recovery, and then flash again not only the kernel (tried but didn't work), I had to flash the rom again (previous cache+dalvik wipe) and then the kernel. Now it works perfect!
[HTC Desire S] holvoetn:
Virtuous Infinity Beta 1.
[HTC Desire S] dont know:
8.0 on Fallout.

Everything (cifs, ntfs, wifi) works.

Thanks..
[HTC Desire S] amidabuddha:
bcmdhd.ko is the module for Sense 4 (cfg80211.ko is also necessary for WiFi to work). Make sure that the init.d script 56-wifi has the right permissions (make them the same as the other scripts in this folder), then it will work
[HTC Desire S] blueboy2021:
Sorry, but i don't understand how I get my wifi work on miui v4? I try to use the experimental kernel, my phone is s-off.

Gesendet von meinem Transformer TF101
[HTC Desire S] SamePaul:
I don't understand. What app you are talking about?

Also, how you "did the same"? Did you mount share via CifsManager or you use built-in support of Solid Explorer for SMB? If the latter then it has nothing to do with CIFS and with my question.

And I am talking specifically about CIFS.
[HTC Desire S] holvoetn:
As sorry as I am to have to say this, but no.

I even tried REINSTALLING Tweaked3_8.0.zip, bcm4329.ko is gone now.

But still no luck.

Permissions are the same already, still no wifi.

c:\Android\Onex-tools\Data>adb shell ls -l /system/etc/init.d
adb server is out of date. killing...
* daemon started successfully *
-rwxr-x--- root shell 457 2008-08-01 14:00 05-virtuous-load_kernel_modules
-rwxr-x--- root shell 1171 2008-08-01 14:00 10-virtuous-optimize_performance
-rwxr-x--- root shell 2388 2008-08-01 14:00 20-virtuous-package_manager
-rwxr-x--- root shell 157 2012-10-02 23:08 50-s2wE
-rwxr-x--- root shell 108 2008-08-01 14:00 56-wifi
-rwxr-x--- root shell 1177 2008-08-01 14:00 90-battery-calibration
-rwxr-x--- root shell 735 2008-08-01 14:00 90-virtuous-run_once

How come most of the files have a datestamp 2008-08-01 14:00 ?
[HTC Desire S] SamePaul:
What is your HBOOT version?

Can you please copy-paste results of "adb shell mount"?
[HTC Desire S] amidabuddha:
Yes I have done "the same" using much easier way if this is your problem.

As for the rest is seems like you are deep into the stuff so you can figure it out yourself. Now please stop filling the thread with your issue that nobody else has. Thanks

EDIT: seeing you post of 10:53 PM I will add one more thing: I have ENABLED CIFS support in the kernel. I never said I use it or even need it. I have confirmation from other users that it is working fine. If this is not your case go to StackOverflow of else where a DEVELOPING of kernel code is discussed, not compiling from a ready-to-use source. Thanks again
[HTC Desire S] SamePaul:
More clarification about CIFS

As I mentioned earlier, I tried to play with mount settings and I noticed the following.

If I issue this command

mount -t cifs -o username=myuser,password=mypassword,[B]iocharset=utf8[/B],file_mode=0777,dir_mode=0777 //192.168.2.100/apps /mnt/cifs/apps

I get this error

[1] + Segmentation fault mount -t cifs -o username=myuser,password=mypas

And CIFS is not mounted at all.

But if I omit iocharset=utf8 option (or specify iocharset=iso8859-1) then share is mounted, however Cyrillic names get garbled...
[HTC Desire S] amidabuddha:
See the permissions of the firmware files in /system/etc/firmware
[HTC Desire S] SamePaul:
It is not simpler way. it is just other way. Unfortunately not every app supports SMB shares. In fact, almost no android application (except file managers) support it natively.

But shares mounted with CIFS are supported by any app, so I can read books or hear music or watch movies from my file server without copying them to my phone.

Anyway, if you're not willing to dig into this - fine. I'm definitely not about forcing anyone to do what they don't want to do ;)

Sorry for taking your time.
[HTC Desire S] amidabuddha:
@SamePaul

Please accept my apologies for my stupid reply, I am just very confused with this permission issues. Have you tried without the nls_utf8 module loaded?

@holvoetn

type in adb shell:

insmod /system/lib/modules/cfg80211.ko
insmod /system/lib/modules/bcmdhd.ko
[HTC Desire S] holvoetn:
You sir, are a GENIUS !

It works now !

How come those modules did not get loaded the first time ?

Is this something I need to do each time now after each reboot ?

Thank you a million times !

EDIT: I think I see ... that 56-wifi file did not get executed, correct ?

Why would that be ?
[HTC Desire S] amidabuddha:
This commands should be executed by the 56-wifi init.d script on every boot. Please reboot now and see are they work. If not reinstall busybox in /system/xbin (try different apps from Google Play until it works)
[HTC Desire S] holvoetn:
oTeMpLo was kind enough to send me PM concerning my issue.

He also suggested something was amiss with the execution of 56-wifi.

Additionally he asked me to check run-parts link in /system/xbin.

Link was there.

Installed another busybox installer, same check, same result.

But this time it works after a reboot.

Go figure !

FWIW I now installed BusyBox Installer from JRummy Apps Inc.

Previously I was using BusyBox from Stephen (Stericson)

Thanks once again for the assistance (also to oTeMpLo and SamePaul).

Maybe a known-to-work busybox version is something to include in the installer build ?
[HTC Desire S] amidabuddha:
I was thinking about this but there is so such:cyclops:

For example I have always used the one by Stericsson. Some users with Stock ICS (and now you) report the one from JRummy working. Titanium backup also installs Busybox...

The main problem for me that there are many different configurations. From file point of view (as boot.img and the rest in the installation package) there are the same for all ROMs (only ramdisk differs) and work on the same principle. But some do not have init.d folder at all, other have it with different permissions of the files inside (this is the reason that I am not setting this in the install script). In general mostly the new users can have issues, because the ones that upgrade from a previous versions already have the required stuff. But there are also different recoveries, different version (or none) of busybox, etc that prevents me from creating an entirely unified zip.

Fortunately from about 900 downloads up to now I have not more than 20 complaints so I can assume that the installer works for the majority. And for the rest I am trying to do my best to solve their problems (sometimes not so hard as the SamePaul's case, but I am a human too, so please keep this in mind ;))
[HTC Desire S] teadrinker:
The installer has worked perfectly every time for me, on stock ICS, fallout, ice_ds... :thumbup:
[HTC Desire S] fireblade:
I don't want to write a useless 'thank you' post but I feel like I must say I'm either lucky or your instructions in the OP always guided me through a perfect install of every version of your kernel. I never had any issue at all.
[HTC Desire S] hoactaithien:
Please make this excellent kernel boot in device Glacier (Mytouch 4G).:crying:

i attached boot.img of Glacier (Mytouch 4G) for you.
[HTC Desire S] Metallurgico:
There's a problem with Virtuous Infinity Beta 1

If you check ZRAM module, ROM won't boot. I didn't tried other modules.

Revolutionary S-OFF, correct zips, clean installation of Virtuous Infinity Beta 1.
[HTC Desire S] amidabuddha:
Checking zram only copies the module and init.d script. There is no relation to the boot process. Are you flashing it immediately after the ROM install? You have to boot to the ROM, make the setup steps and flash the kernel afterwards

Sent from my HTC Desire S
[HTC Desire S] Metallurgico:
I've tried both immediately and after restart.

By the way I realised that Wi-Fi isn't working, so I'm following the steps found on previous posts, maybe that's why ZRAM isn't working too.
[HTC Desire S] Metallurgico:
I've done a back-up before messing with kernels and system files so I followed exactly those steps from a working Virtuous Infinity Beta 1 ROM:

- installed latest busybox and symlink via app

- adb remount

- adb shell

- mkdir /system/etc/init.d

- chmod 755 /system/etc/init.d

- chown 0.2000 /system/etc/init.d

- reboot to ROM

- reboot to recovery

- installed v8 for Virtuous (w/o modules)

- reboot and no Wi-Fi

- I saw that: bcmdhd.ko was in modules folder and 56-wifi has permissions set to rwxr-x-- as other files in init.d folder

- I run anyway the fix_pem.bat file

- automatical reboot and still no Wi-Fi

- I found that cfg80211.ko file was missing in modules folder. The problem was that I had 4KB left in system partition. I deleted unused keyboards for some MB and I copied cfg80211.ko file.

- reboot and still no Wi-Fi

- adb shell

- insmod /system/lib/modules/cfg80211.ko

- insmod /system/lib/modules/bcmdhd.ko

- with this last command i get this error

insmod: '/system/lib/modules/bcmdhd.ko' failed <Exec format error>

even if I give all kind of permission to this file. What is wrong?
[HTC Desire S] teadrinker:
Have you tried copying bcmdhd.ko again after freeing up space on /system? Maybe before it only wrote part of the file.

Edit: in fact, who knows what all didn't get written, try running the installer again, with enough space in /system. No need for any wipes or anything, just reflash the kernel.
[HTC Desire S] amidabuddha:
For Virtuous you do not have to update busybox and create unit.d folder. Just flash over a fresh install and make sure to have about 6 MB free space on /system

Sent from my HTC Desire S
[HTC Desire S] Metallurgico:
You were perfectly right!

It worked like a charm after i erased 15 MB.

Thanks guys!
[HTC Desire S] TeddyOFLove:
Dont know if its becouse of new Sweep2wake with backlitghs, but for some reason it is very unresponsive while trying to lock the screen. Using Cooldroid Rev7
[HTC Desire S] amidabuddha:
Check the screencapture line in build.prop

Sent from my HTC Desire S
[HTC Desire S] TeddyOFLove:
Lol why do i have 2 build prop files one wih permissions set to rw-r--r-- and second to rw-rw-rw-. Its probably becouse of nearbutter project but which one do i delete?
[HTC Desire S] amidabuddha:
Haha did not expected this :)

Better remove both and paste the original for your ROM (do not forget about the screencapture line - it has to be false)

Sent from my HTC Desire S
[HTC Desire S] TeddyOFLove:
found it, changed it to false -it was true and gues what. It still takes a screenshot when i sweep to lock :good:
[HTC Desire S] amidabuddha:
You have to reboot I guess

Sent from my HTC Desire S