yashsingh1/xdaforums huggingface dataset:
[Shield Tablet Android Development] Jokte:
No, because first I tried to rotate screen to landscape. I have just to unhold xserver-xorg-core to update all packages before do do-release-upgrade to update from 16 to 18 and the login screen is bad rotated and when I try to login, it crash and return to login screen. Trying all previous methods doesn't work now in ubuntu 16. I dont know what I can do. If I see the /var/log/lightdm/x-0.log, it show me this:

(II) Server terminated successfully (0). Closing log file.

X.Org X Server 1.18.4
Release Date: 2016-07-19
X Protocol Version 11, Revision 0
Build Operating System: Linux 4.15.0-140-generic armv7l Ubuntu
Current Operating System: Linux fran-tablet 3.10.40-g793214a #9 SMP PREEMPT Tue Jul 21 09:57:49 PDT 2015 armv7l
Kernel command line: tegraid=40.1.1.0.0 mem=2006M@2048M memtype=0 tsec=32M@4064M tzram=4M@4058M ddr_die=2048M@2048M section=256M commchip_id=0 usb_port_owner_info=0 lane_owner_info=0 emc_max_dvfs=0 touch_id=0@9 video=tegrafb no_console_suspend=1 console=ttyS0,115200n8 debug_uartport=lsport,3 sku_override=0 usbcore.old_scheme_first=1 lp0_vec=2080@0xfdfff000 tegra_fbmem=18743296@0xad012000 nvdumper_reserved=0xfd600000 core_edp_mv=1150 core_edp_ma=4000 pmuboard=0x06e1:0x04d2:0x04:0x00:0x00 displayboard=0x0791:0x03e8:0x00:0x00:0x00 power_supply=Battery board_info=0x06e1:0x04d2:0x04:0x00:0x00 tegraboot=sdmmc gpt gpt_sector=41983 modem_id=1 watchdog=disable nck=1048576@0xfd700000 root=/dev/mmcblk0p23 rootfstype=ext4 rw console=tty1 fbcon=rotate:2 rootflags=defaults,noatime,nodiratime rootsubdir=/media/0/multirom/roms/Linux4TegraR231Ubuntu16/root
Build Date: 08 April 2021 01:59:12PM
xorg-server 2:1.18.4-0ubuntu0.12 (For technical support please see http://www.ubuntu.com/support)
Current version of pixman: 0.33.6
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Mon Nov 1 19:17:49 2021
(==) Using config file: "/etc/X11/xorg.conf"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
================ WARNING WARNING WARNING WARNING ================
This server has a video driver ABI version of 20.0 that is not
supported by this NVIDIA driver. Please check
http://www.nvidia.com/ for driver updates or downgrade to an X
server with a supported driver ABI.
=================================================================
(EE) NVIDIA: Use the -ignoreABI option to override this check.
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning: Type "ONE_LEVEL" has 1 levels, but <RALT> has 2 symbols
> Ignoring extra symbols
Errors from xkbcomp are not fatal to the X server
[Shield Tablet Android Development] yeoldeusrename:
Well you're beyond my level of linux knowledge, sorry. Good luck! ヽ(•̀ω•́ )ゝ
[Shield Tablet Android Development] Jokte:
Thanks!! When I have more time I will search and try to fix this
[Shield Tablet Android Development] LouMinartey:
I'm no expert but that log looks like it's complaining about the broken nvidia driver, have you switched to nouveau or are you still trying to use the proprietary driver from L4T?
[Shield Tablet Android Development] Jokte:
Before, I tried to use the proprietary driver from L4T R23.1. Now, I have just tried with the nouveau drivers following this forum and it doesnt work, it follow crashing when I try to log in
[Shield Tablet Android Development] LouMinartey:
I've not tried a 20.04 upgrade yet but I definitely got video working (but very slowly) on 18.04 using nouveau. I'll try and upgrade this to 20.04 and see if it stays working when I get the time
[Shield Tablet Android Development] Jokte:
Can you tell me which are the steps to upgrade from 16.04 to 18.04 and activate nouvau drivers, please?
[Shield Tablet Android Development] LouMinartey:
I'll dig the instructions out of my Wekan server as soon as I'm back near it, but as far as I can remember I connected to the tablet via SSH, performed a dist-upgrade (which resulted in the black screen @ login glitch), I then fixed the rotation and touch with this post and installed the nouveau drivers with the following from the SSH session:

ubuntu-drivers devices

sudo apt install xserver-xorg-video-nouveau

sudo apt install nouveau-firmware

Then, fix systemd with this post and reboot for what should be a functional (but very slow) desktop. I'd like to point out that people have posted fixes that worked for the Shield Tablet K1 (newer model sans DirectStylus) that didn't work for me (OG Shield Tablet LTE with DirectStylus). Possible hardware differences?

This page might be of use, it applies to the TK1 but SoCwise they're the same.

Unfortunately, I think we might be hitting the bug outlined here, specifically:

And just in case, DO NOT try and flash any of the TK1's uboot files to the shield. At best it won't work, at worst it'll brick it. I remember someone saying 30 odd pages back something about us not being able to change that, but I might be wrong
[Shield Tablet Android Development] Jokte:
I have changed the kernel, installed xserver-xorg-input-evdev and removed xserver-xorg-input-libinput, edited /usr/share/X11/xorg.conf.d/10-evdev.conf, executated ubuntu-drivers devices, sudo apt install xserver-xorg-video-nouveau and sudo apt install nouveau-firmware and fixed systemd but I dont get rotate screen to landscape. Can you tell me how I can rotate the screen? Configuring the screen with GUI doesnt work.

When I execute ubuntu-drivres devices return nothing and sudo apt install xserver-xorg-video-nouveau tell me that it was alrady installed
[Shield Tablet Android Development] wertus33333:
The best way to go would probably be to get rcm key so we can just use tegrarcm to first backup device then build and test a working uboot so we can load, build and test a mainline kernel with the proper nouveau patches and good performance thanks to having opengles and vulkan.

-https://github.com/shchmue/Lockpick_RCM for the switch

-https://github.com/NVIDIA/tegrarcm nvidia flash tool and many tutorials on how to create a config (which we need to flash/backup)

-https://github.com/NVIDIA/tegra-uboot-scripts

-https://github.com/NVIDIA/tegra-uboot-flasher-scripts

or maybe we can just backup/flash some spi chip on the device? would be willing to buy a flasher and try if someone can tell me where i need to connect the pins.

if you want to work with the nvidia-nouveau driver you cant go with l4t (l4t+normal nouveau drivers is just a mess). you need a clean arm32 linux image (i'd recommend arch, like NVIDIA suggests: https://github.com/NVIDIA/tegra-nouveau-rootfs) and compile your own kernel with the nouveau patches. Ofc you can also build an ubuntu image with all you need on your ubuntu desktop with multistrap (i could not find any prebuilt arm32 ubuntu images...)

unfortunately i dont have a lot of time to tinker around and i dont know enough about the whole thing to just try something and make it work within a useful time so any help or corrections are greatly appreciated.
[Shield Tablet Android Development] compromyse:
Can i have a step by step installation instruction?
[Shield Tablet Android Development] LouMinartey:
Here's mine, one page back
[Shield Tablet Android Development] compromyse:
Thanks!
[Shield Tablet Android Development] compromyse:
Completely unrelated, but is it possible to do this on the XiaoMi Pad 1 (mocha)? It has very similar hardware.
[Shield Tablet Android Development] LouMinartey:
I really don't know, I wouldn't try it though. I'd advise trying to build an environment in a VM first. Does that device have a supported MultiROM? If not I wouldn't install the MultiROM for the shield to that tablet, lest any major differences brick the device
[Shield Tablet Android Development] newemp:
Is there are the way to make vulkan work on 16.04 (23.1)? I have no idea how to install vulkan driver and make vulkan work. Maybe somebody can give a guide? Also I've tried to play some simple win games (box86+wine). Once i get into NFS Porsche Unleashsed (fps was pretty good) but it was just once (i don't know why it worked). Other times i tried to launch it I've got an error when initialising rendering (in the attachment). Other games don't work either (tried to launch Warcraft 3, nfs hot pursuit 2). Maybe someone had something similar and can you help me?
[Shield Tablet Android Development] LouMinartey:
Not sure on Vulkan, been a while since i Installed. And for the second problem I think you need to install DirectX via Winetricks
[Shield Tablet Android Development] wertus33333:
It has already been done. Unfortunately i cant find it on xda and i am not sure if it is allowed to link other forums. but a quick duckduckgo/google search for "mocha l4t" or "mi pad 1 linux4tegra" may help ;)
[Shield Tablet Android Development] wertus33333:
did you get vulkan and wine running properly? i also struggled a lot with it and never got it to work 100% (though i didnt bother with it a lot). Would be pretty nice to see how desktop games play on this device. accordingly to box86 github a lot runns pretty good but gpu limited on rpi/pine devices. this looks promising as our gpu is way stronger.
[Shield Tablet Android Development] krys42-_-:
What is newest version of this project?

I found out...

R24.1
[Shield Tablet Android Development] Thedoczz:
Hi guys,

don't know if anyone still follows this thread but i have a few questions.

I followed this guide but can't get a few things to work.

I started with flashing a stock 3.1.1, then i followed the steps below.

The result is that when i try to install the rom it just say "Old Multirom" needed:31 cur: 0.

And that's one problem, if i use multirom v33, i manage to install the rom but when i try to boot from it i just get a black screen every time.

Tried with a newer TWRP also with no success.

Do you have any ideas?

Thanks!
[Shield Tablet Android Development] cobalt69:
I know this is an old Post... Anyone else getting mrom20150909-01 when they try to boot into recovery after installing

twrp-multirom-20150909-UNOFFICIAL-shieldtablet.img

I cant for the life of me get multirom up and running on my shield tablet.
[Shield Tablet Android Development] iamiii114514:
are you android5？
[Shield Tablet Android Development] Bogdacutu:
For MultiROM we need working TWRP first; all the pieces are there, someone just needs to put them together.

X crashes randomly for me too, but it only does so every few hours, and the screen rotation remains as it was set before (it's always portrait on the login screen, but on the desktop it's fine). And I have a magnetic cover too (not the one from NVidia though), but it doesn't seem to affect the screen rotation at all.

Charging seems to work fine for me on Ubuntu (when connected directly to the charger, not through an Y cable). When connected to PC, it doesn't show up as charging, but I can see the battery percentage slowly rising (my wall adapter and power bank both work perfectly fine though).
[Shield Tablet Android Development] Bogdacutu:
I can confirm that my prebuilt images have working audio (headphone output is a bit messy, but it still works). The kernel tree on GitHub does not, but I just started recreating it from scratch from the Android tree (and will include support for everything that works at the moment); if you don't want to wait, iirc you need to take dmaengine from the Android tree and it will work fine afterwards.
[Shield Tablet Android Development] jpearn:
OK, I have everything up and running except the touchscreen, I have included the pre-compiled rm-wrapper but it complains about dlopen failed: library "ts.default.so" not found, any ideas ?

Other than this it looks good !
[Shield Tablet Android Development] Bogdacutu:
check the github wiki of the repo, you need to set LD_LIBRARY_PATH
[Shield Tablet Android Development] jpearn:
I still couldn't find the github wiki of the repo, but found the EXPORT needed on the TWRP thread, thanks !

Added the EXPORT and rm-wrapper command to the rc.local in /etc and works everytime
[Shield Tablet Android Development] SuperPichu:
I'm using the 114 prebuilt...... That's strange.
[Shield Tablet Android Development] Bogdacutu:
is there an ALSA device for the onboard audio? (tegra-rt5639)

Also, for those interested, I've updated the kernel tree with the source I used to build the latest boot image (I tried starting over with the Android tree but it was crashing and rebooting without any panic shortly after booting, and the screen was visibly flickering, and the flickering persisted when rebooting to Android, needed a hard shutdown to get rid of it).
[Shield Tablet Android Development] SuperPichu:
I ran 'aplay -l' and it said no soundcards found.
[Shield Tablet Android Development] Hitorijanae:
Is ./rm-wrapper performed while booted into Android? I ask because I get dlopen failed with non ASCII characters when I run it.
[Shield Tablet Android Development] etienne51:
I don't know why you have so much issues with HDMI. The errors you get are about HDCP so like you said, maybe you should try with another monitor, I used my computer monitor, and it worked right out of the box with version 114.

I did the same thing as you did yesterday, and I ended up using "console=tty1 fbcon=rotate:3" for the kernel boot parameters. I used Android Image Kitchen to repack the boot.img, and overwrited the recovery partition. I'm not using "fbfix" so HDMI works. If I use "fbcon=map:10" it apparently freezes at boot.

I also cleaned the whole system, ended up with about 720 packages installed, the minimum necessary. Now I'm installing openbox.

About the rotation of the tty, if you need to do it while using the system, you can still use this command in root.

echo 3 > /sys/class/graphics/fbcon/rotate_all

And about the keyboard layout in tty, I struggled for a moment to have it set automatically at boot time without the need to "loadkeys fr" everytime. So here is how to do it if anyone needs it.

sudo apt-get install console-data
sudo dpkg-reconfigure keyboard-configuration
sudo dpkg-reconfigure console-setup

Now in Openbox, I still have the same issue with X getting kicked sometimes, and I have to report something else, if I try to move a big window around, it seems like it takes 100% of processing power to do it, it moves really slowly. But the "nvidia" drivers are in use, and I'm getting around 1550fps in "glxgears". So I don't know where this is coming from.

If this issue can be solved, the system will be blazing fast using Openbox and light software.
[Shield Tablet Android Development] Steel01:
Okay, trying on another tv and on a monitor both worked. Guess the first one I tried either doesn't support hdcp at all or only some older, unsupported version. I'd still like an option to turn it off. Maybe I'll look into merging that if I ever have time.

I don't think I've ever had the xserver crash on me. Had the whole system lock a couple times early on, but other than that, it's been completely stable. I have noticed the lag at times, though. I had ksysguard up watching for it and it appears that rm-wrapper spikes cpu usage at times. I don't know what it's doing, but I might set up a script to start and stop that so I can see if that really is the problem.

Something I noticed after upgrading to Ubuntu 14.10: it uses logind from systemd. And that wants tmpfs acls which isn't compiled into this kernel. I set CONFIG_TMPFS_POSIX_ACL and CONFIG_TMPFS_XATTR to y, recompiled, and now logind is happy. You might want to set those in the defconfig for future builds.

One last thing, I made a script that toggles the screen and touchscreen on and off and set that to the power button. It's currently KDE specific (qdbus calls to set brightness), but if anyone is interested, I can post it later. I got tired of having to be careful when moving the tablet around while booted into Ubuntu, so I made this to make it act a bit more like a normal tablet.
[Shield Tablet Android Development] Bogdacutu:
I'm pretty sure I read somewhere that the number after map (10 in this case) was a mapping, from tty to fb (so tty1 -> fb0 in this case). But I just searched again and it looks like that's not the case, and that's actually a repeating pattern, which explains why fbcon wasn't working properly with HDMI enabled. Thanks a lot!

That's a great idea, I'll add that to my script.

no patches are needed afaik, there's a config option for nvhdcp; if it causes issues I'll disable it by default

I'm pretty sure it doesn't actually freeze, fbcon just stops showing new messages.

I recently updated rm-wrapper (for compatiblity with TF701t), and it looks like the functions I was calling actually return error codes, I'll have to add logic to check those.

Thanks, I'll add those to the defconfig.

For brightness, afaik you can just write directly to the device nodes in /sys (iirc it was something like pwm_brightness for the screen).
[Shield Tablet Android Development] Bogdacutu:
no, you need to run it on Linux (and it needs to be running for the touchscreen to work)
[Shield Tablet Android Development] etienne51:
Is there anything new since the latest bootimage 123 update? On my side I almost completed my Openbox setup. It seems to run really fast, the system seems to be pretty stable, at least more stable than running Unity or Gnome Shell.

On those 2 ones, I had frequent X server restarts, and now it's a lot better. But for example, if I open a Firefox window and try to move it fast, or between the integrated and HDMI screens, sometimes it starts to slow down, and the graphical environment get's kicked, I have to log back in. So for a moment, I've been using XDMCP to control the tablet on my desktop computer on Windows using Cygwin and it's X server port for Windows.

I tried to play a 720p mkv video using VLC, and of course it plays at something about 1 frame each 2 or 3sec. I tried to enable hardware acceleration, no luck. So I ended up using mplayer with smplayer gui which plays 720p videos quite well. I haven't tried 1080p yet, but I suppose it'll be fine. I really think the system can be a lot faster, for example dragging windows around should not slow the system down...

Something else. Now I'm using Synergy to share my Windows keyboard and mouse with the Shield Tablet on LAN so I can plug the tablet to the charger. I know there is a kernel patch for some Android devices to enable using USB OTG along with the charger, do you know if it's possible to apply it here or not?

Now I'm trying to run the latest 3.18.4 kernel which is supposed to have a better Tegra K1 support, but I'm not quite used to configure a linux kernel, and for the moment I haven't got it to boot at all. The kernel sources I'm using comes right from kernel.org, the latest stable version. I just saw your previous post about the current kernel you're using. Do you think I can get a 3.18 base kernel to work? It seems like it supports Tegra K1.

EDIT: One more thing, I managed to totally mess up the audio, the first time I tried VLC I got audio, and then I used the Vol up/down keys on my keyboard, I was impressed it actually worked and showed a small tooltip. Then I tried the mute key, and the audio pretty much never came back. I remember I managed to get a weak audio after messing around with some "alsamixer" settings, but I can't remember which ones. Can someone please help me on this, maybe send me the working "alsamixer" configuration? Thanks!
[Shield Tablet Android Development] Bogdacutu:
both xbmc and nvgstplayer should be hardware accelerated, try those

no idea, I don't have a Y cable so I wouldn't be able to test anyway

it definitely won't have "better" support; maybe better than previous versions, but it most likely isn't nearly as good as the kernel nvidia uses

(also, http://elinux.org/Tegra/Mainline_SW/Linux_kernel says there's no support for, among others, the built-in display and USB OTG, and I have no idea if the proprietary GPU drivers will even work with the mainline kernel)

I'll send it to you in a few hours, after I get home.

http://paste.ubuntu.com/9938089/ you should be able to do alsactl restore with this
[Shield Tablet Android Development] etienne51:
Great, it works again! Thank you. And it even works better than before.

I was trying to understand why the volume was a lot lower than on Android, and I finally found the correct settings. Just to say, on Android, there is a way to increase the maximum volume of the internal speakers by changing some values in "/etc/nvaudio_conf.xml" (see here: http://xdaforums.com/shield-tablet/help/change-volume-t2855165).

On Ubuntu, there are two settings on "alsamixer", the main speaker volume "Speaker" and another one "DAC1" acting like a boost. So you can ajust those two settings to get a louder audio output from the internal speakers. Only the "Speaker" value can be used to mute the volume, so this should be the one associated with the graphical volume control applet.
[Shield Tablet Android Development] berryman13:
Any way to support Mulit-ROM with this?
[Shield Tablet Android Development] etienne51:
As far as I know [MENTION=4937137]Bogdacutu[/MENTION] is working on it. I hope he's gonna release something in a few days, but I don't know anything else. He just showed us a screenshot http://imgur.com/a/FljmU.
[Shield Tablet Android Development] Bogdacutu:
it's released already :)

I'm working on a linux installer for MultiROM, it will probably take a day or two
[Shield Tablet Android Development] svemprala:
Just a small question, do the camera and/or the accelerometer, gyroscope etc work with Linux? Thanks!
[Shield Tablet Android Development] blasboy:
moved my question to Q&A Forum :)
[Shield Tablet Android Development] zphantom55:
Touch

Is anybody getting an issue with rm-wrapper that the input is entirely mirrored? It's flipped on both the x and y axis when I touch the screen...
[Shield Tablet Android Development] blasboy:
got the same problem as you...

Problem fixed check the q &a topic you wil see a working solution
[Shield Tablet Android Development] GuyInDogSuit:
Those framerate numbers!! Nnnnnng!

What is that keyboard/touchpad you have attached to it in the last photo?
[Shield Tablet Android Development] elbeewee:
Hi Bogdacutu, thanks for your work here! works like a charm:) Did you ever finished the linux installer or find way to make the ubuntu installation boot with multirom?

Thanks!
[Shield Tablet Android Development] zphantom55:
If you follow all of Bogdacutu's instructions and flash this file: https://drive.google.com/file/d/0B0S7tA1Htq3_OUpDN3FEWWRLU28/view?usp=sharing as a secondary rom in multirom you can dual boot. Just a temporary solution until the linux installer comes along :)
[Shield Tablet Android Development] elbeewee:
Zphantom55 thanks for the zip! But I cant get it to work. My setup is a bit different, I have ubuntu's rootfs untared on the first partition of my sdcard. It boots perfecly when using fastboot to boot the custom boot.img I made. I replaced the boot.img in you zipfile with mine so it will look for the rootfs on the sdcard and not in the internal memory. Did I miss anything here?

Thanks
[Shield Tablet Android Development] zphantom55:
My .zip file basically just flashes the boot.img provided by Bodgacutu as if it was a custom kernel. If you put the untarred rootfs in /data/linux (as per Bodgacutu's tutorial) it should work. I've been running it myself for a while now!
[Shield Tablet Android Development] berryman13:
Wait are you kidding me? If not, you have all my praise ??
[Shield Tablet Android Development] xXsquirr3lsXx:
sorry to be the total noob here but i am pretty interested in this. I have MultiROM and I downloaded that zip that was mentioned for MultiROM but how exactly do I get the Ubuntu OS onto the tablet?
[Shield Tablet Android Development] xXsquirr3lsXx:
nevermind i am so stupid
[Shield Tablet Android Development] berryman13:
No you're not

Write a guide so others like you can figure it out