yashsingh1/xdaforums huggingface dataset:
[Eee Pad Transformer Android Development] giveen:
Re: [Linux] [Dev] [WIP] Ubuntu Touch on the TF101 - PrePreAlphaBeta - It Boots!

Do you need to change resolution to get rid of the blank screen?

http://pastebin.com/bQNPkYnp
[Eee Pad Transformer Android Development] jholtom:
No, thats to fix the oversized items problem, your blank screen looks to have something to do with ubuntuappmanager crashing. See if you can get adb access to the device.

EDIT: giveen: please try to keep development for other devices out of another device thread/forum.
[Eee Pad Transformer Android Development] prog19:
I can't adb my transformer since i've updated it to JB.

I have to update the android sdk ?

Without it i can't fix resolution...

can someone please help me ?
[Eee Pad Transformer Android Development] jholtom:
Yeah, you will need to update the Android SDK to get it going, if not you can wait for version 0.5 which will have the resolution fix built in.
[Eee Pad Transformer Android Development] sttovo:
I got the resolution problem sorted out. I edited the ubuntu-session file manually and copied over via TWRP. And it took me 10 minues to figure out the Ubuntu browser URL entry was a slide up from the bottom. This whole process is making me feel like such an idiot. PS - I'm typing this post from Ubuntu Touch on my TF101. So cool!!!
[Eee Pad Transformer Android Development] *Detection*:
A few people are having problems with abd, one solution a page or two back is to download the fixed ubuntu-session and use TWRP recovery to move it to the correct dir and then give it the correct permissions

Or wait for the dev 'jholtom' to provide the build with the rez fix boot script

I would suggest reading through this whole thread, its not that long and will give anyone who is getting stuck, a good amount of info as to what is coming up and how to fix most things :)

---------- Post added at 12:01 AM ---------- Previous post was at 12:00 AM ----------

Good stuff ;)

Hey everyone is new at this so don't feel bad, Ubuntu Touch is cutting edge and not even officially supported on our Transformers other than here :)
[Eee Pad Transformer Android Development] lennyssoto:
But from what I see it's gotten farther than other platforms!!!!! Congrats!
[Eee Pad Transformer Android Development] *Detection*:
It certainly has, jholtom has done us proud, and provided fixes in the actual initial flash rather than 'DIY' post flash, as much as is possible. :)
[Eee Pad Transformer Android Development] kkttt:
Sorry for noob question: Which folder do I put this script via recovery?

Thanks.
[Eee Pad Transformer Android Development] zooyork0721:
i cant get the sizing to fix :o haha after the scripts you say to type in, what after that ?
[Eee Pad Transformer Android Development] Kingzak34:
That's simply awesome :)

Thanks to all workers ! I'm waiting for that ! :D
[Eee Pad Transformer Android Development] jholtom:
That script is just what i'm adding into the flash of 0.5 so that no one has to do the screen resolution fix themselves, on first boot it will run and patch if for you.

Expect 0.5 within 2 hours of this post.

EDIT: UPLOADED
[Eee Pad Transformer Android Development] ThrashMan:
Just downloaded and installed....I still have giant keyboard.
[Eee Pad Transformer Android Development] jholtom:
Try adb shell, and then running /system/bin/resfix and then reboot.

Thanks!
[Eee Pad Transformer Android Development] ThrashMan:
Thanks for the suggestion but ADB isn't up in Ubuntu....or I've done something wrong :)
[Eee Pad Transformer Android Development] JoinTheRealms:
Should be, you also need to be signed into an account for adb to work, if not id say its a pc side issue
[Eee Pad Transformer Android Development] jholtom:
Re: [Linux] [Dev] [WIP] Ubuntu Touch on the TF101 - PrePreAlphaBeta - It Boots!

New version upload under same version number. Adds brightness and hopefully fixed resolution on boot. Else in recovery chmod 777 /system/bin/resfix
[Eee Pad Transformer Android Development] JoinTheRealms:
lol your releasing these faster than i can flash them, i'll report back on how it goes
[Eee Pad Transformer Android Development] *Detection*:
I should be back to help test tomorrow, this weekend has given me a major hangover, and from experience, hangover and computers end up with confusing results ;)
[Eee Pad Transformer Android Development] jholtom:
Re: [Linux] [Dev] [WIP] Ubuntu Touch on the TF101 - PrePreAlphaBeta - It Boots!

Turns out playing certain games ::cough:: tf2 /cough while drunk or high produces some of the best fun ever

On the other hand developing is not something you should be doing
[Eee Pad Transformer Android Development] *Detection*:
Games yes, much more fun when wrecked, anything serious, not so much even if it feels good at the time ;)
[Eee Pad Transformer Android Development] zooyork0721:
i flashed 0.5 and everything is still huge :confused:
[Eee Pad Transformer Android Development] jholtom:
run /system/bin/resfix from adb shell and then reboot.
[Eee Pad Transformer Android Development] zooyork0721:
Microsoft Windows [Version 6.2.9200]

(c) 2012 Microsoft Corporation. All rights reserved.

C:\Users\Ryan>adb shell

root@android:/ # ubuntu_chroot shell

ubuntu_chroot shell

root@localhost:/# vi /usr/bin/ubuntu-session

vi /usr/bin/ubuntu-session

←[1;24r←[?25h←[?8c←[?25h←[?0c←[27m←[24m←[0m←[H←[J←[?25l←[?1c←[24;1H"/usr/bin/ubuntu-sessio

n" 127 lines, 4352 characters←[1;1H#!/bin/bash

################################################################################←[4;1H# Co

pyright 2012-2013 Canonical Ltd.

#

# This program is free software: you can redistribute it and/or modify it

# under the terms of the GNU General Public License version 3, as published

# by the Free Software Foundation.

#

# This program is distributed in the hope that it will be useful, but

# WITHOUT ANY WARRANTY; without even the implied warranties of

# MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR

# PURPOSE. See the GNU General Public License for more details.

#

# You should have received a copy of the GNU General Public License along

# with this program. If not, see <http://www.gnu.org/licenses/>.

################################################################################←[19;1Hexp

ort HOME=/home/phablet

echo "Redirecting output to local session logs"

exec &> "$HOME/.ubuntu-session/logs/ubuntu-session.log"

# Default for any application executed from this script←[1;1H←[?25h←[?0c

sorry this is what i did, am i missing anything?
[Eee Pad Transformer Android Development] JoinTheRealms:
Need to run from linux, not sure what a alternative windows command would be.
[Eee Pad Transformer Android Development] zooyork0721:
ohh okay cool thank you! haha i was wondering why nothing was happening :) i have another hard drive with linux booted i will try later, im guessing linux mint 14, or ubuntu 12.10 will be fine right ?
[Eee Pad Transformer Android Development] JoinTheRealms:
id go ubuntu but mint will be fine, Also i forgot about cygwin, is pretty much a linux terminal port for windows you could give that a try
[Eee Pad Transformer Android Development] RuisuMercha:
You also can do it from a Macintosh
[Eee Pad Transformer Android Development] garyngkt:
jholtom - I thought 0.5 was suppose to fix resolution issues automatically correct?.I am not very familiar with adb shell so was hoping something simpler for me to start with. Thanks for the effort.
[Eee Pad Transformer Android Development] JoinTheRealms:
With 0.5 jholtom has placed a script inside ubuntu and all we do is use adb to run the script, you basically need to run that command from an adb shell (i cant really explain that here, if you want send me a pm and ill give you a hand getting it up and running)
[Eee Pad Transformer Android Development] garyngkt:
Ok noted. Thanks for the tip. Really need to catch up with whats happening here :fingers-crossed:
[Eee Pad Transformer Android Development] jholtom:
I'm trying to get that script to launch at boot, but for the life of me can't get it to work. So for now you'll have to either run the script or do it manually.
[Eee Pad Transformer Android Development] sttovo:
Re: [Linux] [Dev] [WIP] Ubuntu Touch on the TF101 - PrePreAlphaBeta - It Boots!

I noticed you write a tag file after running the res fix script so that it only runs once. Might want to take that out in the short term until the script runs fine on first boot.

Even if someone can run the script, the tag file prevents a second run.
[Eee Pad Transformer Android Development] danielholm:
There has to be a way to bundle the working ubuntu-sessions file with the real zip?
[Eee Pad Transformer Android Development] jholtom:
I removed the tag file in the new version

Also I could easily bundle the working one, but you forget that canonical updates that image, and I do not want to have to update my part with that new edited file everytime canonical launches a new version of the image, because that could keep me more busy than maintaining this thing in the first place :)
[Eee Pad Transformer Android Development] Jedi223:
Hadn't had a chance to look at it that closely yet, but would it be an idea to make the scritpt start as a cronjob @reboot at the android side? (if it has a cronjob system at all)

Nice work btw porting it, runs kinda smooth already on my tf101
[Eee Pad Transformer Android Development] jholtom:
Re: [Linux] [Dev] [WIP] Ubuntu Touch on the TF101 - PrePreAlphaBeta - It Boots!

good idea, i'll look into android if it has cron or similar to do that kind of thing
[Eee Pad Transformer Android Development] bfmetcalf:
According to my phone running a team baked ROM cron seems to be installed

u0_a7@android:/ # crontab
BusyBox v1.20.2-jb bionic (2012-10-25 21:29 +0100) multi-call binary.

Usage: crontab [-c DIR] [-u USER] [-ler][FILE]

etc....etc....etc....
[Eee Pad Transformer Android Development] jholtom:
Lets try this one more time, new version uploading right now under 0.5 moniker still.
[Eee Pad Transformer Android Development] danielholm:
Sv: [Linux] [Dev] [WIP] Ubuntu Touch on the TF101 - PrePreAlphaBeta - It Boots!

Yupp. Either a cron job at boot or using a init script.

---------- Post added at 08:00 PM ---------- Previous post was at 07:58 PM ----------

What is the next step: Camera; Sensors; Bluetooth; Sound?
[Eee Pad Transformer Android Development] Jedi223:
Correct font display and HW accel in my opinion. (good working keyboard dock as well for me, backspace and lots of other buttons do not work as they should :( )

I'm digging into the source and using google-fu to come op with something for the fonts. Haven't got a clue as of yet.
[Eee Pad Transformer Android Development] FranzJesus:
As a temporary workaround for people who don't like adb, I have attached a zipfile here which you can apply with twrp recovery after flashing ubuntu.

This will fix the resolution problem.
[Eee Pad Transformer Android Development] jholtom:
Re: [Linux] [Dev] [WIP] Ubuntu Touch on the TF101 - PrePreAlphaBeta - It Boots!

so the latest version does not work to fix it out of the box?
[Eee Pad Transformer Android Development] danielholm:
Sv: [Linux] [Dev] [WIP] Ubuntu Touch on the TF101 - PrePreAlphaBeta - It Boots!

I think that when the dock is connected, the tab should switch to the full desktop.

Right?
[Eee Pad Transformer Android Development] FranzJesus:
Sv: [Linux] [Dev] [WIP] Ubuntu Touch on the TF101 - PrePreAlphaBeta - It Boots!

Not for me atleast. But I am not completely sure I got the latest. It was the same versionno, yes?
[Eee Pad Transformer Android Development] Jedi223:
Btw, the logs are getting spammed with (dis)charging messages.

bq20z45_get_capacity val->intval=18 ret=21
charging current ret=1605
charging voltage ret=8400
bq20z45_get_psp val->intval =Not charging ret =c7 charging=0
bq20z45_get_capacity val->intval=18 ret=21

Might want to get rid of those before someone burns through the flash r/w

EDIT*

edit /etc/rsyslog.d/50-default.conf and comment out the standard log files. (then 'sudo service rsyslog restart')

Turn them on as needed for debugging purposes.
[Eee Pad Transformer Android Development] JoinTheRealms:
I noticed some aggresive battery use when sitting at login page, tablet got quite hot. Would it be hard to implement some kind lid logic like used in android roms, so the tablet knows when the lid is open or closed? if my screen goes off i cant turn it back other than an adb restart lol (my power button doesnt work)

btw the browser is surprisingly good, quite smooth for how eaarly it is. Kind of un-useable as of yet (took me like 5 minutes to log into xda lol) but moving fast!
[Eee Pad Transformer Android Development] jholtom:
I can look into that, also Jedi123, thats not something I have control over, thats on the ubuntu end...sorry!
[Eee Pad Transformer Android Development] RuisuMercha:
Well, the screen rotation is working ?

Is not native from Ubuntu Touch yet ?

Does not works with the 10.1 Tablets ?

What ?

Well, there must be a way to turn it portrait, isn't it ?
[Eee Pad Transformer Android Development] Wesp1024:
Will you also be looking at the 3G version of the TF101 at a later stage?
[Eee Pad Transformer Android Development] MassStash:
Re: [Linux] [Dev] [WIP] Ubuntu Touch on the TF101 - PrePreAlphaBeta - It Boots!

It's very demo still. It's amazing WiFi is working. Anyone else have keyboard go away when trying to use numbers for WiFi password?

~S-Off LTEvo; Viper4G_3.x.x; Elementalx

cpu0/1: 1.7ghz ¦ 192mhz ¦ sleep: 486mhz max

Intellidemand

fiops

mpdecision: off
[Eee Pad Transformer Android Development] deadite66:
If i use any key from the top row the keyboard disappears.
[Eee Pad Transformer Android Development] transformador:
How can i open a terminal?(want to apt-get stuff :))( i have adb problems, not ubuntu touch related)

Amazing work :)
[Eee Pad Transformer Android Development] danielholm:
Sv: [Linux] [Dev] [WIP] Ubuntu Touch on the TF101 - PrePreAlphaBeta - It Boots!

I dont think it's done yet.
[Eee Pad Transformer Android Development] jholtom:
No terminal yet, If you adb shell, ubuntu_chroot in though you can run apt-get update and such and install xterm or gnome-terminal and use those onscreen.
[Eee Pad Transformer Android Development] Jedi223:
When in ubuntu_chroot do 'apt-get install openssh-server'

Then you can SSH into your tf101 from your network.

Makes everything so much easier (no USB connection required is but one example)

Also don't forget to put the next two lines in /etc/apt/sources.list for the latest Ubuntu phablet updates

deb http://ppa.launchpad.net/phablet-team/ppa/ubuntu quantal main
deb-src http://ppa.launchpad.net/phablet-team/ppa/ubuntu quantal main
[Eee Pad Transformer Android Development] *Detection*:
Looks like some nice improvements since I last tested, beginning to feel well enough for computers and linux again :p sucks getting old, takes a week to recover from a weekend
[Eee Pad Transformer Android Development] jholtom:
If you have a moment can you grab a dmesg and adb logcat from the latest build after trying to watch a video?

Along with a list of files in /var/log...thanks!

Just trying to do some work on the hardware acceleration issue...
[Eee Pad Transformer Android Development] *Detection*:
Yep, give me a few minutes to get everything booted :)

EDIT - Gonna have to wait a while, seems the tablet didn't shutdown fully last time I used it, I left it with both batteries fully charged, now both are empty a couple days later

I did notice when I was trying to boot into recovery that I had to power it off, then hold power for a good few seconds again before it would let me power it back on again, might be worth looking into that too, I`ll power it off to give it as fast a charge as I can

Another reason not charging from the PC sucks

--EDIT-- Managed to grab those results, back to charging ;)

dmesg

http://pastebin.com/G7cxrmEk

logcat after video

http://pastebin.com/bFQ87V8a

/var/log

alternatives.log btmp dmesg.2.gz fontconfig.log mail.log wtmp
apt ConsoleKit dmesg.3.gz fsck news
auth.log dmesg dmesg.4.gz kern.log samba
boot dmesg.0 dpkg.log lastlog syslog
bootstrap.log dmesg.1.gz faillog mail.err upstart
[Eee Pad Transformer Android Development] transformador:
Since i have no adb option, is it possible to create a flashable terminal script?
[Eee Pad Transformer Android Development] frederuco:
If you are looking for the resolution fix, see this:

Flash the TF101 specific, then the big file, then this script.

I tried it yesterday and it worked perfectly.
[Eee Pad Transformer Android Development] *Detection*:
Also you can download the ubuntu-session I posted a few pages back and copy it to the said folder using TWRP, then CHMOD it

http://xdaforums.com/showpost.php?p=38676095&postcount=266
[Eee Pad Transformer Android Development] sttovo:
Re: [Linux] [Dev] [WIP] Ubuntu Touch on the TF101 - PrePreAlphaBeta - It Boots!

What's the update schedule / plan for core Ubuntu Touch? I'm loving what's in place right now, but like we all know, it has a ways to go. Will we see weekly/monthly updates?

I like the idea of going adb to ubuntu_chroot to install packages, but I'm one of the ones that doesn't have a working adb once Ubuntu is booted (fine in TWRP).
[Eee Pad Transformer Android Development] JoinTheRealms:
To those whose adb isnt working, have you updated adb for jellybean?
[Eee Pad Transformer Android Development] sttovo:
Re: [Linux] [Dev] [WIP] Ubuntu Touch on the TF101 - PrePreAlphaBeta - It Boots!

I grabbed the latest from the Google download site. When I start the Manager app, it says 4.2.2. But, that might explain why adb works in TWRP but not in Ubuntu. I assume the Android kernel that Ubuntu runs on is 4.2.2?
[Eee Pad Transformer Android Development] *Detection*:
When I first used adb on my laptop (wubi ubuntu) it prompted me to install it via Terminal, which I did and has worked every time since so I guess I have the latest version
[Eee Pad Transformer Android Development] kevhuff:
Im trying to learn how to port this would you care to elaborate with this part

From the individual device wiki page, grab the git repositories that are specific to your device, and update your local manifest.xml file (inside the <root>/.repo folder) including them, such as:

Kernel Device specific

As a result you should have something like:

kernel/[manufacturer]/[codename]

device/[manufacturer]/[codename]

And by the way this is great progress thank you for sharing
[Eee Pad Transformer Android Development] sttovo:
Did you change the repository? I just installed Ubuntu wubi. Did adb like you said in Terminal, installed. The install is showing 4.1.1.

The following NEW packages will be installed:
android-tools-adb
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 66.8 kB of archives.
After this operation, 181 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu/ quantal/universe android-tools-adb amd64 4.1.1+git20120801-1 [66.8 kB]
Fetched 66.8 kB in 0s (115 kB/s)
Selecting previously unselected package android-tools-adb.
(Reading database ... 147682 files and directories currently installed.)
Unpacking android-tools-adb (from .../android-tools-adb_4.1.1+git20120801-1_amd64.deb) ...
Processing triggers for man-db ...
Setting up android-tools-adb (4.1.1+git20120801-1) ...
[Eee Pad Transformer Android Development] *Detection*:
I don't remember adding any repositories, here is my list in case I did (The phablet tools were installed much later and ADB was already working, might not hurt to add them anyway)
[Eee Pad Transformer Android Development] f69m:
Re: [Linux] [Dev] [WIP] Ubuntu Touch on the TF101 - PrePreAlphaBeta - It Boots!

Currently Canonical releases new images about once a day.

They are working on making "apt-get update" really work, then there should be no need to rely on new images.
[Eee Pad Transformer Android Development] *Detection*:
Just checked in Ubuntu Software Centre and they have the 4.2.2 version of ADB available

android-tools-adb 4.2.2+git20130218-0ubuntu2~quantal1
[Eee Pad Transformer Android Development] bfmetcalf:
Essentially in the .repo/manifests.xml (I think that is the file might be defaults.xml or something like that, not anywhere near my computer at the moment) you would add to the end before the </manifest> part...

<project path="device/asus/tf101" name="jholtom/android_device_asus_tf101.git" remote="github" revision="refs/heads/jellybean_4.2" />

<project path="kernel/asus/tf101" name="jholtom/kernel_asus_tf101-lumpy.git" remote="github" revision="refs/heads/dev" />

This _should_ bring in the git repo from jholtom hopefully. I had this part working at one point, but managed to mess up my arch install and now I can't even run repo sync and have it work. Might have to re-install my / partition in hopes of getting it working again... I really need to stop messing with things!
[Eee Pad Transformer Android Development] jholtom:
That looks like it should bring in my repos so you all can compile it yourselves, if you fix something please please please submit a pull request or pm me so i can add your change(s). I appreciate any suggestions or help i can get. One day I will get a buildbot going and it'll be a little more automated....
[Eee Pad Transformer Android Development] bfmetcalf:
I have been planning on doing some things, but haven't had any time and like I said, my machine has been acting up. I'm probably not going to be a whole lot of help though as I haven't ever done much other than compile, but I'm gonna give it a shot when I have some time this week.
[Eee Pad Transformer Android Development] jholtom:
New build uploading under same moniker as previous (0.5)...i'm just playing with my script to auto resfix....please test to see if autofix works...THANKS!

EDIT: UPLOADED
[Eee Pad Transformer Android Development] csb5731:
Booted up latest 0.5, DPI is fine this time. So your script appears to be working.

Edit: Take that back. Keyboard is HYUGE. Desktop looks OK.
[Eee Pad Transformer Android Development] WindowsSucks:
Re: [Linux] [Dev] [WIP] Ubuntu Touch on the TF101 - PrePreAlphaBeta - It Boots!

+1 on huge keyboard

Sent from my SPH-L710 using Xparent Blue Tapatalk 2
[Eee Pad Transformer Android Development] jholtom:
Re: [Linux] [Dev] [WIP] Ubuntu Touch on the TF101 - PrePreAlphaBeta - It Boots!

So the desktop is fine.... But keyboard is sad... Strange :(
[Eee Pad Transformer Android Development] csb5731:
When I originally installed v .2 and fooled with it, I was starting at ground zero on my knowledge of vi. And running the shell through windows, not linux, so the easiest way for me to make the changes was just by global replace and search. When I changed the values to "10" and "1.2", it said that 8 replacements were made for each.

I should also point out that sidebars that opened from the right, like the notes app, on this 0.5 revision covered about 60% of the screen real estate vs 30ish IIRC when I did that global replacement. I don't know which one is "right".
[Eee Pad Transformer Android Development] szigeza:
Is somebody knows, that we could use LibreOffice or Calligra in Ubuntu Touch?
[Eee Pad Transformer Android Development] JoinTheRealms:
Not for a long while, ubuntu touch is very early, nothing but a few stock apps work as of yet.
[Eee Pad Transformer Android Development] csb5731:
In retrospect, I don't know if desktop is ideal, but it was actually showing up as usable, in that I could actually see everything. To clarify, I posted pics:

I hope I didn't lead you on a wild-goose chase.
[Eee Pad Transformer Android Development] frederuco:
Flash the Resolution Fix from this post in recovery:

Or, do the resolution fix in post 3 via ADB.
[Eee Pad Transformer Android Development] csb5731:
Oh, I have done the stuff in post three and it works. I was just talking about the latest 0.5 version, where there was an attempt at getting this resolved.
[Eee Pad Transformer Android Development] anarox:
Res fix worked when I flashed it after I flashed the lastest rom.

As you guys stated, it is a really early build from ubuntu. Let's hope they release a better one soon so you guys can work your magic on it