LoginSignup
15
17

More than 3 years have passed since last update.

ThinkPad X1 Carbon 2019 (X1C7) に Ubuntu 19.04 を入れてみた

Last updated at Posted at 2019-08-17

Overall Status

  • ThinkPad X1 Carbon 2019年版
    • CPU: Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz
    • Memory: 15973956K/16448268K available
    • Disk model: WDC PC SN720 SDAQNTW-512G-1001
    • Display: 4K UHD
$ fwupdmgr update
No upgrades for UEFI Device Firmware, current is 0.1.5: 0.1.03=older
機能 OK/NG 備考
Shutdown OK
Reboot OK
Hibernation OK 若干設定が必要
Sleep / Suspend OK 若干設定が必要
Battery monitor OK
Screen backlight OK
Keyboard's Hotkeys OK
TrackPoint OK
Touchpad OK BIOS で不使用にしているので使ってない ← 結局 BIOS で ON にして使えてる
LAN OK
Wifi OK
Bluetooth OK
Sound OK 若干設定が必要
Built-in Mic NG Linux Kernel 5.3.0 から使えるようになるらしい
Headphone/Mic OK
Built-in camera OK
Fingerprint Reader NG 頑張ればいけるみたいだけど頑張ってない
WWAN NG Firmware もなく全く動かないらしい
HDMI OK
USB Type-C Hub OK HDMIも問題なく動く

Ubuntu Install

Secure Boot

  • Ubuntu は Secure Boot に対応しているので BIOS での Secure Bootenable のままでも Ubuntu のインストールは可能。
  • 自分は後述するハイバネーションのために disable にしています。

Install

  • 普通にインストールすれば OK です。
  • 自分は事前に gparted で Windows10 のパーティションを縮小し、下記のパーティションを作ってからインストールしました。
    • / ← 64GB
    • /home ← 残り
    • swap ← 20GB (ハイバネーションのため)

各種設定

GRUB2

  • 前回起動した環境を記憶しておき、自動的に再度それを起動するように。
  • Ubuntu と Windows10 の dual boot としたいので。
GRUB_DEFAULT=saved
GRUB_SAVEDEFAULT=true
  • GRUB menu の文字小さすぎを解決。
GRUB_GFXMODE=1024x768x32

CapsLock → Ctrl

XKBOPTIONS="ctrl:nocaps"

homedir の各種directory を英語に

$ LANG=C xdg-user-dirs-gtk-update

Sound

  • 音量ボリュームが 0% or 100% でしか調整できない。
  • 2019年版 (X1C7) から本体内蔵スピーカーが 4つになったのが原因かな?
  • How to fix volume control (ALSA problem)
$ diff -u /usr/share/pulseaudio/alsa-mixer/paths/analog-output.conf.common{.orig,}                                           !255 [0:26:29]
--- analog-output.conf.common.orig      2019-04-16 22:54:26.000000000 +0900
+++ analog-output.conf.common   2019-08-15 00:26:29.210186909 +0900
@@ -131,6 +131,10 @@
 ;                                      # numbering schemes, so we can't hardcode the full jack name in our configuration
 ;                                      # files.

+[Element Master]
+switch = mute
+volume = ignore
+
 [Element PCM]
 switch = mute
 volume = merge
  • あと alsamixerMaster のボリュームを上げないと音が小さめになる。
  • ボリューム設定後は sudo alsactl store してね。

Mic

  • 本体内蔵マイクは Linux Kernel 5.3.0 以降で対応予定の模様。
  • しかし本体のヘッドホン端子にマイク付きイヤホン(いわゆる 4極プラグ)を繋ぐとマイクもちゃんと使えるという…。
  • もちろん Bluetooth HSP で繋いだ場合はマイクちゃんと使えます。

Suspend/Resume

  • BIOS 起動して Config -> Power -> Sleep State - Set to "Linux" と設定してください。
  • Suspend しても USB が原因ですぐに復帰してしまうので、下記の設定が必要。
    • Ubuntu 19.04 では /etc/rc.local は標準ではないので新規に作成して sudo chmod a+x /etc/rc.local してね。
/etc/rc.local
#! /bin/sh

for device in XHC EHC1 EHC2; do
    grep $device /proc/acpi/wakeup | grep enabled > /dev/null && {                                   
        echo Disabling wakeup on $device 
        echo $device > /proc/acpi/wakeup
    }
done

Hibernation

省電力設定

# apt install powertop tlp

ibus-skk

$ diff -u /usr/share/ibus/component/skk.xml{.orig,}
--- /usr/share/ibus/component/skk.xml.orig  2018-09-27 23:09:35.000000000 +0900
+++ /usr/share/ibus/component/skk.xml   2019-08-11 20:02:25.220956617 +0900
@@ -17,7 +17,7 @@
            <license>GPL</license>
            <author>Daiki Ueno &lt;ueno@unixuser.org&gt;</author>
            <icon>/usr/share/ibus-skk/icons/ibus-skk.svg</icon>
-           <layout>jp</layout>
+           <layout>us</layout>
            <longname>SKK</longname>
            <description>SKK Input Method</description>
            <rank>70</rank>
  • skk server は yaskkserv を使用。
    • Google Japanese Input 対応なのが便利。
$ diff -u /etc/default/yaskkserv{.orig,}
--- yaskkserv.orig  2016-11-17 22:22:16.000000000 +0900
+++ yaskkserv   2017-09-06 17:25:47.000000000 +0900
@@ -23,6 +23,7 @@
 #NORMAL_OPTS="${SIMPLE_OPTS}"

 # for HAIRY
+HAIRY_OPTS="${NORMAL_OPTS} --max-connection=32 --google-japanese-input=notfound-input-suggest --google-japanese-input-timeout=1.0 --google-suggest --google-cache=2048"
 #HAIRY_OPTS="${NORMAL_OPTS} --server-completion-midasi-length=2048 --server-completion-midasi-string-size=262144 --server-completion-test=1 --google-japanese-input=disable --google-japanese-input-timeout=2.5"
 # for HAIRY (usage example to enable google japanese input)
 #HAIRY_OPTS="${NORMAL_OPTS} --server-completion-test=1 --google-japanese-input=notfound-input-suggest --google-suggest"
@@ -43,7 +44,11 @@
 ## Dictionaries from skkdic* packages
 # Note: uncomment the dictionary which you want to use and sort their order.

-PKG_DICS="/etc/alternatives/SKK-JISYO \
+PKG_DICS="\
+SKK-JISYO.L \
+SKK-JISYO.jinmei \
+SKK-JISYO.geo \
+SKK-JISYO.station \
 "
 #SKK-JISYO.L \
 #SKK-JISYO.zipcode \

Font

Gnome Extension

Themes

See Also

15
17
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
15
17