[Undervolt][Flashable] Oneplus 5T undervolt. - OnePlus 5T Themes, Apps, and Mods

Steps:
1. Download https://github.com/lyq1996/msm8998_offset_voltage/releases/download/v1.0/msm8998-Undervolt-Tool.zip
2. Reboot to TWRP and select msm8999-Undervolt-Tool.zip
3. Enjoy.
Others:
1. How to check my current gpu and cpu voltage?
Open your terminal and run:
su -c dmesg -T | grep -E "add_opp|gfx3d_"
2. Most 835 can easily undervolt cpu 100mv and gpu 200mv!
3. Done in your own risks.

hello, wanted to check my stock voltage but your line gave me no results on the terminal, anything i am doing wrong? thanks

miky10 said:
hello, wanted to check my stock voltage but your line gave me no results on the terminal, anything i am doing wrong? thanks
Click to expand...
Click to collapse
Please reboot.
dmesg store in kernel ring buffer, it will replace old log when hit the buffer size.

Does this undervolt require a custom kernel?

[email protected] said:
Steps:
1. Download https://github.com/lyq1996/msm8998_offset_voltage/releases/download/v1.0/msm8998-Undervolt-Tool.zip
2. Reboot to TWRP and select msm8999-Undervolt-Tool.zip
3. Enjoy.
Others:
1. How to check my current gpu and cpu voltage?
Open your terminal and run:
su -c dmesg -T | grep -E "add_opp|gfx3d_"
2. Most 835 can easily undervolt cpu 100mv and gpu 200mv!
3. Done in your own risks.
Click to expand...
Click to collapse
just flashing is enough?
how to change the setting of undervolt (like -25,-50,-75...)

jraman said:
just flashing is enough?
how to change the setting of undervolt (like -25,-50,-75...)
Click to expand...
Click to collapse
via aroma

Will this work with blu_sprk? cause blu_sprk uses magisk to flash the kernel systemlessly

dsjd said:
Will this work with blu_sprk? cause blu_sprk uses magisk to flash the kernel systemlessly
Click to expand...
Click to collapse
It's not kernel.
Just a tool that undervolt by modify voltage_fuse in kernel_dtb.
So all roms and all recovery should work fine.

[email protected] said:
It's not kernel.
Just a tool that undervolt by modify voltage_fuse in kernel_dtb.
So all roms and all recovery should work fine.
Click to expand...
Click to collapse
Cool. What's the max that I can undervolt? Also at what stage of boot does the undervolt kick in?

:/ $ su -c dmesg -T | grep -E "add_opp|gfx3d_"
[Sat May 16 07:10:53 2020] gfx3d_clk_src: set OPP pair(180000000 Hz: 548000 uV) on 5000000.qcom,kgsl-3d0
[Sat May 16 07:10:53 2020] [ 0.410422]@4 gfx3d_clk_src: set OPP pair(710000000 Hz: 764000 uV) on 5000000.qcom,kgsl-3d0
[Sat May 16 07:10:53 2020] [ 0.435766]@4 add_opp: Set OPP pair (300000000 Hz, 568000 uv) on cpu0
[Sat May 16 07:10:53 2020] [ 0.436387]@4 add_opp: Set OPP pair (1900800000 Hz, 788000 uv) on cpu0
[Sat May 16 07:10:53 2020] [ 0.436414]@4 add_opp: Set OPP pair (300000000 Hz, 568000 uv) on cpu1
[Sat May 16 07:10:53 2020] [ 0.436794]@4 add_opp: Set OPP pair (1900800000 Hz, 788000 uv) on cpu1
[Sat May 16 07:10:53 2020] [ 0.436821]@4 add_opp: Set OPP pair (300000000 Hz, 568000 uv) on cpu2
[Sat May 16 07:10:53 2020] [ 0.437200]@4 add_opp: Set OPP pair (1900800000 Hz, 788000 uv) on cpu2
[Sat May 16 07:10:53 2020] [ 0.437229]@4 add_opp: Set OPP pair (300000000 Hz, 568000 uv) on cpu3
[Sat May 16 07:10:53 2020] [ 0.437611]@4 add_opp: Set OPP pair (1900800000 Hz, 788000 uv) on cpu3
[Sat May 16 07:10:53 2020] [ 0.437636]@4 add_opp: Set OPP pair (300000000 Hz, 568000 uv) on cpu4
[Sat May 16 07:10:53 2020] [ 0.438185]@4 add_opp: Set OPP pair (2457600000 Hz, 880000 uv) on cpu4
[Sat May 16 07:10:53 2020] [ 0.438211]@4 add_opp: Set OPP pair (300000000 Hz, 568000 uv) on cpu5
[Sat May 16 07:10:53 2020] [ 0.438758]@4 add_opp: Set OPP pair (2457600000 Hz, 880000 uv) on cpu5
[Sat May 16 07:10:53 2020] [ 0.438789]@4 add_opp: Set OPP pair (300000000 Hz, 568000 uv) on cpu6
[Sat May 16 07:10:53 2020] [ 0.439338]@4 add_opp: Set OPP pair (2457600000 Hz, 880000 uv) on cpu6
[Sat May 16 07:10:53 2020] [ 0.439367]@4 add_opp: Set OPP pair (300000000 Hz, 568000 uv) on cpu7
[Sat May 16 07:10:53 2020] [ 0.439914]@4 add_opp: Set OPP pair (2457600000 Hz, 880000 uv) on cpu7
[Sat May 16 07:10:53 2020] [ 0.749548]@4 iommu: Adding device 5040000.qcom,kgsl-iommu:gfx3d_user to group 11
[Sat May 16 07:10:53 2020] [ 0.749827]@4 iommu: Adding device 5040000.qcom,kgsl-iommu:gfx3d_secure to group 12
:/ $
Click to expand...
Click to collapse
Can someone tell me how to read this? As far as i understand, uV should be negative right?

:/ $ su
:/ # su -c dmesg -T | grep -E "add_opp|gfx3d_"
[Sat May 16 08:11:55 2020] gfx3d_clk_src: set OPP pair(180000000 Hz: 648000 uV) on 5000000.qcom,kgsl-3d0
[Sat May 16 08:11:55 2020] [ 0.422595]@4 gfx3d_clk_src: set OPP pair(710000000 Hz: 964000 uV) on 5000000.qcom,kgsl-3d0
[Sat May 16 08:11:55 2020] [ 0.447935]@4 add_opp: Set OPP pair (300000000 Hz, 660000 uv) on cpu0
[Sat May 16 08:11:55 2020] [ 0.448564]@4 add_opp: Set OPP pair (1900800000 Hz, 900000 uv) on cpu0
[Sat May 16 08:11:55 2020] [ 0.448592]@4 add_opp: Set OPP pair (300000000 Hz, 660000 uv) on cpu1
[Sat May 16 08:11:55 2020] [ 0.448980]@4 add_opp: Set OPP pair (1900800000 Hz, 900000 uv) on cpu1
[Sat May 16 08:11:55 2020] [ 0.449014]@4 add_opp: Set OPP pair (300000000 Hz, 660000 uv) on cpu2
[Sat May 16 08:11:55 2020] [ 0.449409]@4 add_opp: Set OPP pair (1900800000 Hz, 900000 uv) on cpu2
[Sat May 16 08:11:55 2020] [ 0.449439]@4 add_opp: Set OPP pair (300000000 Hz, 660000 uv) on cpu3
[Sat May 16 08:11:55 2020] [ 0.449838]@4 add_opp: Set OPP pair (1900800000 Hz, 900000 uv) on cpu3
[Sat May 16 08:11:55 2020] [ 0.449863]@4 add_opp: Set OPP pair (300000000 Hz, 644000 uv) on cpu4
[Sat May 16 08:11:55 2020] [ 0.450434]@4 add_opp: Set OPP pair (2457600000 Hz, 992000 uv) on cpu4
[Sat May 16 08:11:55 2020] [ 0.450463]@4 add_opp: Set OPP pair (300000000 Hz, 644000 uv) on cpu5
[Sat May 16 08:11:55 2020] [ 0.450995]@4 add_opp: Set OPP pair (2457600000 Hz, 992000 uv) on cpu5
[Sat May 16 08:11:55 2020] [ 0.451024]@4 add_opp: Set OPP pair (300000000 Hz, 644000 uv) on cpu6
[Sat May 16 08:11:55 2020] [ 0.451550]@4 add_opp: Set OPP pair (2457600000 Hz, 992000 uv) on cpu6
[Sat May 16 08:11:55 2020] [ 0.451578]@4 add_opp: Set OPP pair (300000000 Hz, 644000 uv) on cpu7
[Sat May 16 08:11:55 2020] [ 0.452104]@4 add_opp: Set OPP pair (2457600000 Hz, 992000 uv) on cpu7
[Sat May 16 08:11:55 2020] [ 0.760427]@4 iommu: Adding device 5040000.qcom,kgsl-iommu:gfx3d_user to group 11
[Sat May 16 08:11:55 2020] [ 0.760712]@4 iommu: Adding device 5040000.qcom,kgsl-iommu:gfx3d_secure to group 12
:/ #
Click to expand...
Click to collapse
If moderator think I'm spamming, feel free to remove it.
This is when i ran the command on stock. I saw difference with the clock speed, but i still don't understand about the uV value.

Will I still be able to use a mod like this if I'm on a custom ROM? Thanks!
(I'm very new to all this sorry)

yChoon said:
If moderator think I'm spamming, feel free to remove it.
This is when i ran the command on stock. I saw difference with the clock speed, but i still don't understand about the uV value.
Click to expand...
Click to collapse
1v = 1000mv = 1000000uv, logs the command output is your current big and small core voltage.
You can observe the changes before and after using the tool to determine whether undervolt is effective

Nafy77 said:
Will I still be able to use a mod like this if I'm on a custom ROM? Thanks!
(I'm very new to all this sorry)
Click to expand...
Click to collapse
Sure, work on all rom.

[email protected] said:
1v = 1000mv = 1000000uv, logs the command output is your current big and small core voltage.
You can observe the changes before and after using the tool to determine whether undervolt is effective
Click to expand...
Click to collapse
Thank you! But i already observe the effectiveness, my phone has lower temperature overall + battery lasting longer with 100mv uv on cpu and 200mv uv on gpu.
However, i would advice other those who about to use this mod, after flashing remember to use kernel manager to disable core_control and enable msm_thermal. As i found out after i play some really intensive gpu game, when phone slightly heat up(warm), my whole phone freezed, i suspect core_control trying to lower the voltage more and cause issue. Ever since i disabled core_control and switch to msm_thermal, no such issue happens anymore.

What an absolute legend. I'm running underclocked & well optimized kernel with HW overlays disabled (you can find the init.d script in xda) and the performance/battery life are both phenomenal, now this? My phone is just sipping the juice promille at time

Will it work with oos stock rom and stock Kernel?

Does this mod get removed after flashing a new ROM or update? I have installed and love it but I am not sure if it stays undervolted after flashing a ROM and don't want to apply it twice and break my phone if it does

For me -110mv is the limit for cpu. 120 becomes unstable, 130 doesnt boot. Running gpu on -190 for now
So -100mv cpu -190 gpu.

gsser said:
For me -110mv is the limit for cpu. 120 becomes unstable, 130 doesnt boot. Running gpu on -190 for now
So -100mv cpu -190 gpu.
Click to expand...
Click to collapse
Which kernel are you on?

Related

Tornado A2DP (i.e. bluetooth stereo headphones)

I thought it would be nice if we cfoudl get some Q&A going about this topic.
I'd like to hear which Tornado ROMs seem to have good working A2DP, which BT stack they use (if you know), what headset/remote you're using.
I'd also like to know if anyone can give use directions for checking what stack our phone is using.
I'd also like to know your opinions on volume, hiss, etc.
If you are satisfied or unsatisfied with your volume, please include your audiogain settings for comparision:
HKLM\SOFTWARE\HTC\AUDIOGAIN
(note: audiogain settings are in hexidecimal)
Here is some info on A2DP reg tweaking, that is supposed to be relevant to the WM6 bt stack.
i.e. from the "final" or "official" released, not a beta.
[ Default Settings are as follows: ]
HKLM\Software\Microsoft\Bluetooth\A2DP\Settings\
BitPool DWORD 30
MaxSupportedBitPool DWORD 30
SampleRate
UseJointStereo DWORD 1
HKLM\Software\Microsoft\Bluetooth\AudioGateway\
Capability DWORD 37
[ Aternate Settings: ]
HKLM\Software\Microsoft\Bluetooth\A2DP\Settings\
BitPool DWORD 51
MaxSupportedBitPool DWORD 60
SampleRate DWORD 48000
UseJointStereo DWORD 0
Cant remember if i changed the one below or it was already at that value.
HKLM\Software\Microsoft\Bluetooth\AudioGateway\
Capability DWORD 60
-----------------
[ Sleuth255's WM6 optimum settings for bluetooth A2DP: ]
These are applicable to the newer releases of WM6.
Finding #1:
ADD/CHANGE the following values from the registry at HKLM\Software\Microsoft\Bluetooth\A2DP\Settings :
Name: UseJointStereo
Value (DWORD): 1
What this does is enable Joint-Stereo for the SBC codec, which is important and makes the biggest significant change to improve sound quality. (Note: In earlier versions of WM5 and WM6, Joint-Stereo was broken and resulted in a mono-output. This is not the case anymore with the newer WM6 ROMS.)
Further note: Sleuth255 found that some of his A2DP headsets could not work with JS turned on. In that case, you have to set the value to 0 to disable JS (resulting in poorer quality sound with more "hissing").
Finding #2:
REMOVE the following values from the registry at HKLM\Software\Microsoft\Bluetooth\A2DP\Settings if they are present:
- BitPool
- MaxSupportedBitPool
These values are used to manually set limits for the BT stack for the A2DP SBC codec. Previously, it was thought that these values should be set between 38 to 86. But if the values are removed, I think that the BT stack automatically chooses the best BitPool values for maximum quality. I've tried removing these values and the sound quality either improved or at least stayed the same.
[ SUMMARY ]
At this point, you should have only one value in the registry at HKLM\Software\Microsoft\Bluetooth\A2DP\Settings:
UseJointStereo = 1
Your A2DP audio should be very good at this point - almost indistinguishable from a wired headset. However, if you are still unsatisfied with the sound (you may notice some very slight "hissing" or "swishing" sounds on high frequencies of certain songs), you may want to try the optional setting below.
[ OPTIONAL ]
Finding #3:
This is optional, and a matter of preference.
ADD the following value to the registry at HKLM\Software\Microsoft\Bluetooth\A2DP\Settings:
Name: SampleRate
Value (DWORD): 48000 (decimal)
This forces the A2DP stack to send the audio to the headset at 48000Hz instead of the default 44100Hz. For some reason, I find that the 48Khz value makes the "hissing" sounds less obvious. Your findings may vary, as some people may prefer the slightly more forward sound of the original setting. But if you are game, give this a try - one thing for sure is that it definitely changes the sound quality.
To reverse the change, just remove the SampleRate value.
If you make this 3rd optional change, you should have the following values in the registry at HKLM\Software\Microsoft\Bluetooth\A2DP\Settings:
UseJointStereo = 1
SampleRate = 48000
[ Note - Quick tip on registry editing ]
Of course, every registry change needs a soft-reset to take effect. And please take the usual proper care when editing the registry or risk damaging your device.
Find that your settings dont "stick" after a reset?
Make sure you reset the phone like this: After making changes to the registry, exit your registry editor. Then push the power button of your phone (putting it into standby, with the screen off). Wait for about 10 seconds (the phone will be saving the data to disk during this time), and only after that push the reset button.
Click to expand...
Click to collapse
I like to quote my sources, but I don't have the links at this moment. I will update them later.
Varied...
My experience across four or five builds has always been mixed. My older Motorolas work fine but my newer S9s dropout periodically. Interestingly, not all builds have the same result when I use them for handsfree. Some builds give me the voice I am speaking to in mono and some in stereo. Currently I am using Nitro's build from a month ago.
I have already exchanged the S9s once, so it wasn't specific to that one headset.
Exitao - Do you have dropouts periodically? What headset do you have?
kkrull said:
My experience across four or five builds has always been mixed. My older Motorolas work fine but my newer S9s dropout periodically. Interestingly, not all builds have the same result when I use them for handsfree. Some builds give me the voice I am speaking to in mono and some in stereo. Currently I am using Nitro's build from a month ago.
I have already exchanged the S9s once, so it wasn't specific to that one headset.
Exitao - Do you have dropouts periodically? What headset do you have?
Click to expand...
Click to collapse
Sorry, I was intending to post my personal details soon.
I am using a Sonorix C3
Standards Bluetooth Specification V2.0
RF Frequency Range 2402 ~ 2480 MHz
Profiles Supported A2DP, AVRCP, Headset, Handsfree V1.5
Transmission Power 0.25 ~ 2.5mW (Bluetooth Power Class 2)
Receiver Sensitivity < -80dBm (PER 1 %)
Distance 10m (in open space)
Click to expand...
Click to collapse
I am using EA's Chinese "WM6 5.2.318.18120" ROM:
http://bbs.koxo.cn/thread-14687-1-1.html
Currently my headset (well, the remote dongle, really) supports stereo playback, call display and bt handsfree usage.
Reception seems very clear. Mic pickup is sensitive and noise cancellation seems to be just as sensitive (I was holding the mic in my hand and gesturing madly one day, and realised what I was doing).
My only complain is the volume. I need to muck about in the audiogain settings to increase it.
As for what bt stack I'm using, I have no clue.
If I dump the zip file from this link, http://forum.xda-developers.com/showthread.php?t=263735&highlight=a2dp the bta2dp.dll was last modified on april, 2006. When I look in the windows directory of my phone, it only tells me I flashed it. I guess I have to dump the ROM to find out.
There is also the problem that the WiMP in my ROM can't handle VBR files. I'll be updating to vjgrace's 3.5 ROM shortly.
edit:
No dropouts. Mostly it is a fight to manage system resources on the phone.
any ppl know how yo make when the phone ringtone can ring in bluetooth.
mean we can listen the ring tone from bluetooth.

Bluetooth headset doesn't get call audio

Hi guys
I have an issue with my new bluetooth headset. I bought this Arctic P253BT headset to use on my Huawei Y300 (rooted with FusionX rom). It works properly on media stream. But when i start a call, despite i set bluetooth as output the audio comes out on phone speakers. Also headset integrated microphone doesn't work.
I tried the headset on iphone and it works properly. Then i tried on a Samsung Galaxy ace and it doesn't work at all.. all audio is on phone speakers. However... i didn't post this in the accessories forum because i think this is a software problem. I think that I need to change some settings to redirect call audio stream on bluetooth... so i need your nerd help
Noob's thanks
Update: I found out that the phone redirect correctly the bluetooth A2DP to headset, but the bluetooth mono stream is redirected on phone speakers... Can someone help?
Re-update:laugh:
This are the two files that i think should be important..
\system\etc\audio_policy.conf
#
# Audio policy configuration for generic device builds (goldfish audio HAL - emulator)
#
# Global configuration section: lists input and output devices always present on the device
# as well as the output device selected by default.
# Devices are designated by a string that corresponds to the enum in audio.h
global_configuration {
attached_output_devices AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_EARPIECE
default_output_device AUDIO_DEVICE_OUT_SPEAKER
attached_input_devices AUDIO_DEVICE_IN_BUILTIN_MIC|AUDIO_DEVICE_IN_VOICE_CALL
}
# audio hardware module section: contains descriptors for all audio hw modules present on the
# device. Each hw module node is named after the corresponding hw module library base name.
# For instance, "primary" corresponds to audio.primary.<device>.so.
# The "primary" module is mandatory and must include at least one output with
# AUDIO_OUTPUT_FLAG_PRIMARY flag.
# Each module descriptor contains one or more output profile descriptors and zero or more
# input profile descriptors. Each profile lists all the parameters supported by a given output
# or input stream category.
# The "channel_masks", "formats", "devices" and "flags" are specified using strings corresponding
# to enums in audio.h and audio_policy.h. They are concatenated by use of "|" without space or "\n".
#/* < DTS2012080708196 duhongyan 20120807 begin */
audio_hw_modules {
primary {
outputs {
primary {
sampling_rates 44100|48000
channel_masks AUDIO_CHANNEL_OUT_STEREO
formats AUDIO_FORMAT_PCM_16_BIT
devices AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_EARPIECE|AUDIO_DEVICE_OUT_WIRED_HEADSET|AUDIO_DEVICE_OUT_WIRED_HEADPHONE|AUDIO_DEVICE_OUT_ALL_SCO|AUDIO_DEVICE_OUT_AUX_DIGITAL|AUDIO_DEVICE_OUT_FM|AUDIO_DEVICE_OUT_FM_TX
flags AUDIO_OUTPUT_FLAG_PRIMARY
}
voipout {
sampling_rates 8000|16000
channel_masks AUDIO_CHANNEL_OUT_MONO
formats AUDIO_FORMAT_PCM_16_BIT|AUDIO_FORMAT_AMR_NB|AUDIO_FORMAT_AMR_WB|AUDIO_FORMAT_QCELP|AUDIO_FORMAT_EVRC|AUDIO_FORMAT_EVRCB|AUDIO_FORMAT_EVRCWB
devices AUDIO_DEVICE_OUT_EARPIECE|AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_WIRED_HEADSET|AUDIO_DEVICE_OUT_WIRED_HEADPHONE
flags AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_VOIP_RX
}
lpa {
sampling_rates 8000|11025|12000|16000|22050|24000|32000|44100|48000
channel_masks AUDIO_CHANNEL_OUT_STEREO|AUDIO_CHANNEL_OUT_MONO
formats AUDIO_FORMAT_PCM_16_BIT
devices AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_EARPIECE|AUDIO_DEVICE_OUT_WIRED_HEADSET|AUDIO_DEVICE_OUT_WIRED_HEADPHONE|AUDIO_DEVICE_OUT_ALL_SCO|AUDIO_DEVICE_OUT_AUX_DIGITAL
flags AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_LPA
}
}
inputs {
primary {
sampling_rates 8000|11025|12000|16000|22050|24000|32000|44100|48000
channel_masks AUDIO_CHANNEL_IN_MONO|AUDIO_CHANNEL_IN_STEREO|AUDIO_CHANNEL_IN_VOICE_CALL_MONO|AUDIO_CHANNEL_IN_VOICE_DNLINK_MONO|AUDIO_CHANNEL_IN_VOICE_UPLINK_MONO
formats AUDIO_FORMAT_PCM_16_BIT|AUDIO_FORMAT_AMR_NB|AUDIO_FORMAT_EVRC|AUDIO_FORMAT_QCELP
devices AUDIO_DEVICE_IN_BUILTIN_MIC|AUDIO_DEVICE_IN_WIRED_HEADSET|AUDIO_DEVICE_IN_BLUETOOTH_SCO_HEADSET|AUDIO_DEVICE_IN_AUX_DIGITAL|AUDIO_DEVICE_IN_VOICE_CALL|AUDIO_DEVICE_IN_FM_RX
}
voipin {
sampling_rates 8000|16000
channel_masks AUDIO_CHANNEL_IN_MONO
formats AUDIO_FORMAT_PCM_16_BIT|AUDIO_FORMAT_AMR_NB|AUDIO_FORMAT_AMR_WB|AUDIO_FORMAT_QCELP|AUDIO_FORMAT_EVRC|AUDIO_FORMAT_EVRCB|AUDIO_FORMAT_EVRCWB
devices AUDIO_DEVICE_IN_COMMUNICATION
}
}
}
a2dp {
outputs {
primary {
sampling_rates 48000
channel_masks AUDIO_CHANNEL_OUT_STEREO
formats AUDIO_FORMAT_PCM_16_BIT
devices AUDIO_DEVICE_OUT_ALL_A2DP
flags AUDIO_OUTPUT_FLAG_PRIMARY
}
}
}
}
#/* DTS2012080708196 duhongyan 20120807 end > */
\system\etc\bluetooth\audio.conf
# Configuration file for the audio service
# This section contains options which are not specific to any
# particular interface
# NOTE: Enable=Sink means that bluetoothd exposes Sink interface for remote
# devices, and the local device is a Source
[General]
Enable=Sink,Control
Disable=Headset,Gateway,Source
# request master role for incoming connections
# so as to reduce the number of piconets and
# allow lot more incoming connections
Master=true
# If we want to disable support for specific services
# Defaults to supporting all implemented services
#Disable=Control,Source
# SCO routing. Either PCM or HCI (in which case audio is routed to/from ALSA)
# Defaults to HCI
#SCORouting=PCM
# Automatically connect both A2DP and HFP/HSP profiles for incoming
# connections. Some headsets that support both profiles will only connect the
# other one automatically so the default setting of true is usually a good
# idea.
#AutoConnect=true
# Headset interface specific options (i.e. options which affect how the audio
# service interacts with remote headset devices)
#[Headset]
# Set to true to support HFP (in addition to HSP only which is the default)
# Defaults to false
#HFP=true
# Maximum number of connected HSP/HFP devices per adapter. Defaults to 1
#MaxConnections=1
# Set to true to enable use of fast connectable mode (faster page scanning)
# for HFP when incomming call starts. Default settings are restored after
# call is answered or rejected. Page scan interval is much shorter and page
# scan type changed to interlaced. Such allows faster connection initiated
# by a headset.
FastConnectable=false
# Just an example of potential config options for the other interfaces
[A2DP]
SBCSources=1
MPEG12Sources=0
[AVRCP]
InputDeviceName=AVRCP
Please someone help
I face the same problem (Y300, FusionX, Philips (mono) Headset).
There is a workaround, which is kind of annoying though : You can pair the bluetooth headset, then make a call. As usual, the call is still using the phone. If you switch to the bluetooth settings during the call and select your headset, it should show a "phone" profile with a checkbox. Disabling the checkbox and re-enabling it will correctly route the current call to your headset.
If anyone knows a real fix, I would be very happy to know and test it

Help! Bluetooth music skips on Bacon in all Lollipop ROMs - no known fix work

I have an issue as described in the title on all Lollipop ROMs on my OnePlus One (Bacon). It is affecting me hugely as I am used to listening to Spotify/Google Music through a Bluetooth interface and it is totally broken. The audio skips/glitches all the time. The problem is always present to some degree (a skip every 10-20 seconds or so), sometimes being so bad that audio is actually totally broken and only glitches are present. The car audio I use is Toyota Touch (1st gen as far as I can tell). Curiously, phone calls and system notifications seem to not be affected. Only music is broken. The problem was absent on CM11S.
Anyway - I have already tried all the suggested workarounds that I could find, both on XDA (like this one: http://forum.xda-developers.com/oneplus-one/help/music-skips-beeps-audio-glitches-t3028166 and http://forum.xda-developers.com/showpost.php?p=58780279&postcount=1691) and elsewhere. I have set CPU setting to "performance" (no change), did all kinds of voodoo with WiFi settings (no change), switched players (NuPlayer vs AwesomePlayer - no change).
I have tried a bunch of ROMs - CM12 nightlies (close to all of them), Oxygen, Exodus. (which I am using right now) - no change. I have switched kernels. I am now on Franco Kernel, but I have used AK and some other variants which I can't even remember. None of this makes a difference in my case. Skips continue
Today I started digging a bit deeper. I ran logcat while listening to music and it turns out that there are entries like this in the log at the moment of every glitch:
Code:
04-09 17:44:02.487 3016 3105 E bt-btif : ## Audio Congestion (iterations:23 > max (10))
04-09 17:44:04.883 3016 3105 E bt-btif : ## Audio Congestion (iterations:30 > max (10))
04-09 17:44:24.736 3016 3105 E bt-btif : ## Audio Congestion (iterations:22 > max (10))
04-09 17:44:29.043 3016 3105 E bt-btif : ## Audio Congestion (iterations:53 > max (10))
04-09 17:44:30.547 3016 3105 E bt-btif : ## Audio Congestion (iterations:54 > max (10))
04-09 17:44:32.161 3016 3105 E bt-btif : ## Audio Congestion (iterations:52 > max (10))
04-09 17:45:14.066 3016 3105 E bt-btif : ## Audio Congestion (iterations:47 > max (10))
04-09 17:45:15.166 3016 3105 E bt-btif : ## Audio Congestion (iterations:21 > max (10))
Being a software engineer myself (but not an Android programmer), I have analyzed a bunch of CM12 patches found on XDA related to the above logs. The discussion seems to center around changing the "max" to some larger value. As you can see, the value I have is 10, but it is beeing exceeded by a lot - in some cases it goes above 50! I guess I could try changing the max so high and see what happens (after learning how to build CM12 ), but maybe some experts already know what needs to be done to fix this in my case.
I can offer myself as a test animal - if you want to test your experiments with BT fixes on me, I am more than willing to give them a try. I am really really desperate about this
Have you tried blisspop + linaro unofficial boeffla kernel? this works for me without bt stuttering. I had the bt stuttering problem with the uber version of the unofficial boeffla kernel.
bill1clinton said:
Have you tried blisspop + linaro unofficial boeffla kernel? this works for me without bt stuttering. I had the bt stuttering problem with the uber version of the unofficial boeffla kernel.
Click to expand...
Click to collapse
I'm going to give this kernel a try to see if it resolves the Bluetooth issues while streaming music. Will report back my findings tomorrow.
bill1clinton said:
Have you tried blisspop + linaro unofficial boeffla kernel? this works for me without bt stuttering. I had the bt stuttering problem with the uber version of the unofficial boeffla kernel.
Click to expand...
Click to collapse
What does this combination of ROM+kernel fix? Do they somehow explicitly addressed the issue?
Anyway, where do I get this kernel?
kalamon said:
What does this combination of ROM+kernel fix? Do they somehow explicitly addressed the issue?
Anyway, where do I get this kernel?
Click to expand...
Click to collapse
It does not specifically states that it fixes the bt stuttering problem. I only stated that when I use the blisspop+uber combination, I had the stuttering problem but once I switched to the blisspop+linaro combination, the problem was no longer present.
http://forum.xda-developers.com/one...ernel-boeffla-kernel-linaro-sabermod-t2910357
In having this same issue, but with headsets, not Bluetooth specifically.
I changed from Awesome Player to NuPlayer in developer options and now my music plays smoothly, no matter what I'm doing simultaneously.
That Wolf Dude

Get better sound quality from Joying MK3188 (not exemplary, just better)

So I have an FJ cruiser and I was a little disappointed to hear the bad sound coming from my JY-UL124 when cruising. (see what I did there)
Then I found it. ** Nope. But I found it now. It's bluetooth. The bluetooth sound is completely and totally ****. I mean aggressively, actively, completely crap. The highs are garbled and fuzzy while lows and mids sound strongly flat and muffled without heavy use of the equalizer. I ran the same songs through plex (even streamed over the web) and they sounded about 100x better.
It's bluetooth, it was always bluetooth. I downloaded AirPlay/DLNA Receiver as a work around and the quality is MUCH better.
Maximum power (front & rear): 45W × 4
Full Bandwidth Power (Front & Rear): (THD1% or less) 18W × 4
Preoutput level number (v): 2V/10kΩ
Pre-output impedance: ≤ 600Ω
Click to expand...
Click to collapse
1. Can anyone confirm that the RCA outputs on the back labeled FR RR FL RL are in face, low line outputs? The manual has them going to TVs.
2. Can anyone confirm my thinking here? Does this seem reasonable or am I missing something? ** I was
Attrezzo Pox said:
1. Can anyone confirm that the RCA outputs on the back labeled FR RR FL RL are in face, low line outputs? The manual has them going to TVs.
Click to expand...
Click to collapse
I have the same unit, and so yes, I can confirm the RCA's are low level outputs. I do not use the speaker outputs from the headunit, only the RCA's. There is also one "Sub" RCA low level output, meant for a subwoofer amp. I don't even use the "Sub" output though, only the FR, RR, FL, RL outputs.
There is a reason to consider using the speaker output instead of the RCA is the frequency response.
The levels of the speaker output (relative to the level at 1 kHz):
100 Hz: -0.1 dB
50 Hz: -0.6 dB
40 Hz: -0.8 dB
30 Hz: -1.2 dB
20 Hz: -4.7 dB
The levels of the RCA output (relative to the level at 1 kHz):
100 Hz: -1.1 dB
50 Hz: -3.2 dB
40 Hz: -4.4 dB
30 Hz: -5.8 dB
20 Hz: -11.0 dB
The levels of the two outputs differ from each other not more than 0.5 dB above 150 Hz. The -3 dB point is reached at 18700 Hz.
The measured device is Joying 2818H-5.1 J0422
Attrezzo Pox said:
It's bluetooth, it was always bluetooth. I downloaded AirPlay/DLNA Receiver as a work around and the quality is MUCH better.
Click to expand...
Click to collapse
Yeah, that is certainly a possibility.
The thing with bluetooth audio, is that it is compressed. The source (your phone) and the target (head unit) have to negotiate a compression routine that they both support. If the only protocols they have in common are terrible, then you can lose a lot of quality in the transfer.
What phone do you have?

Microphone problem in PHOENIX OS

Cant play PUBGM like that, This mic is very noisy(Works GREAT on Windows AND IM SURE ITS A SOFTWARE PROBLEM) Has anyone got a solution for this? Thanks in advance
Same here bro ???
ibrasy said:
Cant play PUBGM like that, This mic is very noisy(Works GREAT on Windows AND IM SURE ITS A SOFTWARE PROBLEM) Has anyone got a solution for this? Thanks in advance
Click to expand...
Click to collapse
I'm also having the same problem, the solution is to reduce the microphone gain/volume, but how do i do that, there is no mixer path xml file which i can edit, there's only alsa mixer file but I'm unable to edit it. I hope someone will have some answers soon.
Use Alsamixer (root)
Set internal mic boot value to 0 or 1
guddu612 said:
Use Alsamixer (root)
Set internal mic boot value to 0 or 1
Click to expand...
Click to collapse
are u sure?
guddu612 said:
Use Alsamixer (root)
Set internal mic boot value to 0 or 1
Click to expand...
Click to collapse
i downloaded alsa mixer but there is no such option
bro i found a genuine solution
ibrasy said:
Cant play PUBGM like that, This mic is very noisy(Works GREAT on Windows AND IM SURE ITS A SOFTWARE PROBLEM) Has anyone got a solution for this? Thanks in advance
Click to expand...
Click to collapse
follow this link https://youtu.be/KwW75C8P0-M
noisy mic , and external mic not working.
Hi All,
can any one please help me fixing the mic problem . here i have attached the init.sh file code. the problem is internal mic is very noisy and when i connect external mic it is not working. can any one please edit this init.sh code as reply . thanks in advance.
#
# Copyright (C) 2013-2015 The Android-x86 Open Source Project
# Copyright (C) 2018 Woltrex AOSP Developer AndroTechTeam Co.
# License: GNU Public License v2 or later
#
function set_property()
{
setprop "$1" "$2"
[ -n "$DEBUG" ] && echo "$1"="$2" >> /dev/x86.prop
}
function set_prop_if_empty()
{
[ -z "$(getprop $1)" ] && set_property "$1" "$2"
}
function init_misc()
{
# device information
setprop ro.product.manufacturer "$(cat $DMIPATH/sys_vendor)"
setprop ro.product.model "$PRODUCT"
# a hack for USB modem
lsusb | grep 1a8d:1000 && eject
# in case no cpu governor driver autoloads
[ -d /sys/devices/system/cpu/cpu0/cpufreq ] || modprobe acpi-cpufreq
}
function init_hal_audio()
{
case "$PRODUCT" in
VirtualBox*|Bochs*)
[ -d /proc/asound/card0 ] || modprobe snd-sb16 isapnp=0 irq=5
;;
*)
;;
esac
if grep -qi "IntelHDMI" /proc/asound/card0/id; then
[ -d /proc/asound/card1 ] || set_property ro.hardware.audio.primary hdmi
fi
}
function init_hal_wifi()
{
# BCM WiFi driver conflict start.
# Broadcom BCM4311 (PCI IDs 14e4:4311, 14e4:4312)
# Broadcom BCM4312 (PCI ID 14e4:4315)
# Broadcom BCM4313 (PCI ID 14e4:4727)
# Broadcom BCM4321 (PCI IDs 14e4:4328, 14e4:4329, 14e4:432a)
# Broadcom BCM4322 (PCI IDs 14e4:432b, 14e4:432c, 14e4:432d)
# Broadcom BCM43224 (PCI IDs 14e4:0576, 14e4:4353)
# Broadcom BCM43225 (PCI ID 14e4:4357)
# Broadcom BCM43227 (PCI ID 14e4:4358)
# Broadcom BCM43228 (PCI ID 14e4:4359)
# Broadcom BCM43142 (PCI ID 14e4:4365)
# Broadcom BCM4331 (PCI ID 14e4:4331)
# Broadcom BCM4352 (PCI ID 14e4:43b1)
# Broadcom BCM4360 (PCI IDs 14e4:43a0, 14e4:4360)
BCMAID=`lspci | grep "14e4" | awk '{print $4}'`
case "${BCMAID##*:}" in
4311 | 4312 | \
4315 | \
4727 | \
4328 | 4329 | 432a | \
432b | 432c | 432d | \
0576 | 4353 | \
4357 | 4358 | 4359 | \
4365 | \
4331 | \
43b1 | \
43a0 | 4360 )
rmmod b43
rmmod b44
rmmod b43legacy
rmmod ssb
rmmod bcma
rmmod brcm80211
rmmod wl
modprobe wl
;;
*)
;;
esac
# BCM WiFi driver conflict end.
# BCM SDIO WiFi driver config file start.
BCMSDIO=`dmesg | grep brcmfmac | grep txt`
if [ "$BCMSDIO" != "" ]; then
BCMNAME=`echo $BCMSDIO | awk '{print $9}'`
mount -t efivarfs none /sys/firmware/efi/efivars
cp /sys/firmware/efi/efivars/nvram-74b00bd9-805a-4d61-b51f-43268123d113 /lib/firmware/$BCMNAME
set_property phoenixos.brcmfmac 1
fi
# BCM SDIO WiFi driver config file end.
}
function init_hal_bluetooth()
{
for r in /sys/class/rfkill/*; do
type=$(cat $r/type)
[ "$type" = "wlan" -o "$type" = "bluetooth" ] && echo 1 > $r/state
done
case "$PRODUCT" in
T10*TA|M80TA|HP*Omni*)
BTUART_PORT=/dev/ttyS1
set_property hal.bluetooth.uart.proto bcm
;;
MacBookPro8*)
rmmod b43
modprobe b43 btcoex=0
modprobe btusb
;;
# FIXME
# Fix MacBook 2013-2015 (Air6/7&Pro11/12) BCM4360 ssb&wl conflict.
MacBookPro11* | MacBookPro12* | MacBookAir6* | MacBookAir7*)
rmmod b43
rmmod ssb
rmmod bcma
rmmod wl
modprobe wl
modprobe btusb
;;
*)
for bt in $(busybox lsusb -v | awk ' /Class:.E0/ { print $9 } '); do
chown 1002.1002 $bt && chmod 660 $bt
done
;;
esac
if [ -n "$BTUART_PORT" ]; then
set_property hal.bluetooth.uart $BTUART_PORT
chown bluetooth.bluetooth $BTUART_PORT
start btattach
fi
# rtl8723bs bluetooth
if dmesg -t | grep -qE '8723bs.*BT'; then
TTYSTRING=`dmesg -t | grep -E 'tty.*MMIO' | awk '{print $2}' | head -1`
if [ -n "$TTYSTRING" ]; then
echo "RTL8723BS BT uses $TTYSTRING for Bluetooth."
ln -sf $TTYSTRING /dev/rtk_h5
start rtk_hciattach
fi
fi
}
function init_hal_camera()
{
return
}
function init_hal_gps()
{
# TODO
return
}
function set_drm_mode()
{
case "$PRODUCT" in
ET1602*)
drm_mode=1366x768
;;
VMware*)
[ -n "$video" ] && drm_mode=$video
;;
*)
;;
esac
[ -n "$drm_mode" ] && set_property debug.drm.mode.force $drm_mode
}
function init_uvesafb()
{
case "$PRODUCT" in
ET2002*)
UVESA_MODE=${UVESA_MODE:-1600x900}
;;
*)
;;
esac
modprobe uvesafb mode_option=${UVESA_MODE:-1024x768}-32 ${UVESA_OPTION:-mtrr=3 scroll=redraw}
}
function init_hal_gralloc()
{
case "$(cat /proc/fb | head -1)" in
*virtiodrmfb)
if [ "$HWACCEL" != "0" ]; then
set_property ro.hardware.hwcomposer drm
set_property ro.hardware.gralloc gbm
fi
set_prop_if_empty sleep.state none
;;
0*inteldrmfb|0*radeondrmfb|0*nouveaufb|0*svgadrmfb|0*amdgpudrmfb)
if [ "$HWACCEL" != "0" ]; then
set_property ro.hardware.gralloc drm
set_drm_mode
fi
;;
"")
init_uvesafb
;&
0*)
;;
esac
[ -n "$DEBUG" ] && set_property debug.egl.trace error
}
function init_hal_hwcomposer()
{
# TODO
return
}
function init_hal_lights()
{
chown 1000.1000 /sys/class/backlight/*/brightness
}
function init_hal_power()
{
for p in /sys/class/rtc/*; do
echo disabled > $p/device/power/wakeup
done
# TODO
case "$PRODUCT" in
HP*Omni*|OEMB|Surface*3|T10*TA)
set_prop_if_empty sleep.state none
;;
*)
;;
esac
}
function init_hal_sensors()
{
# if we have sensor module for our hardware, use it
ro_hardware=$(getprop ro.hardware)
[ -f /system/lib/hw/sensors.${ro_hardware}.so ] && return 0
local hal_sensors=kbd
local has_sensors=true
case "$(cat $DMIPATH/uevent)" in
*Lucid-MWE*)
set_property ro.ignore_atkbd 1
hal_sensors=hdaps
;;
*ICONIA*W5*)
hal_sensors=w500
;;
*S10-3t*)
hal_sensors=s103t
;;
*Inagua*)
#setkeycodes 0x62 29
#setkeycodes 0x74 56
set_property ro.ignore_atkbd 1
set_property hal.sensors.kbd.type 2
;;
*TEGA*|*2010:svnIntel:*)
set_property ro.ignore_atkbd 1
set_property hal.sensors.kbd.type 1
io_switch 0x0 0x1
setkeycodes 0x6d 125
;;
*DLI*)
set_property ro.ignore_atkbd 1
set_property hal.sensors.kbd.type 1
setkeycodes 0x64 1
setkeycodes 0x65 172
setkeycodes 0x66 120
setkeycodes 0x67 116
setkeycodes 0x68 114
setkeycodes 0x69 115
setkeycodes 0x6c 114
setkeycodes 0x6d 115
;;
*tx2*)
setkeycodes 0xb1 138
setkeycodes 0x8a 152
set_property hal.sensors.kbd.type 6
set_property poweroff.doubleclick 0
set_property qemu.hw.mainkeys 1
;;
*MS-N0E1*)
set_property ro.ignore_atkbd 1
set_property poweroff.doubleclick 0
setkeycodes 0xa5 125
setkeycodes 0xa7 1
setkeycodes 0xe3 142
;;
*Aspire1*25*)
modprobe lis3lv02d_i2c
echo -n "enabled" > /sys/class/thermal/thermal_zone0/mode
;;
*ThinkPad*Tablet*)
modprobe hdaps
hal_sensors=hdaps
;;
*i7Stylus*|*S10T*)
set_property hal.sensors.iio.accel.matrix 1,0,0,0,-1,0,0,0,-1
[ -z "$(getprop sleep.state)" ] && set_property sleep.state none
;;
*ST70416-6*)
set_property hal.sensors.iio.accel.matrix 0,-1,0,-1,0,0,0,0,-1
;;
*ONDATablet*)
set_property hal.sensors.iio.accel.matrix 0,1,0,1,0,0,0,0,-1
;;
*)
has_sensors=false
;;
esac
# has iio sensor-hub?
if [ -n "`ls /sys/bus/iio/devices/iio:device* 2> /dev/null`" ]; then
busybox chown -R 1000.1000 /sys/bus/iio/devices/iio:device*/
lsmod | grep -q hid_sensor_accel_3d && hal_sensors=hsb || hal_sensors=iio
elif lsmod | grep -q lis3lv02d_i2c; then
hal_sensors=hdaps
fi
# TODO close Surface Pro 4 sensor until bugfix
case "$(cat $DMIPATH/uevent)" in
*SurfacePro4*)
hal_sensors=kbd
;;
*)
;;
esac
set_property ro.hardware.sensors $hal_sensors
[ "$hal_sensors" != "kbd" ] && has_sensors=true
set_property config.override_forced_orient $has_sensors
}
function create_pointercal()
{
if [ ! -e /data/misc/tscal/pointercal ]; then
mkdir -p /data/misc/tscal
touch /data/misc/tscal/pointercal
chown 1000.1000 /data/misc/tscal /data/misc/tscal/*
chmod 775 /data/misc/tscal
chmod 664 /data/misc/tscal/pointercal
fi
}
function init_tscal()
{
case "$PRODUCT" in
ST70416-6*)
modprobe gslx680_ts_acpi
;&
T91|T101|ET2002|74499FU|945GSE-ITE8712|CF-19[CDYFGKLP]*)
create_pointercal
return
;;
*)
;;
esac
for usbts in $(lsusb | awk '{ print $6 }'); do
case "$usbts" in
0596:0001|0eef:0001)
create_pointercal
return
;;
*)
;;
esac
done
}
function init_ril()
{
case "$(cat $DMIPATH/uevent)" in
*TEGA*|*2010:svnIntel:*|*Lucid-MWE*)
set_property rild.libpath /system/lib/libhuaweigeneric-ril.so
set_property rild.libargs "-d /dev/ttyUSB2 -v /dev/ttyUSB1"
set_property ro.radio.noril no
;;
*)
set_property ro.radio.noril yes
;;
esac
}
function init_cpu_governor()
{
governor=$(getprop cpu.governor)
[ $governor ] && {
for cpu in $(ls -d /sys/devices/system/cpu/cpu?); do
echo $governor > $cpu/cpufreq/scaling_governor || return 1
done
}
}
function phoenixos_compat()
{
PHOENIX_LOG=/data/system/phoenixos.log
PHOENIX_LOG1=/data/system/phoenixos1.log
PHOENIX_TEMP=/data/system/tmp
PHOENIX_DISK=`cat /data/system/phoenixlog.addr`
PHOENIX_COMPAT_BIN=/system/xbin/phoenix_compat
if [ -f /data/system/phoenixlog.dir ]; then
PHOENIX_DIR=`cat /data/system/phoenixlog.dir`
else
PHOENIX_DIR=PhoenixOS-ROC
fi
if [ $1 = "cmdline" ]; then
sed -i '5s/^.*$/boot: cmdline/' $PHOENIX_LOG
else
if [ $1 = "android" ]; then
sed -i '5s/^.*$/boot: android/' $PHOENIX_LOG
else
sed -i '5s/^.*$/boot: phoenixos/' $PHOENIX_LOG
fi
$PHOENIX_COMPAT_BIN $1
cp -f $PHOENIX_LOG1 $PHOENIX_LOG
fi
mount $PHOENIX_DISK $PHOENIX_TEMP
cp -f $PHOENIX_LOG $PHOENIX_TEMP/$PHOENIX_DIR
umount $PHOENIX_TEMP
}
function do_init()
{
phoenixos_compat cmdline
init_misc
init_hal_audio
init_hal_wifi
init_hal_bluetooth
init_hal_camera
init_hal_gps
init_hal_gralloc
init_hal_hwcomposer
init_hal_lights
init_hal_power
init_hal_sensors
init_tscal
init_ril
post_init
}
function do_netconsole()
{
modprobe netconsole netconsole="@/,@$(getprop dhcp.eth0.gateway)/"
}
function do_bootanim()
{
phoenixos_compat android
[ -n "$(getprop phoenixos.brcmfmac)" ] && rmmod brcmfmac && modprobe brcmfmac
}
function do_bootcomplete()
{
phoenixos_compat phoenixos
init_cpu_governor
[ -z "$(getprop persist.sys.root_access)" ] && setprop persist.sys.root_access 3
lsmod | grep -Ehq "brcmfmac|rtl8723be" && setprop wlan.no-unload-driver 1
case "$PRODUCT" in
1866???|1867???|1869???) # ThinkPad X41 Tablet
start tablet-mode
start wacom-input
setkeycodes 0x6d 115
setkeycodes 0x6e 114
setkeycodes 0x69 28
setkeycodes 0x6b 158
setkeycodes 0x68 172
setkeycodes 0x6c 127
setkeycodes 0x67 217
;;
6363???|6364???|6366???) # ThinkPad X60 Tablet
;&
7762???|7763???|7767???) # ThinkPad X61 Tablet
start tablet-mode
start wacom-input
setkeycodes 0x6d 115
setkeycodes 0x6e 114
setkeycodes 0x69 28
setkeycodes 0x6b 158
setkeycodes 0x68 172
setkeycodes 0x6c 127
setkeycodes 0x67 217
;;
7448???|7449???|7450???|7453???) # ThinkPad X200 Tablet
start tablet-mode
start wacom-input
setkeycodes 0xe012 158
setkeycodes 0x66 172
setkeycodes 0x6b 127
;;
*)
;;
esac
# [ -d /proc/asound/card0 ] || modprobe snd-dummy
for c in $(grep '\[.*\]' /proc/asound/cards | awk '{print $1}'); do
f=/system/etc/alsa/$(cat /proc/asound/card$c/id).state
if [ -e $f ]; then
alsa_ctl -f $f restore $c
else
alsa_ctl init $c
alsa_amixer -c $c set Master on
alsa_amixer -c $c set Master 100%
alsa_amixer -c $c set Headphone on
alsa_amixer -c $c set Headphone 100%
alsa_amixer -c $c set Speaker 100%
alsa_amixer -c $c set Capture 100%
alsa_amixer -c $c set Capture cap
alsa_amixer -c $c set PCM 100 unmute
alsa_amixer -c $c set SPO unmute
alsa_amixer -c $c set 'Mic Boost' 0
alsa_amixer -c $c set 'Internal Mic Boost' 0
alsa_amixer -c $c set Line on
alsa_amixer -c $c set Line 100%
alsa_amixer -c $c set 'Line Boost' 0
alsa_amixer -c $c set 'Front Mic' on
alsa_amixer -c $c set 'Front Mic' 100
alsa_amixer -c $c set 'Front Mic Boost' 0
alsa_amixer -c $c set 'Rear Mic' on
alsa_amixer -c $c set 'Rear Mic' 100%
alsa_amixer -c $c set 'Rear Mic Boost' 0
alsa_amixer -c $c set 'Input Source',0 'Rear Mic'
alsa_amixer -c $c set 'Internal Mic Boost' 0
alsa_amixer -c $c set 'Inverted Internal Mic' on
alsa_amixer -c $c set 'Inverted Internal Mic' 100%
alsa_amixer -c $c cset name='Mic Capture Switch' on
alsa_amixer -c $c cset name='Internal Mic Capture Switch' on
alsa_amixer -c $c cset name='Inverted Internal Mic Capture Switch' on
alsa_amixer -c set 'Internal Mic Boost' 0
alsa_amixer -c set 'Inverted Internal Mic' on
alsa_amixer -c set 'Inverted Internal Mic' 100%
alsa_amixer -c cset name='Mic Capture Switch' on
alsa_amixer -c cset name='Internal Mic Capture Switch' on
alsa_amixer -c cset name='Inverted Internal Mic Capture Switch' on
alsa_amixer -c0 $c set Mic on
alsa_amixer -c0 $c set Mic 100%
alsa_amixer -c0 $c set Capture 20
alsa_amixer -c0 $c set Capture cap
alsa_amixer -c0 $c set 'Front Mic' on
alsa_amixer -c0 $c set 'Front Mic' 100
alsa_amixer -c0 $c set 'Front Mic Boost' 0
alsa_amixer -c0 $c set 'Rear Mic' on
alsa_amixer -c0 $c set 'Rear Mic' 100%
alsa_amixer -c0 $c set 'Rear Mic Boost' 0
alsa_amixer -c0 $c set Line on
alsa_amixer -c0 $c set Line 100%
alsa_amixer -c0 $c set 'Line Boost' 0
alsa_amixer -c0 $c set 'Input Source',0 'Rear Mic'
alsa_amixer -c0 $c set 'Internal Mic Boost' 0
alsa_amixer -c0 $c set 'Inverted Internal Mic' on
alsa_amixer -c0 $c set 'Inverted Internal Mic' 100%
alsa_amixer -c0 $c cset name='Mic Capture Switch' on
alsa_amixer -c0 $c cset name='Internal Mic Capture Switch' on
alsa_amixer -c0 $c cset name='Inverted Internal Mic Capture Switch' on
alsa_amixer -c0 set*'Mic'*on
alsa_amixer -c0 set*'Mic'*100%
alsa_amixer -c0 cset*name='Mic Capture Switch'*on
alsa_amixer -c0 set*'Mic Boost'*1
alsa_amixer -c0 set*'Internal Mic'*on
alsa_amixer -c0 set*'Internal Mic'*100%
alsa_amixer -c0 cset*name='Internal Mic Capture Switch'*on
alsa_amixer -c0 set*'Internal Mic Boost'*1
alsa_amixer -c0 set*'Inverted Internal Mic'*on
alsa_amixer -c0 set*'Inverted Internal Mic'*100%
alsa_amixer -c0 cset*name='Inverted Internal Mic Capture Switch'*on
alsa_amixer -c1 $c set Mic on
alsa_amixer -c1 $c set Mic 100%
alsa_amixer -c1 $c set 'Mic Boost' 1
alsa_amixer -c1 $c set 'Internal Mic' on
alsa_amixer -c1 $c set 'Internal Mic' 100%
alsa_amixer -c1 $c set Capture 20
alsa_amixer -c1 $c set Capture cap
alsa_amixer -c1 $c set 'Front Mic' on
alsa_amixer -c1 $c set 'Front Mic' 100
alsa_amixer -c1 $c set 'Front Mic Boost' 0
alsa_amixer -c1 $c set 'Rear Mic' on
alsa_amixer -c1 $c set 'Rear Mic' 100%
alsa_amixer -c1 $c set 'Rear Mic Boost' 0
alsa_amixer -c1 $c set Line on
alsa_amixer -c1 $c set Line 100%
alsa_amixer -c1 $c set 'Line Boost' 0
alsa_amixer -c1 $c set 'Input Source',0 'Rear Mic'
alsa_amixer -c1 $c set 'Internal Mic Boost' 0
alsa_amixer -c1 $c set 'Inverted Internal Mic' on
alsa_amixer -c1 $c set 'Inverted Internal Mic' 100%
alsa_amixer -c1 $c cset name='Mic Capture Switch' on
alsa_amixer -c1 $c cset name='Internal Mic Capture Switch' on
alsa_amixer -c1 $c cset name='Inverted Internal Mic Capture Switch' on
alsa_amixer -c1 set*'Mic'*on
alsa_amixer -c1 set*'Mic'*100%
alsa_amixer -c1 cset*name='Mic Capture Switch'*on
alsa_amixer -c1 set*'Mic Boost'*1
alsa_amixer -c1 set*'Internal Mic'*on
alsa_amixer -c1 set*'Internal Mic'*100%
alsa_amixer -c1 cset*name='Internal Mic Capture Switch'*on
alsa_amixer -c1 set*'Internal Mic Boost'*1
alsa_amixer -c1 set*'Inverted Internal Mic'*on
alsa_amixer -c1 set*'Inverted Internal Mic'*100%
alsa_amixer -c1 cset*name='Inverted Internal Mic Capture Switch'*on
fi
done
post_bootcomplete
}
PATH=/sbin:/system/bin:/system/xbin
DMIPATH=/sys/class/dmi/id
BOARD=$(cat $DMIPATH/board_name)
PRODUCT=$(cat $DMIPATH/product_name)
# import cmdline variables
for c in `cat /proc/cmdline`; do
case $c in
BOOT_IMAGE=*|iso-scan/*|*.*=*)
;;
*=*)
eval $c
if [ -z "$1" ]; then
case $c in
DEBUG=*)
[ -n "$DEBUG" ] && set_property debug.logcat 1
;;
esac
fi
;;
esac
done
[ -n "$DEBUG" ] && set -x || exec &> /dev/null
# import the vendor specific script
hw_sh=/vendor/etc/init.sh
[ -e $hw_sh ] && source $hw_sh
case "$1" in
netconsole)
[ -n "$DEBUG" ] && do_netconsole
phoenixos_compat
;;
bootcomplete)
do_bootcomplete
;;
bootanim)
do_bootanim
;;
init|"")
do_init
;;
esac
return 0
Mic is not working
Hi all
I have installed phoenix os in my old dell laptop and it has two separate ports, one for mic and another for audio jack .mic is not working in my laptop and i checked mic in windows it working fine,so it is a software problem. So any one pls help me to solve this problem..:crying:
use 3.5mm jack headphones and game works just fine.
usb mic
hlo my usb mic is windows in corretly working nd phoneoix os in not working nd i have already mic bost 0,1,2,3 set in file explorer itch. file in but not working usb mic...pls solve this my problme

Categories

Resources