[Xoom Android Development] flar2:
Custom kernel for the Motorola Xoom

LATEST RELEASE: ElementalX-Xoom-2.1 (December 10, 2013)

* Standard disclaimer:
* Your warranty is now void. Use at your own risk.
* In other words: It is your choice to use this software,
* I am not responsible for any damage or problems!

Thanks:

dreamcwli for initial kernel source

TDR, kcrudup, bigrushdog and everyone else who came before me

​

NOTES:

Compatibility

Works on all Xoom models: wingray, stingray and everest. As of version 1.0, it should work on any ROM. I have tested it on EOS4, My Android, CM10.1, CM10, Baked BB8 and Orca. It should work on others, including Android 4.3

Versions

The vanilla version does not overclock the graphics. I recommend using the regular version unless you are specifically having issues due to the overclocked graphics.

Configuration

The config file is located at /etc/elementalx.conf. You can edit this file to change kernel settings. Whatever is set in this file will take effect when the device is booted. A log file is stored at /data/local/tmp/elementalx.log

Sweep2Wake

I totally revamped sweep2wake. To put the screen to sleep, you now have to swipe along the edges. You can swipe anywhere to turn the screen on. There is a new option for sweep2sleep only.

0=disabled

1=sweep2wake/sweep2sleep (default)

2=sweep2sleep only

/sys/android_touch/sweep2wake

There is also an option called shortsweep (enabled by default) so you don't have to sweep all the way across the screen. You can turn the shortsweep option off.

0=disabled

1=enabled (default)

/sys/android_touch/shortsweep

Doubletap2wake

Doubletap2wake is another new feature. You can turn the screen on by double tapping anywhere on the screen.

0=disabled

1=enabled (default)

/sys/android_touch/doubletap2wake

If you are one of those with sleep of death from sweep2wake, you might want to try sweep2sleep only and doubletap2wake disabled. Then you can still sweep your screen to sleep, but the touch driver acts completely as stock during suspend.

All these options can be changed in /etc/elementalx.conf so they are automatically set at boot.

zRam

zRam creates a compressed block device in RAM that is used as swap. Although it claims some of your RAM as swap, everything written to swap is compressed. This increases the apparent memory available to the system and helps with multitasking. Swap files on disk are very slow, but with zRam the swap is on RAM so it can be read as quickly as regular memory. Even though the data need to be decompressed, modern CPUs can decompress quicker than if it had to be to read from disk. The penalty is cpu usage, which could drain battery; however, this is likely negligable in daily use. I didn't enable this by default because not everyone will want it. This is for heavy multitaskers and will allow you to quickly switch between more apps and have more tabs open in your browser without refreshes.

zRam is disabled by default. If you want to enable it, edit /etc/elementalx.conf

change ZRAM=0 to ZRAM=1 and reboot.

You can check if zRam is working by typing the command "free" into the terminal. You should see the total used and free swap. If these are all 0, then zRam is not enabled.

Governors

Intellidemand is the recommended governor, but there are several to choose from. If your ROM has performance settings, check that your desired governor selected.

Max Screen Off Frequency

You can toggle max screen off and change the max screen off frequency by editing /etc/elementalx.conf.

If you want to edit the settings directly, the sysfs entries are at /sys/devices/system/cpu/cpu0/cpufreq/screen_off_max_enabled and /sys/devices/system/cpu/cpu0/cpufreq/screen_off_max_freq

Editing those files doesn't persist after a reboot, if you want the setting to persist, edit /etc/elementalx.conf

If you have instability or reboots while the screen is off, disable max screen off frequency.

exFAT support

There is also optional support for the exFAT filesystem. A module has to be loaded for it to work, it is not loaded by default. The option to load it at boot is in /etc/elementalx.conf

Source:

ElementalX-Xoom

sweep2wake patch: http://goo.gl/ImX9v

.