yashsingh1/xdaforums huggingface dataset:
[Nexus 9 General] andyroidking:
Well, I'm stuck. X won't start... I'll have to pull the log and see what up. Unfortunately I'm back to work tonight so it will be a while before I get to play again. Don't fret, I'll be back. :silly:

Edit: Pulled logs:

As root user:

https://pastebin.com/3bJE7HkJ

As reg user:

https://pastebin.com/ZVBrCAuM

They look the same to me...
[Nexus 9 General] sk1tch:
They look identical to me as well. Um try apt install xorg xubuntu-desktop lightdm-gtk-greeter.

then reboot it should automatically enable it with systemd while installing
[Nexus 9 General] humannequin777:
Error 404

The links to the downloads are no longer working.
[Nexus 9 General] andyroidking:
I'll give that a shot. Sounds like solid advice. Probably not until Thursday or Saturday. Busy week kids back to school

a such...
[Nexus 9 General] sk1tch:
I fixed the links but the rootfs.tar.bz2 is down as I am uploading a preinstalled image archive with the XFCE4 DE w/ onscreen keyboard, still ironing out Bluetooth made good progress so hopefully I will have that finished soon
[Nexus 9 General] Vartom:
Cameras are not included in the kernel. I did not check their performance in this kernel.
[Nexus 9 General] andyroidking:
Linux Inside... Nice. Well I found a few minutes and got this far.... https://imgur.com/a/VuDEN Xauthority issue? I'll check into it later. I assume suspend doesn't work? I tried once but didn't want to crash it right now. also changed scroll bar width... easier to tap. Border width is next.

Scroll bar width:

Open the .gtkrc-2.0 file, add the following to a new line starting at the bottom of the file:

style "myscrollbar"
{
GtkScrollbar::slider-width=XX
}
class "GtkScrollbar" style "myscrollbar"
[Nexus 9 General] AbhaYsinGH007:
How's the performance ?

Can I use it as a desktop?
[Nexus 9 General] sk1tch:
Yes indeed it does work as a desktop I got screen rotation down to two three command scripts with desktop widgets. Most things work as of now Bluetooth sucks no matter what I do but, touchscreen works fine WiFi works fine no Cameras yet Sound only through headset. Hardware acceleration works at anywhere from 800 FPS - 2000 FPS. Videos like on YouTube stutter a little if you are doing other things while watching. Swipe gestures work in Chromium browser only. (Still working on installing multifunction swipe gestures) Your best bet would be to buy one of those $11 Micro-B USB wired tablet keyboards or just use the Onboard keyboard if its already in a rugged case or whatever. Those two green arrows at the top of the desktop are my rotate widgets
[Nexus 9 General] sk1tch:
Yes there is an .Xauthority error when I flashed it as well that was why I said it's difficult to make a working install and that it was easier to install on device but either try chown ubuntu:ubuntu /home/ubuntu as root and it may fix your issue or you have to create a new user
[Nexus 9 General] sk1tch:
I added the configs for the camera to my custom config to no avail... I dont have a headset jack debug cable so I can't see what going on during boot
[Nexus 9 General] Vartom:
Porting the cameras was not 100% complete. Therefore, simply adding lines to the config is not enough.

---------- Post added at 02:14 PM ---------- Previous post was at 02:08 PM ----------

Porting the cameras was not 100% complete. Therefore, simply adding lines to the config is not enough.

For bluetooth work, you need to download the corresponding firmware.

with some similar string

exec /usr/sbin/brcm_patchram_plus --enable_hci --use_baudrate_for_download --scopcm=0,2,0,0,0,0,0,0,0,0 --baudrate 3000000 --patchram /lib/firmware/bcm4324.hcd --no2bytes --enable_lpm --tosleep=50000 /dev/ttyTHS2

this can be added to the nvwifibt.conf config file.
[Nexus 9 General] sk1tch:
So just add this too the sbin config file??
[Nexus 9 General] Vartom:
brcm_patchram_plus this package was not found. Add it to the fast failed.
[Nexus 9 General] sk1tch:
I got it installed with the package bluetooth-touch successfully set line discipline but, it hangs and doesn't actually connect maybe wrong speed setting?
[Nexus 9 General] Vartom:
I hope you corrected the name of the chip?

The bluetooth adapter now finds?
[Nexus 9 General] sk1tch:
Negative it hangs and gets a MAC address but doesn't actually connect.. Is there a way to build a patch for the bcm43xx hciattach command?
[Nexus 9 General] sk1tch:
Set it to a background script and use bluetoothctl and it works flawlessly
[Nexus 9 General] sk1tch:
So in this command it works just point to the bcm4354.hcd in /vendor/lib/firmware and use bluetoothctl and it just works!!!

I installed the package bluetooth-touch using apt-get. I have NEVER had this kind of Bluetooth connection ever with anything its swift and ZERO latency thanks man!! :good::good::good::good::good::good:
[Nexus 9 General] Vartom:
Something on my does not work. Can not find the adapter.

I found it.
[Nexus 9 General] andyroidking:
change owner worked. On to bluetooth. although that isn't as important to me right now. All seems fine though. it keeps telling me my battery is dead but the meter on the taskbar is correct...

---------- Post added at 10:06 PM ---------- Previous post was at 10:03 PM ----------

looks like it is seeing batt0 also. I'll figure that out later....
[Nexus 9 General] sk1tch:
It has like 5 different registers for the battery in not sure how to fix and. Heck yes the chown worked!!! I'll put the link back up for everybody then that helps a ton right there!!

And Vartom gave me help on the Bluetooth I put the command at the top of the thread works fantastically no latency stutters a wee bit on audio sink but it works point to it in /vendor/lib/firmware/bcm4354.hcd set it to a shell script until I figure out how to make it part of systemd service
[Nexus 9 General] andyroidking:
battery really isn't a big deal. It is just a notification and the panel has the correct percent according to twrp. ;)

My issue at the moment is the rotate to landscape comes back after reboot for some reason (even if I don't save the session) but the touch is off... So If I try my scripts I get a different result each time. I'll figure it out soon.

I'm really liking the fact the battery is lasting and this is a really responsive Linus install. This tablet is really benefiting from the nvidia drivers. My older tablets always had issues with power and input. I'm using a Walmart logitech k400 wireless keyboard and mouse combo for now and have had 0 issues so far...
[Nexus 9 General] sk1tch:
I got everything working correctly except cameras and onboard speakers so its definitely an improvement and I timed it tithe other day at around 6-8 hours of life while watching YouTube videos the entire time and standby by itself got about 24 at 1% screen brightness and screen saver running
[Nexus 9 General] andyroidking:
I'm just starting but it is good. Using screen blank after 10 minutes. Dimming to 1% after 1 minute of inactivity ,which is still bright enough to see and then some while sitting. Still can't figure out what is wrong with the rotation.... grrr. This is probably the best portable Linux I'm used so far. Like I said the hardware acceleration makes a big difference. They could have spun a few of these off with no problem with just Linux and made some investment cash for there next projects... The Tegra is EOL but I don't see why they wouldn't hit the Linux fringe market with there next "Great" processors....
[Nexus 9 General] andyroidking:
so this is what I have to do now to fix the rotation with touch, every time I reboot.

Edit here are my scripts... Which don't help because it defaults to landscape no matter what... grrr

landscape:

#!/bin/bash
sudo xrandr -o right
sudo xinput set-prop 7 "Evdev Axis Inversion" 0, 1
sudo xinput set-prop 7 "Evdev Axes Swap" 1

portrait:

#!/bin/bash
sudo xrandr -o normal
sudo xinput set-prop 7 "Evdev Axis Inversion" 0, 0
sudo xinput set-prop 7 "Evdev Axes Swap" 0
[Nexus 9 General] andyroidking:
It doesn't matter if i run my script or not.... Tomorrow is another day.

---------- Post added at 01:38 AM ---------- Previous post was at 01:35 AM ----------

FYI.. All of my issues now are just "regular" Linux issues... I just post for informational purposes only... ;)
[Nexus 9 General] Vartom:
How do I check the cameras?

ps On the kernel of 3.10.96, that still porting Linux also works.
[Nexus 9 General] sk1tch:
Thanks for the info I appreciate that a lot, and it helps anybody else wanting to make the switch debug issues or learn more

I have found if you set the display to be rotated at login it breaks the login and hangs on a black screen and sometimes when rebooted it works but, the touchscreen doesn't stay in that orientation either so don't do it + 1/2 the time it just hangs. Just set a couple of widgets in the menu bar it's a decent workaround and causes less issues in the long run IMO and to answer [MENTION=6556709]Vartom[/MENTION] question I haven't the faintest idea how to check the cameras and honestly I would rather have speakers than the cameras. And I'm not even sure where they are located in the device tree or what they are when the system starts probing for them
[Nexus 9 General] sk1tch:
Leave out the #!/bin/bash though and just set it as one command with a ; separating the command with one space after each ; for white space with chmod +× /usr/bin/**** whatever your script name is so it looks like in the picture.... sorry I don't know why it uploads upside down.... And anyways this is a scenario where you use the display settings and set the rotation to normal and shutdown/reboot and it should fix it just make sure you always go back into landscape before you log out I reproduced this issue 4 times now as well as Bluetooth I replicated its functionality with the command issued and like a smooth buttery machine even with an audio sink connected. There's very little else I can do for the onboard speakers and cameras. I'm still in the noob category and I'm 100% self taught so some things are totally out of my scope for now...
[Nexus 9 General] Vartom:
I added the necessary files for the assembly of the cameras. The kernel has gathered and in the log, I see that these sensors are connected. But there are no cameras in the system.

*The alsamxer does not see channels for volume controls.
[Nexus 9 General] sk1tch:
Maybe something to look at would be the alsa file in EDIT: /system/lib64/alsa* I think I seen either a config or .so for it's specific configuration
[Nexus 9 General] Vartom:
I found the config file for the sound. While I tried to break the output to the headphones. It's good that there was an earlier file.

https://askubuntu.com/questions/50067/howto-save-alsamixer-settings

/var/lib/alsa/asound.state
[Nexus 9 General] sk1tch:
So I broke my sound completely by not making a backup of the sound setrings, on well. But I did find that the Kernel does indeed look for the speakers as rt5506 I think but there's an error somewhere at boot or something. Will look more into it later. Working on NFC right now as it was detected at boot according to the Kernel logs
[Nexus 9 General] andyroidking:
I accidentally let my batt th drain and had to disconnect it to get it to charge again. When I tried to start up again it froze(not boot loop). Finally got.back into twrp and restored my android backup. That killed my Linux so it is back to the drawing board this.weekend.
[Nexus 9 General] sk1tch:
Done that once or twice just make sure whatever you charge it with is at least 5V/2A or 2.5A you should be fine. I got 2 original Raspberry Pi's from my Pa in law so I kind of been tinkering around with it but its not priority since its a functional Linux OS on the Tablet
[Nexus 9 General] bondjames_12:
I've got it up and running. I tried to suspend the system but it gives up, screen goes dark then comes back. Is everyone getting that? or is suspend working? Just wondering before I go hunting for a solution if its working for others.
[Nexus 9 General] sk1tch:
Suspend has never worked not even back when I was still using the Kernel that wasn't ported to run the Tegra GPU.
[Nexus 9 General] sk1tch:
So I got Bluetooth to work a little better recieving files works great but sending them hard locks the system
[Nexus 9 General] jin7at:
kind of a noob question by me

With which key combination can i switch back to the desktop environment - after i went in the virtual terminal with ctrl + alt + F1?

I tried to switch in landscape but i can not go back to the desktop...

Best wishes & thanks.
[Nexus 9 General] sk1tch:
Hold left alt key and use arrow left until it brings back lightdm
[Nexus 9 General] sk1tch:
So digging into sound issues I found that the ALSA drivers are loaded and it DOES indeed find the speakers. It just needs some tinkering to make it work I'm betting. [MENTION=6556709]Vartom[/MENTION] you have any luck on cameras?
[Nexus 9 General] andyroidking:
I'm going to try delving back into this this weekend. Busy,busy.
[Nexus 9 General] Vartom:
I'm busy porting the drivers from the shield.
[Nexus 9 General] sk1tch:
Sweet. I was able to get the sound configuration I'm currently just working on that only will report my findings if anything significant happens... I doubt it though I currently only get output on Bluetooth audio sink.... messed with the configs before backing up the original..
[Nexus 9 General] rafaleon:
What a fascinating project! I hope you guys succeed! Just out of curiosity is the GPS ot LTE (in case of Nexus 9 LTE) working ? Can it work ? I am so excited for your pioneering work!
[Nexus 9 General] Vartom:
No. I did not add anything to the kernel that relates to LTE and GPS.
[Nexus 9 General] rafaleon:
I keep seeing this error during boot. How can i fix it ? Is it because I tried to put it on Nexus 9 LTE ?

Thanks for your help in advance.

BUG: soft lockup -CPU0 stuck for 22s (NetworkManager:217)
[Nexus 9 General] AbhaYsinGH007:
Can I use it for gaming ?
[Nexus 9 General] Grillac:
Ubuntu is a pretty resource hungry distro iirc. I don't know if you'd be able to actually play anything other than Minesweeper. Good luck if you do try it out though!
[Nexus 9 General] sk1tch:
Not likely in the way you're probably thinking. Best I got out of the graphics is with GQRX and an RTL-SDR dongle and it's pretty resource intense with that... Around 90% CPU usage even running glxgears it sucks it down at about 70-85%.

Best use for this is as an OTG Linux Computer for menial tasks such as email or word processing for class or something. Nothing in the realm of accelerated 3D graphics for gaming. Reteoarch maybe up to PSX but it would be resource hungry for that as well.

Eventually I will have Arch Linux up and running which is leaner than Ubuntu by at least half the memory and CPU load even though we have accelerated graphics it doesn't make it any less of a load on processing power
[Nexus 9 General] freshmeadow1@gmail.com:
Hello sk1tch. I have been a Linux user since 2006, and when I saw you were porting Ubuntu/XFCE to my beloved Nexus 9 I could not wait to try it out. I have installed the xfce.tar.bz2 on it, it has booted fine but when I enter toor as the login password with ubuntu as the user it keeps saying incorrect password. I installed the system from a usb stick on an otg cable. Can you please help?

Thanks, Jim Kelsh
[Nexus 9 General] andyroidking:
Doh... From the OP:

BTW... [MENTION=6159077]sk1tch[/MENTION] - I was really busy and never got back to reinstalling... Just got in a car accident and will be home for 4-6 weeks so I shouldn't have any excuses. That is if you think this will develop further. As is it should be enough for me, although if it could be more battery friendly it would be perfect. This took quite a while to type because i broke an arm.... ;)
[Nexus 9 General] freshmeadow1@gmail.com:
Thanks for replying Andyroidking. However, I am choosing ubuntu as the username and entering toor as the password and I keep getting "password incorrect". Am i missing something?

Thanks, Jim

---------- Post added at 01:41 PM ---------- Previous post was at 01:38 PM ----------

sk1tch, so sorry to hear about your accident. Hope you get well soon and thank you for your hard work!!
[Nexus 9 General] sk1tch:
[MENTION=8152633]freshmeadow1@gmail.com[/MENTION] hey I'm sorry I've been swamped with family medical issues mostly my 3 year old daughter who's a heart transplant recipient. I may have forgotten to add that I changed the password with the new build I believe it's a lowercase m that's it. You know you can login as root and change it at your leisure right? root password is toor all you'd have had to do was issue the command <CODE>passwd ubuntu</CODE> in virtual terminal ctrl-alt-F1, F2, etc and then switch back to the lightdm login screen with ctrl-alt-F8 and go from there. Um and it wasn't me who was in an accident it was the other gentleman you were talking to.

And Arch Linux is a bust [MENTION=7333810]andyroidking[/MENTION] drivers are a straight up no go yet but it installs and uses Framebuffer for X, buggy and slow so I'll update my OP looks like we're stuck with what we got thus far until somebody with a little more time to devote to developing the 3.10.40 Kernel further (Outside my expertise by miles). Because my time and lifestyle just changed 180 and had to get a part-time job again and still have to care for my special needs kiddo like normal. (Wife's having severe and uncontrollable migraines). Sorry for the dead long silence guys
[Nexus 9 General] freshmeadow1@gmail.com:
Thank you so much, sk1tch. Sorry I mixed up you and andyroidking!!!!! I guess that's what a combination of getting older and using Linux for 11 years does to you!!

Also, sorry for your family issues. We never know what life will throw at us. We have been dealing with 4 cancers in the family, including yours truly, but I am a survivor. Stay strong and thanks for giving me the chance to try Linux on my 9.
[Nexus 9 General] andyroidking:
[MENTION=6159077]sk1tch[/MENTION] - I kind of had a feeling Arch was going to be virtually impossible. Ubuntu is the mainstream distro for big companies so Nvidia had to make it work with that. They have way more resources than us. Like I said before I and others tried on different devices and never got any real acceleration. It always just ended up "almost usable"... Great try!

Now as to real life getting in the way... No worries! You have a lot on your plate and we are grateful for what you already accomplished. I kind of have a similar situation going down, special needs granddaughter I help a lot with, broken dominate wrist (car accident), wife has a missing disc and always in pain... Well, you get the point, I definitely feel for you. Relax, take a deep breath and keep plotting along...
[Nexus 9 General] sk1tch:
Thanks guys I will continue to work on the sound and cameras though I don't think I can get the cameras to work. Sound on the other hand is just a matter of finding the right channels to output to the speakers. They're detected as being found in the dmesg logs when the ALSA drivers load they just default to the headset jack only so we will see I suppose
[Nexus 9 General] freshmeadow1@gmail.com:
XFCE spin runs beautifully

I have the XFCE spin up and running on m yNexus 9 wifi and I love it! Thank you!
[Nexus 9 General] sk1tch:
Right on glad it worked for you. I love mine it's much more convienient than busting out a full size laptop on housecalls for general repair and whatnot + makes you look that much more skilled at what you do when you have a tiny tablet computer of your own creation (well to a degree of creation software-wise anyway lol)
[Nexus 9 General] sk1tch:
So apparently there is a new version of L4T drivers there is 21.6 and was released last month on the 25th will try to use them on my rootfs and report back any sort of graphics performance increase or botch
[Nexus 9 General] andyroidking:
My Man.
[Nexus 9 General] andyroidking:
Testing "Unity Preinstalled Desktop L4T 21.6 drivers approx 1.7GB" in OP
[Nexus 9 General] andyroidking:
I'll be trying the new root FS as soon as my new OTG keyboard comes in.
[Nexus 9 General] andyroidking:
$7.00 eBay purchase. Should be good. Reinstalling tonight or tomorrow..
[Nexus 9 General] andyroidking:
Unity Preinstalled Desktop L4T 21.6 drivers... Stuck in login loop. Had the message about low graphics mode and it was so tiny I must have clicked try to use anyway... So I'm going to have to reinstall the rootfs... took 1.5 hrs last time. Maybe next week, ran out of time. Tried all the tricks but it is definitely the wrong driver running and no way to change it.

---------- Post added at 05:36 PM ---------- Previous post was at 05:11 PM ----------

I removed \var\cache\apt\archive from the rootfs which brought the size under 1gb. It shouldn't bother anything unless something needs to be reinstalled before connecting to the internet... That should bring the install time down enough for me to try again before...uggg...WORK.
[Nexus 9 General] freshmeadow1@gmail.com:
Same issue here andyroidking. Login loop. Went back to the XFCE spin today. :(
[Nexus 9 General] andyroidking:
Yup. Drivers not getting loaded so the only thing is default which doesn't let you boot unity.... [MENTION=6159077]sk1tch[/MENTION]
[Nexus 9 General] andyroidking:
Xfce is doing the same thing. Login loop after telling me I'm running in low graphics mode. Yes I changed owners and added a new user...
[Nexus 9 General] Vartom:
Do you add the files of firmware tegra13x to the rootfs?
[Nexus 9 General] andyroidking:
I did nothing to the xfce rootfs [MENTION=278195]St1tch[/MENTION] posted in the op. [MENTION=8152633]freshmeadow1@gmail.com[/MENTION] seems to only have issue with the last uploaded rootfs (Unity Preinstalled Desktop L4T 21.6 drivers) not the xfce rootfs. So I'm at a loss why it isn't working for me.

[MENTION=8152633]freshmeadow1@gmail.com[/MENTION] , are you using the boot image from the OP? I did.
[Nexus 9 General] freshmeadow1@gmail.com:
Yes, I just reinstalled the original XFCE rootfs from sk1tch and I used his original boot image. I am sending this from XFCE on my 32g wifi Nexus 9 now. No idea why mine is working!

---------- Post added at 03:05 AM ---------- Previous post was at 02:58 AM ----------

I reinstalled the XFCE rootfs, went into a virtual terminal, put in root as the user, toor as the password, and deleted ubuntu as the user, added myself + admin and sudo groups, rebooted and that was it. Left the op's original bootloader on the 9.
[Nexus 9 General] andyroidking:
Not working for me... May need to wipe a few times then try again.
[Nexus 9 General] freshmeadow1@gmail.com:
Nexus 9 XFCE

To me, this is just more proof that computers, including tablets, are actually alive!!!!! When something works on one machine but does not work on an identical machine, it is their way of playing a joke!!! :p
[Nexus 9 General] sk1tch:
Sorry guys I wasn't getting my notifications for some reason.... I will pull down the new archive until I fix it. I may have forgotten to do something I'll debug and get back to you for now stay on the old preinstalled everyone, unless you feel like debugging it yourselves
[Nexus 9 General] andyroidking:
No problem... I tried some more but still can't get it to use the nvidia drivers. I only tried a little because I'm back to work and realized my job is actually physically demanding... Passed right out most days when I got home. ;)
[Nexus 9 General] freshmeadow1@gmail.com:
Thanks for all your hard work, sk1tch!!!!

---------- Post added at 11:15 PM ---------- Previous post was at 11:14 PM ----------

XFCE still working for me here!!!
[Nexus 9 General] sk1tch:
Xorg abi issues, I will install the drivers in a 17.04 rootfs and see if the results are better