[Q] Is my Moto G using aptx from this logcat? - Android Software Development

The only reference to "aptx" in logcat -v long is:
[ 11-24 10:26:35.525 2416: 2537 E/bt-btif ]
bta_av_co_audio_peer_supports_codec: aptX
Does that mean that it is actually using it? or just that my headphones support it?
Thanks

Related

Support for Bluetooth 4.0 (low energy)

Hi,
does Defy+ support Bluetooth 4.0 so called "low energy". By info from TI
the used module WiLink 6.0 (WL1271)
Supports latest Bluetooth low-energy (Bluetooth 4.0) and Bluetooth 3.0 specifications
Click to expand...
Click to collapse
But when i tried
Code:
hcitool lescan
I got error
Code:
set scan parameter failed: I/O Error
.
Is there missing support in kernel or WL1271 firmware?
Thanks for answer.
Netolish
Any update on this one?
bump - Any update on this?
I also want to get a bluetooth 4.0 device working.
I have a heart rate sensor H6 from polar and want to read it with my mb526.
i tried to move the android.hardware.bluetooth_le.xml into /system/etc/permissions and changed the permissions of the file
Code:
according to that site hxxp://ruidacosta.com/2014/01/06/bluetooth-le-with-cm11-on-razr-m/)
sorry for the censored link but im not allowed to post links
with the new bigger system partition this almost works^^
So a programm, ble checker says my device is ble supported however i can´t find nor connect to the heart rate sensor.
With a Galaxy S4mini the sensor works fine.
I m still on reading into that topic and im not sure how far the 2.6 kernel is problem or maybe the bluez version, since bluetooth smart is relativly new protocol.

[ROM] [Unofficial] | AOSPA 4+ | Weekly Update

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Paranoid Android is a custom rom focused on open devices.
We aim to not simply add to Android but extend it, utilizing the same design philosophies Google uses with AOSP (Android Open Source Project).
AOSPA General Changelog​
Quote:
Code:
#include
/*
* Your warranty is now not void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*/
Installation Instruction
New Install
Be on a KitKat ROM before flashing
You must have a custom recovery installed that allows SELinux.
Download the Xiaomi Mi3 build .
Download the gapps
Disable True Dual Boot
Fully wipe is highly recommended.
Install AOSPA on System 1
Wipe Dalvik and Cache
Reboot
Updating
Download rom and install
Reboot
AOSPA Cancro Download Link
Useful Link
AOSPA Official Page
AOSPA Legacy Google+ Community
MIUI Forum Community
Credits
varun.chitre15, qiwu, linuxxxx, Shahan_mik3,MI3 Cancro Devs, AOSPA Devs, Cyanogenmod Devs, Omni Dev, Community
Bugs :
What generally cm/aospa have
Random reboot (deep sleep & in call)..workaround for now
HDR not working
USB otg not working
Will be added in the journey..still fresh.
How To Build From Source
CAUTION : My work is a mess cause I'm not that good at dev. Sometime build may will break or device won't boot.
Mi3 cancro device tree
Mi3 cancro vendor tree
AOSPA Legacy Source : repo init -u git://github.com/AOSPA-legacy/manifest.git -b kitkat
Local Manifest
Build script
#!/bin/bash
# Version 2.0.4, Adapted for AOSPA.
export USE_CCACHE=1
export CCACHE_DIR=/media/audahadi/b6234e42-ff56-4372-956d-184e596b9e3e/audahadi/.ccache
# We don't allow scrollback buffer
echo -e '\0033\0143'
clear
# Get current path
DIR="$(cd `dirname $0`; pwd)"
OUT="$(readlink $DIR/out)"
[ -z "${OUT}" ] && OUT="${DIR}/out"
# Prepare output customization commands
red=$(tput setaf 1) # red
grn=$(tput setaf 2) # green
blu=$(tput setaf 4) # blue
cya=$(tput setaf 6) # cyan
txtbld=$(tput bold) # Bold
bldred=${txtbld}$(tput setaf 1) # red
bldgrn=${txtbld}$(tput setaf 2) # green
bldblu=${txtbld}$(tput setaf 4) # blue
bldcya=${txtbld}$(tput setaf 6) # cyan
txtrst=$(tput sgr0) # Reset
# Local defaults, can be overriden by environment
: ${PREFS_FROM_SOURCE:="false"}
: ${THREADS:="$(cat /proc/cpuinfo | grep "^processor" | wc -l)"}
# If there is more than one jdk installed, use latest 6.x
if [ "`update-alternatives --list javac | wc -l`" -gt 1 ]; then
JDK6=$(dirname `update-alternatives --list javac | grep "\-6\-"` | tail -n1)
JRE6=$(dirname ${JDK6}/../jre/bin/java)
export PATH=${JDK6}:${JRE6}:$PATH
fi
JVER=$(javac -version 2>&1 | head -n1 | cut -f2 -d' ')
# Import command line parameters
DEVICE="$1"
EXTRAS="$2"
# Get build version
MAJOR=$(cat /media/audahadi/b6234e42-ff56-4372-956d-184e596b9e3e/audahadi/AOSPAL/vendor/pa/vendor.mk | grep 'ROM_VERSION_MAJOR := *' | sed 's/ROM_VERSION_MAJOR := //g')
MINOR=$(cat /media/audahadi/b6234e42-ff56-4372-956d-184e596b9e3e/audahadi/AOSPAL/vendor/pa/vendor.mk | grep 'ROM_VERSION_MINOR := *' | sed 's/ROM_VERSION_MINOR := //g')
MAINTENANCE=$(cat /media/audahadi/b6234e42-ff56-4372-956d-184e596b9e3e/audahadi/AOSPAL/vendor/pa/vendor.mk | grep 'ROM_VERSION_MAINTENANCE := *' | sed 's/ROM_VERSION_MAINTENANCE := //g')
TAG=$(cat /media/audahadi/b6234e42-ff56-4372-956d-184e596b9e3e/audahadi/AOSPAL/vendor/pa/vendor.mk | grep 'ROM_VERSION_TAG := *' | sed 's/ROM_VERSION_TAG := //g')
if [ -n "$TAG" ]; then
VERSION=$MAJOR.$MINOR$MAINTENANCE-$TAG
else
VERSION=$MAJOR.$MINOR$MAINTENANCE
fi
# If there is no extra parameter, reduce parameters index by 1
if [ "$EXTRAS" == "true" ] || [ "$EXTRAS" == "false" ]; then
SYNC="$2"
UPLOAD="$3"
else
SYNC="$3"
UPLOAD="$4"
fi
# Get start time
res1=$(date +%s.%N)
echo -e "${cya}Building ${bldcya}AOSPA $VERSION for $DEVICE ${txtrst}";
echo -e "${bldgrn}Start time: $(date) ${txtrst}"
# Decide what command to execute
case "$EXTRAS" in
threads)
echo -e "${bldblu}Please enter desired building/syncing threads number followed by [ENTER]${txtrst}"
read threads
THREADS=$threads
;;
clean|cclean)
echo -e "${bldblu}Cleaning intermediates and output files${txtrst}"
export CLEAN_BUILD="true"
[ -d "${DIR}/out" ] && rm -Rf ${DIR}/out/*
;;
esac
echo -e ""
export DEVICE=cancro
# Fetch latest sources
if [ "$SYNC" == "true" ]; then
echo -e ""
echo -e "${bldblu}Fetching latest sources${txtrst}"
repo sync -j"$THREADS"
echo -e ""
fi
if [ ! -r "${DIR}/out/versions_checked.mk" ] && [ -n "$(java -version 2>&1 | grep -i openjdk)" ]; then
echo -e "${bldcya}Your java version still not checked and is candidate to fail, masquerading.${txtrst}"
JAVA_VERSION="java_version=${JVER}"
fi
if [ -n "${INTERACTIVE}" ]; then
echo -e "${bldblu}Dropping to interactive shell${txtrst}"
echo -en "${bldblu}Remeber to lunch you device:"
if [ "${VENDOR}" == "pa" ]; then
echo -e "[${bldgrn}lunch pa_$DEVICE-userdebug${bldblu}]${txtrst}"
else
echo -e "[${bldgrn}lunch full_$DEVICE-userdebug${bldblu}]${txtrst}"
fi
bash --init-file build/envsetup.sh -i
else
# Setup environment
echo -e ""
echo -e "${bldblu}Setting up environment${txtrst}"
. build/envsetup.sh
echo -e ""
# lunch/brunch device
echo -e "${bldblu}Lunching device [$DEVICE] ${cya}(Includes dependencies sync)${txtrst}"
export PREFS_FROM_SOURCE
lunch "pa_$DEVICE-userdebug";
echo -e "${bldblu}Starting compilation${txtrst}"
mka bacon
fi
echo -e ""
# Get elapsed time
res2=$(date +%s.%N)
echo -e "${bldgrn}Total time elapsed: ${txtrst}${grn}$(echo "($res2 - $res1) / 60"|bc ) minutes ($(echo "$res2 - $res1"|bc ) seconds)${txtrst}"
Note 2 : Change this path "/media/audahadi/b6234e42-ff56-4372-956d-184e596b9e3e/audahadi" to your working directory
Note 3 : Add this to vendor/pa
Path : vendor/pa/vendorsetup.sh
add_lunch_combo pa_cancro-userdebug
Path : vendor/pa/products/AndroidProducts.mk
ifeq (pa_cancro,$(TARGET_PRODUCT))
PRODUCT_MAKEFILES += $(LOCAL_DIR)/pa_cancro.mk
endif
Path : vendor/pa/products/pa_cancro.mk
# Copyright (C) 2014 ParanoidAndroid Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Check for target product
ifeq (pa_cancro,$(TARGET_PRODUCT))
# OVERLAY_TARGET adds overlay asset source
OVERLAY_TARGET := pa_xxhdpi
# Build paprefs from sources
PREFS_FROM_SOURCE ?= false
# Inherit telephony common stuff
$(call inherit-product, vendor/pa/configs/telephony.mk)
# Include AOSPA common configuration
include vendor/pa/main.mk
# Inherit device configuration
$(call inherit-product, device/xiaomi/cancro/full_cancro.mk)
# Override AOSP build properties
PRODUCT_DEVICE := cancro
PRODUCT_NAME := pa_cancro
PRODUCT_BRAND := xiaomi
PRODUCT_MODEL := MI 3W
PRODUCT_MANUFACTURER := Xiaomi
# Set build fingerprint / ID / Product Name ect.
PRODUCT_BUILD_PROP_OVERRIDES += PRODUCT_NAME=cancro TARGET_DEVICE=cancro
endif
Nice one..
Sent from my MI 3W
Waiting for it. Finally!! Thanks man.
Any problem with installing rom? Got pm someone mention it.
Sent from my Mi3 using Tapatalk
audahadi said:
Any problem with installing rom? Got pm someone mention it.
Sent from my Mi3 using Tapatalk
Click to expand...
Click to collapse
Chkout the miui thread for ur rom
http://en.miui.com/thread-42417-1-1.html
Shahan_mik3 said:
Chkout the miui thread for ur rom
http://en.miui.com/thread-42417-1-1.html
Click to expand...
Click to collapse
Not my rom..AOSPA..[emoji13]..Just mirror download link if you want too... Just for reminder..mostly I'm on xda..so won't check issue there much.
Sent from my Mi3 using Tapatalk
audahadi said:
Not my rom..AOSPA..[emoji13]..Just mirror download link if you want too... Just for reminder..mostly I'm on xda..so won't check issue there much.
Sent from my Mi3 using Tapatalk
Click to expand...
Click to collapse
Yes the thread is yet to be modified did it in a hurry.. Will give credits after u updated the thread.
Also I will remove the download link as more ppl will visit the thread to download ur ROM
We will do our best to resolve it or they will be redirected here
can't install
audahadi said:
Any problem with installing rom? Got pm someone mention it.
Sent from my Mi3 using Tapatalk
Click to expand...
Click to collapse
hey OP,
thanks for the efforts for getting PA to our Mi3
Unfortunately, when i download the zip file and move it to my phone, i'm getting an error "This device has either stopped responding or has been disconnected"
It happens only on your zip, when transferring to the sd card. Any other file can be transferred without issues.
I also noticed that in the file's properties, it is set to block (as it apparently came from another source), and there's an unblock button available for you to click on.
Did that and the same thing happened.
However, changing the file ext from zip to .txt allows me to transfer the file easily to my phone. I changed it back to .zip, rebooted to recovery and flashed the rom but failed - I didn't get the error but it somehow refers to the file as corrupted or non-supported.
Any help will be greatly appreciated! We're talking about PA here - AOSPA so I'm very excited about it!
Sorry for corrupt zip. This is new build.
https://docs.google.com/file/d/0B3JXRJM_jo8LQ1BzLXdCb3JBM1k/edit?usp=docslist_api
*fix auto brightness
*add notification led
Sent from my MI 3W using Tapatalk
audahadi said:
Sorry for corrupt zip. This is new build.
https://docs.google.com/file/d/0B3JXRJM_jo8LQ1BzLXdCb3JBM1k/edit?usp=docslist_api
*fix auto brightness
*add notification led
Sent from my MI 3W using Tapatalk
Click to expand...
Click to collapse
Also your ROM is in wrong section
It should be in android development but is in general.
Shahan_mik3 said:
Also your ROM is in wrong section
It should be in android development but is in general.
Click to expand...
Click to collapse
Mod edit until I revamp my OP (this weekend-busy days). Will do proper with all guide and credits.
Sent from my MI 3W using Tapatalk
audahadi said:
Mod edit until I revamp my OP (this weekend-busy days). Will do proper with all guide and credits.
Sent from my MI 3W using Tapatalk
Click to expand...
Click to collapse
You can just copy paste from miui thread and edit credit part.
For now then properly edit it later
audahadi said:
Sorry for corrupt zip. This is new build.
https://docs.google.com/file/d/0B3JXRJM_jo8LQ1BzLXdCb3JBM1k/edit?usp=docslist_api
*fix auto brightness
*add notification led
Sent from my MI 3W using Tapatalk
Click to expand...
Click to collapse
thanks for this, i had problems too with previous zip. will try asap.
what do you mean with auto brightness fixed? i mean, it doesn't even work in cm...?!
thanks!!
audahadi said:
Sorry for corrupt zip. This is new build.
https://docs.google.com/file/d/0B3JXRJM_jo8LQ1BzLXdCb3JBM1k/edit?usp=docslist_api
*fix auto brightness
*add notification led
Sent from my MI 3W using Tapatalk
Click to expand...
Click to collapse
Also Dynamic statusbar is not available. can you please confirm if its available in the build???
moly82 said:
thanks for this, i had problems too with previous zip. will try asap.
what do you mean with auto brightness fixed? i mean, it doesn't even work in cm...?!
thanks!!
Click to expand...
Click to collapse
Don't try cm yet...but my previous build can't enable auto brightness..
Missing config.
Shahan_mik3 said:
Also Dynamic statusbar is not available. can you please confirm if its available in the build???
Click to expand...
Click to collapse
Dynamic status bar and new recent not available in unofficial build. Need to wait for PA release source and got merge in aospa-legacy source.
Sent from my MI 3W using Tapatalk
audahadi said:
Don't try cm yet...but my previous build can't enable auto brightness..
Missing config.
Dynamic status bar and new recent not available in unofficial build. Need to wait for PA release source and got merge in aospa-legacy source.
Sent from my MI 3W using Tapatalk
Click to expand...
Click to collapse
It is available for legacy devices dude....I tried it on my galaxy s2 2/9 build
Shahan_mik3 said:
It is available for legacy devices dude....I tried it on my galaxy s2 2/9 build
Click to expand...
Click to collapse
yup it is work with legacy device, but mi3 is not yet a PA legacy device....
i04055 said:
yup it is work with legacy device, but mi3 is not yet a PA legacy device....
Click to expand...
Click to collapse
I know...he told the sources are not merged for legacy device that's why I told.
Shahan_mik3 said:
I know...he told the sources are not merged for legacy device that's why I told.
Click to expand...
Click to collapse
Unofficial mean device that not officially supported by PA members. PA build internally for rom released. Not directly from their source. When features is stable, they will release source.
Sent from my MI 3W using Tapatalk

[ Need ] Walkman™ player

Need walkman player for unrooted moto e 2015 3g version .. Have link...
I'm not sure if this is the right place to ask this but... Here it is. https://mega.co.nz/#!WoMz2bSI!Mhdk5qUQJ0Mn2meIcx6VGZZ1bDHPA-1TqrYcFTu4dbM

[ REQUEST ] LG G3 Stylus [ LG-D690 ]

Can someone port or make a CyanogenMod ROM for this device please? Been waiting for it for a long time )
Cheers! and Thanks in Advanceee )
:lol::lol:​

[WIP] [Help wanted] Making postmarketOS Linux port

Hey everyone!
So inspired by the Ubuntu thread, I decided to tackle making a port of postmarketOS, a version of Alpine Linux designed to run on legacy smartphones.
The progress is going pretty well, the device boots, the display works and you can log in via ssh. What doesn't work yet is Wifi and the kernel complains about several issues with CPU frequency drivers and then panics after a few minutes.
It'd be great if someone who knows more than I do could build the OS themselves and try to debug the kernel and upload patches or suggest a troubleshooting path.
Sources are here: https://github.com/postmarketos/pmbootstrap
Additional info on porting: https://wiki.postmarketos.org/wiki/Porting_to_a_new_device
Good to see some more interest in this. I'm far from being any help coding/building but will keep following to help test. My tablet has just been sitting lately anyway.
The pull request actually got approved. The initial device config is now in the official repo, waiting to be improved upon. Updated the link to point to the postmarketos github.
@flar2 @USBhost
If you're not too busy or bored by this project, it'd be neat of you could have a look at the current issue we're having. You're more experienced with kernels than I am, derp:
https://github.com/postmarketOS/pmbootstrap/issues/1384
Alexandroid99 said:
@flar2 @USBhost
If you're not too busy or bored by this project, it'd be neat of you could have a look at the current issue we're having. You're more experienced with kernels than I am, derp:
https://github.com/postmarketOS/pmbootstrap/issues/1384
Click to expand...
Click to collapse
Any kernel logs ?
It could be that the kernel was configured wrong. Or bad toolchain.
There's a dmesg posted on the issue.
Alexandroid99 said:
There's a dmesg posted on the issue.
Click to expand...
Click to collapse
Let's pretend that never happened :angel:
Edit: @Alexandroid99 I think I know what happened... Disable hung task in the config.
If you still have problems I will look through the whole config in the morning.
USBhost said:
Let's pretend that never happened :angel:
Click to expand...
Click to collapse
No worries. I'm glad enough that you're taking time to look at it anyway. From what I can gather, it's failing to control the CPU and fails to find firmware, even though I'm using kernel params and the correct wifi fw path in the kernel config.
USBhost said:
Let's pretend that never happened :angel:
Edit: @Alexandroid99 I think I know what happened... Disable hung task in the config.
If you still have problems I will look through the whole config in the morning.
Click to expand...
Click to collapse
Ooo that does sound helpful for further debugging at the very least. Thanks!
Alexandroid99 said:
Ooo that does sound helpful for further debugging at the very least. Thanks!
Click to expand...
Click to collapse
Does it still crash?
USBhost said:
Does it still crash?
Click to expand...
Click to collapse
Sadly, yes. Dmesg is still complaining about the firmware issues even when /vendor is mounted & the firmware is automatically copied to the initfs ramdisk at startup to /lib/firmware, plus we get these strange errors about the cpu frequency not being controllable. It does seem to run a tiny bit longer, so I could pipe a very late dmesg output to a file and pull it from the device. Gist here: https://gist.github.com/Alexandroid99/21fd1dafa931421d87c16d784ec6068d
Defconfig:
https://github.com/postmarketOS/pmb...inux-htc-flounder/config-htc-flounder.aarch64
At this point I'm not sure if it's related to the kernel not finding its firmware or if it's related to the modifications the distro makes. At least it kind of does boot, which is an advantage over other devices that don't even make it to userland.
Thanks for taking time, I appreciate you helping. ^_^
Alexandroid99 said:
Hey everyone!
So inspired by the Ubuntu thread, I decided to tackle making a port of postmarketOS, a version of Alpine Linux designed to run on legacy smartphones.
The progress is going pretty well, the device boots, the display works and you can log in via ssh. What doesn't work yet is Wifi and the kernel complains about several issues with CPU frequency drivers and then panics after a few minutes.
It'd be great if someone who knows more than I do could build the OS themselves and try to debug the kernel and upload patches or suggest a troubleshooting path.
Sources are here: https://github.com/postmarketos/pmbootstrap
Additional info on porting: https://wiki.postmarketos.org/wiki/Porting_to_a_new_device
Click to expand...
Click to collapse
WHoooaa wow, This is great to here, as I plan on tackling Sailfish OS on flounder after it comes in the mail (still working on manta Nexus 10 audio issues >:c ). Any special configs you had to set with the kernel? I assume PostMarket OS uses Hybris or something similar for HW adaptation
Galaxyninja66 said:
WHoooaa wow, This is great to here, as I plan on tackling Sailfish OS on flounder after it comes in the mail (still working on manta Nexus 10 audio issues >:c ). Any special configs you had to set with the kernel? I assume PostMarket OS uses Hybris or something similar for HW adaptation
Click to expand...
Click to collapse
Ehm we're nowhere near hwaccel yet and I've posted different versions of the defconfig before. The most recent is already in the official repo. All we have is a more or less booting device with a cyan cursor (if Mate desktop is installed) that crashes after three minutes. Look around the pmbootstrap repo and wiki for more info. And the devs said they haven't packaged libhybris for the Alpine Linux base yet, so that's still no-go.
@Alexandroid99 What CM/LOS base are you using? CM12.1? LOS14.1???
---------- Post added at 03:44 AM ---------- Previous post was at 03:05 AM ----------
Alexandroid99 said:
Ehm we're nowhere near hwaccel yet and I've posted different versions of the defconfig before. The most recent is already in the official repo. All we have is a more or less booting device with a cyan cursor (if Mate desktop is installed) that crashes after three minutes. Look around the pmbootstrap repo and wiki for more info. And the devs said they haven't packaged libhybris for the Alpine Linux base yet, so that's still no-go.
Click to expand...
Click to collapse
If you can, spam dmesg in terminal until it crashes, or, if possible, telnet into the device (maybe postmarket doesn't have telnet, I don't know) and run dmesg, and figure out what process is causing the crash.
Galaxyninja66 said:
@Alexandroid99 What CM/LOS base are you using? CM12.1? LOS14.1???
---------- Post added at 03:44 AM ---------- Previous post was at 03:05 AM ----------
If you can, spam dmesg in terminal until it crashes, or, if possible, telnet into the device (maybe postmarket doesn't have telnet, I don't know) and run dmesg, and figure out what process is causing the crash.
Click to expand...
Click to collapse
Base is LOS-15.1 branch.
And pmos has got ssh built in and I've already spammed dmesg, that's how I got that dmesg gist.
Alexandroid99 said:
Base is LOS-15.1 branch.
And pmos has got ssh built in and I've already spammed dmesg, that's how I got that dmesg gist.
Click to expand...
Click to collapse
Guess I'll need to wait for Hybris-15.1 for sailfish os : ( oh well;
Galaxyninja66 said:
Guess I'll need to wait for Hybris-15.1 for sailfish os : ( oh well;
Click to expand...
Click to collapse
Who cares about libhybris when we don't have a stable kernel yet? FYI the tegra vendor libs stopped being updated during the times of 7.1.2; they don't have to do anything with Lineage 15.1. The kernel itself is from the 15.1 branch because that's the version receiving updates right now afaik and not that different from 14.1 (I think).
The Ubuntu port is stable enough to run even though it doesn't use libhybris for anything, at least it wasn't mentioned. I appreciate your interest, but kindly have a look at the dmesg gist and tinker around with the builds if you've got an idea, or just leave it be. All we need right now is debug the kworker hang that occurs after about three minutes of uptime and is probably at least partially caused by missing firmware. There's of stuff you can do while forking:
- try to install firmware into the initramfs and see if that helps
- Add an initramfs hook and fstab entry to mount /vendor
- Make a new kernel defconfig with fixes if you think there's an error in there
- Make a new kernel package based on different lineage branches just to be sure
So, fork the pmbootstrap repo and get to it and forget about libhybris and next time read my posts better, because you suggested making a dmesg log when I had already mentioned that I managed to pull a very late dmesg aaand you could have found out the kernel base by yourself by looking at the repo on github.
@USBhost Are you still onboard with this? I've been meaning to get back into the project and your more professional opinion would be greatly appreciated ^^
It does run a little longer with hung tasks disabled, but I think it might be a deeper problem. Perhaps it's got something to do with the cpufreq driver:
Code:
WARNING: at drivers/platform/tegra/../../../arch/arm/mach-tegra/tegra12_clocks.c:1585 tegra12_cpu_clk_set_rate+0x16c/0x4b0()
[ 1.450449] Increasing CPU rate while regulator is not ready is not allowed
[ 1.450463] Modules linked in:
[ 1.450497] CPU: 1 PID: 48 Comm: cfinteractive Tainted: G W 3.10.103-pmos #1-postmarketOS
[ 1.450518] Call trace:
[ 1.450546] [<ffffffc000089508>] dump_backtrace+0x0/0x150
[ 1.450570] [<ffffffc00008966c>] show_stack+0x14/0x20
[ 1.450626] [<ffffffc000ae8ce8>] dump_stack+0x20/0x28
[ 1.450648] [<ffffffc0000ac1b0>] warn_slowpath_common+0x78/0xa0
[ 1.450669] [<ffffffc0000ac218>] warn_slowpath_fmt+0x40/0x48
[ 1.450688] [<ffffffc000832674>] tegra12_cpu_clk_set_rate+0x16c/0x4b0
[ 1.450709] [<ffffffc0008289a0>] clk_set_rate_locked+0x118/0x2f0
[ 1.450729] [<ffffffc00082a070>] tegra12_cpu_cmplx_clk_set_rate+0x48/0xd8
[ 1.450748] [<ffffffc0008289a0>] clk_set_rate_locked+0x118/0x2f0
[ 1.450766] [<ffffffc000828bd0>] clk_set_rate+0x58/0x230
[ 1.450787] [<ffffffc00083e028>] tegra_update_cpu_speed+0x180/0x3d8
[ 1.450806] [<ffffffc00083e75c>] tegra_cpu_set_speed_cap_locked+0x8c/0x100
[ 1.450824] [<ffffffc00083ee4c>] tegra_target+0x7c/0xa8
[ 1.450845] [<ffffffc0007acc8c>] __cpufreq_driver_target+0xa4/0x368
[ 1.450867] [<ffffffc0007b69bc>] cpufreq_interactive_speedchange_task+0x174/0x258
[ 1.450888] [<ffffffc0000d8fc8>] kthread+0xd0/0xd8
[ 1.450903] ---[ end trace 1b75b31a2719ed1f ]---
[ 1.450919] cpu-tegra: Failed to set cpu frequency to 714000 kHz
Alexandroid99 said:
@USBhost Are you still onboard with this? I've been meaning to get back into the project and your more professional opinion would be greatly appreciated ^^
It does run a little longer with hung tasks disabled, but I think it might be a deeper problem. Perhaps it's got something to do with the cpufreq driver:
Code:
WARNING: at drivers/platform/tegra/../../../arch/arm/mach-tegra/tegra12_clocks.c:1585 tegra12_cpu_clk_set_rate+0x16c/0x4b0()
[ 1.450449] Increasing CPU rate while regulator is not ready is not allowed
[ 1.450463] Modules linked in:
[ 1.450497] CPU: 1 PID: 48 Comm: cfinteractive Tainted: G W 3.10.103-pmos #1-postmarketOS
[ 1.450518] Call trace:
[ 1.450546] [<ffffffc000089508>] dump_backtrace+0x0/0x150
[ 1.450570] [<ffffffc00008966c>] show_stack+0x14/0x20
[ 1.450626] [<ffffffc000ae8ce8>] dump_stack+0x20/0x28
[ 1.450648] [<ffffffc0000ac1b0>] warn_slowpath_common+0x78/0xa0
[ 1.450669] [<ffffffc0000ac218>] warn_slowpath_fmt+0x40/0x48
[ 1.450688] [<ffffffc000832674>] tegra12_cpu_clk_set_rate+0x16c/0x4b0
[ 1.450709] [<ffffffc0008289a0>] clk_set_rate_locked+0x118/0x2f0
[ 1.450729] [<ffffffc00082a070>] tegra12_cpu_cmplx_clk_set_rate+0x48/0xd8
[ 1.450748] [<ffffffc0008289a0>] clk_set_rate_locked+0x118/0x2f0
[ 1.450766] [<ffffffc000828bd0>] clk_set_rate+0x58/0x230
[ 1.450787] [<ffffffc00083e028>] tegra_update_cpu_speed+0x180/0x3d8
[ 1.450806] [<ffffffc00083e75c>] tegra_cpu_set_speed_cap_locked+0x8c/0x100
[ 1.450824] [<ffffffc00083ee4c>] tegra_target+0x7c/0xa8
[ 1.450845] [<ffffffc0007acc8c>] __cpufreq_driver_target+0xa4/0x368
[ 1.450867] [<ffffffc0007b69bc>] cpufreq_interactive_speedchange_task+0x174/0x258
[ 1.450888] [<ffffffc0000d8fc8>] kthread+0xd0/0xd8
[ 1.450903] ---[ end trace 1b75b31a2719ed1f ]---
[ 1.450919] cpu-tegra: Failed to set cpu frequency to 714000 kHz
Click to expand...
Click to collapse
Yo... I'll look into it. And yes I am.
USBhost said:
@USBhost Are you still onboard with this? I've been meaning to get back into the project and your more professional opinion would be greatly appreciated ^^
It does run a little longer with hung tasks disabled, but I think it might be a deeper problem. Perhaps it's got something to do with the cpufreq driver:
Yo... I'll look into it. And yes I am.
Click to expand...
Click to collapse
Alrighty, cheers! Are you doing builds yourself to debug or should I keep on feeding you kernel logs whenever you require some? Thanks!

Categories

Resources