yashsingh1/xdaforums huggingface dataset:
[Nexus 6 Q&A, Help & Troubleshooting] Luke2508:
When I receive a notification, the sound the phone makes to signify this plays continuously until I unlock the phone and pull down the status bar. I know that this has happened with both photo auto backup notifications and also YouTube notifications. As far as I know, hangouts did not have the same effect when I received an sms. My N6 bootloader is unlocked and my phone is rooted.

Any help is greatly appreciated, thanks!
[Nexus 9 Q&A, Help & Troubleshooting] Nishant_Jain:
Share your experience on gaming ..
[XDA Assist] JOHNNY23:
I bought the smartphone lx 36 gor galaxy s4 and for note 4

when i have an incoming call i answear the from my headset but the voise of the call is coming from the smartwatch

the watch is have the option to change the voice path but i need this permenantly.

To be more accurate... I need when i have inciming call to answear for the haedset and to speak also from the headset without to have to change everytime from the watch

do yoy have an aswear for this\

i need your help

john
[XDA Assist] Darth:
Hi,

I can't find anything relevant on XDA for your device. You can ask for help here,

http://xdaforums.com/smartwatch/other-smartwatches

Good luck!
[Shield Tablet Android Development] Bogdacutu:
Stuff that doesn't work: 3G/LTE, accelerometer, GPS, camera, and maybe some other stuff that I'm not remembering

Stuff that does work: GPU (full OpenGL 4.5 and Vulkan), sound, USB device and host, WiFi, Bluetooth, touchscreen (including stylus), SD/USB install

Downloads:

Linux4Tegra R24.1 beta (mirror) (updated on February 18th 2016)

Linux4Tegra R23.1 (mirror) (updated on November 21st 2015)

Linux4Tegra R21.4 (mirror) (updated on July 21st 2015)

Linux4Tegra R21.3 (mirror) (updated on March 9th 2015)

Installation instructions:

Install MultiROM (+ TWRP + touch support + patched kernel)

Download Linux4Tegra and install it through TWRP (Advanced -> MultiROM -> Add ROM)

Tips/notes:

To enable the on-screen keyboard during setup or login, press the blue icon in the corner and select on-screen keyboard from the menu that appears.

To enable the on-screen keyboard on desktop, run Onboard.

If your touch input becomes misaligned, install and run xinput-calibrator.
[Shield Tablet Android Development] Gnurou:
I am *very* interested in knowing which kernel you have used for this. Upstream, L4T, Android? This looks very promising in any case.
[Shield Tablet Android Development] Bogdacutu:
I've tried L4T 21.2, 19.3 and Lollipop. All of them need a small kernel patch (which might break HDMI, I have no idea) for the graphics to work, but apart from that they should all work fine for the most part.

In drivers/video/tegra/dc/dc.c, in tegra_dc_probe, after "int i;" add:

static int num_probed = 0;
if (++num_probed > 1) return -ENOENT;

Edit: this actually isn't needed, I was just using the wrong cmdline
[Shield Tablet Android Development] Bogdacutu:
Getting Started

THESE INSTRUCTIONS ARE OUTDATED. CONSIDER USING THE PREBUILT INSTALLER FROM THE MAIN POST INSTEAD!

You need a computer with Linux installed and some free space (I don't have the exact numbers, but 5GB would probably be enough). On the tablet, you need 2-3GB of free space (on the internal memory), an unlocked bootloader , root and you need Busybox installed too.

On the computer, you'll need to compile your kernel first (this guide includes the compiler, and there's a prebuilt boot.img in the attachments if you want to skip this part). I recommend using https://github.com/Bogdacutu/STLinux-Kernel, with st8_linux_defconfig.

The initramfs is pretty simple, it just mounts the relevant system partitions and loads Linux from them: https://github.com/Bogdacutu/STLinux-Initramfs. You'll need to edit KERNEL_PATH in build.sh and make the kernel beforehand, then running build.sh will result in a boot.img which you can boot with fastboot:

fastboot boot new_boot.img -c "console=tty1 fbcon=map:10 fbcon=rotate:2 fbfix"

For the rootfs, Linux4Tegra is the easiest place to start from. All the Tegra K1 versions should work fine. For example, with R21.2: (the sudo is necessary there)

$ wget http://developer.download.nvidia.com/mobile/tegra/l4t/r21.2.0/pm375_release_armhf/Tegra124_Linux_R21.2.0_armhf.tbz2
$ tar xfvj Tegra124_Linux_R21.2.0_armhf.tbz2
$ cd Linux_for_Tegra
/Linux_for_Tegra$ wget http://developer.download.nvidia.com/mobile/tegra/l4t/r21.2.0/pm375_release_armhf/Tegra_Linux_Sample-Root-Filesystem_R21.2.0_armhf.tbz2
/Linux_for_Tegra$ cd rootfs
/Linux_for_Tegra/rootfs$ sudo tar xfvj ../Tegra_Linux_Sample-Root-Filesystem_R21.2.0_armhf.tbz2
/Linux_for_Tegra/rootfs$ cd ..
/Linux_for_Tegra$ sudo ./apply_binaries.sh
/Linux_for_Tegra$ cd rootfs
/Linux_for_Tegra/rootfs$ sudo tar cfvj ../rootfs.tar.bz2 .

The resulting rootfs.tar.bz2 you'll need to somehow get on the device. For the next part, I'll assume it's in /sdcard/rootfs.tar.bz2. You'll need to do this on the device (through ADB or through Terminal Emulator)

$ su
# cd data
/data# mkdir linux
/data# cd linux
/data/linux# tar xfvj ../media/0/rootfs.tar.bz2

Enabling Bluetooth with brcm_patchram_plus:

$ 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

Prebuilt boot images:

new_boot(80).img - working WiFi and sound

new_boot(90).img - added pointer emulation to touchscreen driver

new_boot(94).img - fixed Bluetooth stability

new_boot(114).img - fixed HDMI, added support for non-LTE partition table, my tegra driver patch is now optional (without it fbcon doesn't work properly, enable by adding fbfix to cmdline)

new_boot(123).img (newest at the moment) - fbfix isn't needed anymore, added support for tmpfs ACLs, enabled XZ compression (because after reaching a certain size, the kernel wouldn't find the initramfs anymore), enabled KVM
[Shield Tablet Android Development] _TB_TB_:
Won't this code always return - ENOENT?
[Shield Tablet Android Development] Bogdacutu:
It will always return -ENOENT except for the first time the function gets called (which is enough for the screen to get initialized).
[Shield Tablet Android Development] joshtheitguy:
Unless you are looking to completely break the Ubuntu install, do not perform a release upgrade to 14.10.

Everyone here probably already knows this but I wanted to see what would happen, which was rendering the x-server unusable. These results did not surprise me but hopefully this will save someone else who has the same idea as I did some time.
[Shield Tablet Android Development] Bogdacutu:
Try doing

sudo apt-mark hold xserver-xorg-core

before doing the upgrade, to prevent the driver from being overwritten.
[Shield Tablet Android Development] joshtheitguy:
Thanks, that was the command I couldn't remember. Let me do a backup of it first then I will try again to see if the outcome is any different, I'll let you know how it goes once I have a chance.
[Shield Tablet Android Development] matyas69:
Great i need a dual boot Android/Linux :D
[Shield Tablet Android Development] etienne51:
I got my tablet 2 days ago, and I'm already trying to mess up with it... I decided to try to install Ubuntu on my Shield Tablet (WiFi only, EU model).

So basically, I managed to boot it up thanks to you tutorial. It seems to be working well, but there are some things that does not work, and I see you apparently solved those issues already...

The issues I have are the following, ordered by priority:

- No WiFi (I see that you apparently solved this issue, can you please explain how you managed to do that?)

- While I was writing this message, I went to keyboard layout options, and the OS crashed, it went back to login screen twice (I was on the same window each time, it showed nvidia black screen, then the login screen)

- No audio (I only have a device named "Dummy audio input/output", you seem to have audio, can you confirm that?)

- Graphics flickering on some textures, for example, on the main sidebar menu, when my mouse pointer is over an icon, there is a background on that icon, but the background is flickering, that's weird...

- No touchscreen (But you don't neither)

For the moment, I think the most important thing is WiFi, since I can't do anything without network connexion. Can you help me with that? Thank you!
[Shield Tablet Android Development] Bogdacutu:
I just updated the boot.img from post #4, WiFi and sound work now, Bluetooth works if you load firmware but it's pretty unstable at the moment.
[Shield Tablet Android Development] etienne51:
Ok, I just tested it, and I confirm it works! I haven't tried bluetooth for the moment, but I have WiFi and audio now with v80. Thank you for the update!

I have another question, I saw your previous screenshot showing glxgears running at around 900-1000fps. Since I have some small lags sometimes, I decided to try glxgears and I'm running at around 450fps, that's less that half the framerate you have on your Shield Tablet. Did you do something special with the drivers after the tutorial you wrote?
[Shield Tablet Android Development] Bogdacutu:
Not really, you can try messing with the governors and max frequency, iirc there's a script in the driver package that automatically sets the CPU frequency lower on boot.
[Shield Tablet Android Development] Bogdacutu:
Update: I got the touchscreen to work with the Android drivers! I will upload the changes to my kernel repo soon (as soon as I figure out which of all the changes I did are actually required).
[Shield Tablet Android Development] adampdx:
How is HDMI out? I find it mildly function on Android, can I expect the same from Ubuntu? Also, I didn't see if LTE is supported.
[Shield Tablet Android Development] Bogdacutu:
No idea if HDMI works, I don't have a cable (my patch might break it though, in which case we'll probably need to change it). And it works on LTE tablets, but mobile data doesn't work (at least for now).
[Shield Tablet Android Development] etienne51:
I just ordered a Mini HDMI to HDMI cable, it will arrive in less than a week. As soon as I get it, I'll tell you guys how it works!
[Shield Tablet Android Development] Bogdacutu:
/u/GenuineAster confirmed that HDMI isn't working. I'm going to get an Ethernet adapter for netconsole soon, so that I can find out why it doesn't work with my patch to the tegra driver (which I'm sure is the reason HDMI isn't working). I'm also working on a way to get libGL.so to work in an i386 chroot (so that we can try to play desktop games that aren't compiled for ARM yet).
[Shield Tablet Android Development] Steel01:
I'm impressed that this actually works so well. Makes what I have on my Shield Portable look pitiful. No sound, no video acceleration, etc. Now the question is, what changes have to be made to a mainline kernel to get similar results? Well, minus the video acceleration that's likely hard-coded to a specific kernel version. Bogdacutu, do you have a patch of your changes? Your github repo isn't a forked copy of the kernel, so it's hard to see the initial changes. I'd like to get a copy of Fedora running. Also looking forward to your touchscreen fix. My usb-otg cable is flakey to the point it causes Ubuntu to reboot if I bump it too much...

Question to the larger community: Anyone know how to get the wireless controller to work with this? I poked at wpa_cli and a couple of the p2p_ commands, but so far haven't picked up anything from the controller when it's searching.

Edit: Seems the otg charging thing doesn't work either. Makes long-term use impracticle when an input device has to be plugged in. Any of the kernel hackers know the bits that changed in nvidia's lollipop kernel to allow this?
[Shield Tablet Android Development] agentbob123:
Whenever I followed the instructions, the tablet said I had a compatible modified kernel (the tablet was given to me by my dad already rooted, ROMed, unlocked, etc.

The kernel section in the about screen of cyanogen says 3.10.33-gdd91b68buildbot@lusankya.tcpc.lan #1 Mon Aug 24 17:24:57 CDT 2015

Does this tell you what you need to know? Else, where can I find the information about the kernel in use?
[Shield Tablet Android Development] geotherm:
Flash the Bito-k kernel, then u know u have a compatible kernel. If you look at the 'about tablet' in settings, you will find that you don't have a patched kernel.
[Shield Tablet Android Development] agentbob123:
Okay, I've downloaded the KX kernel & flashed it, then deleted/reinstalled the multirom file for Ubuntu.

It booted up, though I had to hard-power it down since I don't have a keyboard at the moment. Anyway, success! Thanks for pointing out the kernel was the issue.

Which is preferred? K or KX?
[Shield Tablet Android Development] undrwater:
K== closer to stock

KX== more experimental danger and potential dead kittens.

Personal preference, in other words.
[Shield Tablet Android Development] MickPF:
[Q] How to boot (any) linux on Nvidia Shield tablet?

Dear Sirs,

I'm experienced developer for linux and would like to install it as the only OS on a shield tablet. I can't find any information about required file formats for installing and how to do it starting with an iso image or a preinstalled file system. I also have not any idea about shields boot process. I'm using a Compulabs "Utilite pro" as an ARM based linux system with archlinux (I prefer it). I'd like to parcticipate getting linux running on the shield.

Can you help me to start with installation?

Kind Regards,

Michael.
[Shield Tablet Android Development] geotherm:
Read post 4.
[Shield Tablet Android Development] Steel01:
The only booting Linux right now is using a piecemeal kernel that's the combination of Nvidia's L4T and the tablets Android kernel. That's what this is based off of. Using the info in post #4 like already mentioned, you can set up Ubuntu on an sdcard and flash the boot image (after modifying the initrd to boot from the sdcard) to the tablets boot partition. That way it will always boot to Ubuntu.

The bootloader is fastboot, like many other Android devices. Theoretically, we could get the Jetson TK1's u-boot to work, but without access to APX mode, we'd brick the tablet in the process of trying to get it to work. So, fastboot is all we've got for now. All you really need to get Linux booting is to unlock the bootloader and flash the boot image.

Now, there was a very preliminary look at getting mainline to boot. [MENTION=2826079]Gnurou[/MENTION] has a kernel branch that booted to a busybox terminal, but didn't have working USB, so it isn't terribly useful as is. I tried forward porting the changes to the then current mainline and didn't even get that far... Just a black screen. I was working on so many other things at the time, that I didn't try further and haven't got back to it yet. But, it should be very possible to get mainline booting and nouveau working as well. I'd be ecstatic if someone finished up that work.
[Shield Tablet Android Development] MickPF:
Hello Sirs,

The boot image "new_boot(123).img" from this thread crashs on my shield tablet. The boot image from L4T (Release 21.4) seems to run. My next hurdle: how to install a root filesystem (sample Ubuntu from L4T or any other)!

Can you help me?

Thanks,

Michael
[Shield Tablet Android Development] MickPF:
Instructions described in #4 don't work

Hello Sirs,

I tried to follow this instructions. To complete it, I need a "tar" binary to unpack the rootfs in "/data/linux". Android 5.1.1 don't bring it. I copied the "/bin/tar" from the ubuntu sample filesystem (it is static linked) to "/system/bin", but it is unusable..:(

Thanks

Michael
[Shield Tablet Android Development] notime2d8:
Hey, did you know on the top toolbar under accessibility, there's an option for an on screen keyboard....? You can also change the screen rotation from the display settings, and adjust all the icons and layout to something more tablet friendly.
[Shield Tablet Android Development] Bogdacutu:
I'm not sure why you're following that guide, considering that just installing MultiROM and the Linux4Tegra ROM would be a lot easier

but to answer your question, install busybox
[Shield Tablet Android Development] :
Hi :) [MENTION=4937137]Bogdacutu[/MENTION] will you post other version of Linux4Tegra?

Thanks for your work :)
[Shield Tablet Android Development] Bogdacutu:
there's no new version
[Shield Tablet Android Development] :
I said wrong, I'm sorry XD ... I was tolking about other version of Linux (Ubuntu, Debian, Arch Linux, Ubuntu Touch or others) based on Linux4Tegra :P
[Shield Tablet Android Development] Bogdacutu:
oh, then no, I doubt I'll be supporting anything but Linux4Tegra myself
[Shield Tablet Android Development] agentbob123:
Hey, thanks for the post. :) I did know that Ubuntu has an on-screen keyboard, but for some reason I couldn't activate it from the login page - once logged in, I could tap the upper left button and find "onboard," but there didn't seem to be an option for it until logging in.

I do have the rotation changed now to be landscape, though everything's still tiny & not entirely touch-friendly - what other settings were you speaking of?
[Shield Tablet Android Development] Bogdacutu:
enable on-screen keyboard from the accessibility settings and it will show up on the login screen too. for scaling, check the display settings
[Shield Tablet Android Development] notime2d8:
In the same section were you changed the rotation there should be a slider at the bottom to change the scale of the icons and all.
[Shield Tablet Android Development] agentbob123:
Thanks peeps :) While I have used Ubuntu for quite a long time (Debian most recently), I've never really made much use of the onscreen keyboard or changing of object scaling, since the desktop/laptop worked just fine as-is. I'll look again next time I find myself in Ubuntu on the tablet. :)

One other question that's semi-related. Part of the reason I put Ubuntu on the tablet is to use Gimp with the stylus. I know it's no active stylus like a Wacom tablet, but it's certainly better than the big rubbery ones.

I've noticed when I draw kind of fast in an arc, Gimp can't keep up, and it draws a straight line from the starting point to the point I lift the stylus from the screen. Any thoughts on what causes that, and how to make it more accurate? Would this be a limitation in Gimp, the touchscreen, or a combination of both?
[Shield Tablet Android Development] Bogdacutu:
might be worth messing with the CPU scheduler, I'm not sure if the default configuration boosts the frequency during user input like on Android
[Shield Tablet Android Development] goldyren:
Thanks Bogdacutu!

Went through the multirom setup and got ubuntu running on the tablet! just wanted to say thank you as the process was very easy to get going - everything appears to work and I think its awesome to have ubuntu on the the tablet! great work and kudos to Bogdacutu and all others who helped make this a reality. Keep up the good work guys!

Ren
[Shield Tablet Android Development] undrwater:
[MENTION=4937137]Bogdacutu[/MENTION],

Let me know if you need help with the initrd for booting from sd card. I need a procrastination project.

Building gentoo is going to be way too involved for now.
[Shield Tablet Android Development] SuperPichu:
[MENTION=2799078]undrwater[/MENTION] Correct me if I'm wrong but I think I already did that.

Here's a most likely somewhat outdated method to get Ubuntu booting from an sdcard. (this may also be the wrong file, I haven't touched any of this stuff in ages and I'm getting rusty, maybe it's time to come back.....)
[Shield Tablet Android Development] undrwater:
If you have, fantastic! Based on [MENTION=4937137]Bogdacutu[/MENTION]'s post here, I assumed it had not been done. I think what he meant was creating an initrd rolled into the mrom that would allow installing to and running from sdcard.

I'll look into yours, and as time permits learn how to roll an mrom.
[Shield Tablet Android Development] xXsquirr3lsXx:
Anyone know if it would be possible to run a game like Counter Strike source on this? Im not entirely sure because i saw a video of a tegra k1 devkit playing TF2 on ubuntu.
[Shield Tablet Android Development] SuperPichu:
No probably not. You would need to somehow recompile (or run in a vm) both the game and Steam to run on arm which is basically impossible
[Shield Tablet Android Development] MickPF:
A question to Superpichu

Hello SuperPichu,

the kernel from your Ubuntu-Install-Ext.zip image is the only running kernel with L4T R21.4 on my shield tablet. :good::good::good:

Is it possible to get sources for this kernel incl. the config file please? I'd like to compile it with modules etc..

Kind Regards,

Michael
[Shield Tablet Android Development] yreham:
Hello to all really thanks for your work but I have a problem with the keyboard not showing up after I login into Ubuntu...I'm not familiar with this OS so maybe I'm doing something wrong.. If someone can help thank you
[Shield Tablet Android Development] yreham:
Ok well I figured out how to bring it up but it doesn't write anything
[Shield Tablet Android Development] yreham:
Well I was asking but I figure it all out by myself witch is better ..so no worries thanks for your super mod
[Shield Tablet Android Development] SuperPichu:
I don't know how to tell you this dude, but I didn't change anything. That uses the pre-built images, with a slight change to the initrc (if I remember correctly) which I posted a few posts up.
[Shield Tablet Android Development] MickPF:
Hello SuperPichu,

STLinux kernel is not compatible with gcc-5.x (I use Archlinux with MATE). So I took Ubuntu 14.04 Form L4T R21.4 with gcc-4.8, but couldn't compile STLinux using tn8_linux_defconfig without errors. I could solve these errors and compile the kernel, but it's not runnable: It hangs after it outputs few lines. The kernel linux-3.10.40-gcacad is also not usable. So I hoped to get source for the kernel from your image.

Kind Regards,

Michael

P.S. So I would start to make a runnable kernel by my self...
[Shield Tablet Android Development] Bogdacutu:
Linux4Tegra R23.1 has been released; it's for the Tegra X1, but the GPU drivers seem to work fine on the K1 too, so I'll probably release a new package this weekend (also going to add SD/USB boot support for MultiROM).
[Shield Tablet Android Development] SuperPichu:
You'd have to ask [MENTION=4937137]Bogdacutu[/MENTION], it's the same source as his images.
[Shield Tablet Android Development] Bogdacutu:
https://source.android.com/source/building-kernels.html

I used prebuilt GCC 4.6 from google
[Shield Tablet Android Development] MickPF:
A question to installing (any) Linux on nvidia shield

Hello,

can somebody predict, iff it will work:

erase the whole internal eMMC,

create an own partition table (of which type?),

install Linux on it from the SD card.

Kind Regards,

Michael
[Shield Tablet Android Development] Steel01:
Do not, do not, do NOT change the partition table. I almost hard bricked my portable when I overwrote the emmc gpt from Fedora. The only way I got android booting again was dding back the first few sectors of the emmc with a copy I got from Gnurou (much ongoing thanks for that).

Now technically, yes it is possible. There are only two partitions that cannot change, not even their offset on disk. The bootloader and the dtb. And the dtb has to remain the android dtb or the bootloader will fail. Mess any of the up and you'll probably have a hard brick unfixable without apx which we still don't have the keys for.

Now, what you *should* be able to do, note I have not tried so cannot verify, is wipe the /data partition and dump the Linux install there. Then modify the initrd to boot from that partition and flash the modified boot image. You'll be missing 2 GB of space from the system partition, but that could be wiped and mounted somewhere as extra space.
[Shield Tablet Android Development] MickPF:
Thanks for your answer!
[Shield Tablet Android Development] Bogdacutu:
Uploaded R23.1, link is in the first post. SD/USB boot now works properly, USB device mode also works without any additional configuration, and the screen is now properly rotated during setup.
[Shield Tablet Android Development] wejgomi:
Thx for the new build. However it won't install here in multirom, crashes back to splash screen.