LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Kirill Elagin <kirelagin@gmail.com>
To: linux-kernel@vger.kernel.org
Cc: marcel@holtmann.org
Subject: USB autosuspend causing trouble with bluetooth
Date: Sun, 18 Jan 2015 17:30:36 +0400	[thread overview]
Message-ID: <CABVT_gf-rx0ymvtCrCotkO5=qoDifG1yAMg8U_aTgXEN=x6gvg@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 869 bytes --]

Hello,

Recently I started having issues with my Apple Magic Trackpad and I
realised that the problem was with autosuspend. Whenever I have `auto`
in `power/control` of my BT adapter, `btmon` shows no packets,
nothing. As soon as I `echo on`, all the missing packets arrive.

The situation looks very similar to this thread:
https://lkml.org/lkml/2014/4/2/574.
As suggested, I tried `hci-tester` and I’m attaching the complete
output, but, I guess, the interesting part is that with `on` in
`power/control` I get:

~~~~
Inquiry (LIAC)      Passed      10.254 seconds
~~~~

and with `auto` I get:

~~~~
Inquiry (LIAC)        Timed out   30.365 seconds
~~~~

This is Acer 4810TG laptop with BCM2046. The kernel is 3.17.7, but I’m
pretty sure I was also seeing this on 3.18.1. Bluez is 5.25.


P.S. Please, CC me as I’m not a subscriber.

[-- Attachment #2: hci-tester_on.log --]
[-- Type: text/plain, Size: 4891 bytes --]

└─# ./tools/hci-tester                              

Reset - init
Reset - setup
Reset - setup complete
Reset - run
Reset - test passed
Reset - teardown
Reset - teardown complete
Reset - done

Read Local Version Information - init
Read Local Version Information - setup
Read Local Version Information - setup complete
Read Local Version Information - run
Read Local Version Information - test passed
Read Local Version Information - teardown
Read Local Version Information - teardown complete
Read Local Version Information - done

Read Local Supported Commands - init
Read Local Supported Commands - setup
Read Local Supported Commands - setup complete
Read Local Supported Commands - run
Read Local Supported Commands - test passed
Read Local Supported Commands - teardown
Read Local Supported Commands - teardown complete
Read Local Supported Commands - done

Read Local Supported Features - init
Read Local Supported Features - setup
Read Local Supported Features - setup complete
Read Local Supported Features - run
Read Local Supported Features - test passed
Read Local Supported Features - teardown
Read Local Supported Features - teardown complete
Read Local Supported Features - done

Read Local Extended Features - init
Read Local Extended Features - setup
Read Local Extended Features - setup complete
Read Local Extended Features - run
Read Local Extended Features - test passed
Read Local Extended Features - teardown
Read Local Extended Features - teardown complete
Read Local Extended Features - done

Read Buffer Size - init
Read Buffer Size - setup
Read Buffer Size - setup complete
Read Buffer Size - run
Read Buffer Size - test passed
Read Buffer Size - teardown
Read Buffer Size - teardown complete
Read Buffer Size - done

Read Country Code - init
Read Country Code - setup
Read Country Code - setup complete
Read Country Code - run
  HCI command failed (0x01)
Read Country Code - test failed
Read Country Code - teardown
Read Country Code - teardown complete
Read Country Code - done

Read BD_ADDR - init
Read BD_ADDR - setup
Read BD_ADDR - setup complete
Read BD_ADDR - run
Read BD_ADDR - test passed
Read BD_ADDR - teardown
Read BD_ADDR - teardown complete
Read BD_ADDR - done

Read Local Supported Codecs - init
Read Local Supported Codecs - setup
Read Local Supported Codecs - setup complete
Read Local Supported Codecs - run
  HCI command failed (0x01)
Read Local Supported Codecs - test failed
Read Local Supported Codecs - teardown
Read Local Supported Codecs - teardown complete
Read Local Supported Codecs - done

LE Read White List Size - init
LE Read White List Size - setup
LE Read White List Size - setup complete
LE Read White List Size - run
  HCI command failed (0x01)
LE Read White List Size - test failed
LE Read White List Size - teardown
LE Read White List Size - teardown complete
LE Read White List Size - done

LE Clear White List - init
LE Clear White List - setup
LE Clear White List - setup complete
LE Clear White List - run
  HCI command failed (0x01)
LE Clear White List - test failed
LE Clear White List - teardown
LE Clear White List - teardown complete
LE Clear White List - done

Inquiry (LIAC) - init
Inquiry (LIAC) - setup
Inquiry (LIAC) - setup complete
Inquiry (LIAC) - run
Inquiry (LIAC) - test passed
Inquiry (LIAC) - teardown
Inquiry (LIAC) - teardown complete
Inquiry (LIAC) - done

Create Connection - init
  Failed to setup lower tester user channel
Create Connection - pre setup failed
Create Connection - done

TP/DSU/BV-02-C Reset in Advertising State - init
  Failed to setup upper tester user channel
TP/DSU/BV-02-C Reset in Advertising State - pre setup failed
TP/DSU/BV-02-C Reset in Advertising State - done


Test Summary
------------
Reset                                                Passed       0.007 seconds
Read Local Version Information                       Passed       0.007 seconds
Read Local Supported Commands                        Passed       0.011 seconds
Read Local Supported Features                        Passed       0.008 seconds
Read Local Extended Features                         Passed       0.010 seconds
Read Buffer Size                                     Passed       0.008 seconds
Read Country Code                                    Failed       0.008 seconds
Read BD_ADDR                                         Passed       0.007 seconds
Read Local Supported Codecs                          Failed       0.009 seconds
LE Read White List Size                              Failed       0.007 seconds
LE Clear White List                                  Failed       0.009 seconds
Inquiry (LIAC)                                       Passed      10.254 seconds
Create Connection                                    Not Run   
TP/DSU/BV-02-C Reset in Advertising State            Not Run   

Total: 14, Passed: 8 (57.1%), Failed: 4, Not Run: 2
Overall execution time: 10.4 seconds

[-- Attachment #3: hci-tester_auto.log --]
[-- Type: text/plain, Size: 4893 bytes --]

─# ./tools/hci-tester                                

Reset - init
Reset - setup
Reset - setup complete
Reset - run
Reset - test passed
Reset - teardown
Reset - teardown complete
Reset - done

Read Local Version Information - init
Read Local Version Information - setup
Read Local Version Information - setup complete
Read Local Version Information - run
Read Local Version Information - test passed
Read Local Version Information - teardown
Read Local Version Information - teardown complete
Read Local Version Information - done

Read Local Supported Commands - init
Read Local Supported Commands - setup
Read Local Supported Commands - setup complete
Read Local Supported Commands - run
Read Local Supported Commands - test passed
Read Local Supported Commands - teardown
Read Local Supported Commands - teardown complete
Read Local Supported Commands - done

Read Local Supported Features - init
Read Local Supported Features - setup
Read Local Supported Features - setup complete
Read Local Supported Features - run
Read Local Supported Features - test passed
Read Local Supported Features - teardown
Read Local Supported Features - teardown complete
Read Local Supported Features - done

Read Local Extended Features - init
Read Local Extended Features - setup
Read Local Extended Features - setup complete
Read Local Extended Features - run
Read Local Extended Features - test passed
Read Local Extended Features - teardown
Read Local Extended Features - teardown complete
Read Local Extended Features - done

Read Buffer Size - init
Read Buffer Size - setup
Read Buffer Size - setup complete
Read Buffer Size - run
Read Buffer Size - test passed
Read Buffer Size - teardown
Read Buffer Size - teardown complete
Read Buffer Size - done

Read Country Code - init
Read Country Code - setup
Read Country Code - setup complete
Read Country Code - run
  HCI command failed (0x01)
Read Country Code - test failed
Read Country Code - teardown
Read Country Code - teardown complete
Read Country Code - done

Read BD_ADDR - init
Read BD_ADDR - setup
Read BD_ADDR - setup complete
Read BD_ADDR - run
Read BD_ADDR - test passed
Read BD_ADDR - teardown
Read BD_ADDR - teardown complete
Read BD_ADDR - done

Read Local Supported Codecs - init
Read Local Supported Codecs - setup
Read Local Supported Codecs - setup complete
Read Local Supported Codecs - run
  HCI command failed (0x01)
Read Local Supported Codecs - test failed
Read Local Supported Codecs - teardown
Read Local Supported Codecs - teardown complete
Read Local Supported Codecs - done

LE Read White List Size - init
LE Read White List Size - setup
LE Read White List Size - setup complete
LE Read White List Size - run
  HCI command failed (0x01)
LE Read White List Size - test failed
LE Read White List Size - teardown
LE Read White List Size - teardown complete
LE Read White List Size - done

LE Clear White List - init
LE Clear White List - setup
LE Clear White List - setup complete
LE Clear White List - run
  HCI command failed (0x01)
LE Clear White List - test failed
LE Clear White List - teardown
LE Clear White List - teardown complete
LE Clear White List - done

Inquiry (LIAC) - init
Inquiry (LIAC) - setup
Inquiry (LIAC) - setup complete
Inquiry (LIAC) - run
Inquiry (LIAC) - test timed out
Inquiry (LIAC) - teardown
Inquiry (LIAC) - teardown complete
Inquiry (LIAC) - done

Create Connection - init
  Failed to setup lower tester user channel
Create Connection - pre setup failed
Create Connection - done

TP/DSU/BV-02-C Reset in Advertising State - init
  Failed to setup upper tester user channel
TP/DSU/BV-02-C Reset in Advertising State - pre setup failed
TP/DSU/BV-02-C Reset in Advertising State - done


Test Summary
------------
Reset                                                Passed       0.066 seconds
Read Local Version Information                       Passed       0.008 seconds
Read Local Supported Commands                        Passed       0.016 seconds
Read Local Supported Features                        Passed       0.009 seconds
Read Local Extended Features                         Passed       0.010 seconds
Read Buffer Size                                     Passed       0.008 seconds
Read Country Code                                    Failed       0.008 seconds
Read BD_ADDR                                         Passed       0.007 seconds
Read Local Supported Codecs                          Failed       0.007 seconds
LE Read White List Size                              Failed       0.008 seconds
LE Clear White List                                  Failed       0.009 seconds
Inquiry (LIAC)                                       Timed out   30.365 seconds
Create Connection                                    Not Run   
TP/DSU/BV-02-C Reset in Advertising State            Not Run   

Total: 14, Passed: 7 (50.0%), Failed: 5, Not Run: 2
Overall execution time: 30.5 seconds

             reply	other threads:[~2015-01-18 13:31 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-18 13:30 Kirill Elagin [this message]
2015-01-20 11:03 ` Oliver Neukum
2015-01-20 12:18   ` Kirill Elagin
2015-01-20 12:34     ` Kirill Elagin
2015-01-20 14:06     ` Oliver Neukum
2015-01-20 14:58       ` Kirill Elagin
2015-01-20 17:41         ` Oliver Neukum
2015-01-20 19:25           ` Kirill Elagin
2015-01-20 21:47             ` Oliver Neukum
2015-01-24  9:55               ` Kirill Elagin
2015-01-26 17:00                 ` Kirill Elagin
2015-01-27 18:00                   ` Oliver Neukum

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='CABVT_gf-rx0ymvtCrCotkO5=qoDifG1yAMg8U_aTgXEN=x6gvg@mail.gmail.com' \
    --to=kirelagin@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marcel@holtmann.org \
    --subject='Re: USB autosuspend causing trouble with bluetooth' \
    /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

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).