yashsingh1/xdaforums huggingface dataset:
[Galaxy Tab  Android Development] lilstevie:
As cb22 said, touchscreen is working with mtev, thanks to him for this one, his contributions have been perfect to the project.

For a download link, I just have a few little things I'd like to clean up (things that are really not required anymore cause they are hacky workarounds for something that we don't need to hack around anymore) I also need somewhere to put the image.

There are some instructions available here http://wiki.meego.com/ARM/Hummingbird#Ubuntu to generate your own image, but that is horrible and something most people will want to avoid.

Running in a VM wouldnt be enough you would need to emulate an X86 proc, and that would be deadly slow.
[Galaxy Tab  Android Development] DemonGloom:
VMs can be different.. VirtualBox is just simple virtualization and won't work, but Qemu will as it does full hardware virtualization..
[Galaxy Tab  Android Development] TheGrammarFreak:
Well, one those hosting site would do for a bit, I have plenty of space in dropbox (no waiting, still not ideal). Roto and Technomancer use hosting by deodexed (I think), he might be able to offer you some ;)
[Galaxy Tab  Android Development] Elvoski:
I know someone who can host files. let me know if you would like him to.
[Galaxy Tab  Android Development] Gawain1986:
I have a Server at home with a 6Mbit internet connection... expect a total of 400-500 KB/s download from it.

Just PM me and I'll send you a FTP link where you can put the image. After upload I'll post the download link.
[Galaxy Tab  Android Development] lilstevie:
For those offering somewhere to host, I would just like to mention that the rootfs tarball is ~500-600MB at this point but could get a bit bigger as things get finalized
[Galaxy Tab  Android Development] Gawain1986:
Size is no problem for my hosting, as for bandwidth... people will just need to wait a little longer is if gets bigger.

Maybe we can use a high ZIP compression to make the file a little smaller :) .
[Galaxy Tab  Android Development] edzilla:
I can dedicate a few Go on a server.

I have a symetrical 100mb connection, so it will be a bit faster.

(I could even give you a shell account if you find it useful, to update things later on, for example)
[Galaxy Tab  Android Development] lilstevie:
it is already tar and gzip'd

Anyway, more people that bug samsung more hope we have of getting the source,

this pastie contains the modinfo for the modules needed to get the powervr kernel module source http://pastie.org/1594202
[Galaxy Tab  Android Development] idumych:
I have unlimited bandwidth on spindash.org, once this is out I can mirror it.
[Galaxy Tab  Android Development] DemonGloom:
Maybe it will be a good idea to put this on torrent.. So we could share image to each other..
[Galaxy Tab  Android Development] lilstevie:
I will probably take both of you up on this offer :)
[Galaxy Tab  Android Development] -Mr. X-:
I can mirror on my website as well, unlimited space and bandwidth.
[Galaxy Tab  Android Development] DemonGloom:
So many people want to share your image.. Just to get it first :)
[Galaxy Tab  Android Development] idumych:
I don't think a torrent would make sense since we have plenty of hosting volunteers but it would make sense for the OP to use a torrent magnet to push the image out to us volunteers for mirroring.
[Galaxy Tab  Android Development] cb22:
So I've been playing around with my limited C skills and the mtev driver to make things more fun.

So far:

-> One finger down == normal touch screen style.

-> Two fingers down == "hover" mode. The pointer will follow your second finger, but not be clicked! If you've used an N900, think of the mouse cursor in the browser but available everywhere :)

To do:

-> One finger long press == right click.

Comments / suggestions?
[Galaxy Tab  Android Development] DemonGloom:
And how you will map other buttons? Maybe we can realize right-click as holding menu button and touching screen ( will be useful if we need to do a lot of right-clicks )

BTW, where you position cursor in hover mode? At the finger or between them?

P.S. At what moment you get click : on press or on release? how you get no press when touching fingers for hower mode :)
[Galaxy Tab  Android Development] cb22:
I don't think that will be possible - the touch screen appears to stop sending touch events when the "buttons" are pressed. (they are both handled by the touchscreen)

As for hover mode, the first tap sends a click event, but as soon as you put your second finger down, it releases that click, and the mouse pointer follows the second finger, without being pressed. The code is

// XXX: I'm really not a C coder - please have mercy apon me.

// Two fingers down. I've never really been a fan of "pinch to zoom" or any of that crap.
// Use two fingers for something useful! Like hover :)
if (down == 2) {
int mod_valuators[4];
mod_valuators[0] = valuators[5];
mod_valuators[1] = valuators[6];
mod_valuators[2] = valuators[7];
mod_valuators[3] = valuators[8];

xf86PostButtonEvent(local->dev, TRUE, 1, 0, 0, 0);
xf86PostMotionEventP(local->dev, TRUE,
0, down * MT_AXIS_PER_FINGER, mod_valuators);
}

// Simple case, one touch
if (down == 1) {
xf86PostMotionEventP(local->dev, TRUE,
0, down * MT_AXIS_PER_FINGER, valuators);

if (clicked == 0) {
xf86PostButtonEvent(local->dev, TRUE, 1, 1, 0, 0);
clicked = 1;
}

if (last_x == valuators[0] && last_y == valuators[1]) {
xf86PostButtonEvent(local->dev, TRUE, 1, 0, 0, 0);
clicked = 0;
}

memcpy(&last_x, &valuators[0], 4);
memcpy(&last_y, &valuators[1], 4);

}

EDIT: Actually, I've done a 3 finger tap for right clicking... So if you have two fingers down, wherever you tap a 3rd, a right click event will be sent
[Galaxy Tab  Android Development] -RioT-:
All im saying is f*¢* honeycomb.

Soo... Do I need to partition since I have my tab partitioned for ext4?
[Galaxy Tab  Android Development] DemonGloom:
So, if you want to do hover, app wil receive click in any way?

Do we really need hover? Maybe it will be better to bind right-click to two fingers press? (and move hover to three fingers)
[Galaxy Tab  Android Development] gyroing:
i agree . because right-click has more usage than hover. but consider as standard of touch device all them do right click with long press too.
[Galaxy Tab  Android Development] alex2792:
I would love to try it is it compatible with verizon tab?
[Galaxy Tab  Android Development] lilstevie:
this gets installed to an internal or external SD card so that partitioning for ext4 does not really change much look here for an example of how you will install the image
[Galaxy Tab  Android Development] cb22:
At the moment, what happens is when you put your first finger down, wherever you decide to, a click will be sent to that location. I'm trying to think of the best way to eliminate that would be - I'd have to add in some sort of time delay to not send a click if another finger is placed within a certain interval.

That sounds more sensible actually, I'll change the mapping around.

Not if you don't want to run it on the internal - you can just grab a MicroSD and plop on the image :) otherwise, a bit more work is needed to get it on the Internal SD. What would be awesome, is when everything is up and running is to get it on the internal flash using something like UBIFS. Should be a ton faster than a MicroSD or the internal SD.
[Galaxy Tab  Android Development] lilstevie:
It may need a little work in regards to the kernel and mapping out where SDCard will map, as I am aware internal SD is not present on the vzw tab
[Galaxy Tab  Android Development] -RioT-:
I might wait till its on the internal flash. But thanks for the response.
[Galaxy Tab  Android Development] edzilla:
Then PM me when you want I'll set it up.
[Galaxy Tab  Android Development] lilstevie:
That might take a bit, oneNAND (the flash that android sits on) is ~304MB, My image is much large than that, running of the internal SD is speedy as it is anyway,
[Galaxy Tab  Android Development] -RioT-:
Well thats not so bad. I really cant wait.
[Galaxy Tab  Android Development] DemonGloom:
BTW, another idea (like on touchpads in laptops)

We press screen, do not release and move finger - start hover mode

We press screen and release - click

We press screen, do not release and press screen with second finger - right-click

If we need to move cursor with left button pressed (moving window and so on) - we press screen, release, press fast again, do not release and move finger

How do you like that variant?
[Galaxy Tab  Android Development] lilstevie:
I am liking all the suggestions, we may have to poll on what people want for this.

On another note, Samsung OpenSource has replied to me, The request for the powervr kernel module has been passed on to the development team for them to assess, fingers crossed they observe the GPL
[Galaxy Tab  Android Development] snudel:
you could also check pockedcloud.

i like the option of enabling the pointer, which makes it native how it works.

with this pointer the whole screen is a touchpad and only click in the middle of the below thing is a real click.

right click is on the top right of this circle.

it makes the work really easy
[Galaxy Tab  Android Development] Elvoski:
I couldnt see this in the previous pages so forgive me if im asking the question again. Will the the screen auto rotate?
[Galaxy Tab  Android Development] lilstevie:
No the screen will not AutoRotate at the moment rotation is not something that is sensed
[Galaxy Tab  Android Development] Elvoski:
cool. I really cannot wait for this! do you happen to have an ETA?
[Galaxy Tab  Android Development] lilstevie:
No ETA just yet, I am trying to rush together A PoC image at the moment, hopefully I will have something very soon though
[Galaxy Tab  Android Development] DemonGloom:
Do we really need something except landscape? In my opinion - no :)
[Galaxy Tab  Android Development] lambstone:
Erm... yes we do? Ebook reading
[Galaxy Tab  Android Development] cb22:
xrandr is your friend ;)
[Galaxy Tab  Android Development] Elvoski:
i was just thinking of using the GT's keyboard.. unless there is a landscape one i dont know of?
[Galaxy Tab  Android Development] -RioT-:
Oh thats good that they replied. I figured they would stall forever. It does sound a bit like smoke blowing but I doubt it's possible for such a team to not find this a neat idea.

I know some netbooks auto rotate but is it really needed. I would like the sensors to work but not on the desktop....and it's not to hard to manual rotate in linux for e reading purposes.

All and all this is a great new thing for the tab. And we can potentially have a desktop computer in our POCKET.

Greatness!
[Galaxy Tab  Android Development] dkelley:
totally ignorant statement here probably, based on only android phone knowledge, not tablet fw knowledge (yet), but isn't the gt's keyboard part of it's android build? in other words it would be gone when flashing this ubuntu variant?

if I'm wrong then that's good of course. I hope I'm wrong.
[Galaxy Tab  Android Development] DemonGloom:
GT keyboard is a dock station with hardware keyboard, not software..
[Galaxy Tab  Android Development] lilstevie:
The hardware keyboard dock that they are talking about has its driver built into the kernel so it should still work under ubuntu, but the software android keyboard is gone yes
[Galaxy Tab  Android Development] ayman07:
i know i am probably being too optimistic but i am excited for this because it might "possibly" save me from buying a netbook. as much as i love my tab it definitely has its limitations. i just hate when i am forced to take my macbook pro with me to school to do one assignment cuz i need a certain app. but im a bit surprised on the progress. great job! in my mind, im thinking you just got the bare essentials working. could you give us a list of what works and what doesnt?

wifi-

bluetooth-

camera-

HID support-

its hard for me to imagine that all these things work already in such a short time, i mean we can barely get the camera working on the gingerbread port! bluetooth would be essential for the keyboard and mouse which of course would require HID support. thanks for all your hard work.
[Galaxy Tab  Android Development] cb22:
WiFi works great.

The touchscreen works with my modified driver, and allows hovering and right clicking.

Camera - haven't looked at it, but updating the Kernel we're using with the patches, it should just work as a V4L device...

Bluetooth - I've glanced at this, it seems as if it's present as a serial device and needs firmware loaded onto it, haven't really looked further.
[Galaxy Tab  Android Development] lilstevie:
if anyone is interested, baseband is going to require some reversing and reimplementation of rild and its associated modules, without it we will not be able to boot the baseband device :(
[Galaxy Tab  Android Development] DemonGloom:
Now we just want to test default image with working gcc.. Other features like BT, Camera and GSM can wait :)
[Galaxy Tab  Android Development] lilstevie:
Just Updated second post with a Download link to a prebuilt kernel for internal sd installs, so if anyone is game they can build a rootfs from the instructions available on the meego wiki, getting the rootfs image is going to take a bit of time as my uploads are slow (384kbit)
[Galaxy Tab  Android Development] DemonGloom:
Now i need to download ubuntu to my pc for rootfs building.. That's a pity, i prefer OpenSUSE :(

BTW, is it possible to launch from external SD? It wil be a bit safier for tests..
[Galaxy Tab  Android Development] lilstevie:
Yeah it is possible, just requires a small change to the kernel config for the command line root= option.
[Galaxy Tab  Android Development] -Mr. X-:
Can you post an external sd kernel as well? id like to try that out.
[Galaxy Tab  Android Development] waz000000:
[humble]Any chance of a small instructional aid on how to get this built etc, im fairly tech minded but don't know where to start on this one[/humble]
[Galaxy Tab  Android Development] -Mr. X-:
I can build and upload a root fs image if you like. but its not going to have your touchscreen driver in it... or any other special changes you have made.
[Galaxy Tab  Android Development] cb22:
You can grab my kernel from http://intl.federico.co.za/zImage

Modified XOrg touch driver at http://intl.federico.co.za/mtev.so

XOrg conf.d file at http://intl.federico.co.za/touch.conf

My kernel has a few patches, and is hard coded to boot from MicroSD

The command I'm using to generate a rootfs is:

rootstock --fqdn GalaxyTab --login ubuntu --password ubuntu --imagesize 5G --seed netbook-launcher-efl,onboard,ubuntu-netbook-efl-default-settings,openssh-server,xorg,gdm,gnome-terminal,gok,network-manager-gnome,gnome-panel --copy-package-cache

which is a slightly modified one of lilstevie's.

Now, this will generate a rootfs.tgz for you. Get a 2GB or bigger MicroSD, format it as EXT4 and tar -xzpvf it.

Then, copy mtev.so from above to usr/lib/xorg/modules/input/

touch.conf goes into etc/X11/xorg.conf.d/

Flash the kernel to your tab, and boot with the MicroSD in. If all goes well, you should be greeted by GDM, and have the ability to select an on screen keyboard, login, and play around.

These steps intentionally left vague ;)
[Galaxy Tab  Android Development] waz000000:
Brilliant thanks mate off to the main pc to get started
[Galaxy Tab  Android Development] TheGrammarFreak:
How much data will that rootstock thing download?
[Galaxy Tab  Android Development] cb22:
Roughly 250MB or so.
[Galaxy Tab  Android Development] TheGrammarFreak:
Sweet. I'll have a crack at building then. Thanks!
[Galaxy Tab  Android Development] -Mr. X-:
rough estimate it appears at least 300-400mb just watching it go by in my terminal.

Ediit: Never mind didnt see the above.
[Galaxy Tab  Android Development] TheGrammarFreak:
My build seems to have become stuck at setting up xulrunner... Any ideas?

Setting up metacity (1:2.30.2-0ubuntu1) ...
update-alternatives: using /usr/bin/metacity to provide /usr/bin/x-window-manager (x-window-manager) in auto mode.
Setting up libexempi3 (2.1.1-1build2) ...
Setting up libexif12 (0.6.19-1) ...
Setting up libnautilus-extension1 (1:2.32.0-0ubuntu1) ...
Setting up nautilus-data (1:2.32.0-0ubuntu1) ...
Setting up libglib2.0-data (2.26.0-0ubuntu1) ...
Setting up nautilus (1:2.32.0-0ubuntu1) ...
Setting up gnome-session-common (2.32.0-0ubuntu1) ...
Setting up gnome-session (2.32.0-0ubuntu1) ...
update-alternatives: using /usr/bin/gnome-session to provide /usr/bin/x-session-manager (x-session-manager) in auto mode.
Setting up libsigc++-2.0-0c2a (2.2.4.2-1) ...
Setting up libglibmm-2.4-1c2a (2.25.5-0ubuntu1) ...
Setting up libcairomm-1.0-1 (1.8.4-3) ...
Setting up libpangomm-1.4-1 (2.26.2-1) ...
Setting up libgtkmm-2.4-1c2a (1:2.20.3-1) ...
Setting up gnome-system-monitor (2.28.1-1ubuntu1) ...
Setting up gnome-terminal-data (2.32.0-0ubuntu1) ...
Setting up gnome-terminal (2.32.0-0ubuntu1) ...
update-alternatives: using /usr/bin/gnome-terminal.wrapper to provide /usr/bin/x-terminal-emulator (x-terminal-emulator) in auto mode.
Setting up librarian0 (0.8.1-4.1) ...
Setting up rarian-compat (0.8.1-4.1) ...
Setting up scrollkeeper (0.8.1-4.1) ...
Setting up xulrunner-1.9.2 (1.9.2.10+build1+nobinonly-0ubuntu1) ...
[Galaxy Tab  Android Development] -Mr. X-:
mine as well ill wait it out. its doing something my cpu is busy it seems
[Galaxy Tab  Android Development] TheGrammarFreak:
Fair 'nuff. I'll leave it overnight methinks. :D
[Galaxy Tab  Android Development] -Mr. X-:
i ended it after some reading. Some say its a bug that has not not been fixed in rootstock. When to many seeds are added it ends up ****ting the bed part way in...

I can get the 'rootstock --fqdn GalaxyTab --login ubuntu --password ubuntu --imagesize 5G --seed netbook-launcher-efl,onboard,ubuntu-netbook-efl-default-settings,wicd,wicd-curses,wicd-cli'

to build fine tho
[Galaxy Tab  Android Development] TheGrammarFreak:
Ok, I'm giving that a shot.
[Galaxy Tab  Android Development] -Mr. X-:
I removed gok and openssh server from the originally command that hung to try right now.
[Galaxy Tab  Android Development] -Mr. X-:
No dice removing those seeds. Probably have to remove more. I decided to take a break and watch hockey though lol
[Galaxy Tab  Android Development] TheGrammarFreak:
It worked for me, I'm just struggling with Linux and an SD card reader not being on the same machine. :D
[Galaxy Tab  Android Development] -Mr. X-:
well i got it to boot, its kind of useless with out the gdm or any gui to play with. :P

i want to use cb22's but i cant get the thing to finish.
[Galaxy Tab  Android Development] TheGrammarFreak:
I cannot format my SD card to ext4

mke2fs -j -m0 -b4096 -Ohas_journal,uninit_bg,dir_index /dev/block/mmcblk1p1

throws "lseek: Value too large for defined data type"

and tune2fs says that -O is an invalid option.

Any ideas?
[Galaxy Tab  Android Development] cb22:
Sorry about that - when I posted mine was still running and I did not know there was a bug with rootstock and xulrunner.

One way to get around it... Enable the "keep image" option of rootstock, then when it hits xulrunner, look up the process and kill it. It will contiune with the rest of the packages. Now, use df to show you where the image is mounted. Go there and simply tar everything up yourself.

I'm posting this from my N900 lying in bed... So I haven't tried out those steps.. I actually moved umount to umount.no to make sure it kept the image around, but keep-image should do the same
[Galaxy Tab  Android Development] cb22:
No dice with mkfs.ext4 or gparted?
[Galaxy Tab  Android Development] TheGrammarFreak:
mkfs.ext4 doesn't exist on my Galaxy Tab, and I don't have any way of plugging my SD card into my Linux computer.
[Galaxy Tab  Android Development] -Mr. X-:
I will give that a try cb22, i'm sure i'll figure something out. Thanks.
[Galaxy Tab  Android Development] lilstevie:
use "parted" to make the fs ext2 then use tune2fs to convert it to ext4
[Galaxy Tab  Android Development] cb22:
Ah ok... Sure, good luck.

Unfortunately my SD card is hosed at the moment, so I need to get a replacement - I've got a root but I'm not sure how well it works. Like lilstevie I too am stuck on a slow upload connection... (and have to put up with per/GB meterage)
[Galaxy Tab  Android Development] -Mr. X-:
If i get something sorted ill upload a root for every one to play with. I can use my work connection its fast and unlimited lol

Sent from my GT-P1000
[Galaxy Tab  Android Development] ayman07:
Wait.... no GUI??

From the Tab.

www.twitter.com/ayman07
[Galaxy Tab  Android Development] lilstevie:
There is GUI, just depends how you set the rootfs up
[Galaxy Tab  Android Development] ayman07:
Got worried for a sec. I would attempt this it seems like it would be beyond me.....patiently wait for ur lovely packaged setup :)

From the Tab.

www.twitter.com/ayman07
[Galaxy Tab  Android Development] TheGrammarFreak:
Finally got it to boot! Now to get GDM and the like :D
[Galaxy Tab  Android Development] DemonGloom:
BTW, Anyone want to try http://cdimage.ubuntu.com/ubuntu-ne...10.10-preinstalled-netbook-armel+omap4.img.gz ? That seems to be default prebuild image compatible with our CPU.. Just need to add our touch driver, X.org config and kernel..

And i will try to build xubuntu now..
[Galaxy Tab  Android Development] Xerocus:
Interesting

Wow, I'm loving the TAB - it will rule all once ubuntu is flashed....

I remember on my HD2 i had issues with sound(imagine it is driver related of something of such nature) is sound working on this build?
[Galaxy Tab  Android Development] -Mr. X-:
Oh and don't forget to take into account that i'm most definitely doing something wrong. As i can see im getting errors on boot, and it halts at a terminal style login.

Mostly because im a noob to this kind of stuff, but more because im confused about where the root mount point will be.

What would i put in fstab to mount the external sd as the root fs?

Aslo, im sure im just a noob but, moddep seems to be missing from my chroot environment after following the wiki and what not.
[Galaxy Tab  Android Development] lilstevie:
As of now sound is finicky, it will work if you stand on 1 foot pat your head 3 times and rub your tummy in a counterclockwise direction.

in all seriousness though, it is a ***** to get audio output, and plainly not worth it, it is something that may be fixed in the future
[Galaxy Tab  Android Development] Xerocus:
WHAHAHAHA - Funniest ever!

Thats a real shame about the output issues - I'll be looking forward to a version that does it all.
[Galaxy Tab  Android Development] TheGrammarFreak:
@lilstevie, @cb22:

What with the xulrunner bug thing, how haver you got GDM running? When I did what cb22 suggested I ended up with a bootloop (kill the xulrunner process, let it finish but not unmount the image, then tar it up manually). I "flashed" that, and it bootloops

Any ideas?

EDIT:

Of course, the other option would be to stop xulrunner from being installed. Isn't it part of firefox? So is there a way to stop it from being installed. I fully expect to be wrong here
[Galaxy Tab  Android Development] DemonGloom:
If you check your image, you will find no Xorg there.. So it must bootloop :) About xulrunner - seems that this bug is not only with xulrunner..
[Galaxy Tab  Android Development] -Mr. X-:
its not xulrunner thats the issue, it can freez on anything really in stage two. its a bug thats been in rootstock since 10.04 and i dont think it appears to be fixed yet.

It happens when you add too many seeds, too many as in it ****s its self after so many seeds, it should allow you to add as many seeds as you like. Pretty nasty bug i must say.
[Galaxy Tab  Android Development] DemonGloom:
xubuntu hangs too..

--seed xorg,xfce4,gdm,xubuntu-gdm-theme,gok

btw, rootstock hands if there is lots of seeds or if footprint is too big?
[Galaxy Tab  Android Development] lilstevie:
for the most part I build my image from ssh once built
[Galaxy Tab  Android Development] TheGrammarFreak:
Ok, I got it to boot to the KDE login screen. However, whenever I touch the screen X restarts (I think, it goes black then then logon screen reloads)

Any ideas?
[Galaxy Tab  Android Development] cb22:
Have you installed my driver from my post earlier?