[求助] ThinkPad T580 藍牙無法啟動? [論壇 - Ubuntu硬體支援]


正在瀏覽:   1 名遊客


 到底部   前一個主題   下一個主題  [無發表權] 請登錄或者註冊



[求助] ThinkPad T580 藍牙無法啟動?
會員一級
註冊日期:
2018/7/27 23:56
所屬群組:
已註冊使用者
等級: 1
HP : 0 / 0
MP : 0 / 0
EXP: 0
離線
我的Ubuntu 是使用14.04 LTS版本,之前為了解決WIFI不能用的情況有更新過內核
vodka@vodka-ThinkPad-T580:~$ uname -sr
Linux 4.6.4-040604-lowlatency

然後安裝了iwlwifi-8265-ucode-22.361476.0.tgz驅動包,現在WFI已經正常運作。
接下來還剩下bluetooth的問題,在我的「系統設定值」.「藍牙」裡面看到顯示藍牙以停用。

在網路上找了一些文章,查看了rfkill list 這個指令
vodka@vodka-ThinkPad-T580:~$ sudo rfkill list
0: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
1: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
不過只要重新開機就會恢復成
vodka@vodka-ThinkPad-T580:~$ rfkill list
0: hci0: Bluetooth
Soft blocked: yes
Hard blocked: no
1: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
不知道怎樣把他固定住?

也有人說要按Fn+藍牙按鍵(我的是F10),可是都沒什麼反應。

請問這個問題有什麼解決方式嗎?
如果需要提供什麼訊息,也請留言告訴我,我會盡快貼上來。

先謝過大家的幫忙!

2018/7/28 14:00
應用擴展 工具箱
回覆: [求助] ThinkPad T580 藍牙無法啟動?
會員五級
註冊日期:
2012/4/22 10:50
所屬群組:
已註冊使用者
等級: 37
HP : 0 / 901
MP : 671 / 29245
EXP: 6
離線
伏特家 寫到:
我的Ubuntu 是使用14.04 LTS版本,之前為了解決WIFI不能用的情況有更新過內核
vodka@vodka-ThinkPad-T580:~$ uname -sr
Linux 4.6.4-040604-lowlatency

然後安裝了iwlwifi-8265-ucode-22.361476.0.tgz驅動包,現在WFI已經正常運作。
接下來還剩下bluetooth的問題,在我的「系統設定值」.「藍牙」裡面看到顯示藍牙以停用。

在網路上找了一些文章,查看了rfkill list 這個指令
vodka@vodka-ThinkPad-T580:~$ sudo rfkill list
0: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
1: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
不過只要重新開機就會恢復成
vodka@vodka-ThinkPad-T580:~$ rfkill list
0: hci0: Bluetooth
Soft blocked: yes
Hard blocked: no
1: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
不知道怎樣把他固定住?

也有人說要按Fn+藍牙按鍵(我的是F10),可是都沒什麼反應。

請問這個問題有什麼解決方式嗎?
如果需要提供什麼訊息,也請留言告訴我,我會盡快貼上來。

先謝過大家的幫忙!


我對您提到的議題,以前沒去探索過,所以並不清楚怎麼解決您遇到的問題,

剛剛根據您提供的關鍵字,做了點探索,以下只是簡單紀錄目前探索到的,

不見得能解決您的問題,不過可以提供您參考,也許能引發您新的靈感,找到一個探索的起點。

================================================================================

執行「$ man rfkill」,來閱讀相關的說明。

我的環境是「Ubuntu 18.04」,在我的環境執行


$ rfkill --version



或是執行


$ rfkill -V



顯示


rfkill from util-linux 2.31.1



================================================================================

執行


$ rfkill --help



或是執行


$ rfkill -h



或是執行


$ rfkill help



顯示


Usage:
 rfkill [options] command [identifier ...]

Tool for enabling and disabling wireless devices.

Options:
 -J, --json             use JSON output format
 -n, --noheadings       don't print headings
 -o, --output <list>    define which output columns to use
 -r, --raw              use the raw output format

 -h, --help             display this help
 -V, --version          display version

Available output columns:
 DEVICE      kernel device name
 ID          device identifier value
 TYPE        device type name that can be used as identifier
 TYPE-DESC   device type description
 SOFT        status of software block
 HARD        status of hardware block

Commands:
 help
 event
 list   [identifier]
 block   identifier
 unblock identifier

For more details see rfkill(8).



================================================================================

執行


$ rfkill



顯示


ID TYPE DEVICE      SOFT      HARD
 0 wlan phy0   unblocked unblocked



執行


$ rfkill -o ID



顯示


ID
 0



執行


$ rfkill -o TYPE



顯示


TYPE
wlan



================================================================================

執行


$ rfkill list



顯示


0: phy0: Wireless LAN
    Soft blocked: no
    Hard blocked: no




================================================================================

執行


rfkill block 0



上面指令執行完畢後,接著執行下面指令


$ rfkill list



顯示


0: phy0: Wireless LAN
    Soft blocked: yes
    Hard blocked: no



================================================================================

執行


rfkill unblock 0



上面指令執行完畢後,接著執行下面指令


$ rfkill list



顯示


0: phy0: Wireless LAN
    Soft blocked: no
    Hard blocked: no



================================================================================

套用上面的模式,一些可以執行的範例


$ rfkill block all
$ rfkill list
$ rfkill unblock all
$ rfkill list





$ rfkill block wlan
$ rfkill list
$ rfkill unblock wlan
$ rfkill list



更多的「TYPE」,可以參考「man rfkill」裡「EXAMPLES」的最後一個範例。

================================================================================

先開啟一個「Terminal - 1」,執行下面指令


$ rfkill event



顯示


2018-07-29 10:11:55,367271+0800: idx 0 type 1 op 0 soft 0 hard 0



再開啟一個「Terminal - 2」,執行下面指令


$ rfkill block all



在剛剛「Terminal - 1」,就會有新的事件顯示,顯示如下


2018-07-29 10:11:55,367271+0800: idx 0 type 1 op 0 soft 0 hard 0
2018-07-29 10:12:09,128180+0800: idx 0 type 1 op 2 soft 1 hard 0



在「Terminal - 2」,執行下面指令


$ rfkill unblock all



在剛剛「Terminal - 1」,就會有新的事件顯示,顯示如下


2018-07-29 10:11:55,367271+0800: idx 0 type 1 op 0 soft 0 hard 0
2018-07-29 10:12:09,128180+0800: idx 0 type 1 op 2 soft 1 hard 0
2018-07-29 10:15:47,847295+0800: idx 0 type 1 op 2 soft 0 hard 0




================================================================================

在「man rfkill」裡的「SEE ALSO」,可以找到下面的連結

* https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/rfkill.txt

================================================================================

在「Google」查詢「rfkill arch wiki」,可以找到下面連結

* https://wiki.archlinux.org/index.php/Wireless_network_configuration#Rfkill_caveat
* https://wiki.archlinux.org/index.php/Wireless_network_configuration_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)#Rfkill_.E8.AD.A6.E5.91.8A
* https://askubuntu.com/questions/62166/siocsifflags-operation-not-possible-due-to-rf-kill
* https://wiki.archlinux.org/index.php/NetworkManager#Switching_off_WLAN_on_laptops
* https://wiki.archlinux.org/index.php/NetworkManager_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)#.E5.9C.A8.E7.AC.94.E8.AE.B0.E6.9C.AC.E4.B8.8A.E5.85.B3.E9.97.ADWLAN

================================================================================

在本站也可以查詢「rfkill」。

================================================================================


以上暫記,接著下面套件探索紀錄...

2018/7/29 8:48
應用擴展 工具箱
回覆: [求助] ThinkPad T580 藍牙無法啟動?
會員五級
註冊日期:
2012/4/22 10:50
所屬群組:
已註冊使用者
等級: 37
HP : 0 / 901
MP : 671 / 29245
EXP: 6
離線
延續「#2」,

以下只是套件探索紀錄

================================================================================

執行


$ whereis rfkill



顯示


rfkill: /usr/sbin/rfkill /usr/share/man/man8/rfkill.8.gz



執行


$ dpkg -S /usr/sbin/rfkill



顯示


rfkill: /usr/sbin/rfkill



表示「/usr/sbin/rfkill」這個檔案,是來自於「rfkill」這個套件。

================================================================================

執行


$ which rfkill



顯示


/usr/sbin/rfkill



搭配「dpkg -S」,就可以組成下面一行指令


dpkg -S $(which rfkill)



或是


dpkg -S `which rfkill`



會顯示


rfkill: /usr/sbin/rfkill



表示「/usr/sbin/rfkill」這個檔案,是來自於「rfkill」這個套件。

================================================================================

執行下面指令,來了解「rfkill」這個套件,安裝哪些檔案在系統上


$ dpkg -L rfkill



顯示


/.
/usr
/usr/sbin
/usr/sbin/rfkill
/usr/share
/usr/share/doc
/usr/share/doc/rfkill
/usr/share/doc/rfkill/copyright
/usr/share/man
/usr/share/man/man8
/usr/share/man/man8/rfkill.8.gz
/usr/share/doc/rfkill/changelog.Debian.gz



================================================================================

執行


$ apt-cache show rfkill



顯示


Package: rfkill
Architecture: amd64
Version: 2.31.1-0.4ubuntu3.1
Multi-Arch: foreign
Priority: optional
Section: utils
Source: util-linux
Origin: Ubuntu
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: LaMont Jones <lamont@debian.org>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 139
Depends: libc6 (>= 2.14), libsmartcols1 (>= 2.27~rc1)
Filename: pool/main/u/util-linux/rfkill_2.31.1-0.4ubuntu3.1_amd64.deb
Size: 24828
MD5sum: 1ca0f66b3b2f3c9b7c117372443298da
SHA1: c2362a29c72bfccc79894b129941b7c45e5ad24f
SHA256: b83847505150765a57fc1ec24b88a9c8281f4f388bf280cfe3571d552031f83c
Description-en: tool for enabling and disabling wireless devices
rfkill is a simple tool for accessing the Linux rfkill device interface,
which is used to enable and disable wireless networking devices, typically
WLAN, Bluetooth and mobile broadband.
.
rfkill uses /dev/rfkill, which is present in Linux kernel 2.6.31 and later.
Description-md5: 48e9b79e886753d4ba57709f7daac2b1
Task: ubuntu-desktop, kubuntu-desktop, xubuntu-core, xubuntu-desktop, lubuntu-desktop-share, lubuntu-gtk-desktop, lubuntu-desktop, lubuntu-qt-desktop, ubuntustudio-desktop-core, ubuntustudio-desktop, ubuntukylin-desktop, ubuntu-mate-core, ubuntu-mate-desktop, ubuntu-budgie-desktop
Supported: 5y



================================================================================

執行


$ apt-cache showsrc rfkill



顯示


Package: util-linux
Format: 3.0 (quilt)
Binary: util-linux, util-linux-locales, mount, bsdutils, fdisk, fdisk-udeb, libblkid1, libblkid1-udeb, libblkid-dev, libfdisk1, libfdisk1-udeb, libfdisk-dev, libmount1, libmount1-udeb, libmount-dev, libsmartcols1, libsmartcols1-udeb, libsmartcols-dev, libuuid1, uuid-runtime, libuuid1-udeb, uuid-dev, util-linux-udeb, setpriv, rfkill
Architecture: any all
Version: 2.31.1-0.4ubuntu3
Priority: required
Section: utils
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: LaMont Jones <lamont@debian.org>
Uploaders: Adam Conrad <adconrad@0c3.net>
Standards-Version: 4.1.2
Build-Depends: bc <!stage1 !nocheck>, debhelper (>= 11), dh-exec (>= 0.13), dpkg-dev (>= 1.17.14), gettext, libcap-ng-dev [linux-any] <!stage1>, libncurses5-dev, libncursesw5-dev, libpam0g-dev <!stage1>, libselinux1-dev (>= 2.6-3~) [linux-any], libsystemd-dev [linux-any] <!stage1>, libtool, libudev-dev [linux-any] <!stage1>, netbase <!stage1 !nocheck>, pkg-config, po-debconf, socat <!stage1 !nocheck>, systemd [linux-any] <!stage1>, bison, zlib1g-dev, libaudit-dev
Testsuite: autopkgtest
Vcs-Browser: https://salsa.debian.org/debian/util-linux
Vcs-Git: https://salsa.debian.org/debian/util-linux.git
Directory: pool/main/u/util-linux
Package-List:
bsdutils deb utils required arch=any profile=!stage1 essential=yes
fdisk deb utils important arch=any profile=!stage1
fdisk-udeb udeb debian-installer optional arch=hurd-any,linux-any profile=!stage1
libblkid-dev deb libdevel optional arch=any
libblkid1 deb libs optional arch=any
libblkid1-udeb udeb debian-installer optional arch=any
libfdisk-dev deb libdevel optional arch=any
libfdisk1 deb libs optional arch=any
libfdisk1-udeb udeb debian-installer optional arch=any
libmount-dev deb libdevel optional arch=linux-any
libmount1 deb libs optional arch=any
libmount1-udeb udeb debian-installer optional arch=linux-any
libsmartcols-dev deb libdevel optional arch=any
libsmartcols1 deb libs optional arch=any
libsmartcols1-udeb udeb debian-installer optional arch=any
libuuid1 deb libs optional arch=any
libuuid1-udeb udeb debian-installer optional arch=any
mount deb admin required arch=linux-any profile=!stage1
rfkill deb utils important arch=any profile=!stage1
setpriv deb admin optional arch=linux-any profile=!stage1
util-linux deb utils required arch=any profile=!stage1 essential=yes
util-linux-locales deb localization optional arch=all profile=!stage1
util-linux-udeb udeb debian-installer optional arch=any profile=!stage1
uuid-dev deb libdevel optional arch=any
uuid-runtime deb utils optional arch=any profile=!stage1
Files:
0cd3f54663400b7cecc7865414896f20 4148 util-linux_2.31.1-0.4ubuntu3.dsc
d1528da79acc16326d037e3e8b51e7ae 4514032 util-linux_2.31.1.orig.tar.xz
91faeadad960ef09b79ef5b6c60c2dd3 96680 util-linux_2.31.1-0.4ubuntu3.debian.tar.xz
Checksums-Sha1:
533288f41b400289e4816cc25a3bd084045b507a 4148 util-linux_2.31.1-0.4ubuntu3.dsc
ba5016ed9ac2240b9ca33c5e130566340813a762 4514032 util-linux_2.31.1.orig.tar.xz
1638e2097805732dacd6e97a14f3ccb0015320e8 96680 util-linux_2.31.1-0.4ubuntu3.debian.tar.xz
Checksums-Sha256:
283ffbd6d3d01da482b95aec5fe36c66caad3d2cd98e79bc902986f286116ae3 4148 util-linux_2.31.1-0.4ubuntu3.dsc
cfd5789570e9ff75e079471faeca1511ade1607f650523a6ad25d1e26516ae4e 4514032 util-linux_2.31.1.orig.tar.xz
d6d2c6ebb7a049a760b202aaf52d02fb1dbf6d8e2333d95689de6b5951c41761 96680 util-linux_2.31.1-0.4ubuntu3.debian.tar.xz
Testsuite-Triggers: bash, bc, bsdmainutils, dpkg, grep



執行


$ apt-cache showsrc rfkill | grep '^Package:'



顯示


Package: util-linux



表示「rfkill」這個「Binary Package」是來自於「Source Package: util-linux


執行


$ apt-cache showsrc rfkill | grep '^Binary:' -B 2



顯示


Package: util-linux
Format: 3.0 (quilt)
Binary: util-linux, util-linux-locales, mount, bsdutils, fdisk, fdisk-udeb, libblkid1, libblkid1-udeb, libblkid-dev, libfdisk1, libfdisk1-udeb, libfdisk-dev, libmount1, libmount1-udeb, libmount-dev, libsmartcols1, libsmartcols1-udeb, libsmartcols-dev, libuuid1, uuid-runtime, libuuid1-udeb, uuid-dev, util-linux-udeb, setpriv, rfkill



可以了解到「Source Package: util-linux」,拆分成哪些「Binary Package」。

執行


$ apt-cache showsrc rfkill | grep '^Binary:' | awk -F ': ' '{print $2}' | sed 's/, /\n/g' | sort -u



顯示


bsdutils
fdisk
fdisk-udeb
libblkid1
libblkid1-udeb
libblkid-dev
libfdisk1
libfdisk1-udeb
libfdisk-dev
libmount1
libmount1-udeb
libmount-dev
libsmartcols1
libsmartcols1-udeb
libsmartcols-dev
libuuid1
libuuid1-udeb
mount
rfkill
setpriv
util-linux
util-linux-locales
util-linux-udeb
uuid-dev
uuid-runtime



或是執行下面指令,產生「BBCode」的列表。
這個技巧,可以參考之前寫的「#56 回覆: Ubuntu 17.10 推出」。


$ apt-cache showsrc rfkill | grep '^Binary:' | awk -F ': ' '{print $2}' | sed 's/, /\n/g' | sort -u | awk '{printf "* %s\n", $1, $1}'



* bsdutils
* fdisk
* fdisk-udeb
* libblkid1
* libblkid1-udeb
* libblkid-dev
* libfdisk1
* libfdisk1-udeb
* libfdisk-dev
* libmount1
* libmount1-udeb
* libmount-dev
* libsmartcols1
* libsmartcols1-udeb
* libsmartcols-dev
* libuuid1
* libuuid1-udeb
* mount
* rfkill
* setpriv
* util-linux
* util-linux-locales
* util-linux-udeb
* uuid-dev
* uuid-runtime


================================================================================

從「man rfkill」那,

在「SEE ALSO」,看到一個關鍵字「systemd-rfkill(8)」

所以可以執行「man systemd-rfkill」來閱讀相關的說明。

================================================================================

執行


$ dpkg -S systemd-rfkill | sort



顯示


systemd: /lib/systemd/systemd-rfkill
systemd: /lib/systemd/system/systemd-rfkill.service
systemd: /lib/systemd/system/systemd-rfkill.socket
systemd: /usr/share/man/man8/systemd-rfkill.8.gz
systemd: /usr/share/man/man8/systemd-rfkill.service.8.gz
systemd: /usr/share/man/man8/systemd-rfkill.socket.8.gz



執行


$ dpkg -S systemd-rfkill | grep man | sort



顯示


systemd: /usr/share/man/man8/systemd-rfkill.8.gz
systemd: /usr/share/man/man8/systemd-rfkill.service.8.gz
systemd: /usr/share/man/man8/systemd-rfkill.socket.8.gz



* $ man systemd-rfkill
* $ man systemd-rfkill.service
* $ man systemd-rfkill.socket


================================================================================

或是從另一個方向來探索起


$ whereis systemd-rfkill



顯示


systemd-rfkill: /usr/share/man/man8/systemd-rfkill.8.gz



執行


$ dpkg -S /usr/share/man/man8/systemd-rfkill.8.gz



顯示


systemd: /usr/share/man/man8/systemd-rfkill.8.gz



表示「/usr/share/man/man8/systemd-rfkill.8.gz」來自於「systemd」這個套件。

執行


$ dpkg -L systemd | grep rfkill



顯示


/lib/systemd/systemd-rfkill
/lib/systemd/system/systemd-rfkill.service
/lib/systemd/system/systemd-rfkill.socket
/usr/share/man/man8/systemd-rfkill.8.gz
/usr/share/man/man8/systemd-rfkill.service.8.gz
/usr/share/man/man8/systemd-rfkill.socket.8.gz



================================================================================

執行


$ cat /lib/systemd/system/systemd-rfkill.service



顯示


#  SPDX-License-Identifier: LGPL-2.1+
#
#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation; either version 2.1 of the License, or
#  (at your option) any later version.

[Unit]
Description=Load/Save RF Kill Switch Status
Documentation=man:systemd-rfkill.service(8)
DefaultDependencies=no
BindsTo=sys-devices-virtual-misc-rfkill.device
Conflicts=shutdown.target
After=sys-devices-virtual-misc-rfkill.device systemd-remount-fs.service
Before=shutdown.target

[Service]
Type=notify
ExecStart=/lib/systemd/systemd-rfkill
TimeoutSec=30s
StateDirectory=systemd/rfkill



================================================================================

執行


$ cat /lib/systemd/system/systemd-rfkill.socket



顯示


#  SPDX-License-Identifier: LGPL-2.1+
#
#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation; either version 2.1 of the License, or
#  (at your option) any later version.

[Unit]
Description=Load/Save RF Kill Switch Status /dev/rfkill Watch
Documentation=man:systemd-rfkill.socket(8)
DefaultDependencies=no
BindsTo=sys-devices-virtual-misc-rfkill.device
After=sys-devices-virtual-misc-rfkill.device
Conflicts=shutdown.target
Before=shutdown.target

[Socket]
ListenSpecial=/dev/rfkill
Writable=yes




================================================================================

以前有紀錄一些參考連結在「[索引] 開機流程」。

================================================================================

以上提供參考,報告完畢


2018/7/29 9:29
應用擴展 工具箱


 [無發表權] 請登錄或者註冊


可以查看帖子.
不可發帖.
不可回覆.
不可編輯自己的帖子.
不可刪除自己的帖子.
不可發起投票調查.
不可在投票調查中投票.
不可上傳附件.
不可不經審核直接發帖.