yashsingh1/xdaforums huggingface dataset:
[Shield Tablet Q&A, Help & Troubleshooting] yamamo2:
Not Enabled Bluetooth...

Hi,

I have the SHIELD TABLET 16GB Wi-Fi model and succeeded to run Ubuntu with new_boot(123).img!

Recently, I try to the bluetooth configuration to use bluetooth keyboard. However I cannot enable bluetooth.

To enable bluetooth, I do the following commands on terminal.

sudo aptitude install bluetooth bluez-hcidump bluewho bluez-tools blueman
git clone https://code.google.com/p/broadcom-bluetooth/
cd broadcom-bluetooth
make brcm_patchram_plus
sudo cp brcm_patchram_plus /usr/local/bin
sudo brcm_patchram_plus -d --patchram /system/etc/firmware/bcm43241.hcd --baudrate 3000000 --enable_lpm --enable_hci --use_baudrate_for_download --no2bytes --tosleep 1000 /dev/ttyTHS2

After brcm_patchram_plus, these message is shown.

option patchram with arg /system/etc/firmware/bcm43241.hcd
option baudrate with arg 3000000
option enable_lpm
option enable_hci
option use_baudrate_for_download
option no2bytes
option tosleep with arg 1000
/dev/ttyTHS2
writing
01 03 0c 00
writing
01 03 0c 00
(...looping)

The last 2 lines are looping until do Ctrl-C on terminal.

So I try to change the bluetooth setting from "OFF" to "ON" on the Unity's System Setting Panel.

After that, I retry the brcm_patchram_plus command and its output message is changed as bellow.

...
writing
01 18 fc 06 00 00 c0 c6 2d 00
received 7
04 0e 04 01 18 fc 00
Done setting baudrate
writing
01 27 fc 0c 01 01 01 01 01 01 01 00 00 00 00 00
received 7
04 0e 04 01 27 fc 00
Done setting line discpline

the brcm_patchram_plus doesn't finish until Ctrl-C. In this state, I can open the "Bluetooth New Device Setup" Panel.

However, I cannot find any bluetooth devices...(attatched picture) So I open the other terminal and type some commands.

$ hciconfig -a
hci0: Type: BR/EDR Bus: UART
BD Address: 43:24:1B:00:00:00 ACL MTU: 1021:8 SCO MTU: 64:1
DOWN
RX bytes:642 acl:0 sco:0 events:36 errors:0
TX bytes:983 acl:0 sco:0 commands:38 errors:0
Features: 0xbf 0xfe 0xcf 0xfe 0xdb 0xff 0x7b 0x87
Packet type: Dm1 DM3 Dm5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: RSWITCH SNIFF
Link mode: SLAVE ACCEPT

$ hcitool dev
Devices:

$ rfkill list
0: bluedroid_pm: Bluetooth
Soft blocked: yes
Hard blocked: no
1: phy0 Wreless LAN
Soft blocked: no
Hard blocked: no
2: brcmfmac-wifi: Wireless LAN
Soft blocked: no
Hard blocked: no
4: hci0: Bluetooth
Soft blocked: yes
Hard blocked: no

$ rfkill unblock all
$ rfkill list
0: bluedroid_pm: Bluetooth
Soft blocked: no
Hard blocked: no
1: phy0 Wreless LAN
Soft blocked: no
Hard blocked: no
2: brcmfmac-wifi: Wireless LAN
Soft blocked: no
Hard blocked: no
4: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
$ hcitool scan
Device si no available: No such device

Please give me any advices!

Thanks,
[Shield Tablet Q&A, Help & Troubleshooting] aeksiri:
How to make a keyboard and mouse work on it?

Thanks
[Shield Tablet Q&A, Help & Troubleshooting] 0utsider89:
Mounting error

I followed this guide: http://xdaforums.com/shie...8/post57775988 on how to install it.

During the boot up of the kernel, and in the part where all the mount point are mounting up, I get a error on mounting /sys/fs/selinux ( Witch is not include in the Nvidia Linux For Tegra R21.2 root file system as far as I can tell).

Here's a picture of the console log: Here

I fixed my problem, i don't know what happened when I made the rootfs.tar.gz2 file but it was bad. :p
[Shield Tablet Q&A, Help & Troubleshooting] 0utsider89:
Setting up bluetooth

So I compiled the brcm_patchram_puls on the tablet, and It seems to run but I don't see it making the Bluetooth working :)

Here's a console log:

ubuntu@tegra-ubuntu:~$ sudo brcm_patchram_plus -d --patchram /system/etc/firmware/bcm43241.hcd --baudrate 3000000 --enable_lpm --enable_hci --use_baudrate_for_download --no2bytes --tosleep 1000 /dev/ttyTHS2
option patchram with arg /system/etc/firmware/bcm43241.hcd
option baudrate with arg 3000000
option enable_lpm
option enable_hci
option use_baudrate_for_download
option no2bytes
option tosleep with arg 1000
/dev/ttyTHS2
writing
01 03 0c 00
writing
01 03 0c 00
writing
01 03 0c 00
writing
01 03 0c 00
writing
01 03 0c 00
writing
01 03 0c 00
writing
01 03 0c 00
writing
01 03 0c 00
writing
01 03 0c 00
writing
01 03 0c 00
writing
01 03 0c 00
writing
01 03 0c 00
writing
01 03 0c 00
writing
01 03 0c 00
writing
01 03 0c 00
writing
01 03 0c 00
writing
01 03 0c 00
^Cubuntu@tegra-ubuntu:~$

Thanks,
[Shield Tablet Q&A, Help & Troubleshooting] John Cletus:
Has there been any success with running OPEN-GL games on it?
[Shield Tablet Q&A, Help & Troubleshooting] 0utsider89:
Auto start touch & lock screen, on-screen keyborad

I have been playing around and get stuff working, and wanted to share what I have done.

First let's start by making the start up script for the touch screen:

0. cd /etc/init.d

1. sudo nano touch (if you don't have nano you can sudo apt-get install nano)

2. Put this script in the file and save it

#!/bin/bash
export LD_LIBRARY_PATH=/system/vendor/lib/hw:/system/vendor/lib:/system/lib
export TOUCH_CONF_DIR=/mnt/factory/touchscreen
export TOUCH_DATA_DIR=/data/misc/touchscreen
rm-wrapper

3. sudo chmod +x touch

Now we have to link the script into the rc2.d folder so it will run at boot up:

5. ln -s /etc/init.d/touch /etc/rc2.d/S99touch

You will also need to put a copy of the rm-wrapper in the /usr/bin folder.

6. sudo cp rm-wrapper /usr/bin/

And maybe also do what Bogdacutu say in his post #23

Lock screen trobles:

It looks like ubuntu has a bug right now with the new lock screen in 14.01, not showing the on-screen keyboard: Bug #1301070

The fix is to use the older lock screen. You can do this by going to:

System settings -> Universal Access -> Tab: Typing -> On Screen Keyboard : ON

Enjoy,
[Shield Tablet Q&A, Help & Troubleshooting] Bogdacutu:
reboot and try again

games compiled for ARM work file with opengl
[Shield Tablet Q&A, Help & Troubleshooting] Rabidgamer:
Any word on charging with a Y-OTG cable?

I've got a Y cable coming and want to try out Ubuntu on this baby.

Thanks for the work so far
[Shield Tablet Q&A, Help & Troubleshooting] CodieRae:
NVIDIA Controller

at the moment im working with the WiFi direct setup, and Shield controller, ill get a packet dump and other stuff if possible would anyone like to help out by setting up some sore of script or something to make the controller negotiate a connection for audio/joystick/mouse? also if you guys can think of anything else you could use from the controller setup like a packet capture during a reflash/upgrade of the controller i can try and do that too - when i looked at it last time i was on android if i recall correctly it negitiated a 192.168.49.x connection to the controller - anywho dinner time - ill be back in a bit
[Shield Tablet Q&A, Help & Troubleshooting] blasboy:
i got the touchscreen to work somehow xD use the tutorial above and the invert x and y and stuff from the other post but the touchscreen doesn't work as it should its inverted or something even with the x and y inverted no its the same

can someone help?:$
[Shield Tablet Q&A, Help & Troubleshooting] 0utsider89:
Maybe there something up with your version of the ts.default.so file?

I'm using SuperPichu recovery boot img to load linux. In post #37
[Shield Tablet Q&A, Help & Troubleshooting] blasboy:
the recovery from superpichu worked! typing this from ubuntu:)
[Shield Tablet Q&A, Help & Troubleshooting] 0utsider89:
That's awesome!

So I wonder what hes passing to the kernel that makes it work right.
[Shield Tablet Q&A, Help & Troubleshooting] MiningMarsh:
Running only GNU/Linux?

I have the jetson TK1 development board, and ubuntu runs great on that, so I am planning on trying to install gentoo as a full replacement to android on my tablet. From the look of the guide, it looks like one does not need an android host for things to work correctly, except for the patchram command for bluetooth. After I run that command, is the change somehow permanent (so I can get rid of my system partition)? Or do I need to copy that file off of the system partition so I can run patchram in the gentooo environment?

As well, what is your kernel based on? Is it based on the android kernel, or the kernel that comes for Linux4Tegra?

Thanks.
[Shield Tablet Q&A, Help & Troubleshooting] giukas:
ubuntu nvidia shield tablet

Hello

I have been reading about ubuntu on the shield

I'd like to try it but I feel confused , is there an easy to follow guide?

I use linux on all my pcs and can flash custom roms on phones

I'm not a gamer but want linux on my shield

BTW can another distro as mint kde be put on it?
[Shield Tablet Q&A, Help & Troubleshooting] vile80r:
Flash mrom without multiboot?

I was wondering if itbwas possible to just flash the Ubuntu mrom file without setting up a multiboot? Can I just flash the Ubuntu with TWRP like any other ROM? I just want to see what its like.
[Shield Tablet Q&A, Help & Troubleshooting] Bogdacutu:
There are instructions for a manual install (without MultiROM) in my main Ubuntu thread but those require much more effort than just installing MultiROM and uninstalling it after you're done.

Just install MultiROM (main ZIP + touch support + TWRP + patched kernel for whatever version of Android you're currently running), then go to TWRP -> Advanced -> MultiROM -> Add ROM -> Select "MultiROM installer" -> Install the .mrom file.

And to answer to your other question, other distros could potentially be ported, but that will require some work from whoever wants to get it to work (namely, getting the drivers from Linux4Tegra to work, then porting over the init scripts and touchscreen stuff from my prebuilt installer)
[Shield Tablet Q&A, Help & Troubleshooting] giukas:
thanks a mill for answering, very simple and clear
[Shield Tablet Q&A, Help & Troubleshooting] giukas:
just t be sure, do i need to root and unlock bootloader? I’m on stock 5.1

which 1 f these shd i use?

Kernel w/ kexec-hardboot patch (Stock 5.1.0 wx_na_wf): kexec_boot_stock_na_wf_30.img

Kernel w/ kexec-hardboot patch (Stock 5.1.0 wx_na_do): kexec_boot_stock_na_do_30.img

Kernel w/ kexec-hardboot patch (Stock 5.1.0 wx_un_do):kexec_boot_stock_un_do_30.img
[Shield Tablet Q&A, Help & Troubleshooting] vile80r:
Got Ubuntu up and running yay! What about running Crossover?

I got this up and running finally. I thought I would get clever and install Crossover and try to run some Windows binaries. However, upon trying to install Crossover 64 deb I get wrong architecture amd64 error and with 86 deb I get i836 wrong architecture. Crossover was just wishful thinking in the infancy of Ubuntu on the tablet but, I am curious why it doesn't recognize the architecture . or perhaps there is some other way to install it that I don't know. It would be sweet as hell to run some!e games like BioShock 1 natively or be able load Photoshop CC on here. As a designer, that's a dream come true.

Has anyone else experimented with Crossover or Wine on this ROM?
[Shield Tablet Q&A, Help & Troubleshooting] Bogdacutu:
yes, you should unlock the bootloader. the right kernel depends on what variant of the tablet you have (wf is wifi-only, na_do is US LTE, un_do is EU LTE)

Wine and such won't work (at least not easily) because they all are made for x86 CPUs, while the tablet has an ARM CPU. Qemu can supposedly emulate x86 but I've tried it before and it's both slow and incompatible with many programs. Exagear Desktop works reasonably well with Wine, but we don't have x86 drivers for the GPU, so we don't have full OpenGL in x86 programs yet (so gaming is for the most part still out of the question, unless your game can run with OpenGL 1.4), and it's not free either.
[Shield Tablet Q&A, Help & Troubleshooting] giukas:
Thank you so much......you're much much more professional than some big brands techies (yes, ASUS referring to you)
[Shield Tablet Q&A, Help & Troubleshooting] Miazma:
Wine

Not sure if this is the appropriate forum to ask this one, but has anyone got Wine working on Ubuntu on Shield Tablet? Tried running it and it can't find the paths for Wine installation, and I can't seen to find them either. Tried reinstalling through software manager and synaptic a few times and nothing helped.

I thought maybe it's an issue with Wine not working for Arch versions of Ubuntu, or something. I'm new to this concept so I'm pretty nooby.

EDIT -- I decided to search AFTER posting and found my answer. My mistake, I'm stupid. Won't happen again.
[Shield Tablet Q&A, Help & Troubleshooting] Pariahnoble:
ok first thanks to [MENTION=4937137]Bogdacutu[/MENTION] and [MENTION=1416222]Steel01[/MENTION] you guys are great help. i appreciate the time ya guys take to answer my questions. i know im getting into the "nooby" stuff here but i really am pretty unfamiliar with linux (outside of android experience)

ok few things so far. the software center buttons for "installed" and "progress" dont work. i can click all i want but nothing happens. to switch from firefox to chrome for example, i had to search for firefox and click remove. is this normal or what? is there a work around? i could maybe have gotten a bad download (no md5 to check for the linux4tegra mrom)

you recommended exagear. is there a free alternative? i dont have 30 bux laying around right this second and prolly wont for some time. if thats the only option then my ubuntu adventure just came to a quick close.
[Shield Tablet Q&A, Help & Troubleshooting] Bogdacutu:
it's normal

qemu is the only alternative, but it has crap performance and compatibility (steam won't even run, and things that do run run extremely slow)
[Shield Tablet Q&A, Help & Troubleshooting] Pariahnoble:
Dang I was afraid of that, with exagear, kinda looked like the only show in town. And wine won't work on arm will it?

I did get the software center thing figured out. Software center just doesn't like touch control. Once I hooked up a mouse it worked just fine. Same issue with chromium browser. I'm amazed how well Ubuntu runs on here.
[Shield Tablet Q&A, Help & Troubleshooting] Mav3rek:
So will ExaGear allow some retro Windows games to run decently? I've been wanting to play some retro games, but haven't been able to find a solution that works just yet.
[Shield Tablet Q&A, Help & Troubleshooting] Pariahnoble:
Yes, although it costs 29.99, I beleive wine also does this but isn't as fast as exagear. From what I understand retro gaming is what exagear was made for. (I'm still new at Linux, but I'm pretty sure I nailed your question)
[Shield Tablet Q&A, Help & Troubleshooting] Mav3rek:
If it works like I hope it does, that would be amazing!

Now for my next question, and please forgive me, but I am brand spanking new to this android stuff. I've been an iOS user for many years and only recently purchased my first android device (the Shield Tablet).

Is there some sort of step by step guide for a dual boot with Ubuntu? I'd like to have the tablet to where it will boot into whichever OS I need it to be in, and then I can go from there.

Ideally I'd like to get some help with installing Ubuntu, ExaGear and setting up some retro games.

If at all possible.

Thanks in advance!
[Shield Tablet Q&A, Help & Troubleshooting] Mav3rek:
Ok, I have a new problem.

I did the following:

Just install MultiROM (main ZIP + touch support + TWRP + patched kernel for whatever version of Android you're currently running)

After I installed the patched kernel, and yes I used the correct one, the device rebooted into the regular android OS.

I powered the device off to try and get it to boot into recovery, and now the device will not turn on at all.

I know it has a charge, it has been charging all day and was at 98% when the kernal was installing. I see the orange charging light on when it is plugged in (it's actually green now), so I know that's still good. Also, I can see the battery graphic on the screen showing it is charging, but I can not for the life of me get the thing to power on.
[Shield Tablet Q&A, Help & Troubleshooting] Pariahnoble:
Same thing happened to me. Not sure what caused it. But you should be able to boot again after a few minutes. Holding the power button to hard reset also worked for me to boot up again. Scared the living crap out of me the first time it didn't turn on lol.

If all went right. When u boot up, after the first boot logo, there should be a screen that says which rom it's booting to, and an option to cancel boot and select a rom. Much like dual booting Linux and Windows on a pc. Make sure "inject multirom" is checked when flashing. And hit "inject current boot sector" to make sure. after that the multirom window should come up when u boot.
[Shield Tablet Q&A, Help & Troubleshooting] Mav3rek:
Ok, you have given me hope. :)

I am freaking out thinking this device won't ever boot again and I'll have to go through an RMA process. I'll just turn the device off and let it sit for a while and go from there. I did get windows to recognize it as an APX device with no driver, but that was about as far as I got. I'll let it sit and see what happens after a little while.

---------- Post added at 08:43 AM ---------- Previous post was at 08:26 AM ----------

It's alive!!!! Thank you so much!

Here's exactly what I did just in case anyone ever finds themselves in my shoes:

1) I had the device connected to my PC and it showed up in the devices as an APX device with a yellow triangle next to it.

2) I held down ONLY the power button for about 8 seconds or so. This disconnected the device from Windows. It no longer appeared in the device list and Windows played it's device disconnect song.

3) I then unplugged the device from everything, and just let it sit in this state for about 10 mins.

4) After 10 mins passed, I pressed ONLY the power button and the device immediately came back on.

After it booted though, it just went straight to android OS. It didn't show the MultiRom or TWRP screens. Just the NVIDIA logo and then into the OS.
[Shield Tablet Q&A, Help & Troubleshooting] shaq992:
Boot.img

Links for boot.img files broken.
[Shield Tablet Q&A, Help & Troubleshooting] Mav3rek:
ok, so here is an update on my progress:

After getting back into Android, I could not get twrp or multirom to boot. When I restart the device, it just boots straight to Android OS. So I used flashify to flash TWRP again, and rebooted when it asked me to. Once it rebooted into TWRP, I used TWRP to install the .mrom Linux4Tegra ROM. After it installed successfully, I rebooted the device and again, it went straight to Android. I used flashify to reinstall MultiRom with touch, and rebooted the device again when asked. This time it did go into MultiRom and I could launch Ubuntu. I was able to get into Ubuntu and set it all up. I was able to get my bluetooth keyboard working and touch works too. I changed the display rotation to landscape and it all sees to be working except for one thing.

I can not get my WiFi to connect. It sees my network, it prompts for a password, I have entred the correct password, and it says connecting, and then it pops back up saying the conection requires authentication. Not sure what to do from there....
[Shield Tablet Q&A, Help & Troubleshooting] Giunglemax:
Ubunto for shield tablet

I have a shield tablet and planning to change for a windows one, but i found this post and the opportunity to make run ubunt on the shield, now i would like to know how much god ubuntu runs on the shield? Be clear please.. Thank's a lot.
[Shield Tablet Q&A, Help & Troubleshooting] Mav3rek:
I don't have too much experience with Ubuntu yet, but from the little I've used it, it runs without any slowdown or stutter. I've been able to pretty much use it as a full fledged OS so far. This may not help answer your question but I wanted to let you know how my experience has been with it.
[Shield Tablet Q&A, Help & Troubleshooting] RedFuryJr5:
i know i am noob, please help!

I am trying to set up remote desktop from the shield but all my attempts to set it up fail. I have tried multiple programs but I am not 100% sure how to do this. Just want to remote desktop to the shield from my Windows 8 PC. Thanks in advance
[Shield Tablet Q&A, Help & Troubleshooting] Mav3rek:
Are you talking about the native Android OS or Ubuntu?
[Shield Tablet Q&A, Help & Troubleshooting] RedFuryJr5:
ha im not THAT noob, i mean ubuntu, thats why i am asking here sir. doing in android is easy pz. In any case, any and all help is appreciated! Thanks for your quick reply!
[Shield Tablet Q&A, Help & Troubleshooting] RedFuryJr5:
not sure what i am allowed to say here but ill metaphorically suck someones **** if they can help me remote desktop into my shield with ubuntu from windows 8, I would love to be able to configure it all from my PC and then take it on the go when needed.
[Shield Tablet Q&A, Help & Troubleshooting] Mav3rek:
I don't believe team viewer has an armv7 compatible product. So in theory to run it, you'd need both exagear desktop for armv7 and wine installed through Ubuntu I order to get it to work. Exagear is what I use to run x86 programs, but it did cost 29.99. I haven't used anything else so I can't speak to how they would work, but I think exagear with wine would allow you to run team viewer.
[Shield Tablet Q&A, Help & Troubleshooting] RedFuryJr5:
great thanks, has anyone posted how to install wine and exagear? really appreciate your help!
[Shield Tablet Q&A, Help & Troubleshooting] Mav3rek:
When you purchase exagear the guy who develops it sends you install instructions. He includes and automated install process and a manual install process. I couldn't get the automated install to work, so I had to do the manual process. It's not too difficult, basically just type in the commands he gives you.

Once you get exagear installed, you can then run 'exagear' from a terminal window and that will load the exagear environment.

Once you have that going, you can do the usual sudo apt-get update, and then sudo apt-get install wine1.7. You may have to add the wine repository first, I don't remember, but if you need help with that, the wine website has a step by step process that I followed.

Once you have all that you should be able to download the team viewer installer, and then open a terminal window, run the 'exagear' command to load an exager environment. Then you will use the terminal to browse to the directory where the team viewer installer is located. Then you run it by using the command 'wine xxxxxxxx.exe' where xxxxxxx.exe is the name of the team viewer installer.

After it is installed, you will browse through the terminal to the team viewer install directory, and run the team viewer executable by using 'wine xxxxxx.exe' where xxxxxx.exe is the name of the Team Viewer installer.
[Shield Tablet Q&A, Help & Troubleshooting] RedFuryJr5:
thanks a lot sir. I was able to get it to run and its pretty smooth but can I not INSTALL it using this wine method? for whatever reason running the teamviewer file will run it but any attempt to install it using the installer fails :(
[Shield Tablet Q&A, Help & Troubleshooting] Mav3rek:
Are you getting an error message? What exactly seems to happen?
[Shield Tablet Q&A, Help & Troubleshooting] giukas:
Hello thru this great forum I was able to install ubuntu on the shield and dual boot no problem.

Unfortunately though my banking app wouldn't activate on android as its complaning of incompatible with tablet not secure. The app was designed I was told to work on locked devices.

Would somebody explain to me kindly What is the procedure of resetting the tablet locked and unrooted? Do I have to delete ubuntu first and get rid of twrp? I need everything back to the way it shipped as its vital that banking app for me to work. Any help much appreciated as always
[Shield Tablet Q&A, Help & Troubleshooting] Mav3rek:
I can't give you exact details, as I've never tried to unroot before, but there is a thread that talks about the process here:

http://xdaforums.com/shield-tablet/help/help-unroot-removing-cmw-recovery-t2873473

Worst case I think a full factory reset would work, but I'm not 100% sure.
[Shield Tablet Q&A, Help & Troubleshooting] LanthesX:
I wonder when are you port the ubuntu touch

Im sure you can do it!
[Shield Tablet Q&A, Help & Troubleshooting] Giunglemax:
Web browsing is better on android or on ubuntu?