intel-3160-AC 无线网卡bluetooth只有待机后唤醒才能被硬件识别
Tofloor
poster avatar
泳衡
deepin
2016-08-26 09:32
Author
intel-3160-AC 无线网卡bluetooth只有经历一次待机后唤醒才能被硬件识别。

这是个很奇葩的问题。请问什么原因造成的。

    我曾试过关闭ehci_pci总线,所有的usb都用不了,然后在开启ehci_pci总线,依然无果。。。。
        我停用硬件用的是这条命令:echo '设备号' | sudo tee /sys/bus/pci/drivers/ehci-pci/unbind

    尝试过把iwlwifi给移除,在重启,依然是没有发现bluetooth硬件,待机然后唤醒,硬件又神器班被发现。

    在log中能很明显的看到,开机的时候是没有发现bluetooth硬件的,但是wifi硬件却是正常的。而且待机模式应该是用的acpi S3 模式,我看他wakeup的时候说用S3。想过用acpi实现网卡硬件断电重启网卡,不知道怎么实现。
  log附件:开机和唤醒log.tar.gz
求解决!!!!

希望哪位大神能帮我一下。我折腾了3天,每晚都2\3点睡觉。崩溃呀!
Reply Favorite View the author
All Replies
1 / 2
To page
avatar
liujianfeng
deepin
2016-08-26 17:38
#1
看下 /var/lib/bluetooth/bluetoothd
是不是蓝牙的服务没起来
Reply View the author
avatar
泳衡
deepin
2016-08-26 18:37
#2
https://bbs.deepin.org/post/42742
看下 /var/lib/bluetooth/bluetoothd
是不是蓝牙的服务没起来

buletoothd 应该不管这事,应为lsusb、lshw和usb-devices 都没有发现 蓝牙硬件。

我推理应该是发现 buletooth 硬件,然后buletoothd 链接访问buletooth硬件创建对话窗口,我们就看见了buletooth图标。
Reply View the author
avatar
liujianfeng
deepin
2016-08-26 21:22
#3
https://bbs.deepin.org/post/42742
buletoothd 应该不管这事,应为lsusb、lshw和usb-devices 都没有发现 蓝牙硬件。

我推理应该是发现 bule ...

你的log里面是后端timeout了,有可能是这个服务没起来
唤醒了没问题应该就不是驱动的锅了
Reply View the author
avatar
泳衡
deepin
2016-08-26 21:26
#4
重启buletoothd
Reply View the author
avatar
泳衡
deepin
2016-08-26 21:28
#5
liujianfeng 发表于 2016-8-26 13:22
你的log里面是后端timeout了,有可能是这个服务没起来
唤醒了没问题应该就不是驱动的锅了 ...

重启buletoothd的命令是
/etc/init.d/buletooth restart
这个吗?
Reply View the author
avatar
liujianfeng
deepin
2016-08-27 01:03
#6
https://bbs.deepin.org/post/42742
重启buletoothd的命令是
/etc/init.d/buletooth restart
这个吗?

是的,也可以
sudo service bluetooth restart
Reply View the author
avatar
泳衡
deepin
2016-08-27 01:06
#7
不能用。你看的timeout不是Wifi那个吧?那个唤醒后蓝牙是正常的。
Reply View the author
avatar
泳衡
deepin
2016-08-27 01:06
#8
liujianfeng 发表于 2016-8-26 17:03
是的,也可以
sudo service bluetooth restart

虽然不行,但还是谢谢。
Reply View the author
avatar
liujianfeng
deepin
2016-08-27 01:17
#9
https://bbs.deepin.org/post/42742
虽然不行,但还是谢谢。

sudo service bluetooth status
看看这个服务什么情况
Reply View the author
avatar
泳衡
deepin
2016-08-27 06:14
#10
https://bbs.deepin.org/post/42742
sudo service bluetooth status
看看这个服务什么情况


这样是什么意思?
Reply View the author
avatar
泳衡
deepin
2016-08-27 08:07
#11
悲催无奈的折腾呀。有人告诉我属于那块的问题吗?是kernel还是驱动还是我的.....
Reply View the author
avatar
liujianfeng
deepin
2016-08-29 17:06
#12
https://bbs.deepin.org/post/42742
这样是什么意思?

蓝牙服务没起来了
Reply View the author
avatar
liujianfeng
deepin
2016-08-29 17:38
#13
贴一下
journalctl /usr/lib/bluetooth/bluetoothd
的输出
Reply View the author
avatar
泳衡
deepin
2016-09-08 05:46
#14
本帖最后由 399913628 于 2016-9-7 22:40 编辑
https://bbs.deepin.org/post/42742
贴一下
journalctl /usr/lib/bluetooth/bluetoothd
的输出

刚刚开机:
什么信息都没有。如果上次启动过蓝牙设备,则有下面的信息:
9月 07 22:04:04 yh-PCBook bluetoothd[2841]: Terminating
9月 07 22:04:04 yh-PCBook bluetoothd[2841]: Endpoint unregistered: sender=:1.41 path=/MediaEndpoint/A2DPSource


待机唤醒后:
9月 07 22:10:48 yh-PCBook bluetoothd[4907]: Bluetooth daemon 5.36
9月 07 22:10:48 yh-PCBook bluetoothd[4907]: Starting SDP server
9月 07 22:10:48 yh-PCBook bluetoothd[4907]: Bluetooth management interface 1.10 initialized
9月 07 22:10:48 yh-PCBook bluetoothd[4907]: Failed to obtain handles for "Service Changed" characteristic
9月 07 22:10:48 yh-PCBook bluetoothd[4907]: Not enough free handles to register service
9月 07 22:10:48 yh-PCBook bluetoothd[4907]: Error adding Link Loss service
9月 07 22:10:48 yh-PCBook bluetoothd[4907]: Not enough free handles to register service
9月 07 22:10:48 yh-PCBook bluetoothd[4907]: Not enough free handles to register service
9月 07 22:10:48 yh-PCBook bluetoothd[4907]: Not enough free handles to register service
9月 07 22:10:48 yh-PCBook bluetoothd[4907]: Current Time Service could not be registered
9月 07 22:10:48 yh-PCBook bluetoothd[4907]: gatt-time-server: Input/output error (5)
9月 07 22:10:48 yh-PCBook bluetoothd[4907]: Not enough free handles to register service
9月 07 22:10:48 yh-PCBook bluetoothd[4907]: Not enough free handles to register service
9月 07 22:10:48 yh-PCBook bluetoothd[4907]: Sap driver initialization failed.
9月 07 22:10:48 yh-PCBook bluetoothd[4907]: sap-server: Operation not permitted (1)
9月 07 22:10:48 yh-PCBook bluetoothd[4907]: Endpoint registered: sender=:1.41 path=/MediaEndpoint/A2DPSource
9月 07 22:10:48 yh-PCBook bluetoothd[4907]: Endpoint registered: sender=:1.41 path=/MediaEndpoint/A2DPSink

蓝牙设备启动起来了,关机会有下面信息!如果没有启动起来,关机则什么信息都没有:
9月 07 22:22:14 yh-PCBook bluetoothd[4907]: Terminating
9月 07 22:22:14 yh-PCBook bluetoothd[4907]: Endpoint unregistered: sender=:1.41 path=/MediaEndpoint/A2DPSource
9月 07 22:22:14 yh-PCBook bluetoothd[4907]: Endpoint unregistered: sender=:1.41 path=/MediaEndpoint/A2DPSink

这是输出,麻烦帮我看一下。
还有要怎么解决?
谢谢。


Reply View the author
avatar
liujianfeng
deepin
2016-09-08 23:10
#15
传一下 sudo deepin-feedback-cli 生成的压缩包
bluetoothd没起来有可能是驱动的问题
Reply View the author
avatar
泳衡
deepin
2016-09-09 06:22
#16
Reply View the author
avatar
liujianfeng
deepin
2016-09-09 17:32
#17

好奇怪,唤醒之前你的蓝牙设备压根没识别出来,唤醒后又有了
Reply View the author
avatar
泳衡
deepin
2016-09-09 17:42
#18
https://bbs.deepin.org/post/42742
好奇怪,唤醒之前你的蓝牙设备压根没识别出来,唤醒后又有了

恩。就是这个现象,所以刚开机 lsusb ,或 usb-devices 就没有一点有找到蓝牙设备的迹象,我觉得奇怪,wifi都起来了,这蓝牙就跟死了一样,毫无痕迹。我试过在/etc/modules 添加ehci_hcd reset=1 ,开机的时候reset ehci_hcd ,结果还是一样。我都不知知道哪里出问题了。我现在在想有没有可以断电或reset或重新扫面加载  MINI pci 的命令或方法 来重启 PCI ,看看这样设备是不是就可以起来了。
Reply View the author
avatar
liujianfeng
deepin
2016-09-09 17:51
#19
https://bbs.deepin.org/post/42742
恩。就是这个现象,所以刚开机 lsusb ,或 usb-devices 就没有一点有找到蓝牙设备的迹象,我觉得奇怪,wi ...

拆机看看是不是没插好吧,,,,我觉得还是硬件问题的可能性大
Reply View the author
avatar
liujianfeng
deepin
2016-09-09 17:59
#20
https://bbs.deepin.org/post/42742
拆机看看是不是没插好吧,,,,我觉得还是硬件问题的可能性大

从日志来看,是resume完成过后,通过hub的hotplug(不知道是不是这个机制,反正直接相连的hub会知道有哪些设备,哪些走了哪些新加的)通知hci,然后才是hci去从endpoint 0上读些信息来决定加载什么驱动,我觉得是要么没插好,要么usb1(是个ehci设备)连的hub有问题
Reply View the author
1 / 2
To page