-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello everyone, I finally got time to investigate the issues with my headset. Sometimes after SCO connection establishment, the microphone produces only noise, and a reconnect is necessary to fix this. The attached patch is against btsco.c v1.22 from CVS, and does two things: 1. installs a handler for SIGUSR2 which automatically disconnects the SCO channel when connected and reconnects it after a short delay 2. allows the command string in .btscorc to contain '%d', which will be replaced with the current SCO connection status (0 or 1) upon command execution. 1. may be not really useful to most people - as mentioned, my headset is obviously somewhat buggy and needs a kind of reset sometimes, which this patch provides (actually, I wrote a shell script which samples 1 second of audio data from the headset, runs it through gzip to determine whether it's noise and sends SIGUSR2 accordingly - talk about evil hacks ;) 2. was included because I want certain actions to happen only when the connection is established, and not when it's shutting down. Brad: if you think this could be useful otherwise, then feel free to include the patch into CVS. Yours, Florian - -- Preserve wildlife - pickle a squirrel today! -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFCemzI7CzyshGvatgRArpWAJ4g4j5sgUjj3ulgVwxORICyjYdyHgCg5qpr gE4T1Cniprq057+KD2i79kE= =jha8 -----END PGP SIGNATURE-----