linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Frédéric DALLEAU" <frederic.dalleau@palmsource.com>
To: BlueZ development <bluez-devel@lists.sourceforge.net>
Subject: Re: [Bluez-devel] a2pd btsco won't compile (FIX)	plus	xmmserror(trials and tribulations) how cool is this!!!	new patch
Date: Tue, 08 Aug 2006 16:48:16 +0200	[thread overview]
Message-ID: <44D8A430.6080502@palmsource.com> (raw)
In-Reply-To: <056BF200E9632F4285220E570FEED673D7AE42@GBMDDMH202AMSX.gb001.siemens.net>

Andrew,

I ran the test you told me, on my computer I noticed the process started =

using 100% cpu time after 35 mins. Two hours later the computer was =

still alive. Certainly an overflow when calculating delays. The relation =

with the freeze is not clear. My only assumption for now is that taking =

so much cpu time can overheat a computer. It should not freeze, but it =

is not excluded. Are you using an overclocked computer? Fan lowering =

software?

The mail thread clearly state the problem is 2.6.17 mh3+ related. If =

you're not already 2.6.17, there is need to try 2.6.16.

I'm isolating the cpu time prob, this is long but easy to reproduce. So =

it should be corrected soon.

Thank you for all your patience :D

Fr=E9d=E9ric



Waldram, Andrew (SBS UK) a =E9crit :

> =

>It's a real lock no mouse capslock or numlock
>
>Four sec power button press to shut off =

>
>Start it from rc.local kernel 2.6.15 (has done it on the last 3)
>
>Sudo -u andy -H a2dpd -d +v
>
>Don't use it as default so it's not the default alsa device =

>
>Normal soundcard (i810) sound still functions.
>
>It still does it if you've been using the headphones then desconnect them,=
 approx 30 mins later locked.
>
>It's fine while headphones in use (fell asleep with them on 3 hours all OK)
>
>Tmp is mounted as logging starts in it OK.
>
>Will try a custom 2.6.16 I have hanging around ;-) tonight. =

>
>--------------------------------------------------------------------------=
-------- =

>
>
>
>-----Original Message-----
>From: bluez-devel-bounces@lists.sourceforge.net [mailto:bluez-devel-bounce=
s@lists.sourceforge.net] On Behalf Of Fr=E9d=E9ric DALLEAU
>Sent: 08 August 2006 09:40
>To: BlueZ development
>Subject: Re: [Bluez-devel] a2pd btsco won't compile (FIX) plus xmmserror(t=
rials and tribulations) how cool is this!!! new patch
>
>Hi Andrew,
>
>By lock solid do you mean system freeze or a 100% cpu time? Does your =

>mouse move? Do capslock & numlock still light on/off?
>When you start it as a daemon, how do you do it? Is it from a =

>shell/rootshell/startup script/sysinit?
>Are you sure that you have not attempted to use headset, it is not your =

>default alsa plugin, and you have not started xmms. If it is default, =

>another application could have started sound.
>
>
>Since we only work in user mode, we should not lock solid the system!  I =

>used to consider this assumption valid when I was a Windows programmer =

>so it should be under linux :D ...
>
>This reminds me the lock problem that was signaled last week, Look at =

>this thread:
>http://sourceforge.net/mailarchive/forum.php?thread_id=3D29109531&forum_id=
=3D1881
>
>It said :
>
> After upgrading I discovered that my machine freezes after being left
> idle for approximately 30 min.
>
>...
>this looks like a problem with the kthread API. We converted BNEP, CMTP
>
> and HIDP to it with 2.6.17-mh3. So a 2.6.17-mh2 kernel should work
> without any problems.
>
>If you have unbuntu, you will certainly have multiple kernel to boot, =

>can you try an older one to see if it is the same.
>
>
>Moreover, I confirm that the log file is filed while in daemon mode. =

>Maybe the daemon is started before /tmp is mounted. Try another =

>location, simply add
>
>logfile=3D/what_you_want_but_you_need_write_permission
>
>to the config file before startup.
>
>
>Fr=E9d=E9ric
>
>
>
>Waldram, Andrew (SBS UK) a =E9crit :
>
>  =

>
>>Still have the issue were if I start it as a deamon (a2dpd -d +v) then af=
ter about 30 minutes my system just locks solid
>>
>>This only happenes if you have no connection i.e the deamon is started bu=
t you have not attempted to use headset.
>>
>>I thought initialy it was loging but after you've added the logging code =
guess not.
>>
>>Got no idea how to debug this as nothing  appears in any log it just lock=
s solid.
>>
>>
>>-------------------------------------------------------------------------=
--------- =

>>
>>
>>-----Original Message-----
>>From: bluez-devel-bounces@lists.sourceforge.net [mailto:bluez-devel-bounc=
es@lists.sourceforge.net] On Behalf Of Waldram, Andrew (SBS UK)
>>Sent: 05 August 2006 16:03
>>To: BlueZ development
>>Subject: Re: [Bluez-devel] a2pd btsco won't compile (FIX) plus xmmserror(=
trials and tribulations) how cool is this!!! new patch
>>
>>Hi again =

>>
>>It's permissions needed to start a2dp as sudo -u andy -H a2dpd =

>>Else xmms and the controls didn't synchronise (had extra xmms sesions app=
earing )
>>
>>Now seems pretty slick =

>>
>>Will continue to play and report back later after day to day use..
>>-------------------------------------------------------------------------=
--------- =

>>
>>-----Original Message-----
>>From: bluez-devel-bounces@lists.sourceforge.net [mailto:bluez-devel-bounc=
es@lists.sourceforge.net] On Behalf Of Waldram, Andrew (SBS UK)
>>Sent: 05 August 2006 14:55
>>To: BlueZ development
>>Subject: Re: [Bluez-devel] a2pd btsco won't compile (FIX) plus xmms error=
(trials and tribulations) how cool is this!!! new patch
>>
>>Hi
>>
>>Don't know if its my headphones but pressing play does not start xmms.
>>
>>If I manuly start Xmms then fwd rev play pause work
>>
>>But still once 10 secs has done then pressinf play on the headphones does=
 nothing and if I press play on xmms it still just doesn't work
>>
>>Accepting incoming tcp stream connection
>>[pause] xmms --pause
>>Forked xmms --pause         <----------------------Pause press ;-)
>>[1] Receiving failed on socket 0.6 error (-1/4 bytes) errno=3D11:Resource
>>temporarily unavailable  <---------------------  press play repeatedly on=
 head phones nothing happens
>>Client thread 0.6 ending: timeout =

>>Destroying lpA2dp, destroy_count is 2001
>>DEBUG: a2dp_destroy: Begin
>>DEBUG: a2dp_free: Begin
>>DEBUG: a2dp_destroy: a2dp_destroy(0x80561f0) OK
>>avrcp: socket 9: timed out
>>Accepted 6
>>PCM thread 0.6 started  < ------------------------------ press play on xm=
ms =

>>DEBUG: a2dp_new: Begin
>>DEBUG: a2dp_new: bdaddr/dest is 00:0D:44:2A:5C:12
>>DEBUG: a2dp_alloc: Begin
>>DEBUG: a2dp_connect: a2dp 0x8076d58
>>DEBUG: connect_stream: Begin
>>DEBUG: connect_stream: Using address: 12:5C:2A:44:0D:00
>>DEBUG: detect_a2dp: Begin
>>Accepting incoming tcp stream connection
>>DEBUG: detect_a2dp: Found A2DP Sink
>>DEBUG: connect_stream: Found A2DP Sink at the destination (psm_cmd=3D25)
>>DEBUG: do_connect: Begin
>>DEBUG: do_connect: Connecting to bluetooth
>>DEBUG: do_connect: (errno=3D111:Connection refused)Can't connect to
>>12:5C:2A:44:0D:00 on psm 25. Connection refused(111)
>>DEBUG: do_connect: (errno=3D77:File descriptor in bad state)Can't connect=
 to
>>12:5C:2A:44:0D:00 on psm 25. File descriptor in bad state(77)
>>DEBUG: do_connect: (errno=3D77:File descriptor in bad state)Can't connect=
 to
>>12:5C:2A:44:0D:00 on psm 25. File descriptor in bad state(77)
>>DEBUG: connect_stream: cannot open psm_cmd =3D 25
>>
>>Any ideas
>>
>>
>>-------------------------------------------------------------------------=
--------- =

>>
>>
>>-----Original Message-----
>>From: bluez-devel-bounces@lists.sourceforge.net [mailto:bluez-devel-bounc=
es@lists.sourceforge.net] On Behalf Of Fr=E9d=E9ric DALLEAU
>>Sent: 04 August 2006 16:09
>>To: BlueZ development
>>Subject: Re: [Bluez-devel] a2pd btsco won't compile (FIX) plus xmms error=
 (trials and tribulations) how cool is this!!! new patch
>>
>>Hi all,
>>
>>Now the a2dpd handles avrcp too. Only play / pause / next / prev but =

>>other commands if any should go straight away.
>>
>>Waldram, Andrew (SBS UK) a =E9crit :
>>
>> =

>>
>>    =

>>
>>>When you say you integrated it into a2dpd do you mean all the a2recv stu=
ff, if so doean't that make the deamon a xmms dependant tool?
>>>
>>>
>>>   =

>>>
>>>      =

>>>
>>No thanks to the config file
>>
>> =

>>
>>    =

>>
>>>It'd be real cool if it'd parse a config file so something like the foll=
owing could be done
>>>
>>>/etc/a2dpd.conf
>>>
>>>
>>>   =

>>>
>>>      =

>>>
>>done, see attachment
>>$HOME/.a2dprc for now
>>
>> =

>>
>>    =

>>
>>>For now, it is not yet handled but you see the daemon receive a frame of =

>>>the form 0x00 0x01 (AVDTP_DISCOVER).
>>>I will try today reject the frame and system(xmms --play).
>>>
>>>
>>>   =

>>>
>>>      =

>>>
>>done, see patch
>>
>>Two commands line options appeared:
>>-d forks (+d no fork) on startup
>>-v redirect output to stdout (+v to logfile specified in rc def : =

>>/tmp/a2dpd.log)
>>
>>If your headset is avrcp, what can you do :
>>start a2dpd
>>press play on the headset, and it will start up xmms. You should hear mus=
ic
>>press play again, it will pause xmms.
>>press play again, music restart.
>>press next or prev to switch song.
>>
>>you can also try alsamixer -D ctl.a2dpd
>>
>>Fr=E9d=E9ric
>>
>>
>>
>>-------------------------------------------------------------------------
>>Take Surveys. Earn Cash. Influence the Future of IT
>>Join SourceForge.net's Techsay panel and you'll get the chance to share y=
our
>>opinions on IT & business topics through brief surveys -- and earn cash
>>http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D=
DEVDEV
>>_______________________________________________
>>Bluez-devel mailing list
>>Bluez-devel@lists.sourceforge.net
>>https://lists.sourceforge.net/lists/listinfo/bluez-devel
>>
>>-------------------------------------------------------------------------
>>Take Surveys. Earn Cash. Influence the Future of IT
>>Join SourceForge.net's Techsay panel and you'll get the chance to share y=
our
>>opinions on IT & business topics through brief surveys -- and earn cash
>>http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D=
DEVDEV
>>_______________________________________________
>>Bluez-devel mailing list
>>Bluez-devel@lists.sourceforge.net
>>https://lists.sourceforge.net/lists/listinfo/bluez-devel
>>
>>-------------------------------------------------------------------------
>>Using Tomcat but need to do more? Need to support web services, security?
>>Get stuff done quickly with pre-integrated technology to make your job ea=
sier
>>Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
>>http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=
=3D121642
>>_______________________________________________
>>Bluez-devel mailing list
>>Bluez-devel@lists.sourceforge.net
>>https://lists.sourceforge.net/lists/listinfo/bluez-devel
>> =

>>
>>    =

>>
>
>
>-------------------------------------------------------------------------
>Using Tomcat but need to do more? Need to support web services, security?
>Get stuff done quickly with pre-integrated technology to make your job eas=
ier
>Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
>http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D=
121642
>_______________________________________________
>Bluez-devel mailing list
>Bluez-devel@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/bluez-devel
>
>-------------------------------------------------------------------------
>Using Tomcat but need to do more? Need to support web services, security?
>Get stuff done quickly with pre-integrated technology to make your job eas=
ier
>Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
>http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D=
121642
>_______________________________________________
>Bluez-devel mailing list
>Bluez-devel@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/bluez-devel
>  =

>


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easi=
er
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D1=
21642
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

  reply	other threads:[~2006-08-08 14:48 UTC|newest]

Thread overview: 45+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-01  6:25 [Bluez-devel] a2pd btsco won't compile (FIX) plus xmms error Andrew Waldram
2006-08-01  8:41 ` Frédéric DALLEAU
2006-08-01  8:55   ` Frédéric DALLEAU
2006-08-01 12:39     ` Waldram, Andrew (SBS UK)
2006-08-01 13:09       ` Frédéric DALLEAU
2006-08-01 15:46         ` Brad Midgley
2006-08-02  8:45           ` Waldram, Andrew (SBS UK)
2006-08-03  7:49             ` [Bluez-devel] a2pd btsco won't compile (FIX) plus xmms error (trials and tribulations) how cool is this!!! Waldram, Andrew (SBS UK)
2006-08-04  8:04               ` Frédéric DALLEAU
2006-08-04  8:46                 ` Waldram, Andrew (SBS UK)
2006-08-04 15:09                   ` [Bluez-devel] a2pd btsco won't compile (FIX) plus xmms error (trials and tribulations) how cool is this!!! new patch Frédéric DALLEAU
2006-08-05 13:54                     ` Waldram, Andrew (SBS UK)
2006-08-05 15:03                       ` [Bluez-devel] a2pd btsco won't compile (FIX) plus xmms error(trials " Waldram, Andrew (SBS UK)
2006-08-08  7:59                         ` [Bluez-devel] a2pd btsco won't compile (FIX) plus xmmserror(trials " Waldram, Andrew (SBS UK)
2006-08-08  8:39                           ` Frédéric DALLEAU
2006-08-08 10:04                             ` Waldram, Andrew (SBS UK)
2006-08-08 14:48                               ` Frédéric DALLEAU [this message]
2006-08-08 15:07                                 ` Waldram, Andrew (SBS UK)
2006-08-08 16:37                                   ` Frédéric DALLEAU
2006-08-09  7:42                                     ` Waldram, Andrew (SBS UK)
2006-08-10  7:53                                       ` [Bluez-devel] a2pd btsco won'tcompile (FIX) plus xmmserror(trials and tribulations) howcool " Waldram, Andrew (SBS UK)
2006-08-10 16:05                                         ` Frédéric DALLEAU
2006-08-10 16:14                                           ` Brad Midgley
2006-08-11  7:53                                           ` Waldram, Andrew (SBS UK)
2006-08-12  9:31                                             ` [Bluez-devel] a2pdbtsco won'tcompile (FIX) plus xmmserror(trials andtribulations) " Waldram, Andrew (SBS UK)
2006-08-16 14:56                                               ` Frédéric DALLEAU
2006-08-17  7:37                                                 ` Waldram, Andrew (SBS UK)
2006-08-17  8:02                                                   ` Frédéric DALLEAU
2006-08-17  8:08                                                     ` Waldram, Andrew (SBS UK)
2006-08-17  8:18                                                       ` Frédéric DALLEAU
2006-08-17  8:32                                                         ` Waldram, Andrew (SBS UK)
2006-08-17 14:06                                                     ` Brad Midgley
2006-08-18  8:33                                                       ` Waldram, Andrew (SBS UK)
2006-08-18  9:59                                                         ` Frédéric DALLEAU
2006-08-18 12:24                                                           ` Waldram, Andrew (SBS UK)
2006-08-18 13:16                                                             ` Frédéric DALLEAU
2006-08-18 13:24                                                               ` Waldram, Andrew (SBS UK)
2006-08-08 15:13                                 ` [Bluez-devel] a2pd btsco won't compile (FIX) plus xmmserror(trials and tribulations) how cool " Peter Robinson
2006-08-08 16:39                                   ` Frédéric DALLEAU
2006-08-15 16:03                                     ` Steven Singer
2006-08-16 13:33                                       ` Frédéric DALLEAU
2006-08-16 14:35                                         ` Waldram, Andrew (SBS UK)
2006-08-16 15:28                                         ` Brad Midgley
2006-08-16 16:10                                           ` Frédéric DALLEAU
2006-08-16 16:22                                             ` Brad Midgley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=44D8A430.6080502@palmsource.com \
    --to=frederic.dalleau@palmsource.com \
    --cc=bluez-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).