yashsingh1/xdaforums huggingface dataset:
[Nexus 9 General] freshmeadow1@gmail.com:
Clarification on setting the Bluetooth command

Hello sk1tch. I am an old Linux user but not a Linux professional. If it is not too much trouble, would you please explain what you mean when you say "set" this command " 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/bcm4354.hcd --no2bytes --enable_lpm --tosleep=50000 /dev/ttyTHS2" ? And point it to /vendor/lib/firmware file?

I have Mark Sobell"s great book on Linux Commands, Editors and Shell Programming but it does not say much about set. And, a search on Google for using set in Ubuntu did not seem to enlighten much.

I appreciate your hard work and apologize if this is something obvious I am just missing.

BTW, this was sent from my Nexus 9 still chugging along on the XFCE pre-installed desktop! I even have Libre Office on it now!!!!!! :laugh:

Many thanks, Jim
[Nexus 9 General] freshmeadow1@gmail.com:
Bluetooth

Hello folks. Happy New Year.

I don't want to bother anyone about my bluetooth issues. I am working through some bluetoothctl tutorials I found for Ubuntu and I will work it out.

Plus, I have a usb keyboard and I am getting really used to Onboard.

Thanks, Jim :)
[Nexus 9 General] wizzardsk:
Hi, I would like to try it, does KDE work already?
[Nexus 9 General] freshmeadow1@gmail.com:
I don't know. Xfce runs fine and apparently Lxde does too. See page 1 of this thread.

Good luck.
[Nexus 9 General] sk1tch:
No KDE is not able to run on the nexus 9 efficiently without lagging it down on memory consumption.
[Nexus 9 General] sk1tch:
This tool became available in Ubuntu 13.04 for the Nexus 7 2012 the package name is bluetooth-touch you put the command string into a shell script or manually enter the string in any terminal after required packages are installed it will enable Bluetooth to work properly. And right on glad it works for you
[Nexus 9 General] sk1tch:
LXDE, Mate, Fluxbox, Awesome, XFCE4 and all the lesser DE's work great and tested myself. KDE, and Gnome do work but are massive memory hogs and so slow it's not even worth the bother or time. Stick with my premade images unless you're skilled enough to follow the original guides and build your own images. I have to repair my work computer had a massive short on the MB and it nuked all my work on this so it will take me a little while to set everything back up. Also don't forget to hit that THANKS button if I have helped you...
[Nexus 9 General] Alexandroid99:
Would it be worth it or possible to upgrade to 17.04 or 17.10 via do-release-upgrade?
[Nexus 9 General] Alexandroid99:
Another question, where did you get the Nvidia drivers for arm? This project inspired me to start working on porting postmarketOS and a graphics driver would help a lot.
[Nexus 9 General] Vartom:
https://developer.nvidia.com/embedded/linux-tegra-archive
[Nexus 9 General] Alexandroid99:
Thanks, mate! Now, could somebody tell me where the kernel looks for libraries and wifi/bt firmware? Is /vendor being used or is it linux-firmware?
[Nexus 9 General] Vartom:
There are several options for wifi firmware:

1) to place the necessary files in the appropriate Linux folder and specify it in the kernel configuration,

2) specify in the kernel configuration take the firmware from the vendor partition

CONFIG_BCMDHD_FW_PATH="/vendor/firmware/fw_bcmdhd.bin"

CONFIG_BCMDHD_NVRAM_PATH="/system/etc/wifi/bcmdhd.cal"

3) Add firmware to the appropriate kernel source folder. Include them in the kernel.

4) Include them in the ramdisk.

In all these cases, you need to register the path in the kernel configuration where the kernel will search for these files. "CONFIG_BCMDHD_FW_PATH=, CONFIG_BCMDHD_NVRAM_PATH="

What libraries are you asking?
[Nexus 9 General] Alexandroid99:
I was talking about the libraries stored in /vendor, but the pmos devs said that they wouldn't work until they get libhydris to work, so nevermind those. So as far as I can read from the ramdisk, you just mount /vendor for all the firmware, correct?
[Nexus 9 General] Vartom:
Libraries stored in / vendor are not used by the Linux system. because she has her own library.

By connecting / vendor, I wanted to try to solve the availability of the /firmware(not libraries *.so) from the kernel.
[Nexus 9 General] Alexandroid99:
Thanks for the reply. Now, are you more or less proficient in kernel stuff? I've run into a bit of a roadblock trying to make the kernel boot with pmos and it does, but after a while it panics because of some CPU freq driver issue as far as I can tell from dmesg. Would be great to get some help from someone who knows more than I do.
[Nexus 9 General] Vartom:
Can you show dmesg?
[Nexus 9 General] Alexandroid99:
https://github.com/postmarketOS/pmbootstrap/issues/1384
[Nexus 9 General] Alexandroid99:
Btw for the project itself, I might have found a desktop environment project that's geared towards touch anyway: http://github.com/ubports/unity8

I'll try to compile it later.

---------- Post added at 06:56 AM ---------- Previous post was at 06:43 AM ----------

Oh and another thing, you can add the bluetooth patchram command as a systemd unit, that way it gets executed automatically on boot.
[Nexus 9 General] sk1tch:
Yo guys my HDD survived the burn up of my old MB and I've started development on the Kernel again. So far i have gotten the camera to almost work. Sound is still from bluetooth or headphone jack only. I have almost debugged the CDC serial through USB but still has issues. Any other progress anybody has to report? Also you should give geisview and touchegg a try i have gestures and grab/pinch working fine. And Unity fails to launch so do not go that route or it's reflash central for you
[Nexus 9 General] andyroidking:
I've been busy at work and still haven't time to revisit this. My last attempt (2 months ago?) failed without booting, nvidia driver issues i think. Could you take a quick look at what you have posted and update the links with what you got to run? I'll find the time this weekend to try it again.... Thanks for catching us up!
[Nexus 9 General] sk1tch:
No problem man. I will give links and/or update existing if they're dead/down or what have you. Until then I will keep plugging away at this
[Nexus 9 General] andyroidking:
Thx. I'm just saying make sure the files are the same as the ones you are currently using.. Those should be good for everyone. I'm going to just archive all the files I have and start fresh once you get the chance. No rush BTW! ;)
[Nexus 9 General] freshmeadow1@gmail.com:
Just thanks again for your hard work. Still running the xfce version of the rootfs and it is wonderful .

Browser, Google Inbox launcher app, Libre Office etc. Heck. when I want sound without headphones my wife gave me a little USB charged speaker that I plug in!!!!

Jim from Guelph
[Nexus 9 General] sk1tch:
So nothing has changed per the given link to the boot.img. Everything that worked before still works the same. If I make any headway with the camera I will update the link but, for now it's still marked as not working same with the sound from the speakers. Headset only or aux cable. Though I welcome anybody whom has more knowledge than I with Kernel development to add to this project
[Nexus 9 General] freshmeadow1@gmail.com:
Thanks again

Thank you again, sk1tch!! I just retired from teaching Finance and Auditing and am now devoting my time to Linux and learning Java, Ruby Python etc. Technical knowledge is not up to the Linux kernel by far!

Jim
[Nexus 9 General] Alexandroid99:
I have noticed that it seems to be refusing to load up the gui or even the nvidia driver properly when /system is empty. Are you relying on anything on /system to add functionality?

---------- Post added at 01:40 PM ---------- Previous post was at 12:45 PM ----------

Sorry if I seem spammy, but I thought I should give a little (maybe nooby) disclaimer: If you've installed Lineage 15.1 before this, you need to reflash the vendor.img from the last factory image to get Wifi working. Maybe pin this to the OP to save people some time, I'm sure there's room for confusion here.
[Nexus 9 General] madbat99:
All of the 8.1 ROMs for flounder modify vendor. So if you plan to restore a nougat backup, or flash a nougat rom, after flashing Oreo, you'll have to restore the vendor partition as well. So that should be in the 8.1 rom threads, not the 7.1.x ones.
[Nexus 9 General] Vartom:
The members of the system to launch the Linux system on the chipset found how to fix the sound from the speakers. To do this, change the minimum frequencies from 48000 to 44100.

in the kernel it needs to be changed here

https://github.com/vartom/android_k...est+f2fs/sound/soc/tegra/tegra_rt5677.c#L1284

on the next lines

snd_rate->min = 44100;
snd_rate->max = 48000;

I can not check it myself, because I do not have the Linux system installed.

After this editing, you should additionally look for the configuration of the mixers.
[Nexus 9 General] Alexandroid99:
Ehm I just said to restore /vendor back to stock when you want to use this Ubuntu, you're not adding anything new to the notion.

---------- Post added at 10:16 AM ---------- Previous post was at 10:15 AM ----------

Make a new branch, do the edit and compile a boot.img, I would test it.
[Nexus 9 General] Vartom:
Test boot w 44100.
[Nexus 9 General] Alexandroid99:
First impression: Kernel boots upside down, lol. lightdm does start in normal portrait orientation though.

---------- Post added at 03:30 PM ---------- Previous post was at 03:15 PM ----------

Audio worked only once on the aux port for one Youtube video, now it doesn't work. Chromium, LXQT desktop
[Nexus 9 General] Vartom:
Found the main reason for the lack of sound from the speakers. This is the tfa9895 driver used in the kernel. It does not configure the audio path. He needs an external driver that controls the chip from the android. A possible solution to this problem is using a different driver designed for Linux.

https://wiki.codeaurora.org/xwiki/bin/Mobile+Audio+Software+for+TFA98XX+Devices/
[Nexus 9 General] The Synthax:
kexec

Does this kernel have kexec enabled?
[Nexus 9 General] andyroidking:
No... But that would be nice. Being able to switch back to Android and have more boot options....
[Nexus 9 General] foobar44:
In alsa, sound comes out with a speaker

(adding a driver is unnecessary).

try writing the following and reboot system.

/etc/pulse/default.pa

=========================================

load-module module-alsa-sink device=hw:0,3 sink_name=speaker sink_properties=device.description=speaker

set-default-sink speaker

=========================================

and open sound setting (added item 'speaker' as default), check volume level.
[Nexus 9 General] freshmeadow1@gmail.com:
foobar44, are you using the newer boot.IMG?
[Nexus 9 General] The Synthax:
Exact same issue here. CPU#0 stuck for 22s!
[Nexus 9 General] foobar44:
hi freshmeadow1@gmail.com,

boot.img is built from source.

the boot.img that was released here, its also ok.

---------- Post added at 12:13 PM ---------- Previous post was at 12:06 PM ----------

that maybe because wlan is not enabled.

check the existence of the following files.

/vendor/firmware/fw_bcmdhd.bin

/system/etc/wifi/bcmdhd.cal
[Nexus 9 General] freshmeadow1@gmail.com:
Thank you foobar44!!
[Nexus 9 General] sk1tch:
Hey guys sorry for the inactivity from me, been super busy lately. Had to move and kids and their schooling needs you know how it goes....

So anyways I was tinkering around with my Nexus 9 and I successfully ported Arch Linux with GPU drivers and am testing it out right now so I will let you all know if we have another distro that can be used. So far the drivers loaded no problem will give a framerate and other info later on today
[Nexus 9 General] andyroidking:
Sounds great... My tablet is just lying around so I'll jump on it when you're done... Take your time...
[Nexus 9 General] 4everAnoob:
Curious if you have an update?
[Nexus 9 General] sk1tch:
Not made any significant progress. Having a problem with errors when compiling the compatible version of Xorg for the Nvidia drivers. I know the drivers work for certain because I can see what has loaded using dmesg. And I got a Pixel so been tinkering with that for awhile. I gave it a rest for a few weeks and work has me busy. Will start up on it again once I'm done toying with the new phone
[Nexus 9 General] ZaleT:
I have my device running xfce success. However, when I chosse ubuntu as the username and entering m as password, it shows Icorrect password. I tried many times and also tried m, still not work. Would you please tell me if there any thing wrong? Thank you!
[Nexus 9 General] madbat99:
From op

In order to get the preinstalled to fix login if having issues use the command as root in virtual terminal Ctrl+Alt+F1/F2, etc

chown ubuntu:ubuntu /home/ubuntu

.

This should fix the login issues, if you want you can create a different user and remove the premade user using these commands as root in virtual terminal.

deluser username
adduser username
addgroup username adm
addgroup username sudo

Additionally if you have an error when running glxgears there is a fix

xauth list

It should output something similar to this

localhost.localdomain/unix:0 MIT-MAGIC-COOKIE-1 a4f6256398303725763c5595f404afbb

You will need to export the display and add that MIT-MAGIC-COOKIE you got from xauth list

export DISPLAY=":0"; xauth add $DISPLAY . a4f6256398303725763c5595f404afbb

This should fix the display error.

And finally,

Enjoy Ubuntu on your Nexus 9
[Nexus 9 General] ZaleT:
Thank you for reply. Now it works
[Nexus 9 General] sk1tch:
Hello everybody, I can confirm sound works on speakers using the suggested parameters

/etc/pulse/default.pa

=========================================

load-module module-alsa-sink device=hw:0,3 sink_name=speaker sink_properties=device.description=speaker

set-default-sink speaker

=========================================

No lag or latency in audio. Also I'm using my original boot.img

No progress on Arch Linux as of yet... Still having issues with the patch for Xorg, been too busy with work and family life

Instructions for installing Arch Linux on the TK1 : Link https://elinux.org/Jetson/Porting_Arch

xorg-server 1.15.2-1 with patch

Link: https://cgit.freedesktop.org/xorg/xserver/commit/?id=21b896939c5bb242f3aacc37baf12379e43254b6

I'm just having trouble making the package even with Arch Linux installed on the tablet anybody who wants to try and help feel free
[Nexus 9 General] Alexandroid99:
Btw if you can't get the login to work, you could always reboot into TWRP and do this:

mount --rbind /proc $LINUXDIR/proc
mount --rbind /sys $LINUXDIR/sys
mount --rbind /dev $LINUXDIR/dev

chroot $LINUXDIR /bin/su

adduser $NEWUSERNAME
adduser $NEWUSERNAME sudo

This mounts all the kernel FS into the container and puts you into a root session inside the container via the terminal emulator. If TWRP had Wifi capacity, you could even get networking. Anyway, this can also help to do maintenance tasks if you broke your graphical shell and don't have a hardware keyboard to switch to TTY.

---------- Post added at 07:38 PM ---------- Previous post was at 07:29 PM ----------

What's the patched xorg for?
[Nexus 9 General] Alexandroid99:
Oh and something else: I remember upgrading to 17.04 worked well back when it was the latest version, but my (admittedly borked attempt - the updater was crashing so I did it manually) upgrade to disco dingo failed in the sense that X was caught in a crash loop on restarting after the upgrade.
[Nexus 9 General] sk1tch:
It's an X server abi thing. 16.04 has Xorg abi 15. 17.04 and above use a higher abi so the Nvidia beta driver doesn't work on higher versions. Stay on 16.04 is my recommendation for a usable Linux experience
[Nexus 9 General] sk1tch:
Patched Xorg for Arch Linux is for the correct ABI version for the Beta drivers to run Xserver with hardware acceleration.
[Nexus 9 General] sk1tch:
It was actually my mistake on the login password on the guide. It wasn't m, I changed the password to ubuntu and forgot to update the OP
[Nexus 9 General] H@ckbook:
hi everyone

Hi, do you think it's possible to install ubuntu mate for raspberry pi on flounder? h.t.t.p.s://ubuntu-mate.org/

this version is for armV7 or armV8, so theoretically good for this tablet, what would be the things to modify in order to install it? I am a beginner under linux but I do not want to use Android on my nexus 9, I want to remove google from my tablet and have an open source os to make a small computer that does not consume, to learn to work this winter on python and arduino.

I'm not dealing with the electrical network and my Mac under Linux consumes too much in winter.

thank you for your work even if I do not always understand all the steps to take.

ps: i'm french, sorry for my english
[Nexus 9 General] sk1tch:
Mate is a desktop environment and I have installed and tested it on my Nexus 9, and it works fine. Just steer clear of KDE and Gnome 3 they are too resource taxing on memory. Best to stick with Xfce4 on my preinstalled image but, you can manually install Mate and choose it at login. Nexus 9 is arm64 but, we have 32 bit support in the Kernel so the GPU drivers from Nvidia work as they are 32 bit binaries
[Nexus 9 General] H@ckbook:
help to fix a problem

I installed the version provided in link on this post, but I have two failed at startup.

Failed (too fast to read, but in the video it seems to have the same)

And Failed to start Network Manager wait online that is looping a wifi network.

How can I fix this problem?

I don't have nmcli on it and in the terminal recovery I can not modify / data / linux / etc / NetworkManager.

Would you have a solution to change the network address ssid and password in terminal recovery ?

Thanks
[Nexus 9 General] zhtlancer:
64bit system?

Not sure why not using aarch64 system image, but using 32bit image here? Is there any restraints from driver or vendor binaries?
[Nexus 9 General] lillywho:
I think as far as I know, the base image that nvidia offers is 32 bit and it's just easier to slipstream a 32 ubuntu into it rather than configure a multiarch solution

---------- Post added at 11:48 AM ---------- Previous post was at 11:44 AM ----------

Could someone maybe package the compatible x server setup for Ubuntu? This might allow for using newer Ubuntu releases!
[Nexus 9 General] Alexandroid99:
So over the past couple of days I've been setting up ubuntu mate based on the xfce image, tearing out all of xfce and even updating Mate to the latest version available via ppa and it works well. I put in the pulseaudio config and even wrote another systemd unit to autorun the Bluetooth patch. If anyone is interested in a fully updated mate version with patches applied, I could tarball it up and upload it. Disadvantage: right now it's probably about 10GB in size and I can't seem to spec it down a lot. Maybe you have an idea what to tear out.

---------- Post added at 15:19 ---------- Previous post was at 14:51 ----------

Another question: do we really need the kernel headers in /usr/src ? they take up 70mb!
[Nexus 9 General] smallthings:
I'm definitely interested!

I've had a lot of trouble getting OP's original xfce.tar.bz2, especially with updates. Thank you!
[Nexus 9 General] smallthings:
So I've reinstalled xfce.tar.bz2 several times now, but I keep failing to accomplish security updates. Clicking on the software updater just crashes. Running "sudo apt-get dist-upgrade" from terminal, most of the errors seem to be locale problems. I've Googled for hours, tried many things like "export" commands involving things like UTF8 and LC_ALL, but none if it has really worked.

I've seen no one else mention this problem in this thread. If I am the only one experiencing these problems, I'll just give up and assume something is wrong with my device. But I was hoping perhaps someone might know something about them?
[Nexus 9 General] nikk95:
Yes please! I'd be interested too. Thank You so much. If there is any way I could help, please let me know!
[Nexus 9 General] HJCK:
Link?
[Nexus 9 General] sk1tch:
Sorry guys, been gone awhile. I think I fixed the link for you.
[Nexus 9 General] markkino:
Hi, sorry to bother you but I cannot access the files, Google says you need to approve me to access them, could you approve me or make them public again? Because I really wanted to try Linux on my Nexus 9 . Sorry for my bad English but I am Italian
[Nexus 9 General] markkino:
Could you approve me also on the boot.img file, thanks 😁
[Moto Z Play Questions & Answers] Florentpraha:
Hello,

at first - I would like to apologize to moderators, if this topic is out of category, I tried to find some troubleshooting category but didnt. So please if Im blind, move it. At second, sorry for my english, Im not native speaker.

Model XT1635-02 Reteu dual sim 32GB

Trouble description:

I unlock bootloader, flash twrp and tested some custom rom. After that, I want to go back to stock rom. I flashed the stock rom, but forget to do NOT ota update. Ok - brick the phone. After few hours of searching, I relive a phone with right flashblank and had an access to bootloader again. But tried to flash a stock rom again, and that was a main fail again. So - I have a stock rom in phone, but doesnt work. And (from my point of view) I have a nonworking stock rom with locked USB debuging mode, I cannot unlock it, becasuse it doesnt work and I cannot flash twrp, because USB debug is locked. If I try to boot recovery twrp, phone restart but no twrp popup. vol up + pwr do nothing. So Im catch in some crappy circle at this moment. I tried fastboot erase system, but result is:

So question is: Is there some command in fastboot for deleting everything? Or other way how to delete a rom from fastboot? (idea is delete rom to skip locked USB debug)

Other thing to do, to test? Some tips, helps?

Thank you so much everyone who spend a time try to help me...
[Moto Z Play Questions & Answers] jst98:
You can install twrp again? If you can, just do a advanced wipe. Because MZP Bootloader doens't allow to delete any part of system.
[Sony Xperia XZ1 Compact Guides, News, & Discussion] km8j:
Will their be any any way to get the fingerprint sensor active in the US AND retain volte on T-Mobile?
[Sony Xperia XZ1 Compact Guides, News, & Discussion] SXUsr:
Until it's released it's a guessing game.
[Sony Xperia XZ1 Compact Guides, News, & Discussion] munjeni:
Flashtool can be used on xz1 compact?
[Sony Xperia XZ1 Compact Guides, News, & Discussion] zegoo:
Hi,

I have exactly the same question ...

I bought a XZ1C with a Generic UK/HK rom and i would like to flash the latest French Generic rom. I tried many different version of FlashTool but no success to flash it. I used XperiFirm, i got the .ftf file but in devices directory, it seemed to miss the G8441 directory with the 2 files needed for the XZ1C be recognised by FlashTool.

47.1.fsc and G8441.properties are both missing. I think that's why the phone is not saw by FlashTool and also the ftf file ...

How to correct that issue ? :confused:
[Sony Xperia XZ1 Compact Guides, News, & Discussion] KeePeeR26:
Same question here to.
[Sony Xperia XZ1 Compact Guides, News, & Discussion] mhaha:
Answered here by [MENTION=4782500]pbarrette[/MENTION]
[Sony Xperia XZ1 Compact Guides, News, & Discussion] pbarrette:
Well, to be fair, munjeni was making a commentary on the fact that the main post still lists Flashtool when he is quite well aware that it doesn't work for 2017 Sony devices.

That's precisely why he developed the newflasher tool.
[Sony Xperia XZ1 Compact Guides, News, & Discussion] mhaha:
In hindsight, that seems obvious since he's the developer of newflasher (sorry for overlooking), but in my defense, without further context it was difficult to interpret it that way.

On face value, it appears to be a simple question of asking whether flashtool supports XZ1C.

Nevertheless, I apologize for my mistake, and thank you for pointing it out.