yashsingh1/xdaforums huggingface dataset:
[Eee Pad Transformer Android Development] *Detection*:
Who invented the keyboard commands for VI? I want to punch him in the face lol

Anyway I managed to change the 4 entries via VI and saved, then rebooted and taddaaaa I just have a black screen again

And nope, no net yet, did you manage to ?

EDIT - Which lines do I edit? There are LOADS of entries of GRID_UNIT_PX= and QTWEBKIT_DPR=
[Eee Pad Transformer Android Development] danielholm:
I thinkg it was Bill Joy in 1976. But it might've been someone of the later devs. It is not great - at all. Not by my standars, anyway.

Nope. No internet. Still no adb. No adb means nothing can be done...
[Eee Pad Transformer Android Development] *Detection*:
Im getting adb ok... I had to install adb-android-tools or something when I first tried to run it, maybe reinstall that ?

Which lines do I edit? There are LOADS of entries of GRID_UNIT_PX= and QTWEBKIT_DPR=
[Eee Pad Transformer Android Development] jholtom:
ADB is fine, not sure what danielholm's problem is with it. Edit the entris of GRID_UNIT_PX and QTWEBKIT_DPR where it sets the variable should look something like

GRID_UNIT_PX=#
QTWEBKIT_DPR=#

Also stop complaining about vi/vim because it is a great piece of software. Its the best programming environment out there, and file editor to boot.
[Eee Pad Transformer Android Development] *Detection*:
haha, my first time using it and I found a site with cursor movement commands, j for down, h for up etc, but figured out myself I can use the arrow keys, the r for edit under cursor, seems ok to use now

--

UPDATE: Success by changing ALL the entries lol
[Eee Pad Transformer Android Development] :
hey guys some special buttons of the keyboard work!!! only volume buttons and lock button :P but other things aren't working :/ it's normal..... GOOD WORK THANKS :D
[Eee Pad Transformer Android Development] josteink:
You and everyone else who still has their brain intact :p
[Eee Pad Transformer Android Development] *Detection*:
UPDATE - Finally changed the resolution

Working: Charging Indicator via charger & dock

Hardware acceleration might actually be working now, much smoother

Some Fonts are a mess, the section headings are square characters instead of normal fonts
[Eee Pad Transformer Android Development] jholtom:
Come on guys, I love vi and vim. Stop complaining. They are the best file editors, and programming environments out there. Syntax highlighting, code completion.....

For heaven's sake every bit of work I've done on this project was in vi/vim and on the command line through an ssh to my buildbox.

Thanks *Detection*, that HW accel thing might be because of the resolution, I'll add that as a required step to the instructions for setup. I'll look into the fonts in the android part of the build...I can't touch the ubuntu part easily, and I have no reason too.....
[Eee Pad Transformer Android Development] josteink:
I could say the same about emacs and my cm10.1. It seems no place on the internet is too small for an emacs vs vi(m) showdown! :D

But really: I'll shut up now :p
[Eee Pad Transformer Android Development] jholtom:
It's fine, we probably should get back to development though. This argument will never end. Ah well. The joys of having opinions. BTW your cm10.1 is pretty darn good, thanks for the work you've done.
[Eee Pad Transformer Android Development] *Detection*:
Looks like Audio works too, but volume control does not, so its very quiet, I tried to record the sound from the video but don't think you can hear it

Video doesn't show up either

Demo

http://youtu.be/o9s8F5cwhp0
[Eee Pad Transformer Android Development] jholtom:
Looks pretty good,::pats on back::, Thanks for the vid, added to OP

can you grab me a logcat while you launch and try and play the video and then pastebin it or similar?

Thanks!
[Eee Pad Transformer Android Development] *Detection*:
Yep I`ll give it a shot now

So far on the dock only the Lock key (Top right) works to lock it and turn off the screen as normal

---------- Post added at 03:42 PM ---------- Previous post was at 03:32 PM ----------

I think I got this right

Type: adb logcat -d > logcat.txt

Then load a video? Or should I have loaded the video and then started logcat ?

Pastebin

http://pastebin.com/t3xSvLA1
[Eee Pad Transformer Android Development] jholtom:
nope your good! thanks!
[Eee Pad Transformer Android Development] danielholm:
I can use adb while in recovery, but not Ubuntu. Any other ideas?
[Eee Pad Transformer Android Development] *Detection*:
Good good :)
[Eee Pad Transformer Android Development] jholtom:
Absolutely no clue, ADB is working for everyone else in Ubuntu, so I'm rather confused, as no ADB, means no logcat, which makes this harder. Does ubuntu boot and work for you correctly?
[Eee Pad Transformer Android Development] transformador:
I dont get how to enable hw acceleration. Anyone can explain it?

And i cant go to adb, it is not working in general for my tf(not in android, ubuntu, recovery), i tried everithing a month ago.

Is there a way to do the stuff on the transformer manually?

And 3.: is there a wifi fix?
[Eee Pad Transformer Android Development] *Detection*:
Could it be anything to do with SBK1 vs SBK2 do you think?

I'm SBK1
[Eee Pad Transformer Android Development] jholtom:
Ok, so HW acceleration is not working at all, the ADB we are talking about is the resolution problem, you can open a terminal on the device on the apps screen AFAIK and use the onscreen keyboard to do it there. WiFi has not been fixed yet, I am working on that right now, along with the video problems (HW accel related).
[Eee Pad Transformer Android Development] transformador:
Maybe i can help you with wifi :)

Are the right kernel modules in /lib/modules? xD

37 minutes until my image is downloaded :)
[Eee Pad Transformer Android Development] *Detection*:
If HW/A is not working at all, considering how it scrolls as it does atm, then I'm thinking is should be pretty damn smooth once it is working

Just typed: Terminal into the search bar but it didn't find anything

But just realised I used the dock to type and it worked fine
[Eee Pad Transformer Android Development] jholtom:
AWESOME! one more thing to add to the working list. this is pretty good for the amount of edits I had to make.
[Eee Pad Transformer Android Development] *Detection*:
I know :) I was expecting for it to boot to either a text login terminal or a barebones driverless shell of a UI with no touchscreen

Very surprised at just how much works ootb

Been running it from the dock battery since I got up and still running from the dock battery, it hasn't touched the tablet battery at all

Either the microphone, or the speech recognition isn't working, hit the mic button to say a command but doesn't seem to hear me and just asks me to type or talk again
[Eee Pad Transformer Android Development] jholtom:
It's the microphone that isn't working. The speech recognition needs WiFi too AFAIK, but the speech recognition has been confirmed working by Canonical and others with better ports than us. :p
[Eee Pad Transformer Android Development] *Detection*:
Ah ok, mic sounds like an easier fix than the recognition side of it :)

Don't know if it will help, but this is the problem with some of the fonts

Some are perfectly fine, but seems maybe the Bold ones or Capitals are messed up
[Eee Pad Transformer Android Development] jholtom:
I'll prioitize the WiFi above the mic and fonts, right now but I'll keep them in mind if I see something along my way. Thanks!
[Eee Pad Transformer Android Development] *Detection*:
Agreed, Wifi makes ROMs much more fun :)

I was reading apt-get update works with some already net enabled tablets, maybe that will fix some stuff too
[Eee Pad Transformer Android Development] jholtom:
Yep, apt-get works as does a lot of other things, which will mean we can get some even cooler stuff going once wifi is fixed. If anyone has ideas, post, pm me or submit a pull request to the appropriate repo. Thanks!
[Eee Pad Transformer Android Development] transformador:
Which kernel does this use?

and yeah i know that only that kernel works.
[Eee Pad Transformer Android Development] jholtom:
It uses a branch of the fatKAT kernel I modified, source is in the OP,
[Eee Pad Transformer Android Development] danielholm:
I know. Its wierd... Yes. Ubuntu boots, and works (with the known glitches and stuff). But I need to change the screen size - thats why I want adb (among other things).

And I have an SBKv2 device.
[Eee Pad Transformer Android Development] *Detection*:
I wonder if I do a Nandroid of my fixed screen rez ROM, if you could restore it ?

Would just be System right ?
[Eee Pad Transformer Android Development] jholtom:
No, the change you are making in /usr/bin/ubuntu-session is in the data partition, so yes you could but it would be pretty damn big.
[Eee Pad Transformer Android Development] *Detection*:
Ah, I didn't wipe my Droid /data though, TWRP is saying 1191MB for Data, does that include my Droid Data too ?

EDIT - This guy seems to have it working up to our stage, but looks slightly smoother and fonts are ok

http://xdaforums.com/showpost.php?p=38579981&postcount=14

He says " i used lumpy kernel and no-names cm 10.1 device tree, had to do a little patching and this is the result:"

Skip to 0:56

https://www.youtube.com/watch?v=Dp7Tt7W7-3s

---------- Post added at 05:27 PM ---------- Previous post was at 05:13 PM ----------

Just noticed, TWRP has "ADB Sideload" feature

Maybe you can get your machine to recognise it in recovery instead
[Eee Pad Transformer Android Development] jholtom:
I used the lumpy kernel which is really a branch of the fatKAT kernel, and i also used the no-name device tree..so I'm interested to see what he did to get different results than I did.
[Eee Pad Transformer Android Development] *Detection*:
I've asked him to come across to this thread but realised he only has 1 post so can't post here yet

---------- Post added at 05:59 PM ---------- Previous post was at 05:38 PM ----------

Auto Rotate works !

Tipped the tablet to my ear to listen to a video and got a yellow video box as it rotated

Doesn't seem to rotate on the homescreen though

EDIT - If you swipe back out of the video while it is playing, and get to the main volume slider, it works, it does control the volume correctly but max volume is very quiet so difficult to tell
[Eee Pad Transformer Android Development] bfmetcalf:
Is it normal to have a whole bunch of users that require a password?
[Eee Pad Transformer Android Development] *Detection*:
Not sure but I have them too, I'm guessing as this is a preview build it is just highlighting that you can have multiple user accounts
[Eee Pad Transformer Android Development] bfmetcalf:
Are you just using the guest account then?
[Eee Pad Transformer Android Development] *Detection*:
Yep, only one I can get into, I tried a few 'ubuntu' passwords but no luck

Just found this for enabling net over USB/ADB but I fall at the first hurdle

The first line is not there and there is no usb0 > 4 devices

http://blog.chavant.info/2010/08/20/android-usb-tethering-internet-computer-android
[Eee Pad Transformer Android Development] bfmetcalf:
heck, I couldn't even get vi to work, and I've used it before. couldn't move around at all.
[Eee Pad Transformer Android Development] *Detection*:
Took me a long time, but eventually with a combination of Arrow keys to move the cursor, then 'r' to change the number I am hovering over, eventually got it changed

Press r over the number, then hit the number you want to change it to

Then when your done, press: Shift ZZ to save and exit, then type: reboot

I changed all of the entries and changed the name of the first device to TF101
[Eee Pad Transformer Android Development] danielholm:
Yes. They should all be there for the preview demo.

---------- Post added at 08:20 PM ---------- Previous post was at 08:18 PM ----------

I can use adb in recovery already. Dont find any ubuntu files though. No ubuntuchroot.

Also Im not using TWRP. but clockwork mod touch recovery 6.0.1.4.
[Eee Pad Transformer Android Development] *Detection*:
Wonder if it has anything to do with the recovery then

TWRP 2.3.2.3 is touch too, has a keyboard and all the trimmings, file manager etc

Just managed to navigate to data/ubuntu/usr/bin/ in recovery and copied ubuntu-session to the sdcard

I`ll see if I can get it off the tablet, if you have a file manager in recovery you might be able to copy it straight over the top of yours
[Eee Pad Transformer Android Development] giveen:
Can I ask you if you ever got a blank screen? Mine device is booted up (Dell Streak 7) but I have no display?

Also why did you turn off devtmpfs?
[Eee Pad Transformer Android Development] jholtom:
I'm in IRC giveen, and I didn't turn devtmpfs off. Its on and it boots just fine....We never got a blank screen once we got it booted correctly, never had to make changes to fix display.
[Eee Pad Transformer Android Development] *Detection*:
----

Here is my ubuntu-session with the resolution changes working

http://localhostr.com/files/CnyrNJW/ubuntu-session.

Boot into recovery that has a file manager (TWRP 2.3.2.3 has one) and copy it to

/data/ubuntu/usr/bin/
[Eee Pad Transformer Android Development] jholtom:
I'm recompiling in a few moments with some updates for wifi and will be posting soon. The new mirror is on goo.im so that should be much, much faster. Hope it works...
[Eee Pad Transformer Android Development] *Detection*:
Sweet, will we have to wipe and flash both images again and fix rez again or you think flashing the 50MB over top will work ?
[Eee Pad Transformer Android Development] jholtom:
I think flashing the 50mb over top should work. Thanks for your help in testing!
[Eee Pad Transformer Android Development] *Detection*:
Great, and no probs, I'm enjoying it, been a while since I got this interested in a project :)
[Eee Pad Transformer Android Development] jholtom:
Before flashing,

Can you tell me if there is anything in /system/vendor/firmware? not in the ubuntu_chroot, so just adb root, adb shell, then ls in /system/vendor/firmware

Also cat /proc/config.gz and grep for BCMDHD
[Eee Pad Transformer Android Development] *Detection*:
For the first dir

--

bcm4329.hcd

fw_bcmdhd.bin

fw_bcmdhd_apsta.bin

fw_bcmdhd_p2p.bin

EDIT - Not sure how to do the next two, if I type cat /proc...... etc it brings up a load of symbols and fills terminal

grep BCMDHD hangs terminal
[Eee Pad Transformer Android Development] jholtom:
do a zcat instead of cat

run this:

zcat /proc/config.gz | grep BCMDHD

and post the output if any.
[Eee Pad Transformer Android Development] *Detection*:
CONFIG_BCMDHD=y

CONFIG_BCMDHD_FW_DIR="/system/vendor/firmware"

CONFIG_BCMDHD_NVRAM_PATH="/data/misc/wifi/nvram.txt"

CONFIG_BCMDHD_WIFI_CONTROL_FUNC=y

CONFIG_BCMDHD_HW_OOB=y
[Eee Pad Transformer Android Development] jholtom:
Ok, so download this file jholtom.tk/nvram.txt

Then use adb push to put it on the device

then copy it to /data/misc/wifi/nvram.txt

making any directories as you go, and then reboot and see if wifi is happy.
[Eee Pad Transformer Android Development] *Detection*:
ADB seemed happy to push it straight to that dir

Rebooting now :)

EDIT - No wifi after reboot
[Eee Pad Transformer Android Development] jholtom:
Ok....you can still try the new build here in a few minutes, but I highly doubt it will work. Can you run ifconfig -a in the ubuntu_chroot and post the output?
[Eee Pad Transformer Android Development] *Detection*:
Just getting this

--

Warning: cannot open /proc/net/dev (No such file or directory). Limited output.
[Eee Pad Transformer Android Development] jholtom:
nothing else besides that?

Also outside the ubuntu_chroot, run the same thing and also run

ls /proc/net
ls /proc/net/dev
[Eee Pad Transformer Android Development] *Detection*:
Nope, that's the entire result then it returns to

root@localhost:/#

Just a thought, would we need to set permissions on the new nvram.txt ?
[Eee Pad Transformer Android Development] jholtom:
Shouldn't need too, but run chmod 666 on it just to be sure.

Also check the earlier post with a couple more things to do....
[Eee Pad Transformer Android Development] *Detection*:
What is the CHMOD command for nvram.txt ?

---

Result of other commands

---

root@android:/ # ls /proc/net

/proc/net

root@android:/ # ls /proc/net/dev

/proc/net/dev

root@android:/ # ifconfig -a

-a: No such device

255|root@android:/ #
[Eee Pad Transformer Android Development] jholtom:
Outside of the chroot try running these:

ifconfig
ifconfig wlan0

and also run this inside the chroot

mount -a

back outside the chroot run this for the permissions

chmod 666 /data/misc/wifi/nvram.txt
[Eee Pad Transformer Android Development] *Detection*:
255|root@android:/ # ifconfig

root@android:/ # ifconfig wlan0

wlan0: Cannot assign requested address

255|root@android:/ #

--------

mount -a seemed happy with the command but returned nothing

CHMOD 666 also did the same

Reboot ?
[Eee Pad Transformer Android Development] jholtom:
theres a few more to run, up there....I'm trying to figure out exactly what it is. You might have to wait a little bit for me to think through whats going on. Stay online and hopefully I'll have some info in maybe 10 minutes.

go for the reboot...
[Eee Pad Transformer Android Development] *Detection*:
No probs, I`ll be online for a good while yet

Rebooting

EDIT - No dice, same showing empty networks
[Eee Pad Transformer Android Development] jholtom:
Can you run dmesg and pastebin it?

also please run

lsmod
[Eee Pad Transformer Android Development] *Detection*:
lsmod

http://pastebin.com/QyXeXp1f

dmesg

http://pastebin.com/D9xAwh9v

EDIT - I think I might have just pasted my laptop ubuntu instead of the TF ...
[Eee Pad Transformer Android Development] jholtom:
yeah you did, thanks! again, please!
[Eee Pad Transformer Android Development] *Detection*:
lol, here is lsmod

----

battery_rvsd 564 0 - Live 0xbf000000 (P)

----

dmesg

http://pastebin.com/j17g68wC
[Eee Pad Transformer Android Development] danielholm:
Not found?

And hey, I got my adb working after flashin TWRP and then re-flashing Ubuntu.
[Eee Pad Transformer Android Development] *Detection*:
Hmm, must have been taken down by the host, I`ll re-up it somewhere else, then you should be able to adb push the file to your TF instead of editing it yourself

2 mins

Download

http://rapidshare.com/files/3118016912/ubuntu-session

EDIT - Copied the URL from the uplaoder again and it works? lol

http://localhostr.com/files/CnyrNJW/ubuntu-session.
[Eee Pad Transformer Android Development] jholtom:
So as it turns out guys, wifi is actually not broken. That sounds awesome right? IT IS.

WiFi cannot be setup via networkmanager right now.

It should work via wpa_supplicant though.

So what you will need to do to set this up? Follow these instructions

Get in the ubuntu_chroot

1. Pull /etc/wpa_supplicant.conf or /etc/wifi/wpa_supplicant.conf (If I got the path wrong just search around for it in the ubuntu_chroot)

2. Then edit it for your wifi network.

3. Then push it back to the same place

4. Then run this in the ubuntu_chroot

wpa_supplicant -i wlan0 -c {wherever wpa_supplicant.conf is} -D wext

5. Open the browser and try and go somewhere.

6. In the ubuntu_chroot, try running apt-get commands and similar.

HAVE FUN, and report any back!
[Eee Pad Transformer Android Development] *Detection*:
Funny enough I was going to try this earlier but ran into the same problem I'm having now

Can't push it back to the TF, read only file system

And trying to use pull commands in chroot says pull is unknown command
[Eee Pad Transformer Android Development] JoinTheRealms:
Was gonna suggest this, seems like the same issue as the net installer, in fact if anyone needs instructions on editing it look at the net installer thread nodisknofun posted some good links

edit: heres the link: http://blog.nelhage.com/2008/08/using-wpa_supplicant-on-debianubuntu/ also i believe with the native install back in the day, you'd pull/ push the supplicant file from inside android(yet i know very little about this just throwing it out there)
[Eee Pad Transformer Android Development] jholtom:
Yeah, as it turns out cm10.1 has the same problem with ifconfig. So hopefully *Detection* you can get some results....you can use adb push and pull from outside the ubuntu chroot, but not inside it AFAIK, so just do all the pushing and pulling with /data/ubuntu preprended. BTW, the commands are adb pull and adb push, Try rebooting to get rid of the readonly error.
[Eee Pad Transformer Android Development] *Detection*:
How do I open wpa_supplicant.conf in order to edit it ?

---------- Post added at 09:30 PM ---------- Previous post was at 09:30 PM ----------

Ah of course, thanks
[Eee Pad Transformer Android Development] jholtom:
To edit it? Open with preferred file editor on desktop, like gedit. and then push back to TF
[Eee Pad Transformer Android Development] *Detection*:
Sorry I was wondering how to edit it directly from the TF before you reminded me about /data/ubuntu prefix

Ok, so I have done everything mentioned but get this result

root@localhost:/# wpa_supplicant -i wlan0 -c /data/ubuntu/etc/wifi -D wextLine 10: network block was not terminated properly.
Line 10: failed to parse network block.
Failed to read or parse configuration '/data/ubuntu/etc/wifi'.
root@localhost:/# wpa_supplicant -i wlan0 -c /etc/wifi -D wext
Line 10: network block was not terminated properly.
Line 10: failed to parse network block.
Failed to read or parse configuration '/etc/wifi'.
[Eee Pad Transformer Android Development] jholtom:
Your wpa_supplicant.conf is invalid.

Post your wpa_supplicant.conf up here, and I'll take a look and point out the error.
[Eee Pad Transformer Android Development] *Detection*:
I've XXX out my key

update_config=1
ctrl_interface=wlan0
eapol_version=1
ap_scan=1
fast_reauth=1

network={
ssid="DD-WRT"
psk="XXXXXXXXXXXX"
key_mgmt=WPA-PSK

EDIT - I found the problem, I forgot the closing }

But now I get this message

root@localhost:/etc# wpa_supplicant -i wlan0 -c /etc/wifi -D wext
Could not set interface wlan0 flags: Operation not permitted
WEXT: Could not set interface 'wlan0' UP
wlan0: Failed to initialize driver interface
[Eee Pad Transformer Android Development] jholtom:
Hrm....interesting. Give me some time....

Try running iwconfig and tell me what you see.
[Eee Pad Transformer Android Development] *Detection*:
lo no wireless extensions.
[Eee Pad Transformer Android Development] jholtom:
wlan0 is just really fickle isn't it....strange.
[Eee Pad Transformer Android Development] *Detection*:
Indeed, I`ll try a reboot since we've been pulling and pushing things

EDIT - Nope, same as before the reboot

From a quick google for normal laptop Ubuntu's showing that message, people are saying there is no driver installed, same here ?
[Eee Pad Transformer Android Development] jholtom:
I think our problem resides somewhere in the driver, and the kernel. In the dmesg log its saying its trying to load but its failing with some cryptic errors....I'm going to go play with the source a bit....
[Eee Pad Transformer Android Development] *Detection*:
cryptic errors are the most fun type :)
[Eee Pad Transformer Android Development] RonSykes:
I wish I could be more help here. I'm good at troubleshooting Linux, I'm good at troubleshooting Android, but a combination of the two hurts my brain.

I'm not somewhere I can adb into my device at the moment but reading through the work you guys have been doing it looks like wlan0 can be seen in the Android system but not in the ubuntu_chroot system, but the network config files are in the ubuntu_chroot system. Does it need to be set up on both?

By this I mean does the Android base system connect to the network on wlan0 then feed it through to a virtual adapter in Ubuntu (almost like a VB)?

I may have read all this wrong so ignore me if that's the case.