Headphones Fix (Technical Question) - XPERIA X8 Q&A, Help & Troubleshooting

I dropped my X8 a couple of months ago and ever since it is having trouble detecting the headphones. It will detect them if i insert them in a very specific way (applying pressure to the pins in a specific way) but it is not reliable and takes some time to do. Also it may or may not work with different headphones due to subtle variations to their plugs.
Now I have found that Soundabout and Toggle Headset 2 work to force sound to the headphones but i am convinced there is another solution.
When using aLogcat i found that when the headphones are plugged in correctly and recognized the log will show:
Code:
...
I/hal_seport( 1910): Read RID val = 255
I/hal_seport( 1910): Read CCO val = 0
I/SystemConnector( 1910): Received connection event from device driver: rid: 50, cco_type: 0, plug_status: 1
I/SystemConnector( 1910): Broadcasting sticky intent: com.sonyericsson.systemconnector.ACTION_ACCESSORY_ PLUG, state: 1, name: "Headphone", fm_antenna: 1, power: 0, audio_output: 1, power: 0
I/SystemConnector( 1910): Broadcasting sticky intent: android.intent.action.HEADSET_PLUG, state: 1, name: "Headphone", microphone: 0
I/SystemConnector( 1910): Routing audio in AudioManager. AccessoryName = "headphone".
whereas when it is not recognized:
Code:
...
I/hal_seport( 1910): Read RID val = 255
I/hal_seport( 1910): Read CCO val = 173
I/SystemConnector( 1910): Received connection event from device driver: rid: 50, cco_type: 50, plug_status: 1
W/SystemConnector( 1910): Unknown accessory attached. Rid: 50, cco_type: 50. Audio not rooted to accessory and buttons do not work
This leads me to believe that the phone sees the headphones but for some reason will not recognize it as such, and gives it a different CCO.
What I want to do is change it so that it recognizes it as a headphone with that value, and I want to know where I can set this.
I have found mention of the CCO value in "system/lib/hw/hal_seport.shakira.so\" and interestingly this is in there as well
Code:
hal_seport_get_cco_min_vals[
hal_seport_get_cco_min_vals/CODE]
I do hope you guys are able to help me with this!

It's a hardware failure - you are lucky it works at all IMO..
If it works reliably with a 3rd party app then leave it and be thankful. That's much easier than recompiling..

Related

wm5 WHAT IS THE SOLUTION FOR BT ALWAYS TURN ON?

i cant find the real solution for always turn on bluetooth on my spv m2000 whith wm5
please help
You can Try These
Microsoft Bluetooth Stack Status after Softreset
[HKEY_CURRENT_USER\Software\Microsoft\Bluetooth\Settings]
"ScanMode" -> set 7 if Discoverable, 5 Turn on only, 0 if OFF
Broadcom/Widcomm Bluetooth Stack Status after Softreset
[HKEY_LOCAL_MACHINE\SOFTWARE\WIDCOMM\BtConfig\General]
"StackMode" -> 0 means Bluetooth OFF, 1 Means Bluetooth ON
Broadcom/Widcomm Discoverable and Connectable
[HKEY_LOCAL_MACHINE\SOFTWARE\WIDCOMM\BtConfig\Filters]
"WhoAllowedToConnect"-> if 0 No one allow to connect, 1 if All Devices allow to connectble, 2 if Paired Devices Only
"AllowOthersToDiscover"-> 0 if Bluetooth Undiscoverable, 1 if Discoverable
Broadcom/Widcomm Device Identification
[HKEY_LOCAL_MACHINE\SOFTWARE\WIDCOMM\BtConfig\General]
"UsePocketPCName" -> 1 if you want to uset the Pocket PC Device ID Name, 0 if you want to set on your own Device ID
"DeviceName"-> Preffered BroadCom/Widcomm Device ID
Broadcom/Widcomm Setting maximum Simultaneous Connection
[HKEY_LOCAL_MACHINE\SOFTWARE\WIDCOMM\BtConfig\General]
"MaxSimultConnections"
Bluetooth setting in WM2005
Hi pzenou,
I believe in WM2005, there isn't any Widcomm BT drivers. So far, bt disconnecting problems had not been fully resolved. However, u can check out http://www.buzzdev.net, as there is a thread on this issue. Buzz_lightyears is trying to help out on this area.
Hopefully, this problem can be resolved soon. Cheers ^^

problem with KiNgxKxlicK AOSP 2.1 v1.7 + 8gb sd class6

Hi,
Today my new 8gb class6 (nokia) card arrived. So i changed the old one (2gb)
I partioned the card via AmonRa 1.5.2 recovery, do a system wipe and flash the rom new.
After i install all my apps and do the conig i put my G1 away.
Now I want to write a mail, but my device did not respond on any key pressing or something else. Only
adb shell reboot
Click to expand...
Click to collapse
helps. System rebbots normally. So i wrote my mail do some other stuff und put it back on the table.
Again no response... so i decide to make logcat:
D/dalvikvm( 2731): GC freed 4060 objects / 192976 bytes in 226ms
D/WindowManager( 2731): I'm tired mEndcallBehavior=0x2
I/power ( 2731): *** set_screen_state 0
D/Sensors ( 2731): sensors=00000000, real=00000000
D/WifiService( 2731): ACTION_SCREEN_OFF
D/WifiService( 2731): setting ACTION_DEVICE_IDLE timer for 900000ms
D/AKMD ( 2720): Compass CLOSE
D/SurfaceFlinger( 2731): About to give-up screen, flinger = 0x131e30
D/ViewFlipper( 2839): updateRunning() mVisible=true, mStarted=true, mUserPresent=false, mRunning=false
D/dalvikvm( 2731): GC freed 1958 objects / 82640 bytes in 217ms
I/HTCIMEService( 2818): onReceive - android.intent.action.CLOSE_SYSTEM_DIALOGS
I/ActivityManager( 2731): Start proc com.android.settings for broadcast com.android.settings/.widget.SettingsAppWidgetProvider: pid=3561 uid=1000 gids={3003, 3002, 3001}
W/InputManagerService( 2731): Starting input on non-focused client [email protected] (uid=1000 pid=2731)
D/WifiService( 2731): acquireWifiLockLocked: WifiLock{NetworkLocationProvider type=2 [email protected]}
D/NetworkLocationProvider( 2731): getLocation(): triggering a wifi scan
D/NetworkLocationProvider( 2731): onCellLocationChanged [11704,50650]
D/NetworkLocationProvider( 2731): updateWifIScanResults(): 3 APs
D/LocationMasfClient( 2731): getNetworkLocation(): Location not found in cache, making network request
D/Zygote ( 2715): Process 2731 terminated by signal (11)
I/Zygote ( 2715): Exit zygote because system server (2731) has terminated
D/AndroidRuntime( 3569):
D/AndroidRuntime( 3569): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
D/AndroidRuntime( 3569): CheckJNI is ON
I/ ( 3568): ServiceManager: 0xad08
I/HTC Acoustic( 3568): libhtc_acoustic.so version 1.0.1.1.
E/HTC Acoustic( 3568): Fail to open /system/etc/AudioPara_TMD.csv -1.
I/HTC Acoustic( 3568): open /system/etc/AudioPara4.csv success.
I/HTC Acoustic( 3568): acoustic table version: Dream_TMU_20090305
I/HTC Acoustic( 3568): read_audio_para_from_file success.
I/HTC Acoustic( 3568): get_audpp_filter
I/HTC Acoustic( 3568): open /system/etc/AudioFilter.csv success.
I/HTC Acoustic( 3568): ADRC Filter ADRC FLAG = ffff.
I/HTC Acoustic( 3568): ADRC Filter COMP THRESHOLD = 2600.
I/HTC Acoustic( 3568): ADRC Filter COMP SLOPE = b333.
I/HTC Acoustic( 3568): ADRC Filter COMP RMS TIME = 106.
I/HTC Acoustic( 3568): ADRC Filter COMP ATTACK[0] = 7f7d.
I/HTC Acoustic( 3568): ADRC Filter COMP ATTACK[1] = 3096.
I/HTC Acoustic( 3568): ADRC Filter COMP RELEASE[0] = 7ff7.
I/HTC Acoustic( 3568): ADRC Filter COMP RELEASE[1] = 4356.
I/HTC Acoustic( 3568): ADRC Filter COMP DELAY = 16.
I/HTC Acoustic( 3568): EQ flag = 00.
I/HTC Acoustic( 3568): get_audpre_filter
I/HTC Acoustic( 3568): open /system/etc/AudioPreProcess.csv success.
D/AudioHardwareMSM72XX( 3568): mNumSndEndpoints = 47
D/AudioHardwareMSM72XX( 3568): BT MATCH HANDSET
D/AudioHardwareMSM72XX( 3568): BT MATCH SPEAKER
D/AudioHardwareMSM72XX( 3568): BT MATCH HEADSET
D/AudioHardwareMSM72XX( 3568): BT MATCH BT
D/AudioHardwareMSM72XX( 3568): BT MATCH CARKIT
D/AudioHardwareMSM72XX( 3568): BT MATCH TTY_FULL
D/AudioHardwareMSM72XX( 3568): BT MATCH TTY_VCO
D/AudioHardwareMSM72XX( 3568): BT MATCH TTY_HCO
D/AudioHardwareMSM72XX( 3568): BT MATCH NO_MIC_HEADSET
D/AudioHardwareMSM72XX( 3568): BT MATCH FM_HEADSET
D/AudioHardwareMSM72XX( 3568): BT MATCH HEADSET_AND_SPEAKER
D/AudioHardwareMSM72XX( 3568): BT MATCH FM_SPEAKER
D/AudioHardwareMSM72XX( 3568): BT MATCH BT_EC_OFF
D/AudioHardwareMSM72XX( 3568): BT MATCH BT_EC_OFF
D/AudioHardwareMSM72XX( 3568): BT MATCH CURRENT
D/AudioHardwareInterface( 3568): setMode(NORMAL)
I/AudioHardwareMSM72XX( 3568): Set master volume to 5.
Click to expand...
Click to collapse
Full logcat in zip.
Cann't see any unusually things.
I also make a error scan with "hd tune" but no errors where found.
I think this no respons error cames only after the display went into standy. But cant figure it out yet.
maybe problems with swap?
Does any one have an idea?
any help would be welcome!
EDIT: now the logcat says something else:
...
W/SharedBufferStack( 2857): waitForCondition(LockCondition) timed out (identity=26, status=0). CPU may be pegged. trying again.
Click to expand...
Click to collapse
It seems that the nokia card is incompatible with the g1. I will change it to a sandisk card,
Maybe then all is fine ^^
stay tuned!
I'm also using a nokia card. told by vendor nokia card is made by sandisk. it's the same

[Q] No phone audio after using bluetooth

Hi All
Just wondering if anyone else is seeing this behaviour with their Xperia-Z?
I use bluetooth audio a lot (A2DP paired to the car stereo) & I've got the problem that after my phone has connected to a bluetooth audio device it won't then use the handset speaker (for calls / notifications / music / anything). It seems like the system is failing to switch back to using the handset audio output after disconnecting from the bluetooth device.
The steps to reproduce the issue are straightforward and completely reproducible:
Enable bluetooth on handset
Connect to an A2DP bluetooth device
Disconnect device (i.e.: power it off)
Disable bluetooth on handset
Test handset audio (e.g.: increase or decrease volume)
When trying to set the handset audio volume after disconnecting the bluetooth device I get the following output in `dmesg` on the handset:
Code:
<6>[ 732.223754] setting pm_qos in msm_pcm_playback_copy with 1000
<6>[ 732.228637] done setting pm_qos in msm_pcm_playback_copy
<6>[ 742.231475] updating pm_qos value to default msm_pcm_playback_close
<6>[ 742.237152] done updating pm_qos value to default msm_pcm_playback_close
<3>[ 745.068725] mdp4_overlay_set: blt mode is required! ret=-22
<3>[ 745.073486] msmfb_overlay_set: ioctl failed, rc=-22
<6>[ 745.657928] msm_pm_wait_cpu_shutdown(): Timed out waiting for CPU 1 SPM to enter sleep stateCPU1: unable to kill
<6>[ 746.107879] msm_pm_wait_cpu_shutdown(): Timed out waiting for CPU 1 SPM to enter sleep stateCPU1: unable to kill
<3>[ 747.242309] msm_pcm_playback_close: CMD_EOS failed
<6>[ 747.309936] setting pm_qos in msm_pcm_playback_copy with 1000
<6>[ 747.315124] done setting pm_qos in msm_pcm_playback_copy
I'm currently running CM10.2 (FreeXperia build 10.2-20140302-UNOFFICIAL-yuga) but the same issue was happening with the "official" CyanogenMod 10.1 & 10.2 builds.
The workaround is to reboot the device after unpairing a bluetooth audio device but this isn't really ideal. Anyone got any ideas / seeing the same behaviour?
Cheers
Si
scaldrich said:
Hi All
Just wondering if anyone else is seeing this behaviour with their Xperia-Z?
I use bluetooth audio a lot (A2DP paired to the car stereo) & I've got the problem that after my phone has connected to a bluetooth audio device it won't then use the handset speaker (for calls / notifications / music / anything). It seems like the system is failing to switch back to using the handset audio output after disconnecting from the bluetooth device.
The steps to reproduce the issue are straightforward and completely reproducible:
Enable bluetooth on handset
Connect to an A2DP bluetooth device
Disconnect device (i.e.: power it off)
Disable bluetooth on handset
Test handset audio (e.g.: increase or decrease volume)
When trying to set the handset audio volume after disconnecting the bluetooth device I get the following output in `dmesg` on the handset:
Code:
<6>[ 732.223754] setting pm_qos in msm_pcm_playback_copy with 1000
<6>[ 732.228637] done setting pm_qos in msm_pcm_playback_copy
<6>[ 742.231475] updating pm_qos value to default msm_pcm_playback_close
<6>[ 742.237152] done updating pm_qos value to default msm_pcm_playback_close
<3>[ 745.068725] mdp4_overlay_set: blt mode is required! ret=-22
<3>[ 745.073486] msmfb_overlay_set: ioctl failed, rc=-22
<6>[ 745.657928] msm_pm_wait_cpu_shutdown(): Timed out waiting for CPU 1 SPM to enter sleep stateCPU1: unable to kill
<6>[ 746.107879] msm_pm_wait_cpu_shutdown(): Timed out waiting for CPU 1 SPM to enter sleep stateCPU1: unable to kill
<3>[ 747.242309] msm_pcm_playback_close: CMD_EOS failed
<6>[ 747.309936] setting pm_qos in msm_pcm_playback_copy with 1000
<6>[ 747.315124] done setting pm_qos in msm_pcm_playback_copy
I'm currently running CM10.2 (FreeXperia build 10.2-20140302-UNOFFICIAL-yuga) but the same issue was happening with the "official" CyanogenMod 10.1 & 10.2 builds.
The workaround is to reboot the device after unpairing a bluetooth audio device but this isn't really ideal. Anyone got any ideas / seeing the same behaviour?
Cheers
Si
Click to expand...
Click to collapse
Install official android firmware from Sony, and if the problem still persists wait for the update from Sony.
It is just software problem.
try flashing build.prop file of official sony xperia z build or just over write it using root explorer if you havr root and restart always work ( its mainly the problem with the build promps in cm10.xx

Best method bluetooth in car?

Hi after struggling for days and hours, I'm taking the time to post my question.
1. I want to have Bluetooth disabled as much as possible during battery drain.
2. I want my phone to start Bluetooth once I connect it to the car power socket (brodit active holder)
The Following is finally working:
At the moment I have this:
Profile 1:
Car Mode
BT Connected to <MAC ADRESS>
Launch Task -> Launches my settings and apps
Exit Task -> Back to normal settings and turn off bluetooth
Profile 2:
Power Any
launch task-> Bluetooth on
exit task -> if Variable BTConnected = 0 -> Bluetooth Off (so when I use the power socket in house and Bluetooth is not connected it will disable Bluetooth again)
Profile 3:
BT Connected
launch task Variable set -> BTConnected= 1
exit task = Variable set -> BTConnected= 0
I hope this makes sense, this way I can pull out the phone off the brodit car holder and the Bluetooth stays active, so in fact, profile 1 stays active -- OK
When car goes off it uses exit task of profile 1 -> turn off Bluetooth --- OK
When putting phone in holder, Bluetooth goes on
cycling with this work great.
Now let's say I am at home charging over the night. Bluetooth stays on because the exit task won't get triggered. So id like to have in profile 2 something that says:
If Power any -> start Bluetooth and if Bluetooth is not connecting in 2 minutes -> Bluetooth go off.
Is there anyone that can help me with this, I know i am close.
Or are there any other best methods for this?
Bluetooth on -> wait 2 minutes -> Bluetooth off, if BTconnected=0
Vagelis1608 said:
Bluetooth on -> wait 2 minutes -> Bluetooth off, if BTconnected=1
Click to expand...
Click to collapse
you mean BTConnected = 0 right? cause 0 defines not connect at my variable?
will try this out tomorrow!
IIIdefconIII said:
you mean BTConnected = 0 right? cause 0 defines not connect at my variable?
will try this out tomorrow!
Click to expand...
Click to collapse
Yes, that's what I mean.
Vagelis1608 said:
Yes, that's what I mean.
Click to expand...
Click to collapse
that worked thanks!

Disable Bluetooth - Phone Audio on Activating DND on phone

My bluetooth headset has both Phone Audio and Media Audio options (checkboxes) under the Bluetooth device settings on my phone.
Essentially unselecting Phone Audio would prevent the Bluetooth headset from ringing when the phone rings.
When I activate DND mode on the phone the bluetooth headset still rings when connected to the phone. I want a solution in tasker for keeping the Bluetooth Media Audio on and turning off the Phone Audio for the Bluetooth settings.
I am a Tasker newbie and wasnt able to find the required setting under Actions or on this forum either.
I think the only way to do this is to set the global setting value that represents the state of that switch.
The value of;
bluetooth_headset_priority_XX:XX:XX:XX:XX:XX
(where XX:XX:XX:XX:XX:XX is the MAC address of the BT device)
Represents the state of the phone sink toggle. When set to 0, the phone (HPS) sink is off. When set to a number > 0 that represents the priority order the device is selected for that sink. In theory - I've not tested this - if a headset is set to 1000 and a car head unit to 100, the headset will be preferred for phone calls.
Toggle off:
Code:
A1: Custom Setting [
Type:Global
Name: bluetooth_headset_priority_XX:XX:XX:XX:XX:XX
Value: 0
Use Root: On
Read Setting To:
]
Toggle On:
Code:
A2: Custom Setting [
Type:Global
Name: bluetooth_headset_priority_XX:XX:XX:XX:XX:XX
Value:1000
Use Root: On
Read Setting To:
]
"find somebody that you think is undeserving of your compassion and give it to them" - Christian Picciolini

Categories

Resources