[PORT] Ubuntu 13.04 Alpha (very) - Other TouchPad Development

Ubuntu 13.04 Alpha for HP Touchpad
*working sound (I think you will like the volume button sounds)
*working wifi powered on at startup
*working bluetooth powered on at startup
*working 5 finger gestures with touchegg
*DeLorean Dark Theme
*custom Kernel+Modules for Wine+Qemu Add-on?
*Did I mention Wine Add-on? To play solitaire and space cadet pinball. They are in Applications Other..
*SquashFS Added
*A bunch of hacks.. they removed /etc/fstab and if you try to add an entry like I did then udev won't boot! I used the /etc/init.d/audiod_srv file to mount what I wanted.
*Freedreno latest with Mesa (THANK YOU ROB CLARK AND JCSULLINS, Calc1Programmer, BodenM, castrwilliam, Mystikal57!)
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
You will need the Kernel that comes with it.
If you want to run wine x86 with qemu.. Simply put the wine.sqsh file on your sdcard when you boot.
I did that to save space.. and so people can toggle back and forth. I originally had wine merged into the filesystem but now everything symbolically links to /usr/gnemul. That is my other "fun" project. Wine 1.5.23 with Qemu 0.14.1 with NPTL patch. Barely runs. http://wiki.winehq.org/ARM x86 per Qemu.
Links....
http://www.gdriveurl.com/?idl=913607779492&out=2 4GBUbuntuInstallSystem13Alpha.sh
http://www.gdriveurl.com/?idl=913607779509&out=2 Rootfs.tar.gz
http://www.gdriveurl.com/?idl=713607779506&out=2 uImage.Ubuntu13
http://www.gdriveurl.com/?idl=913607779518&out=2 wine.sqsh
This is a link to the original thread that started it.
http://forum.xda-developers.com/showthread.php?t=1304475 By BodenM
To Install:
Become familiar with the Ubuntu on HP Touchpad project. Try other builds.. 11.10, 12.10 if you feel the need. Read the 87 page thread above. You need to have a 4GB Partition created for ubuntu to be installed on before hand. This is a branch of an ongoing project.
http://code.google.com/p/hp-touchpad-ubuntu/wiki/Installation
Step 6 ends with you about to extract the file on the sdcard to the ubuntu partition. That is what you need to be familiar with.
Be handy with Novacom. That is a way to get root access to the touchpad in webos.. There are a TON of sites that cover this. Google it.
Do this in novacom.. you should have a bash shell with root at /media/internal
Place Rootfs.tar.gz and wine.sqsh and 4GBUbuntuInstallSystem13Alpha.sh and uImage.Ubuntu13 on the sdcard. You WILL need to replace the Kernel to run wine. If you don't and want to use your own kernel, then you MUST replace the modules. If you run your kernel with my modules you MIGHT get a reboot when using a lot of bandwidth over wifi. If I ftp'd a file over wifi, it would crash. I had to recompile ath6k to get around that. That is what happens 100% of the time if I use my kernel with the standard modules that we have been playing with. It's because my kernel is compiled with VMSPLIT-3G and it affects ath6k unless it gets recompiled along with the kernel.
TO INSTALL KERNEL
mount -o remount,rw /boot
cp /media/internal/uImage.Ubuntu13 /boot/uImage.Ubuntu
mount -o remount,ro /boot
sync
TO INSTALL FILE SYSTEM
sh /media/internal/4GBUbuntuInstallSystem13Alpha.sh
when it's done you should have it.
PROBLEMS YOU MAY ENCOUNTER:
Touchscreen may stop responding. If it does do a 5 finger tap to verify that. You may need to do it a couple of times. That seems to help. 5 finger tap is like pressing the start\windows key on your keyboard.
I added 3 startup programs
1. Touchegg
2. Sound enable unmuting at login
3. Bluetooth enable at login
Touchegg can be removed by just going to startup applications and removing it. That will go back to single touch. Check out the gestures and the onscreen keyboard. Hold down on a mouse key and then click on an icon. It should work. Easier to resize the keyboard.
DOUBLE CLICKING WITH TOUCHEGG
You can two finger click for a double, use the onscreen keyboard.. or do a fast double to triple tap.. It is odd.. Somethings can't be double clicked very easily and some can....Maybe you guys can help with that? Maybe its a 13.04 Alpha thing.
THREE FINGER SWIPE UP AND DOWN MAXIMIZES AND MINIMIZES.
It's alpha.. No, really.
http://cdimage.ubuntu.com/daily-live/current/
http://cdimage.ubuntu.com/daily-live...rmhf+omap4.img

Amazing !
Very happy for multi touch and freedreno !
Could you share kernel sources on github please ? If we made any modifications, it could be good to have the same kernel's base :good:
Keep up the good work

<--Ubunutu newb. How do I change the font color? I can't read anything when searching Software Center.

mdleal said:
<--Ubunutu newb. How do I change the font color? I can't read anything when searching Software Center.
Click to expand...
Click to collapse
TweakTool doesn't work... You have to go to dconf editor.. Go to like org, desktop, interface.. you can change themes and stuff like that.

Mystikal57 said:
Amazing !
Very happy for multi touch and freedreno !
Could you share kernel sources on github please ? If we made any modifications, it could be good to have the same kernel's base :good:
Keep up the good work
Click to expand...
Click to collapse
Thanks! No problem will soon.. All I did was change 3 things in the config file.. 2 for wine and 1 for squashfs. The kernel is from CyanogenMod. I will also post the freedreno sources.. BodenM also has them available.. The kernel.. It just doesn't have the 2 changes for wine.. We could run wine 0.9.x and keep the kernels that we have.. But that is less fun.
EDIT! I added you to the thank you list! I knew you sounded familiar! Thanks for the sound! GREAT JOB! Seriously.. I saw how you are doing it.. That is ingenious, using webOS for sound.

links dead
links dead:crying:

WTH
Why did the links die.. Don't tell me Google Drive changes the links... That would suck.

Unfortunately the OP appears to have based this on my 12.10 beta1, not my 12.10 final. I'm making an overlay tarchive that will fix most of the bugs, along with a few I didn't encounter on my release.
Bugs which will be fixed:
SDcard is mounted with incorrect uid/umask (Downloads aren't writable, etc.)
PulseAudio crashes in middle of long outputs (like music) - This requires the disablement of PulseAudio. Sorry, no OSX-like volume sounds.
No kexec capable kernel.
/dev/mmcblk0p13 is mounted on top of existing files in /boot, making it difficult to install kexec kernel.
No swap or zram.
Most init scripts are in obsolete /etc/init.d format.
Major remaining bug: Freedreno won't support EXA. We need an EXPERIENCED kernel CODER (not me) to fix our kernel by PROPERLY backporting KGSL from Kernel 3.0.8 to 2.6.35. I don't see any other solution, because I don't think the person who is workiing on Freedreno wants to backport their driver.
Soon-to-be-added feature: Automount of other OS's filesystems, if they exist, under /mnt.

nice
castrwilliam said:
Unfortunately the OP appears to have based this on my 12.10 beta1, not my 12.10 final. I'm making an overlay tarchive that will fix most of the bugs, along with a few I didn't encounter on my release.
Bugs which will be fixed:
SDcard is mounted with incorrect uid/umask (Downloads aren't writable, etc.)
PulseAudio crashes in middle of long outputs (like music) - This requires the disablement of PulseAudio. Sorry, no OSX-like volume sounds.
No kexec capable kernel.
/dev/mmcblk0p13 is mounted on top of existing files in /boot, making it difficult to install kexec kernel.
No swap or zram.
Most init scripts are in obsolete /etc/init.d format.
Major remaining bug: Freedreno won't support EXA. We need an EXPERIENCED kernel CODER (not me) to fix our kernel by PROPERLY backporting KGSL from Kernel 3.0.8 to 2.6.35. I don't see any other solution, because I don't think the person who is workiing on Freedreno wants to backport their driver.
Soon-to-be-added feature: Automount of other OS's filesystems, if they exist, under /mnt.
Click to expand...
Click to collapse
keep up the good work dude

Okay.. I updated the thread with the new url's and ran them through google drive url to create permalinks.. They should now be permanent. Why google? Why.... Pain in butt.

netkillercat said:
keep up the good work dude
Click to expand...
Click to collapse
castrwilliam said:
Unfortunately the OP appears to have based this on my 12.10 beta1, not my 12.10 final. I'm making an overlay tarchive that will fix most of the bugs, along with a few I didn't encounter on my release.
Bugs which will be fixed:
SDcard is mounted with incorrect uid/umask (Downloads aren't writable, etc.)
PulseAudio crashes in middle of long outputs (like music) - This requires the disablement of PulseAudio. Sorry, no OSX-like volume sounds.
No kexec capable kernel.
/dev/mmcblk0p13 is mounted on top of existing files in /boot, making it difficult to install kexec kernel.
No swap or zram.
Most init scripts are in obsolete /etc/init.d format.
Major remaining bug: Freedreno won't support EXA. We need an EXPERIENCED kernel CODER (not me) to fix our kernel by PROPERLY backporting KGSL from Kernel 3.0.8 to 2.6.35. I don't see any other solution, because I don't think the person who is workiing on Freedreno wants to backport their driver.
Soon-to-be-added feature: Automount of other OS's filesystems, if they exist, under /mnt.
Click to expand...
Click to collapse
Cool! Yeah I realized the sdmount problem yesterday.. You had to wait until I gave it its own thread! :laugh: Waiting to update! Good job! What is the main benefit to the kexec kernel? Will update the files with your fixes!

And.. it's a little bloated.. :laugh:

Aww man.. Does this mean we have to use alsamixer? What is a good replacement for that in gnome?

My last setup had VLC and gstreamer both configured to use "plug:dmix" so that you could dstill have multiple sounds playing at one time.
A good mixer is "xfce4-mixer". Despite the name, it doesn't pull in too much XFCE bloat.
You can in theory still run PulseAudio as a dmix client but of course you will then have the complexity of multiple independent mixer applications. The best PA mixer is "pavucontrol", not the one in Control Center, because it has both Windows-style per-app volume controls AND global playback and recording controls by source/sink.

any problem in first use:
1) gnome-tweak-tools does not work for change black theme and other option
2) initramfs cant update
3) many packages dont need in tablet
4) compiz, rotate screen cant work correctly
5) i have any problem in reboot and halt tablet
6) cant access to flash memory ,permission denied.
7) cant detect vga driver, i guess ubuntu 11.04 for tablet can be detect it.
8) panel widget options dont work correctly in touch finger
9) installed webserver such az apache does not work. http://localhost , could not find server
10)cant access to internal memory ,permission denied.
11)plymouth couldnot disable/remove from kernel

Made an account to say thank you.
Wonder if it can be overclocked to 1.8ghz from within Ubuntu. Also rsyslog took up a lot of CPU cycles so I deleted it. udevd takes up a lot of cycles as well but you can't really delete that afaik, but killing it after boot seems to not have much adverse effects, and the tablet runs smoother as a whole afterwards.

Thank you for the nice new toy for our tablet! I successfully installed it on a 6GB partition. So far I can report the following things:
Pros:
- more responsive touchscreen than on 12.10
- better working onboard virtual keyboard than on 12.10 - resize, move, pop-up - working great
- very nice multi-touch gestures for scrolling, maximize, minimize and right-click
- I feel it faster and better responding than 12.10 - may be this is becuase of the optimizations in 13.04
Cons:
- volume keys doesn't increase or decrease the audio
- dnsmasq uses a lot of the cpu - need to kill it
- internet access stops after a while, although the Wi-Fi is connected - need to reconnect the wi-fi, can this be related to killing dnsmasq?
- udevd uses a lot of the cpu - need to kill it - I ran "udevadm monitor" and I can see only reports for the battery and something else (not known) on 5 secs refresh basis
- rsyslogd uses a lot of the cpu - need to kill it
- System Settings panel is bigger than the screen - can not resize it
- VLC can not play song after song - resource is not available - I think this is reported already
- no swap partition
If anyone else experience this you can report it, I think this will be useful for further optimiziations and fixes.
Also is it a good idea to have a repo with the kernel and distro, so we can make/sync/test changes?
@jshafer817,
Sorry for the lame question, but do you use an already compiled distro, or you compile it on your own?

I have a problem. WiFi worked correctly after the very first boot but every boot now it just connects to my WiFi network but doesn't actually establish a connection. My WiFi is working fine though on webOS and my laptop with Ubuntu (all on the very same network). I tried removing it from network manager and connecting all fresh again but it still doesn't give me a connection.
Anyone has an idea on how to fix it?
---------- Post added at 12:50 PM ---------- Previous post was at 12:49 PM ----------
stdinov said:
Thank you for the nice new toy for our tablet! I successfully installed it on a 6GB partition. So far I can report the following things:
Pros:
- more responsive touchscreen than on 12.10
- better working onboard virtual keyboard than on 12.10 - resize, move, pop-up - working great
- very nice multi-touch gestures for scrolling, maximize, minimize and right-click
- I feel it faster and better responding than 12.10 - may be this is becuase of the optimizations in 13.04
Cons:
- volume keys doesn't increase or decrease the audio
- dnsmasq uses a lot of the cpu - need to kill it
- internet access stops after a while, although the Wi-Fi is connected - need to reconnect the wi-fi, can this be related to killing dnsmasq?
- udevd uses a lot of the cpu - need to kill it - I ran "udevadm monitor" and I can see only reports for the battery and something else (not known) on 5 secs refresh basis
- rsyslogd uses a lot of the cpu - need to kill it
- System Settings panel is bigger than the screen - can not resize it
- VLC can not play song after song - resource is not available - I think this is reported already
- no swap partition
If anyone else experience this you can report it, I think this will be useful for further optimiziations and fixes.
Also is it a good idea to have a repo with the kernel and distro, so we can make/sync/test changes?
@jshafer817,
Sorry for the lame question, but do you use an already compiled distro, or you compile it on your own?
Click to expand...
Click to collapse
For System Settings, that's not a problem from this port at all. On the desktop it's also non-resizable.
And the volume keys work fine here.

3.0.8 is working.. sort of
Wifi and Touch are working with KGSL and EAX in 3.0.8

jshafer817 said:
Wifi and Touch are working with KGSL and EAX in 3.0.8
Click to expand...
Click to collapse
Weren't those the big things? Then what's still broken?

Related

anyone having any luck hacking the webtop to run full linux?

I've been looking constantly throughout many forums and have not found anyone with a hindrance of talk about running full linux on webtop with full functionality of the phone.
I've been messing around with the terminal and tried to fish around for something and i wasn't able to find anyway to put ubuntu on this app while being able to support the phone dock accessibilities.
So far for what i know is that its running a 32bit(kinda thought it may be possible for a 64bit counting the dual core) custom UI of Debian while having some source code from Ubuntu to run Firefox. I tried to manually install chrome but was not able. From what I've noticed is that there is a special partition hidden in the root for running webtop mode through the /osh folder i believe.
I bought the the laptop dock and honestly i got to say that this phone has a LOT of potential, the problem to me is that the OS build for webtop is WAY too limited. I would like to see this thing run a full linux with possibly openoffice, chrome, etc. If anyone has any info about a possible hack or something, i'd love to learn about it.
it wud be genious to get ubunut as the 'webtop'
why not
It is Ubuntu, but it has had some things stripped out or built from local sources. Many of the packages are package-name-123.123mot and this causes lots of dep res issues when trying to add in something like xterm from ubuntu feeds.
Lets be clear, there is a linux box lurking in there waiting to be freed. Make is there, gcc is there, X is running on HDMI, there are X apps, apt is there, dpkg is there, /etc is there.
I expect we'll get an xterm running on it this week, if not sooner.
I have the laptop dock, as well. The webtop is this phone's killer feature, imo. Being able to use a full desktop browser is a huge benefit in my line of work. It would be a huge improvement to gain root access and run a more complete Ubuntu.
An update: Success on xterm!
I was able to grab a debian armel xterm and extract it (couldn't install) to /osh/tmp (seemed handy) and fire up /osh/tmp/usr/bin/xterm and display it back to my laptop. I'll have to figure out more about dpkg and why it wasn't installing correctly with this command line, which it seems should have worked:
dpkg -i xterm-armel.deb -root=/osh
We should try to use dpkg properly so we have a maintainable /osh moving forward, to do otherwise is to invite issues. I have dd'ed off my /osh file-system so I can revert when if and when I break it. My goals are fairly straight forward with this endeavor:
* SSH via /osh so it is in init.d and supports -X.
* A terminal of some sort. (half ways done)
* All done via a maintainable and revertible package manager.
To go off laying down zip files or copying around files is far from my goals and should be far from yours.
Full linux?
Arm linux is different from x86 linux. When you say full linux what exactly do you mean?
I understand the need to have it more closely resemble and function like 10.04 lts but it is more likely gonna be closer to a distro like Angstrom...
infrared411 said:
Arm linux is different from x86 linux. When you say full linux what exactly do you mean?
I understand the need to have it more closely resemble and function like 10.04 lts but it is more likely gonna be closer to a distro like Angstrom...
Click to expand...
Click to collapse
ARM Linux and x86 Linux are not different, except in the architecture the binaries are compiled for. The functionality is the same, regardless of the target architecture.
When I say a full Linux I mean it looks and feels like a standard Linux/Unix system with a /var, /etc, /usr, etc. with the most of the functionality we would expect (apparently working /etc/init.d and an actual /etc/passwd) and some of the binaries we know and love (dd, bash, perl, python, vim, Xorg X bits)
It appears to be Jaunty 09.04 based from looking at /etc/lsb-release. Having said that, the packages appear to have been rebuilt at Motorola and some of the deps are missing or I am reading the output incorrectly.
You are confusing desktop linux with embedded linux. For example take a look at the differences in udev.
Sent from my MB860 using XDA App
I hear you, but it looks pretty much like a desktop distro to me, including udev. I do note that /proc and /sys are bind mounts onto /osh/proc and /osh/sys from android, so it is bastardized in that respect.
droidbird said:
I hear you, but it looks pretty much like a desktop distro to me, including udev. I do note that /proc and /sys are bind mounts onto /osh/proc and /osh/sys from android, so it is bastardized in that respect.
Click to expand...
Click to collapse
I'm fairly certain it's the full Ubuntu distro. They've probably snagged packages from Launchpad or such, so once we have dpkg set up, we should just be able to start running with it.
It clocks in (/osh) at 677MB with ~77MB free on the file system. It's pretty feature complete as a userspace from what I can tell.
droidbird said:
It clocks in (/osh) at 677MB with ~77MB free on the file system. It's pretty feature complete as a userspace from what I can tell.
Click to expand...
Click to collapse
Only 77MB free... I might grab an SD card and start installing applications onto it. It'd be easy to add the respective paths to the applications on the SD card to the PATH variable via a script. (I'm thinking about being able to make something that we can pass on as a package to others in the future.
I think the biggest problem will be the RAM. I don't know Android much (2nd week messing with it) but we should find a way to close down some of the apps when launching our 'full' linux. Maybe freeze them or something. If we're using an SD card could we not partition 1GB for swap? I heard about memory problems after having 11 tabs up in Firefox, it'll only get worse with more apps.
Throw in a keyboard/mouse and we could have a desktop that we can plug into any HDMI capable tv/monitor, that would be nice!
droidbird said:
An update: Success on xterm!
I was able to grab a debian armel xterm and extract it (couldn't install) to /osh/tmp (seemed handy) and fire up /osh/tmp/usr/bin/xterm and display it back to my laptop. I'll have to figure out more about dpkg and why it wasn't installing correctly with this command line, which it seems should have worked:
dpkg -i xterm-armel.deb -root=/osh
We should try to use dpkg properly so we have a maintainable /osh moving forward, to do otherwise is to invite issues. I have dd'ed off my /osh file-system so I can revert when if and when I break it. My goals are fairly straight forward with this endeavor:
* SSH via /osh so it is in init.d and supports -X.
* A terminal of some sort. (half ways done)
* All done via a maintainable and revertible package manager.
To go off laying down zip files or copying around files is far from my goals and should be far from yours.
Click to expand...
Click to collapse
I'm interested in this too. I was poking around /osh and trying to get gcc to work so I could try compiling some different things.
I think my aims are slightly different than yours, but lots of the same knowledge is needed. I'm interested in getting applications to run on the phone and showing up in the webtop. i.e. I'd like to have the xterm showing up on the top, not just across the network on a remote X display, like your laptop.
I can't get gcc to work because they seem to have left out the ARM 'cc1' binary which is called.
Anyway, do you mind posting the steps you took (and the site where you got the ARM xterm binary) to get the xterm up and running on the phone? I'm trying to get an ARM cc1 so I can get gcc up and going. From there, I'm hoping I'm not from from 'configure' and 'make' to get lots of different things working. (I realize this isn't something most people would want, but I'm looking at this from the point of view of someone who might like to develop applications for the webtop.)
Also, if you can find out what the proper DISPLAY environment variable is for the webtop itself (and what to tell the 'xhost +' command to let it display X on the webtop), that would be huge for me.
I'll post anything I'm able to find out as well. The more shared knowledge, the better.
For your .deb files, take a look at Launchpad. I'm guessing that's where Motorola probably got their files from.
Does anyone have a backup of their /osh? I might of screwed some stuff up and would like to compare.
I do, currently a 4k dd of the device, ~700mb.
Sent from my MB860 using XDA App
the memory problem is not really an issue, you just have to manually set the partition for webtop mode to be bigger, there is an extra 10gigs built in the phone to run, all that is needed is just the edit on that.
what i mean in full Linux is that i wan't to run REAL applications, not web apps. I ran an external hard drive will movies and music and what not. I saw that this device can really handle heavy traffic like 1080p videos and it brought me to think that this device has the performance to handle a full Linux with minimal lag. a 1080p video runs at an average 2gigs and running on the ram with about at a constant of 150-250 Mb/s depending on how it is running the codec. To be honest the ram is VERY efficient, and the only problem i see to be honest is trying to stream 720p off of YouTube because the phone can't take all the speed (even when in wifi off of a t3 network). There is some limitations but the system can definetly handle high traffic off the ram.
Anyways, aside from that. I searched through the /osh and i found that there is a way to script out addons to do specific back door functions. I'm not really a code scripter so this is where im in uncharted territories. Since this is Ubuntu source code, i believe that if you design a special function script to unlock service mode within the webtop, we might get a full terminal and maybe admin functions. Then maybe we will have right to install specific functionalities. Since Motorola built this build, my guess is that they'll have a pretty complicated security to tap into service mode. Anyone find anything of such resemblance in the root of the os?
Mafisometal said:
the memory problem is not really an issue, you just have to manually set the partition for webtop mode to be bigger, there is an extra 10gigs built in the phone to run, all that is needed is just the edit on that.
what i mean in full Linux is that i wan't to run REAL applications, not web apps. I ran an external hard drive will movies and music and what not. I saw that this device can really handle heavy traffic like 1080p videos and it brought me to think that this device has the performance to handle a full Linux with minimal lag. a 1080p video runs at an average 2gigs and running on the ram with about at a constant of 150-250 Mb/s depending on how it is running the codec. To be honest the ram is VERY efficient, and the only problem i see to be honest is trying to stream 720p off of YouTube because the phone can't take all the speed (even when in wifi off of a t3 network). There is some limitations but the system can definetly handle high traffic off the ram.
Anyways, aside from that. I searched through the /osh and i found that there is a way to script out addons to do specific back door functions. I'm not really a code scripter so this is where im in uncharted territories. Since this is Ubuntu source code, i believe that if you design a special function script to unlock service mode within the webtop, we might get a full terminal and maybe admin functions. Then maybe we will have right to install specific functionalities. Since Motorola built this build, my guess is that they'll have a pretty complicated security to tap into service mode. Anyone find anything of such resemblance in the root of the os?
Click to expand...
Click to collapse
We have root. We could go as far as setup our own desktop environment separate from Webtop. There would be no need to worry about Motorola's security problems.
droidbird said:
An update: Success on xterm!
I was able to grab a debian armel xterm and extract it (couldn't install) to /osh/tmp (seemed handy) and fire up /osh/tmp/usr/bin/xterm and display it back to my laptop. I'll have to figure out more about dpkg and why it wasn't installing correctly with this command line, which it seems should have worked:
dpkg -i xterm-armel.deb -root=/osh
We should try to use dpkg properly so we have a maintainable /osh moving forward, to do otherwise is to invite issues. I have dd'ed off my /osh file-system so I can revert when if and when I break it. My goals are fairly straight forward with this endeavor:
* SSH via /osh so it is in init.d and supports -X.
* A terminal of some sort. (half ways done)
* All done via a maintainable and revertible package manager.
To go off laying down zip files or copying around files is far from my goals and should be far from yours.
Click to expand...
Click to collapse
Fair warning, I'm frequently wrong... but off the top of my head, I think you would need to chroot into the webtop environment in order for a dpkg / apt-get install to work correctly. From what others have posted and my own (brief) investigation, the webtop isn't completely standalone... it shares with the android environment. I've been thinking of leaving the webtop alone for now, and trying the method used to run a chrooted Ubuntu instance on the Nexus One. The risk is low, and once that is in place, I could take a shot at starting an X session that runs out the HDMI, instead of just a VNC server...
EDIT: I should have asked if you chrooted before I just assumed... Sometimes I think before I post, but not often enough.
I got xterm and xeyes to run locally
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
(binaries are from a ubuntu-jaunty-arm setup I did in qemu)
After I get a bit more working I'll post better instructions, but for tinkerers:
DISPLAY:0.0 is correct but you also need XAUTHORITY=/data/home/adas/.Xauthority
lxterminal seems to have issues running locally.
Things can be added to the dock by editing /data/home/adas/.gconf/apps/avant-window-navigator/window_manager/%gconf.xml but you'll also need to create a (standard) .desktop file. You can modify the nautilus one to browse /.
i agree package management is needed, but I don't think using the existing one is a good idea. I think either:
1) Create a ubuntu-arm based distro that can be launched when plugged into a dock/hdmi, but leave /osh mostly untouched
2) Or keep everything in a separate prefix, like macports/fink do.
A problem with using /data though is it's mounted nosuid. And /osh is near capacity already.

[ROM][Pre-Pre-ALPHA] Droid A855 ICS Build Attempt

new build: http://www.mediafire.com/file/guo6leourklgzgq/cm-9-20120703-UNOFFICIAL-sholes.zip
gapps: http://www.mediafire.com/?ax46kp0yrl85ynn
___________
Don't flash any other kernels. they won't work.
changes:
hexed defy camera libs
HD profile 854x480 green lines in gallery, plays fine on pc
SD profile 640x480, plays fine via gallery
* camera saving null jpegs fixed
* camcorder working
* enabled TLS register user in kernel and userspace
* enabled 1% battery charge display
* lid switch reporting fixed again (haha)
* updated wifi drivers and firmware
* usb storage and adb work
* probably something i forgot
compiled kernel with gcc4.5, userland with linaro gcc 4.7 and -O3
still broken:
camera flash
gps (it was working before. RDS_SOCKET permission issue??)
speakerphone and bluetooth mic routing
HW decode
native tethering
if you like my works, feel free to buy me a beer
Validating file 'device/motorola/sholes/sholes-keypad.kcm'...
No errors.
made a new kcm file according to googles migrating to ICS docs.
also hacked nf_qtaguid from googles ICS kernel into 2.6.32, it probably won't work right though
progress update
MMS is working. alos noticed that red and blue are swapped.
starting pvrsrv via init.sholes.rc causes graphics to be black.
starting after boot via adb doesn't. weird.
You sir, are my hero, even if it's not fully functional you have made it farther than anyone else, so far only one other person has tried over on droid forums and he gave up so far
sdcard works, adb root doesnt. teh process never respawns probably usb related.
so I booted it up and was confused at first by the lack of touch screen and yellow colors
I'm trying to get teh ts working still, using this changeset as a guide
https://github.com/Evervolv-ICS/and...3e2048019764a298ae9e6b6aad02ff52d75453#diff-1
Any progress in ICS should be appreciated!
Looking forward to ICS for milestone.
new build, touchscreen fixed.
bootanimation is disabled for testing.
keyboard is still weird, alt and B keys aren't working
www.mediafire.com/?k4c4mhb8pq37gjj
also, for a good laugh check settings->apps->running->memory
http://www.mediafire.com/?m3yjdp2e329cknb
boot_EGL_broken.img -<only difference is this starts pvrsrvinit in init.sholes.rc
i tried with and without gralloc.omap3.so in /system/lib
boot.img can be flashed easily like this:
[email protected]:~/android/kernel$ ~/Desktop/sbf_flash -f -r --boot ~/Desktop/build/boot.img --recovery ~/Desktop/recovery-clockwork-2.5.0.1-sholes.img ~/Desktop/MC1_A855_1282081087_Recovery-Only_SPRecovery_0.99.3b.sbf
if installing gingerbread gapps do this through adb:
255|[email protected]:/ # mount -oremount,rw /dev/block/mtdblock4 /system
[email protected]:/ # rm /system/app/SetupWizard.apk
You are a monster, you are making great progress I'm going to half to load your latest build up later
Sent from my CushZero using XDA App
is that also for milestone
thx
So I flashed your newest build and stayed on it for 20 minutes exploring everything now that the touch screen was working.
I installed it on my droid. Very nice progress you have going on here. A lot of things work and of course a lot don't. For people who are too afraid to flash, heres a list of what I noticed is working.
Working:
Phone Calls (Speakers don't work)
SMS
3G works great
touchscreen
sms
downloads from browser (installed facebook.apk but couldn't log in because alt key doesn't work on keyboard)
doesn't work:
screen properly, no blue, the yellow looks kinda cool though
screen orientation, to get portrait view you need to slide out the keyboard otherwise its stuck in landscape mode
no onscreen keyboard, only physical works, except like mentioned alt and b dont for some reason
wifi wont turn on
bluetooth wont turn on
gps, couldn't find on googles homepage but browser still works without it
camera
usb doesnt work, mac won't detect it at least when i plug it in
network doesn't display proper network, T-CDMA 64 instead of Verizon
music app doesn't work, its froyo's music app, i think its because the speaker doesn't work not certain
no vibrate mode? only silent mode and ringer doesnt work
neither speakers work, nor does the microphone i believe
anything else i mightve missed probably doesn't work
overall this is amazing progress and it really doesn't run that bad. give it a shot and play around with it for a few minutes, just don't forget to nandroid!
Ammika13 said:
I installed it on my droid. Very nice progress you have going on here. A lot of things work and of course a lot don't. For people who are too afraid to flash, heres a list of what I noticed is working.
Working:
Phone Calls (Speakers don't work)
SMS
3G works great
touchscreen
sms
downloads from browser (installed facebook.apk but couldn't log in because alt key doesn't work on keyboard)
doesn't work:
screen properly, no blue, the yellow looks kinda cool though
screen orientation, to get portrait view you need to slide out the keyboard otherwise its stuck in landscape mode
no onscreen keyboard, only physical works, except like mentioned alt and b dont for some reason
gps, couldn't find on googles homepage but browser still works without it
camera
usb doesnt work, mac won't detect it at least when i plug it in
network doesn't display proper network, T-CDMA 64 instead of Verizon
music app doesn't work, its froyo's music app, i think its because the speaker doesn't work not certain
no vibrate mode? only silent mode and ringer doesnt work
neither speakers work, nor does the microphone i believe
anything else i mightve missed probably doesn't work
overall this is amazing progress and it really doesn't run that bad. give it a shot and play around with it for a few minutes, just don't forget to nandroid!
Click to expand...
Click to collapse
also no hardware acceleration, screenshot force closes the UI. but it is much smoother than I thought this really proves to all those people saying that ICS wouldn't work at all, someone has it booted, I can't wait to see the progress this guy can make. so far he is doing an extremely good job.
durandgir said:
also no hardware acceleration, screenshot force closes the UI. but it is much smoother than I thought this really proves to all those people saying that ICS wouldn't work at all, someone has it booted, I can't wait to see the progress this guy can make. so far he is doing an extremely good job.
Click to expand...
Click to collapse
whats the button combo for screenshot? i tried volume up+power and volume down + power, neither did anything i just couldnt remember what it is for nexus
I'm pretty sure i'ts power button+down
Some of these problems are simple:
Rotation error is /data/system permission error
Adding this to init.sholes.rc fixes it
Chmod 775 /data/system
Alt and b problems are errors in /system/usr/keychars/sholes-keypad.kcm
The patch I used to fix graphics has a define to ovverride EGL config, this might fiz colors
I've seen several patches for legacy audio support floating around, haven't tried any yet.
Virtual keyboard missing is because sholes device makefile inherits from core.mk instead of one of the more complete ones. A complete build will require a larger system partition or other trickery.
Other things will probably be harder
Some of these problems are simple:
Rotation error is /data/system permission error
Adding this to init.sholes.rc fixes it
Chmod 775 /data/system
Alt and b problems are errors in /system/usr/keychars/sholes-keypad.kcm
The patch I used to fix graphics has a define to ovverride EGL config, this might fiz colors
I've seen several patches for legacy audio support floating around, haven't tried any yet.
Virtual keyboard missing is because sholes device makefile inherits from core.mk instead of one of the more complete ones. A complete build will require a larger system partition or other trickery.
Other things will probably be harder
something else I noticed with signal and data, it stayed gray. but other than a few quirks it's still impressive I don't stay on it because I only have one phone but I can't help but to flash just to mess around with it
I Love You

[Q] Native Linux On Touchpad Beta's?

Native Linux On Touchpad Beta's, Are they out??
Should be in q and a Sorry
I'm not sure what you mean by "Touchpad Betas" but there is a port of Native Ubuntu right here: http://forum.xda-developers.com/showthread.php?t=1304475
Also there is a port of Arch Linux going on.
And Debian is also a WIP.
rohan32 said:
I'm not sure what you mean by "Touchpad Betas" but there is a port of Native Ubuntu right here: http://forum.xda-developers.com/showthread.php?t=1304475
Also there is a port of Arch Linux going on.
And Debian is also a WIP.
Click to expand...
Click to collapse
Beta's as in, not alphas, mostly functional?
Oh okay! Well both the Arch Linux and Ubuntu ports are very far along in terms of development.
Really the only things not working in either build are:
-Sound
-Accelerometer
I'm running Ubuntu and I love it! Many thanks to BodenM
rohan32 said:
Oh okay! Well both the Arch Linux and Ubuntu ports are very far along in terms of development.
Really the only things not working in either build are:
-Sound
-Accelerometer
I'm running Ubuntu and I love it! Many thanks to BodenM
Click to expand...
Click to collapse
what's best Ubuntu 11.10 Native (Alpha 0.0.4) OR Arch Linux ARM + Gnome 3 ? what's you use now? and can i install ubuntu beside both webos and android cm 9
moshxsoft said:
what's best Ubuntu 11.10 Native (Alpha 0.0.4) OR Arch Linux ARM + Gnome 3 ? what's you use now? and can i install ubuntu beside both webos and android cm 9
Click to expand...
Click to collapse
Yes, you can. However, it is easy to run into problems, since the space in the Boot partition is limited. If you are booting more than CWM, CM9, WebOS, and WebOS Recovery right now, then you will likely need to remove something to make space for Ubuntu. (e.g. if you installed Bricked Kernel or are dual booting two different Android versions.)
Read this post for information on how to fix any problems with booting, if they arise:
http://forum.xda-developers.com/showpost.php?p=23115621&postcount=413
Really ubuntu's that far along??? Cuz last i've heard they're at .4 and you need external hardware to run it...
ericerk said:
Really ubuntu's that far along??? Cuz last i've heard they're at .4 and you need external hardware to run it...
Click to expand...
Click to collapse
It is on .4, but there are a number of modifications that you can work into it that improve the touch screen and give it wireless and bluetooth, for example. Do a bit of reading in the thread -- you will be amazed by how far it has come. They have been making some great progress over the last few weeks.
ian426 said:
It is on .4, but there are a number of modifications that you can work into it that improve the touch screen and give it wireless and bluetooth, for example. Do a bit of reading in the thread -- you will be amazed by how far it has come. They have been making some great progress over the last few weeks.
Click to expand...
Click to collapse
The current status of Ubuntu (the same should apply to Arch, but some things may need re-compiled or modified slightly):
What works:
-Touchscreen input
-USB Host mode (Keyboard and mouse) with Y-cable
-WiFi (using ath6kl or ar6000, ath6kl is better)
-Bluetooth (using bcattach, has issues with reconnecting)
-Display (Unity 2D and GNOME 3 Fallback both work well)
-LED's (Screen backlight and home button left/right)
-Power Management and Charging (from USB as well as Touchstone, battery level is reported correctly)
-Internal memory (all partitions accessible from Ubuntu)
What doesn't:
-Accelerometer (may actually be working, haven't bothered with it, the main issue is that X.org doesn't rotate as easily as Android)
-Sound (msm_audio device detected, shows up in Alsamixer, but does not play sound - may just need configured)
-GPU (video, 2D, and 3D acceleration are all broken, and this relies on a driver we can't get)
-Buttons (they are identified, but do not appear to function as what they should function as, so HOME doesn't actually map to any keyboard button, nor do the volume keys map to volume buttons; the power button appears to work correctly)
CalcProgrammer1 said:
The current status of Ubuntu (the same should apply to Arch, but some things may need re-compiled or modified slightly):
What works:
-Touchscreen input
-USB Host mode (Keyboard and mouse) with Y-cable
-WiFi (using ath6kl or ar6000, ath6kl is better)
-Bluetooth (using bcattach, has issues with reconnecting)
-Display (Unity 2D and GNOME 3 Fallback both work well)
-LED's (Screen backlight and home button left/right)
-Power Management and Charging (from USB as well as Touchstone, battery level is reported correctly)
-Internal memory (all partitions accessible from Ubuntu)
What doesn't:
-Accelerometer (may actually be working, haven't bothered with it, the main issue is that X.org doesn't rotate as easily as Android)
-Sound (msm_audio device detected, shows up in Alsamixer, but does not play sound - may just need configured)
-GPU (video, 2D, and 3D acceleration are all broken, and this relies on a driver we can't get)
-Buttons (they are identified, but do not appear to function as what they should function as, so HOME doesn't actually map to any keyboard button, nor do the volume keys map to volume buttons; the power button appears to work correctly)
Click to expand...
Click to collapse
Maybe i'll hold off until .5 or beta 1
Has there been any progress?
Any New Versions of linux ported?
ericerk said:
Has there been any progress?
Any New Versions of linux ported?
Click to expand...
Click to collapse
It looks like 12.04 was ported quite some time ago, but I didn't see any code posted for this yet
http://www.youtube.com/watch?v=Wx0AiGq2LeU&playnext=1&list=PL365F9BF47955BA5F&feature=results_video
Herrie82 said:
It looks like 12.04 was ported quite some time ago, but I didn't see any code posted for this yet
http://www.youtube.com/watch?v=Wx0AiGq2LeU&playnext=1&list=PL365F9BF47955BA5F&feature=results_video
Click to expand...
Click to collapse
I actually just saw that, seems really cool, i'd love to have a fully functional of some linux distro in a portable 10inch form.
remove CM9?
devmas said:
Yes, you can. However, it is easy to run into problems, since the space in the Boot partition is limited. If you are booting more than CWM, CM9, WebOS, and WebOS Recovery right now, then you will likely need to remove something to make space for Ubuntu. (e.g. if you installed Bricked Kernel or are dual booting two different Android versions.)
Read this post for information on how to fix any problems with booting, if they arise:
http://forum.xda-developers.com/showpost.php?p=23115621&postcount=413
Click to expand...
Click to collapse
I already have CM9 besides the original WebOS. If I want to ditch CM9, and install Ubuntu along side with WebOS only, how do I get ride of CM9? I am doing this as I have two TP, so I can forgo CM9 on one of them.
Thanks!
jerry0000 said:
I already have CM9 besides the original WebOS. If I want to ditch CM9, and install Ubuntu along side with WebOS only, how do I get ride of CM9? I am doing this as I have two TP, so I can forgo CM9 on one of them.
Thanks!
Click to expand...
Click to collapse
It actually becomes a "Triple Boot" process, you don't really ever get rid of anything.

gentoo on nexus 7

Figured this should go in the "Nexus 7 Original Development" but I can't post there
http://imgur.com/XjIDruA for picture
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
My directions are on the gentoo forums, in the install section at https://forums.gentoo.org/viewtopic-p-7604764.html
Don't attempt this if you don't know how to install gentoo, build tools from AOSP, or unbrick your device!
I don't have any ROMs for a gentoo install, at the moment, but I will probably eventually provide a way to flash an image or two, with a stage3 + wifi + dhcpcd + sshd added to the default rc runlevel. Please keep in mind, if you didn't read the source and compile it yourself, you don't know what's in the binary.
So it looks like I'm getting closer. From what I can tell, ubuntu is booting into the system (or root) partition, with an initramfs image that creates a chroot. They "pause" the loading of the Android OS, and boot into the chroot environment.
I've found abootimg though, and I'm thinking a properly grep'ed and hacked AOSP kernel can have most of the 'forced' directories and option changed, or set in the boot command line. I'm going to try kernel builds in my gentoo chroot, from the ubuntu install on the nexus 7. I'll have to at least get boot backups working in "TWRP 2.7 - Nexus 7" but that should be easy with cat, dd, and a system+userdata partition to reliably mount.
I'm aiming to get a kernel that boots into mmcblk0p9 (or userdata) without an initramfs, or any playing around with the system partition. I'd like to eventually use the recovery boot as a boot into a 'gentoo minimal cd' image, stored on the system partition.
Anywho, 8 more posts away from adding links and images
well, i can't help, but i can cheer for you to succeed
Well, looks like I got wifi, battery status, usb keyboard, backlight control, getty term, cpu gov, and most everything that works in ubuntu working.
Haven't built Xorg yet, but I'm sure that'll work too, and haven't tested bluetooth yet, but I'm sure it'll work too.
Directions are on the gentoo install forum board, if you have trouble following them, just ask me for help
I'll be configuring and building gentoo for the next week or so, but maybe in a month, I'll set-up some flash-able images. I'm using the ubuntu kernel for now (derived from the AOSP kernel, as far as I can tell), but I'll probably try a few more build of the gentoo kernel.
By the by, doing "emerge -1 system" with MAKEOPTS="-j5" and it's eating my battery, about 1% every 5 minutes, plugged into ac charger, so just be carefully when building gentoo, and watch your battery status ("cat /sys/devices/platform/tegra-i2c.4/i2c-4/4-0055/power_supply/battery/capacity" to view current battery %)
deadram said:
By the by, doing "emerge -1 system" with MAKEOPTS="-j5" and it's eating my battery, about 1% every 5 minutes, plugged into ac charger, so just be carefully when building gentoo, and watch your battery status ("cat /sys/devices/platform/tegra-i2c.4/i2c-4/4-0055/power_supply/battery/capacity" to view current battery %)
Click to expand...
Click to collapse
It might be best to cross compile from another device. I'm thinking that a lot of write activity will wear out the internal storage faster?
You could then host portage from said device and access packages over the network.
Is libhybris part of your plan?
What about booting "toram" from a squashfs filesystem stored on "sdcard". This could allow coexistence with the default filesystem as well as increased performance.
crache said:
It might be best to cross compile from another device.
Click to expand...
Click to collapse
It would be a little faster, but more time consuming to set-up. That would be outside the scope of this tiny pseudo tutorial anyways
I'm thinking that a lot of write activity will wear out the internal storage faster?
Click to expand...
Click to collapse
True, but I'd guess that's a 10 to 20 year process. Most phones are ssd, and last about that long... some laptops come with ssd drives, they wouldn't if they didn't last ~some~ amount of time. Besides - if cell phones are any indication of the future - I'll have cracked the screen by then, or dropped it in the toilet
Is libhybris part of your plan?
Click to expand...
Click to collapse
Nope, my plan is to have only gentoo on my tiny box. I may eventually look into setting up android in a chroot, if you google it, someone has done that before, on a different device. If i remember correctly, it booted Debian, then set-up the android chroot, and passed graphics control off to android.
What about booting "toram" from a squashfs filesystem stored on "sdcard". This could allow coexistence with the default filesystem as well as increased performance.
Click to expand...
Click to collapse
Well, if you wanted that, you could set it up that way. I'm looking to get Xorg up and running, lighttpd, firefox, and wine (for ie), and set-up a portable web development tablet. I'm turning this toy into a computer
That said, when i get around to making the "install CD" or image file, it'll probably be a 650-400MB image file, compatible with multiboot, and it'll be up to you to figure out the finer details. That is the idea behind gentoo anyways, to fine tune your system to how you want, and not how someone else thinks is best.
----
As an aside, after playing with cpufreq for a while, and wifi, I have a feeling my battery problem has more to do with the screen being powered. Apparently there isn't a way to turn off the power to the GPU and LCD from VT, without a working Xorg server. At least none that I can find.
Well I got a few more things working. Check the gentoo forum link at the top for more info. By the by, posting from my nexus 7 gentoo install using xorg and firefox 31.0.
Looks like I've got the kernel thinned out, and a few more things on the go. Check the gentoo forum link for the details.
Should have an install image within a couple months. Next steps are hacking the kernel drivers a bit, and then building a website for my wife (That's how I tricked her into letting me buy this thing in the first place, but don't let her know that! XD), and then figuring out the install image.

[MODULE] Swap Torpedo - run faster and more reliably

Using compressed RAM for swap on a phone with enough RAM in the first place sucks.
Let's take a look using RAM Truth from the Play Store -
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
It makes no sense to use 500 MB of swap with 3 GB RAM free!
If yours already looks like the second picture, 0 swap, you're done, you don't need this module.
(Note - we're going to update RAM Truth - the swap type used on the honor is zram.)
But if you need to get rid of swap, here you go -
Swap Torpedo - A Magisk Module
Universal compressed-memory swap (zram, etc etc) destroyer - run faster and more reliably!
By EarlyMon - version 1.1
Swap is a way to expand your RAM using clever software and some unused storage space. You see it a lot in Android as zram or vmswap, that is, compressed-memory swap. Storage-based swap is fine, compressed-memory swap - not so much.
Swap is a fine thing for desktops with sufficient resources and for Android devices really hampered with too little ram.
On Android it was originally intended for devices with less than 1 GB RAM.
If you have an Android One or another small-memory device, this is NOT the module for you.
But if you have 2 GB of RAM or more, you want this.
Do you suffer from lag, random UI pauses, apps not running correctly and consistently, and background apps failing even when you have them marked for protection? Do you have to reboot every day or so to restore speed?
All of that is almost always caused by having swap implemented and the Swap Torpedo fixes it.
Manufacturers, including Google, have fallen in love with compressed-memory swap because it allows your Android to synthetically appear better at multitasking. In reality, it ruins multitasking.
Why? For large memory devices you want the swap space to be at minimum the square root of your RAM size and ideally the same size as, or up to double the size of, your RAM.
The problem is that they don't use enough space because they can't - they're basically using a compressed RAM disk as a swap partition.
If you think about that, it will raise the right questions.
Does it make sense to use RAM for something other than apps and the operating system? Does it make sense to constantly have the operating system pause while it shuffles and reorganizes your RAM? Does it make sense for you to wait on everything while various pieces of RAM are getting zipped and unzipped to support this scheme? Does it make sense to do all of that incorrectly in the first place because you can't get enough swap space to properly support multitasking, by design?
No. No it does not.
Swap Torpedo is the answer.
I designed it to be universal for any Android that Magisk version 15 and above supports. If you're not using swap, or if you installed your own swap solution that writes to a special file in storage, Swap Torpedo harmlessly does nothing.
Verify your swap situation with RAM Truth available on the Play Store. It's free and it will never spy on you or ask for special permissions.
Donations are humbly and gratefully received at [email protected] but not expected. My personal reward is knowing that I helped and you are having a better day now.
This module was developed entirely on an honor View 10.
Notes -
Some phones may need a few minutes after boot to clean up swap/zram - not all, just some - and that's completely normal
May not work on all devices but will probably work for you - ask here for help
Changelog -
(early change) 2018 April 27
Increased initial maximum wait time to 60 seconds. Your additional boot time will be about 3 seconds or so, usually less.
v1.1 - 2018 April 1 - functional improvement
Detached background processing, added Pixel and similar support.
Expanded zram command sequence for devices requiring stricter adherence to the rtfm.
Waits up to 45 seconds for swap to activate, expands support for non-flagship phones.
v1.0 - 2018 March 17 - initial release
Download -
Beta versions are exactly that so you may have trouble with Magisk 16.4 for example (or you may be ok) - please let me know, thanks!
Check out the v1.1 release at bottom of the first post above
Open Source -
https://github.com/Magisk-Modules-Repo/swap-torpedo
Just because it's open source does not mean that you ought to avoid giving me a few million dollars if you happen to be a billionaire. Let's face it, Swap Torpedo just made your life a lot better than the last guy you gave serious money to, and plus you'll have me in your corner verifying that regular billionaires such as yourself do too root and use Magisk. Trust me, the other billionaires will be so jealous they won't know whether to die or go bowling.
I hope that this clarifies the importance of open source software once and for all.
Thanks and Credits -
Nitin Gupta because real information comes in Courier, plain text or it didn't happen
@topjohnwu because in my mind I was totally going to invent Magisk first... OK don't be insane, I'm just kidding - Doctor Wu by Steely Dan is a great song and I'm not sure but I don't think it has anything to do with Magisk, no one really knows for sure - Magisk is great, mmmkay, thanks John
Special thanks to all of the heroes named by @topjohnwu and the unnamed ones as well. My people have an ancient saying that applies here - Without you, we'd be screwed!
Thanks to everyone in the thread who worked with me to help make Swap Torpedo better
Thanks to every one of you using the Swap Torpedo - I get that you get it
Finally, I thank my wife - she had nothing to do with Swap Torpedo but probably someday she'll say that I'm not grateful and I'm going to show her this special credit - I'm sure that will go really well for me, how about you?
Other Stuff -
Official module, 2018-3-26.
There's a shortcoming in RAM Truth that throws off the illustration in the first post - it misidentifies the swap type on Oreo and when vmswap is used. We're looking into that. If it says that your Android is using swap and you didn't put it there, Swap Torpedo is for you.
Secrets About Swap Torpedo -
Runs swapoff on every /dev entry in /proc/swap(s) during late boot. Making it universal may be harder than you think. Or not, I couldn't say.
That's it. Nothing else is left running from Swap Torpedo once the payload is delivered, nothing else is changed.
Your Android runs fewer processes and is slimmer and trimmer if you needed it (and you probably do) thanks to Swap Torpedo.
Uninstall the module and it will be as if it was never there. Swap Torpedo targets each boot session.
No more, no less.
A Quote -
EarlyMon said:
Use whatever works!
Swap Torpedo has no pixie dust nor do I expect it to ever get any.
I've had to redevelop this solution for years, every time I or a friend got a new phone saddled with swap.
I made this module so I could stop reinventing the wheel and so that it would be easier for others to enjoy the benefits.
If you have something already that gets rid of swap, or if the Swap Torpedo doesn't work for you, definitely use the other instead.
Check out "EX Kernel Manager"
https://play.google.com/store/apps/details?id=flar2.exkernelmanager
Check out "Kernel Adiutor (ROOT)"
https://play.google.com/store/apps/details?id=com.grarak.kerneladiutor
Click to expand...
Click to collapse
Thanks! Will check it out and report back after using it a bit.
Do I need this if I have Adaptive LMK and ZRAM disabled?
Sent from my HTC 10 using XDA Labs
Megan said:
Do I need this if I have Adaptive LMK and ZRAM disabled?
Click to expand...
Click to collapse
Nope.
The Swap Torpedo will check and discover that zram is disabled and exit without doing anything else in your case.
I'll wait until stable release
hoping this project grows. will watch this till end
---------- Post added at 03:29 PM ---------- Previous post was at 03:23 PM ----------
i got another phone with 500mb ram. This module will work as it says originally intended for 1gb ram below.
It runing ??
How to check this module is works.
lanserffnt said:
It runing ??
How to check this module is works.
Click to expand...
Click to collapse
That's how to check.
Did it reboot after installation?
Please show me what it says when you type in a terminal, as root -
Code:
cat /proc/swap*
Yes reboot after installed
lanserffnt said:
Yes reboot after installed
Click to expand...
Click to collapse
Please uninstall and try this test version, thanks.
(removed asus test module)
Which version of Magisk are you using?
Magisk 16.2
lanserffnt said:
Magisk 16.2
Click to expand...
Click to collapse
I haven't tested with the beta Magisk, highest I've gone is 16.
Did you try the new test version (linked above) yet?
If that doesn't work, have you installed the busybox-ndk?
I try it test3
Have install busyboxndk
Magisk 16.2
https://forum.xda-developers.com/apps/magisk/beta-magisk-v13-0-0980cb6-t3618589
lanserffnt said:
I try it test3
Have install busyboxndk
Magisk 16.2
Click to expand...
Click to collapse
I've had another user report that it works correctly with 16.2 so it must be something with the ASUS.
I use zenfone3
If It's work should show??
Pixel 2 P DP1 freezes on boot at the Google logo
Any pixel 2 xl?
Enviado desde mi Pixel 2 XL mediante Tapatalk
lanserffnt said:
I use zenfone3
If It's work should show??
Click to expand...
Click to collapse
0 swap, like the second picture in the first post.
Telperion said:
Pixel 2 P DP1 freezes on boot at the Google logo
Click to expand...
Click to collapse
That's unusual. May I ask what other modules you are using and what other modifications, if any?
And you used the one in the first post?
What should it show in terminal?
I am using it on LG G4 v29 (Nougat beta) and it doesn't show anything when I write "cat /proc/swap*". :/

Categories

Resources