Jetson & 머신러닝

ubuntu 18.04 LTS Bluetooth 인식 해결 방법

아크리엑터 2021. 1. 16. 23:06
반응형

NVIDIA XAVIER를 사용하려는데, 블루투스 키보드가 잘 안 붙는다.

해결 방법을 아래에 간략히 요약한다.

 

첫번째로, 현재의 bluez 버전을 확인하자.

아래의 # 이후의 라인에 있는 명령어를 입력한다.( dpkg --status bluez | grep '^Version:' ) 그 실행결과는 다음과 같다. 명령어를 실행한 이 시스템의 버전정보는 5.48로 나온다.

 

# dpkg --status bluez | grep '^Version:'

Version: 5.48-0ubuntu3.4

 

 

두번째로는 블루투스 모듈을 새버전(2021년 1월 15일 기준으로 5.50)으로 업데이트 하기 위해 저장소를 추가한다.

$ sudo add-apt-repository ppa:bluetooth/bluez
[sudo] password for Xavier: 
 Pre-release experimental builds of BlueZ, destined for future inclusion in Ubuntu.

The source code for this PPA is kept in git:
  lp:~bluetooth/bluez:ppa-cosmic
or:
  https://git.launchpad.net/~bluetooth/bluez?h=ppa-cosmic
 More info: https://launchpad.net/~bluetooth/+archive/ubuntu/bluez
Press [ENTER] to continue or Ctrl-c to cancel adding it.

Hit:1 https://repo.download.nvidia.com/jetson/common r32 InRelease             
Hit:2 https://repo.download.nvidia.com/jetson/t194 r32 InRelease               
Get:3 http://ppa.launchpad.net/bluetooth/bluez/ubuntu bionic InRelease [15.4 kB]
Hit:4 http://ports.ubuntu.com/ubuntu-ports bionic InRelease                    
Get:5 http://ports.ubuntu.com/ubuntu-ports bionic-updates InRelease [88.7 kB]  
Get:6 http://ports.ubuntu.com/ubuntu-ports bionic-backports InRelease [74.6 kB]
Get:7 http://ports.ubuntu.com/ubuntu-ports bionic-security InRelease [88.7 kB] 
Get:8 http://ppa.launchpad.net/bluetooth/bluez/ubuntu bionic/main arm64 Packages [512 B]
Get:9 http://ports.ubuntu.com/ubuntu-ports bionic-updates/main arm64 DEP-11 Metadata [290 kB]
Get:10 http://ppa.launchpad.net/bluetooth/bluez/ubuntu bionic/main Translation-en [1,076 B]
Get:11 http://ports.ubuntu.com/ubuntu-ports bionic-updates/universe arm64 DEP-11 Metadata [283 kB]
Get:12 http://ports.ubuntu.com/ubuntu-ports bionic-backports/universe arm64 DEP-11 Metadata [9,288 B]
Get:13 http://ports.ubuntu.com/ubuntu-ports bionic-security/main arm64 DEP-11 Metadata [42.8 kB]
Get:14 http://ports.ubuntu.com/ubuntu-ports bionic-security/universe arm64 DEP-11 Metadata [54.6 kB]
Fetched 948 kB in 7s (142 kB/s)                                                
Reading package lists... Done

 

세번째로는 패키지를 업그레이드 해보자. 다음의 명령 2개를 실행한다.

$ sudo apt-get update
$ sudo apt-get upgrade

 

위 명령어를 실행한 결과는 다음과 같다.

$ sudo apt-get update

Hit:1 https://repo.download.nvidia.com/jetson/common r32 InRelease
Hit:2 https://repo.download.nvidia.com/jetson/t194 r32 InRelease               
Hit:3 http://ports.ubuntu.com/ubuntu-ports bionic InRelease                    
Hit:4 http://ppa.launchpad.net/bluetooth/bluez/ubuntu bionic InRelease         
Hit:5 http://ports.ubuntu.com/ubuntu-ports bionic-updates InRelease      
Hit:6 http://ports.ubuntu.com/ubuntu-ports bionic-backports InRelease
Hit:7 http://ports.ubuntu.com/ubuntu-ports bionic-security InRelease
Reading package lists... Done

 

$ sudo apt-get upgrade

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  gnome-calculator libnautilus-extension1a nautilus nautilus-data
  nvidia-l4t-jetson-io
5 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 1,120 kB of archives.
After this operation, 28.7 kB of additional disk space will be used.
Do you want to continue? [Y/n] 
Get:1 https://repo.download.nvidia.com/jetson/t194 r32/main arm64 nvidia-l4t-jetson-io arm64 32.3.1-20200115121627 [16.3 kB]
Get:2 http://ports.ubuntu.com/ubuntu-ports bionic-updates/main arm64 gnome-calculator arm64 1:3.28.2-1~ubuntu18.04.3 [352 kB]
Get:3 http://ports.ubuntu.com/ubuntu-ports bionic-updates/main arm64 nautilus arm64 1:3.26.4-0~ubuntu18.04.5 [670 kB]
Get:4 http://ports.ubuntu.com/ubuntu-ports bionic-updates/main arm64 nautilus-data all 1:3.26.4-0~ubuntu18.04.5 [68.9 kB]
Get:5 http://ports.ubuntu.com/ubuntu-ports bionic-updates/main arm64 libnautilus-extension1a arm64 1:3.26.4-0~ubuntu18.04.5 [13.2 kB]
Fetched 1,120 kB in 4s (263 kB/s)             
debconf: delaying package configuration, since apt-utils is not installed
(Reading database ... 120946 files and directories currently installed.)
Preparing to unpack .../nvidia-l4t-jetson-io_32.3.1-20200115121627_arm64.deb ...
Unpacking nvidia-l4t-jetson-io (32.3.1-20200115121627) over (32.3.1-20191216133751) ...
Preparing to unpack .../gnome-calculator_1%3a3.28.2-1~ubuntu18.04.3_arm64.deb ...
Unpacking gnome-calculator (1:3.28.2-1~ubuntu18.04.3) over (1:3.28.2-1~ubuntu18.04.1) ...
Preparing to unpack .../nautilus_1%3a3.26.4-0~ubuntu18.04.5_arm64.deb ...
Unpacking nautilus (1:3.26.4-0~ubuntu18.04.5) over (1:3.26.4-0~ubuntu18.04.4) ...
Preparing to unpack .../nautilus-data_1%3a3.26.4-0~ubuntu18.04.5_all.deb ...
Unpacking nautilus-data (1:3.26.4-0~ubuntu18.04.5) over (1:3.26.4-0~ubuntu18.04.4) ...
Preparing to unpack .../libnautilus-extension1a_1%3a3.26.4-0~ubuntu18.04.5_arm64.deb ...
Unpacking libnautilus-extension1a:arm64 (1:3.26.4-0~ubuntu18.04.5) over (1:3.26.4-0~ubuntu18.04.4) ...
Setting up nautilus-data (1:3.26.4-0~ubuntu18.04.5) ...
Setting up gnome-calculator (1:3.28.2-1~ubuntu18.04.3) ...
Setting up libnautilus-extension1a:arm64 (1:3.26.4-0~ubuntu18.04.5) ...
Setting up nvidia-l4t-jetson-io (32.3.1-20200115121627) ...
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.2) ...
Processing triggers for libglib2.0-0:arm64 (2.56.4-0ubuntu0.18.04.6) ...
Processing triggers for bamfdaemon (0.5.3+18.04.20180207.2-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for libc-bin (2.27-3ubuntu1.4) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Setting up nautilus (1:3.26.4-0~ubuntu18.04.5) ...



마지막으로, 업그레이드가 되었는지 확인해보자. 

$ dpkg --status bluez | grep '^Version:'

Version: 5.48-0ubuntu3.4

흑... 그런데, 버전이 바뀌어 있지 않다... T.T   

반응형