Thinkpad L15 (AMD)에 리눅스 설치기 : 커널은5.8 로

최근 Lenovo Thinkpad L15 (AMD, 4750U)를 구매했다. 기존에 윈도우 10을 설치해서 사용하고 있었으나, 개발에 리눅스가 필요해서 설치를 해 보았다. 설치한 배포판은 하모니카 ME (우분투 기반의 민트 기반의 한국형 배포판, https://hamonikr.org/menuDownload_RTM) 를 사용하였다.

커널 버전

리눅스를 설치한 직후에는 여러 문제가 발생했었다. VGA 드라이버가 안잡히는것 부터 해서 화면 밝기 조절 불가 문제, CPU 제어 불가, 그 외 여러 문제가 있었다. 필요한 패키지를 모두 설치하고 업데이트 해 보아도 문제는 똑같았다. 2시간 정도 삽질을 해 보다가 커널이 하드웨어를 못받는건가.. 해서 커널 업데이트를 살펴 보았다.

apt-get을 통해 자동으로 설치할 수 있는 커널은 최대 5.4버전이었다. 우선 저거라도 설치해 보자! 하고 설치를 해 보았으나, 문제가 해결되지 않았다. 결국 kernel.org 에 까지 들어가게 되었다. 각 버전에 대한 검색을 하던 중 5.8버전에 AMD 르누아르 CPU용 코드가 적용되어 있다는것을 발견 했다. (https://www.omgubuntu.co.uk/2020/08/linux-5-8-kernel-features)

아직 공식 APT 저장소에는 5.8 커널이 올라오지 않았다. 그래서 우분투 커널팀에서 빌드한 커널을 다운받아서 설치하였다. 공식 배포용 빌드가 아니어서 그런지 Secure Boot 기능은 사용할 수 없었다. 바이오스에서 Secure Boot 기능을 끄니까 정상적으로 부팅이 가능하더라.

5.8 커널을 올리니까 드디어 모든것들이 정상적으로 동작하기 시작했다. VGA 드라이버도 정상적으로 잡히고, 그 외 부자연스러웠던 것 들도 제대로 작동하기 시작했다. 이전 커널에서 amdgpu 드라이버가 설치되어 있어도 커널이 못받아서 제대로 작동 안하던 문제도 해결 되었다.

$ lspci -k

00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1630
	Subsystem: Lenovo Device 507e
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Device 1631
	Subsystem: Lenovo Device 507e
00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1632
00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1632
00:02.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 1634
	Kernel driver in use: pcieport
00:02.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 1634
	Kernel driver in use: pcieport
00:02.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 1634
	Kernel driver in use: pcieport
00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1632
00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 1635
	Kernel driver in use: pcieport
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 51)
	Subsystem: Lenovo FCH SMBus Controller
	Kernel driver in use: piix4_smbus
	Kernel modules: i2c_piix4, sp5100_tco
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
	Subsystem: Lenovo FCH LPC Bridge
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1448
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1449
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 144a
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 144b
	Kernel driver in use: k10temp
	Kernel modules: k10temp
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 144c
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 144d
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 144e
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 144f
01:00.0 Non-Volatile memory controller: Sandisk Corp Device 5006
	Subsystem: Sandisk Corp Device 5006
	Kernel driver in use: nvme
	Kernel modules: nvme
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0e)
	Subsystem: Lenovo RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
	Kernel driver in use: r8169
	Kernel modules: r8169
02:00.1 Serial controller: Realtek Semiconductor Co., Ltd. Device 816a (rev 0e)
	Subsystem: Lenovo Device 507e
02:00.2 Serial controller: Realtek Semiconductor Co., Ltd. Device 816b (rev 0e)
	Subsystem: Lenovo Device 507e
02:00.3 IPMI Interface: Realtek Semiconductor Co., Ltd. Device 816c (rev 0e)
	Subsystem: Lenovo Device 507e
	Kernel modules: ipmi_si
02:00.4 USB controller: Realtek Semiconductor Co., Ltd. Device 816d (rev 0e)
	Subsystem: Lenovo Device 507e
	Kernel driver in use: ehci-pci
03:00.0 Network controller: Intel Corporation Device 2723 (rev 1a)
	Subsystem: Intel Corporation Device 0080
	Kernel driver in use: iwlwifi
	Kernel modules: iwlwifi
06:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Device 1636 (rev d1)
	Subsystem: Lenovo Device 507e
	Kernel driver in use: amdgpu
	Kernel modules: amdgpu
06:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Device 1637
	Subsystem: Lenovo Device 507e
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel
06:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Device 15df
	Subsystem: Lenovo Device 507e
	Kernel driver in use: ccp
	Kernel modules: ccp
06:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Device 1639
	Subsystem: Lenovo Device 507e
	Kernel driver in use: xhci_hcd
	Kernel modules: xhci_pci
06:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Device 1639
	Subsystem: Lenovo Device 507e
	Kernel driver in use: xhci_hcd
	Kernel modules: xhci_pci
06:00.5 Multimedia controller: Advanced Micro Devices, Inc. [AMD] Device 15e2 (rev 01)
	Subsystem: Lenovo Device 507e
	Kernel driver in use: snd_rn_pci_acp3x
	Kernel modules: snd_pci_acp3x, snd_rn_pci_acp3x
06:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Device 15e3
	Subsystem: Lenovo Device 507e
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel

중요한 부분은 VGA compatible 장치이다. 처음 OS를 설치했을때는 kernel modules 자체도 안잡혔었다. 이후 필요한 드라이버 패키지를 설치하니까 kernel modules는 잡히더라. 그래도 드라이버를 실제로 사용은 못하던 상태였었다.

$ xrandr

Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 16384 x 16384
eDP connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 344mm x 194mm
   1920x1080     60.02*+  48.02  
   1680x1050     60.02  
   1280x1024     60.02  
   1440x900      60.02  
   1280x800      60.02  
   1280x720      60.02  
   1024x768      60.02  
   800x600       60.02  
   640x480       60.02  
HDMI-A-0 disconnected (normal left inverted right x axis y axis)
DisplayPort-0 disconnected (normal left inverted right x axis y axis)
DisplayPort-1 disconnected (normal left inverted right x axis y axis)

기존에는 해상도도 640×480으로 고정된 상태였었다. (강제로 모드 추가해서 1920×1080을 사용하던 상태였음) 커널 업데이트 이후로는 지원하는 해상도가 정상적으로 잡히기 시작했고 HDMI과 DP같은 포트도 정상적으로 인식하기 시작했다.

5.8 커널로 안올리면 드라이버가 작동이 안되더라. 5.8로 올리니까 비로소 제대로 작동하더라. 혹시 도움이 될 수 있도록 내가 amdgpu 드라이버? 관련해서 설치한 패키지들을 첨부한다.

한편, Ubuntu 계열용 커널은 https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.8.9/ 에서 다운받으면 된다. https://kernel.ubuntu.com/~kernel-ppa/mainline 에서 가장 최신 버전을 확인하여 다운받는것도 좋을것 같다. modules, image, headers(lowlatency와 generic 공통), headers(특정버전) 이렇게 4가지를 다운받고 dpkg -i 로 설치하면 된다.

그나저나..

나도 예판때 구매 신청해서 메모리 8GB 무상 업그레이드를 받았다. 일부 유튜버들은 8GB + 8GB 대신에 16GB 하나를 받았다던데, 나는 8GB + 8GB로 받았다. 어짜피 나로서는 16GB면 충분하고, 내장 그래픽 사용에는 듀얼 램 체널이 상당한 영향을 미치기에 만족만족 만만족.

그나저나, 트랙패드 위에 있는 클릭, 휠, 오른쪽 클릭 버튼이 뭔가 잘 눌려지지가 않는다. 아예 고장은 아닌것 같은데… 뭔가… 버튼을 누른 상태에서 조금 힘을 빼면 바로 클릭이 풀린다. 뭔가 불량과 정상 사이를 왔다갔다 하는것 같아서.. 하 여긴 부산인데 강남까지 센터 내방해 봐야하나… 싶다. 부산에서는 기사가 와봤자 판단 못해줄 것 같은데..

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다

댓글을 작성하기 위해 아래의 숫자를 입력해 주세요. *Captcha loading…