ユーザ用ツール

サイト用ツール


サイドバー

最新の10件
一覧
lenovo:yoga-260

Lenovo Thinkpad Yoga 260(20FEA02WJP)

本体&メモリ8GB,BIOS起動確認済のジャンクマシンを入手.FullHDだと思いこんでいたが,HDモデルだった(1366×768)

液晶がくるっと360度回転してタブレットとしても使えるし,トラックポイントもあるモデル.X260と比べると重量は同じで少し薄くなっていてポートが少ない感じ.タブレットモードは案外便利.でも読書には少し重い(1.36kg)

以下は型番が少し違うが,真ん中のモデルが近そう.

ACアダプタはAmazon.jpにて互換品を入手.\1,524-

プラグ部分が何種類もあるタイプも良さそうだったけど他にあまり持っていないし,値段も倍ほどになりそうだったのでこれを.45W以上のUSB PDの電源やケーブルがあるならトリガーケーブルを利用するのもありかもしれない.

この場合USB PD 45W以上のモバイルバッテリーでも利用できるはず.

届いた本体は裏蓋はネジ塗装が剥げていたがそれ以外は見た目はきれいでUSBコネクタも硬く使い込まれていない感じ.裏蓋はネジ止めされているが爪はハマっていない状態.

電源を接続しても何も反応がない.電源アダプタをテスターで確認すると19Vほど出ている.少し低いけど問題はなさそう. 裏蓋を開けてメモリを指し直しても動作変わらず. 充電状態で1版放置すると電源ランプがグリーンに点灯していた. 電源ボタンを押すと,一瞬キーボードバックライトが光り,ファンが回転してどちらもすぐに止まる.電源ボタンLEDは点灯.画面は反応なし. 何度か試しても状態は変わらない.

バッテリーコネクタ(メインとバックアップコイン型の2つ)を取り外して1日放置したあと接続し直して起動を試みると画面が点灯してBIOSにも入れるようになった. Ubuntu 21.04や,TailsOSで起動して利用できるのも確認. Ubuntu 21.04インストーラーのライブモードは照度センサによる画面輝度自動調整や,画面自動回転,タッチパネル操作野音スクリーンキーボードなどが設定を特に行わなくても動作するのでとりあえず動作確認をするのに良さそう.

ハードウェア情報

snippet.log
$ sudo lshw -sanitize -short
H/W path           Device     Class          Description
========================================================
                              system         20FEA02WJP (LENOVO_MT_20FE_BU_Think_FM_ThinkPad Yoga 260)
/0                            bus            20FEA02WJP
/0/3                          memory         64KiB L1 cache
/0/4                          memory         64KiB L1 cache
/0/5                          memory         512KiB L2 cache
/0/6                          memory         3MiB L3 cache
/0/7                          processor      Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz
/0/8                          memory         8GiB System Memory
/0/8/0                        memory         8GiB Chip DDR4 Synchronous 2133 MHz (0.5 ns)
/0/b                          memory         128KiB BIOS
/0/100                        bridge         Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Host Bridge/DRAM Registers
/0/100/2                      display        Skylake GT2 [HD Graphics 520]
/0/100/8                      generic        Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th/8th Gen Core Processor Gaussian Mixture Model
/0/100/13                     generic        Sunrise Point-LP Integrated Sensor Hub
/0/100/14                     bus            Sunrise Point-LP USB 3.0 xHCI Controller
/0/100/14/0        usb1       bus            xHCI Host Controller
/0/100/14/0/1                 input          USB Keyboard
/0/100/14/0/7                 communication  Bluetooth wireless interface
/0/100/14/0/8                 multimedia     Integrated Camera
/0/100/14/0/a                 input          Pen and multitouch sensor
/0/100/14/1        usb2       bus            xHCI Host Controller
/0/100/14.2                   generic        Sunrise Point-LP Thermal subsystem
/0/100/16                     communication  Sunrise Point-LP CSME HECI #1
/0/100/17          scsi1      storage        Sunrise Point-LP SATA Controller [AHCI mode]
/0/100/17/0.0.0    /dev/sda   disk           128GB SAMSUNG MZNLN128
/0/100/17/0.0.0/1  /dev/sda1  volume         511MiB Windows FAT volume
/0/100/17/0.0.0/2  /dev/sda2  volume         488MiB EFI partition
/0/100/17/0.0.0/3  /dev/sda3  volume         118GiB EFI partition
/0/100/1c                     bridge         Sunrise Point-LP PCI Express Root Port #1
/0/100/1c/0                   generic        RTS522A PCI Express Card Reader
/0/100/1c.2                   bridge         Sunrise Point-LP PCI Express Root Port #3
/0/100/1c.2/0      wlp4s0     network        Wireless 8260
/0/100/1f                     bridge         Sunrise Point-LP LPC Controller
/0/100/1f.2                   memory         Memory controller
/0/100/1f.3                   multimedia     Sunrise Point-LP HD Audio
/0/100/1f.4                   bus            Sunrise Point-LP SMBus
/0/100/1f.6        enp0s31f6  network        Ethernet Connection I219-V
/0/0                          system         PnP device PNP0c01
/0/1                          system         PnP device PNP0c02
/0/2                          system         PnP device PNP0b00
/0/9                          generic        PnP device LEN0071
/0/a                          generic        PnP device LEN004f
/0/c                          generic        PnP device INT3f0d
/0/d                          system         PnP device PNP0c02
/0/e                          system         PnP device PNP0c02
/1                            power          00HW027

full → lenovo_thinkpad_yoga_260.sudo_lshw_-sanitize.log.xz

バッテリ

バッテリを確認すると思ったより劣化していない,TLPでの充電制御も効く.

snippet.bash
$ acpitool --battery
  Battery #1     : present
    Remaining capacity : 37160 mWh, 99.81%
    Design capacity    : 44000 mWh
    Last full capacity : 37230 mWh, 84.61% of design capacity
    Capacity loss      : 15.39%
    Present rate       : 0 mW
    Charging state     : Unknown
    Battery type       : Li-poly 
    Model number       : 00HW027
    Serial number      : NNNN

SSD

SSDはM.2 2280のSATA, NVMeに対応,値段差はほとんどなくなっているので高速なNVMeのほうが良さそうだが消費電力が増える.(あるレビューでは1割以上消費電力が増えるよう)

容量について公式では500GB迄となっているが以下のあたりでは2TBまで対応となっている.

出先で使うことを考えてSATAを探してみる.Amazon.jpで以下のあたりが安そうだがレビューを見るとプチフリが気になりそう.

中古を探すとヤフオクではサムソン128GB 2k+送料くらいが最安な感じ.楽天でメーカーを選べないものが2k+送料無料というものがあったのでこれを購入.有名メーカーとなっているので多分交換されたり本体を処分して余った感じのサムソンや東芝あたりが来そう.

□仕様□【形式】 中古品【メーカー】 有名メーカー【容量】 128GB【インタフェース】 M.2
□付属品□SSD本体のみ
※記載以外のものは一切付属しません。
□状態□★掲載画像は一例です!★型番・仕様の指定はできません。
★NVMeではありません。お手持ちのインタフェースをご確認の上ご購入ください!
●フォーマット済みです。●不良セクタはありません。●使用時間は10000時間未満です。

サムソンの片面実装のものが届いた. SAMSUNG MZNLN128HCGR

smartctl で見るとPre-failがいくつか出ている.WORSTを大きく超えているものもたくさん.

sudo smartctl -a /dev/sda

snippet.bash
SMART Attributes Data Structure revision number: 1
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  5 Reallocated_Sector_Ct   0x0033   100   100   010    Pre-fail  Always       -       0
  9 Power_On_Hours          0x0032   098   098   000    Old_age   Always       -       5647
 12 Power_Cycle_Count       0x0032   098   098   000    Old_age   Always       -       1090
170 Unused_Rsvd_Blk_Ct_Chip 0x0032   100   100   010    Old_age   Always       -       0
171 Program_Fail_Count_Chip 0x0032   100   100   010    Old_age   Always       -       0
172 Erase_Fail_Count_Chip   0x0032   100   100   010    Old_age   Always       -       0
173 Wear_Leveling_Count     0x0033   092   092   005    Pre-fail  Always       -       169
174 Unexpect_Power_Loss_Ct  0x0032   099   099   000    Old_age   Always       -       27
178 Used_Rsvd_Blk_Cnt_Chip  0x0013   100   100   010    Pre-fail  Always       -       0
180 Unused_Rsvd_Blk_Cnt_Tot 0x0013   100   100   010    Pre-fail  Always       -       394
184 End-to-End_Error        0x0033   100   100   097    Pre-fail  Always       -       0
187 Uncorrectable_Error_Cnt 0x0032   100   100   000    Old_age   Always       -       0
194 Temperature_Celsius     0x0032   054   049   000    Old_age   Always       -       46
199 CRC_Error_Count         0x003e   100   100   000    Old_age   Always       -       0
233 Media_Wearout_Indicator 0x0013   091   091   000    Pre-fail  Always       -       15359540
241 Total_LBAs_Written      0x0032   099   099   000    Old_age   Always       -       12059
242 Total_LBAs_Read         0x0032   099   099   000    Old_age   Always       -       10721
249 NAND_Writes_1GiB        0x0032   099   099   000    Old_age   Always       -       21744

オプション

OneLink/OneLink+という専用コネクタで各種ポートが増やせるよう.

ThinkPad OneLink プロ ドック-90W前面: USB3.0x1 , PowerdUSB3.0x1 , マイクロフォンコンボジャックx1背面: USB2.0x2 ,USB3.0x2 , DisplayPort x1(解像度:最大2560x1600) , DVI-Ix1(解像度:1920x1200)(DVI-VGA変換アダプター同梱) , RJ-45(ギガビット)
ThinkPad OneLinkドック-65W前面: USB3.0x1 , PowerdUSB3.0x1 , マイクロフォンコンボジャックx1背面: USB2.0x2 , HDMIx1 , RJ-45(ギガビット)

ドックの他にもVGA+NICのアダプタもあるよう( SmartFind で日本では出てこないがアメリカにすると出てくる )

どちらも今のヤフオクでは2000円〜くらいで出ている.

RJ-45だけのものもあるよう.

しかしこのくらいであればUSBのもののほうが汎用的でいいかもしれない.

ヤフオクでOneLink+ Dock & 90W電源アダプタ動作確認済のセットで950円で入手.

dmesg

[  +6.739776] usb 1-4: new high-speed USB device number 21 using xhci_hcd
[  +0.151665] usb 1-4: New USB device found, idVendor=17ef, idProduct=1018, bcdDevice=52.84
[  +0.000018] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[  +0.000007] usb 1-4: Product: USB2.0 Hub
[  +0.000005] usb 1-4: Manufacturer: VIA Labs, Inc.
[  +0.004484] hub 1-4:1.0: USB hub found
[  +0.000848] hub 1-4:1.0: 4 ports detected
[  +0.168051] usb 2-4: new SuperSpeed USB device number 5 using xhci_hcd
[  +0.103453] usb 2-4: New USB device found, idVendor=17ef, idProduct=1018, bcdDevice=52.85
[  +0.000010] usb 2-4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[  +0.000004] usb 2-4: Product: USB3.0 Hub
[  +0.000003] usb 2-4: Manufacturer: VIA Labs, Inc.
[  +0.002362] hub 2-4:1.0: USB hub found
[  +0.000217] hub 2-4:1.0: 4 ports detected
[  +0.089341] usb 1-4.2: new high-speed USB device number 22 using xhci_hcd
[  +0.116848] usb 1-4.2: New USB device found, idVendor=05e3, idProduct=0608, bcdDevice=85.37
[  +0.000018] usb 1-4.2: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[  +0.000008] usb 1-4.2: Product: USB2.0 Hub
[  +0.001472] hub 1-4.2:1.0: USB hub found
[  +0.000304] hub 1-4.2:1.0: 2 ports detected
[  +0.133257] thinkpad_acpi: docked into hotplug port replicator
[  +0.088660] usb 2-4.1: new SuperSpeed USB device number 6 using xhci_hcd
[  +0.103167] usb 2-4.1: New USB device found, idVendor=17ef, idProduct=1019, bcdDevice=52.81
[  +0.000009] usb 2-4.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[  +0.000004] usb 2-4.1: Product: USB3.0 Hub             
[  +0.000003] usb 2-4.1: Manufacturer: VIA Labs, Inc.         
[  +0.002851] hub 2-4.1:1.0: USB hub found
[  +0.000190] hub 2-4.1:1.0: 4 ports detected
[  +0.396754] usb 2-4.1.3: new SuperSpeed USB device number 7 using xhci_hcd
[  +0.021631] usb 2-4.1.3: New USB device found, idVendor=17ef, idProduct=3054, bcdDevice=30.01
[  +0.000024] usb 2-4.1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=6
[  +0.000012] usb 2-4.1.3: Product: OneLink+ Giga
[  +0.000009] usb 2-4.1.3: Manufacturer: Lenovo
[  +0.000008] usb 2-4.1.3: SerialNumber: 00000F000000
[  +0.005023] cdc_ether 2-4.1.3:2.0 eth0: register 'cdc_ether' at usb-0000:00:14.0-4.1.3, CDC Ethernet Device, 00:50:b6:d7:0c:17
[  +0.085208] usb 1-4.1: new high-speed USB device number 23 using xhci_hcd
[  +0.117752] usb 1-4.1: New USB device found, idVendor=17ef, idProduct=1019, bcdDevice=52.81
[  +0.000014] usb 1-4.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[  +0.000007] usb 1-4.1: Product: USB2.0 Hub             
[  +0.000005] usb 1-4.1: Manufacturer: VIA Labs, Inc.         
[  +0.001262] hub 1-4.1:1.0: USB hub found
[  +0.000817] hub 1-4.1:1.0: 4 ports detected
[  +0.312678] usb 1-4.1.4: new full-speed USB device number 24 using xhci_hcd
[  +0.126924] usb 1-4.1.4: New USB device found, idVendor=17ef, idProduct=3055, bcdDevice= 1.09
[  +0.000020] usb 1-4.1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[  +0.000009] usb 1-4.1.4: Product: ThinkPad OneLink Plus Dock Audio
[  +0.000007] usb 1-4.1.4: Manufacturer: C-Media Electronics Inc.
[  +0.049188] input: C-Media Electronics Inc. ThinkPad OneLink Plus Dock Audio as /devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4.1/1-4.1.4/1-4.1.4:1.3/0003:17EF:3055.0007/input/input27
[  +0.060352] hid-generic 0003:17EF:3055.0007: input,hidraw2: USB HID v1.00 Device [C-Media Electronics Inc. ThinkPad OneLink Plus Dock Audio] on usb-0000:00:14.0-4.1.4/input3
[  +0.162198] cdc_ether 2-4.1.3:2.0 enx0050b6d70c17: renamed from eth0

lsusb -t(接続前)

$ lsusb -t
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/6p, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/12p, 480M
    |__ Port 1: Dev 14, If 0, Class=Vendor Specific Class, Driver=, 480M
    |__ Port 7: Dev 2, If 0, Class=Wireless, Driver=btusb, 12M
    |__ Port 7: Dev 2, If 1, Class=Wireless, Driver=btusb, 12M
    |__ Port 8: Dev 3, If 1, Class=Video, Driver=uvcvideo, 480M
    |__ Port 8: Dev 3, If 0, Class=Video, Driver=uvcvideo, 480M
    |__ Port 10: Dev 4, If 0, Class=Human Interface Device, Driver=usbhid, 12M
    |__ Port 10: Dev 4, If 1, Class=Human Interface Device, Driver=usbhid, 12M

lsusb -t(接続後)

$ lsusb -t
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/6p, 5000M
    |__ Port 4: Dev 5, If 0, Class=Hub, Driver=hub/4p, 5000M
        |__ Port 1: Dev 6, If 0, Class=Hub, Driver=hub/4p, 5000M
            |__ Port 3: Dev 7, If 0, Class=Communications, Driver=cdc_ether, 5000M
            |__ Port 3: Dev 7, If 1, Class=CDC Data, Driver=cdc_ether, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/12p, 480M
    |__ Port 4: Dev 21, If 0, Class=Hub, Driver=hub/4p, 480M
        |__ Port 1: Dev 23, If 0, Class=Hub, Driver=hub/4p, 480M
            |__ Port 4: Dev 24, If 2, Class=Audio, Driver=snd-usb-audio, 12M
            |__ Port 4: Dev 24, If 0, Class=Audio, Driver=snd-usb-audio, 12M
            |__ Port 4: Dev 24, If 3, Class=Human Interface Device, Driver=usbhid, 12M
            |__ Port 4: Dev 24, If 1, Class=Audio, Driver=snd-usb-audio, 12M
        |__ Port 4: Dev 26, If 0, Class=Vendor Specific Class, Driver=, 480M
        |__ Port 2: Dev 22, If 0, Class=Hub, Driver=hub/2p, 480M
    |__ Port 7: Dev 2, If 0, Class=Wireless, Driver=btusb, 12M
    |__ Port 7: Dev 2, If 1, Class=Wireless, Driver=btusb, 12M
    |__ Port 8: Dev 3, If 1, Class=Video, Driver=uvcvideo, 480M
    |__ Port 8: Dev 3, If 0, Class=Video, Driver=uvcvideo, 480M
    |__ Port 10: Dev 4, If 0, Class=Human Interface Device, Driver=usbhid, 12M
    |__ Port 10: Dev 4, If 1, Class=Human Interface Device, Driver=usbhid, 12M

キーボードLED

FnLKを常時OnにしているのでLEDが点灯している.案外眩しいので減光シールを貼るといいのかもしれない.(100円ショップにもおいてるらしい)

OS

Debian bullseye(D-I RC1)

Debian Installer Bullseye RC 1 の netinst amd64を利用した.

日本語,us keyboard(日本語キーボードだが今の所入力できないキーはなさそう), / を dm-crypt の ext4, PopCon有効な感じで導入

Wi-Fi moduleがnon-freeなので途中 firmware-iwlwifi を求められた.

ダウンロードして適当なUSBメモリにcpして読み込ませる.

snippet.bash
$ wget http://ftp.jp.debian.org/debian/pool/non-free/f/firmware-nonfree/firmware-iwlwifi_20210315-2_all.deb
$ sha256sum ./firmware-iwlwifi_20210315-2_all.deb
4c904f8f226b682f63f3d6873f90fc3623bad3ac2e50dc1575bd1989aaf4102a  ./firmware-iwlwifi_20210315-2_all.deb

その後更に iwl-debug-yoyo.bin も求められるが,これは必要ないようなので「いいえ」を選んでスキップ.

(昔はサーバに導入するのにこの辺の手間が要らなくなるkmutoさんのこちらを使わせてもらっていたのを思い出した → Backported d-i images )

利用できないイーサネットモジュールを読み込まないようにする

外部ポー鳥プリケーターを接続するとおそらく利用できる有線LAN.今はないので読み込まないようにしておく.

snippet.bash
$ echo 'blacklist e1000e' | sudo tee -a /etc/modprobe.d/blacklist.conf
blacklist e1000e
$ sudo update-initramfs -u

サスペンドがうまく行かない

サスペンドに移行しようとして,電源ランプはグリーンのゆっくり点滅になるが, キーボードの FnLk 等のLED等は消えない状態でレジュームできない.(Ubuntu 21.04ではできていた) おそらくレジュームしきっていない状態?

syslogにはこんな感じで取得して

snippet.bash
$ sudo mount -o remount,sync /
$ sync
$ logger SUSPEND; systemctl suspend

syslogに残っていたのはこういうもの

snippet.log
May 18 22:38:21 yoga-260 matoken: SUSPEND
May 18 22:38:21 yoga-260 kernel: [  145.173299] Lockdown: systemd-logind: hibernation is restricted; see man kernel_lockdown.7
May 18 22:38:21 yoga-260 kernel: [  145.212562] Lockdown: systemd-logind: hibernation is restricted; see man kernel_lockdown.7
May 18 22:38:21 yoga-260 NetworkManager[868]: <info>  [1621345101.9090] manager: sleep: sleep requested (sleeping: no  enabled: yes)
May 18 22:38:21 yoga-260 NetworkManager[868]: <info>  [1621345101.9091] device (enp0s31f6): state change: unavailable -> unmanaged (reason 'sleeping', sys-iface-state: 'managed')
May 18 22:38:21 yoga-260 ModemManager[937]: <info>  [sleep-monitor] system is about to suspend
May 18 22:38:21 yoga-260 kernel: [  145.294418] e1000e 0000:00:1f.6 enp0s31f6: NIC Link is Down
May 18 22:38:21 yoga-260 NetworkManager[868]: <info>  [1621345101.9901] device (p2p-dev-wlp4s0): state change: disconnected -> unmanaged (reason 'sleeping', sys-iface-state: 'managed')
May 18 22:38:21 yoga-260 NetworkManager[868]: <info>  [1621345101.9904] manager: NetworkManager state is now ASLEEP
May 18 22:38:21 yoga-260 NetworkManager[868]: <info>  [1621345101.9909] device (wlp4s0): state change: activated -> deactivating (reason 'sleeping', sys-iface-state: 'managed')
May 18 22:38:21 yoga-260 dbus-daemon[858]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service' requested by ':1.1' (uid=0 pid=868 comm="/usr/sbin/NetworkManager --no-daemon ")
May 18 22:38:22 yoga-260 systemd[1]: Starting Network Manager Script Dispatcher Service...
May 18 22:38:22 yoga-260 dbus-daemon[858]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
May 18 22:38:22 yoga-260 systemd[1]: Started Network Manager Script Dispatcher Service.
May 18 22:38:22 yoga-260 kernel: [  145.342238] wlp4s0: deauthenticating from 90:9a:4a:ec:0f:af by local choice (Reason: 3=DEAUTH_LEAVING)
May 18 22:38:22 yoga-260 wpa_supplicant[898]: wlp4s0: CTRL-EVENT-DISCONNECTED bssid=90:9a:4a:ec:0f:af reason=3 locally_generated=1
May 18 22:38:22 yoga-260 NetworkManager[868]: <info>  [1621345102.0943] device (wlp4s0): supplicant interface state: completed -> disconnected
May 18 22:38:22 yoga-260 avahi-daemon[852]: Withdrawing address record for fe80::a634:d9ff:fea8:81a8 on wlp4s0.
May 18 22:38:22 yoga-260 NetworkManager[868]: <info>  [1621345102.0952] device (wlp4s0): state change: deactivating -> disconnected (reason 'sleeping', sys-iface-state: 'managed')
May 18 22:38:22 yoga-260 avahi-daemon[852]: Leaving mDNS multicast group on interface wlp4s0.IPv6 with address fe80::a634:d9ff:fea8:81a8.
May 18 22:38:22 yoga-260 avahi-daemon[852]: Interface wlp4s0.IPv6 no longer relevant for mDNS.
May 18 22:38:22 yoga-260 NetworkManager[868]: <info>  [1621345102.1254] dhcp4 (wlp4s0): canceled DHCP transaction
May 18 22:38:22 yoga-260 NetworkManager[868]: <info>  [1621345102.1255] dhcp4 (wlp4s0): state changed bound -> done
May 18 22:38:22 yoga-260 NetworkManager[868]: <info>  [1621345102.1266] dhcp6 (wlp4s0): canceled DHCP transaction
May 18 22:38:22 yoga-260 NetworkManager[868]: <info>  [1621345102.1267] dhcp6 (wlp4s0): state changed timeout -> done
May 18 22:38:22 yoga-260 avahi-daemon[852]: Interface wlp4s0.IPv4 no longer relevant for mDNS.
May 18 22:38:22 yoga-260 avahi-daemon[852]: Leaving mDNS multicast group on interface wlp4s0.IPv4 with address 192.168.68.118.
May 18 22:38:22 yoga-260 avahi-daemon[852]: Withdrawing address record for 192.168.68.118 on wlp4s0.
May 18 22:38:22 yoga-260 NetworkManager[868]: <info>  [1621345102.1318] device (wlp4s0): set-hw-addr: set MAC address to EE:03:77:E5:46:B0 (scanning)
May 18 22:38:22 yoga-260 avahi-daemon[852]: Joining mDNS multicast group on interface wlp4s0.IPv4 with address 192.168.68.118.
May 18 22:38:22 yoga-260 avahi-daemon[852]: New relevant interface wlp4s0.IPv4 for mDNS.
May 18 22:38:22 yoga-260 avahi-daemon[852]: Registering new address record for 192.168.68.118 on wlp4s0.IPv4.
May 18 22:38:22 yoga-260 avahi-daemon[852]: Withdrawing address record for 192.168.68.118 on wlp4s0.
May 18 22:38:22 yoga-260 avahi-daemon[852]: Leaving mDNS multicast group on interface wlp4s0.IPv4 with address 192.168.68.118.
May 18 22:38:22 yoga-260 avahi-daemon[852]: Interface wlp4s0.IPv4 no longer relevant for mDNS.
May 18 22:38:22 yoga-260 NetworkManager[868]: <info>  [1621345102.1508] device (wlp4s0): supplicant interface state: disconnected -> interface_disabled
May 18 22:38:22 yoga-260 NetworkManager[868]: <info>  [1621345102.1510] device (wlp4s0): state change: disconnected -> unmanaged (reason 'sleeping', sys-iface-state: 'managed')
May 18 22:38:22 yoga-260 NetworkManager[868]: <info>  [1621345102.1602] device (wlp4s0): set-hw-addr: reset MAC address to A4:34:D9:A8:81:A8 (unmanage)
May 18 22:38:22 yoga-260 wpa_supplicant[898]: nl80211: deinit ifname=p2p-dev-wlp4s0 disabled_11b_rates=0
May 18 22:38:22 yoga-260 wpa_supplicant[898]: nl80211: deinit ifname=wlp4s0 disabled_11b_rates=0
May 18 22:38:22 yoga-260 gnome-shell[1262]: An active wireless connection, in infrastructure mode, involves no access point?
May 18 22:38:22 yoga-260 gnome-shell[1262]: Bogus presentation time 0 travelled back in time, using current time.
May 18 22:38:22 yoga-260 systemd[1]: Reached target Sleep.
May 18 22:38:22 yoga-260 systemd[1]: Starting Suspend...
May 18 22:38:23 yoga-260 kernel: [  146.429748] PM: suspend entry (deep)
May 18 22:38:23 yoga-260 systemd-sleep[2226]: Suspending system...
May 18 22:38:23 yoga-260 kernel: [  146.448788] Filesystems sync: 0.019 seconds
May 18 22:38:23 yoga-260 kernel: [  146.449299] (NULL device *): firmware: direct-loading firmware regulatory.db.p7s
May 18 22:38:23 yoga-260 kernel: [  146.449302] (NULL device *): firmware: direct-loading firmware regulatory.db
May 18 22:38:23 yoga-260 kernel: [  146.450713] (NULL device *): firmware: direct-loading firmware iwlwifi-8000C-36.ucode
snippet.bash
$ lsb_release -dr
Description:    Debian GNU/Linux 11 (bullseye)
Release:        11
$ uname -sr
Linux 5.10.0-6-amd64

以下のあたりを試したが変化はなかった.

  • Wayland から Xorg に
  • BIOS を最新に
  • BIOS 設定をデフォルトに
  • サスペンド前にイーサネット,Wi-Fi モジュールをアンロード

kernelを新しく( Linux 5.12.4 )してみるとサスペンド,レジューム問題なくできるようになった.以前はできていたようなのでどこかのタイミングでバグが入った?

snippet.bash
$ uname -a
Linux yoga-260 5.12.4 #1 SMP Sun May 16 23:24:10 JST 2021 x86_64 GNU/Linux

TLPでバッテリー充電制御

普段はバッテリーの充電をある程度までに抑えてバッテリーの劣化を防ぐ. ここでは60%を切ったら充電開始して70%で充填停止する(充電時間が速いので低めにしてみた)

snippet.bash
$ sudo tlp setcharge 60 70
Setting temporary charge thresholds for BAT0:
  start =  60 (no change)
  stop  =  70 (no change)

1度だけフル充電したい場合は fullcharge を使う

snippet.bash
$ sudo tlp fullcharge

状態の確認

snippet.bash
$ sudo tlp-stat -b
--- TLP 1.3.1 --------------------------------------------
 
+++ Battery Features: Charge Thresholds and Recalibrate
natacpi    = active (data, thresholds)
tpacpi-bat = inactive (kernel module 'acpi_call' not installed)
tp-smapi   = inactive (ThinkPad not supported)
 
+++ ThinkPad Battery Status: BAT0
/sys/class/power_supply/BAT0/manufacturer                   = SMP
/sys/class/power_supply/BAT0/model_name                     = 00HW027
/sys/class/power_supply/BAT0/cycle_count                    = (not supported)
/sys/class/power_supply/BAT0/energy_full_design             =  44000 [mWh]
/sys/class/power_supply/BAT0/energy_full                    =  35940 [mWh]
/sys/class/power_supply/BAT0/energy_now                     =  28040 [mWh]
/sys/class/power_supply/BAT0/power_now                      =   5694 [mW]
/sys/class/power_supply/BAT0/status                         = Discharging
 
/sys/class/power_supply/BAT0/charge_start_threshold         =     60 [%]
/sys/class/power_supply/BAT0/charge_stop_threshold          =     70 [%]
 
Charge                                                      =   78.0 [%]
Capacity                                                    =   81.7 [%]
 
+++ Recommendations
* Install acpi_call kernel module for ThinkPad battery recalibration
snippet.bash
$ sudo git -C /etc diff /etc/tlp.conf
diff --git a/tlp.conf b/tlp.conf
index 389a788..e6003c8 100644
--- a/tlp.conf
+++ b/tlp.conf
@@ -422,8 +422,8 @@
 # Main / Internal battery (values in %)
 # Default: <none>
 
-#START_CHARGE_THRESH_BAT0=75
-#STOP_CHARGE_THRESH_BAT0=80
+START_CHARGE_THRESH_BAT0=60
+STOP_CHARGE_THRESH_BAT0=70
 
 # Ultrabay / Slice / Replaceable battery (values in %)
 # Default: <none>

Kernelの読み込みに失敗してGRUB Shellが起動する

GRUB Shellからもkernelが見えない /boot が壊れているせいだった
USBメモリから別システムを起動して /boot 領域をfsckして復旧

Wi-Fi を利用できない

module は読み込まれているがインターフェイスが見えない. 以下のようなメッセージが出力されている.

May 16 01:06:26 yoga-260 kernel: [   12.210810] iwlwifi 0000:04:00.0: SecBoot CPU1 Status: 0x3090001, CPU2 Status: 0x0
May 16 01:06:26 yoga-260 kernel: [   12.210853] iwlwifi 0000:04:00.0: Collecting data: trigger 15 fired.
May 16 01:06:26 yoga-260 kernel: [   12.458572] iwlwifi 0000:04:00.0: Not valid error log pointer 0x00000000 for Init uCode
May 16 01:06:26 yoga-260 kernel: [   12.458698] iwlwifi 0000:04:00.0: Fseq Registers:
May 16 01:06:26 yoga-260 kernel: [   12.458848] iwlwifi 0000:04:00.0: 0xD2EA2676 | FSEQ_ERROR_CODE
May 16 01:06:26 yoga-260 kernel: [   12.459002] iwlwifi 0000:04:00.0: 0xF00421AE | FSEQ_TOP_INIT_VERSION
May 16 01:06:26 yoga-260 kernel: [   12.459159] iwlwifi 0000:04:00.0: 0x76812CA0 | FSEQ_CNVIO_INIT_VERSION
May 16 01:06:26 yoga-260 kernel: [   12.459316] iwlwifi 0000:04:00.0: 0x0000A052 | FSEQ_OTP_VERSION
May 16 01:06:26 yoga-260 kernel: [   12.459471] iwlwifi 0000:04:00.0: 0x6A0A7138 | FSEQ_TOP_CONTENT_VERSION
May 16 01:06:26 yoga-260 kernel: [   12.459629] iwlwifi 0000:04:00.0: 0x48E8EF57 | FSEQ_ALIVE_TOKEN
May 16 01:06:26 yoga-260 kernel: [   12.459784] iwlwifi 0000:04:00.0: 0x9D8790AF | FSEQ_CNVI_ID
May 16 01:06:26 yoga-260 kernel: [   12.459937] iwlwifi 0000:04:00.0: 0x268E6C2D | FSEQ_CNVR_ID
May 16 01:06:26 yoga-260 kernel: [   12.460090] iwlwifi 0000:04:00.0: 0x03000000 | CNVI_AUX_MISC_CHIP
May 16 01:06:26 yoga-260 kernel: [   12.460249] iwlwifi 0000:04:00.0: 0x0BADCAFE | CNVR_AUX_MISC_CHIP
May 16 01:06:26 yoga-260 kernel: [   12.460406] iwlwifi 0000:04:00.0: 0x0BADCAFE | CNVR_SCU_SD_REGS_SD_REG_DIG_DCDC_VTRIM
May 16 01:06:26 yoga-260 kernel: [   12.460571] iwlwifi 0000:04:00.0: 0x0BADCAFE | CNVR_SCU_SD_REGS_SD_REG_ACTIVE_VDIG_MIRROR
May 16 01:06:26 yoga-260 kernel: [   12.460734] iwlwifi 0000:04:00.0: Failed to start INIT ucode: -110
May 16 01:06:26 yoga-260 kernel: [   12.460792] iwlwifi 0000:04:00.0: Collecting data: trigger 16 fired.
May 16 01:06:26 yoga-260 kernel: [   13.464690] iwlwifi 0000:04:00.0: Failed to run INIT ucode: -110

moduleを読み込み直すと使えるようになる.

$ sudo rmmod iwldvm iwlmvm iwlwifi mac80211 cfg80211
$ sudo modprobe -v iwlwifi

毎回この処理が必要そうだが,このあと再起動しても利用できている…….

輝度調整

xbackligt は利用できなかった.

light , brightnessctl は動作した.

i3wmでバックライト調整キー(Fn+f5, f6)で調整したい場合, ~/.config/i3/config

bindsym XF86MonBrightnessUp   exec light -A 5
bindsym XF86MonBrightnessDown exec light -U 5

bindsym XF86MonBrightnessUp   exec --no-startup-id brightnessctl -q set 50+
bindsym XF86MonBrightnessDown exec --no-startup-id brightnessctl -q set 50-

を設定

DroidCam

スマートフォンをWebCam(とマイク)代わりにできるDroidCamを導入

snippet.bash
$ cat /etc/modprobe.d/droidcam.conf
options v4l2loopback_dc width=1920 height=1080 video_nr=9 card_label="DroidCam"
options snd-aloop index=2

Zoom us client

tar.gz版を導入.

$ /opt/local/zoom/ZoomLauncher 
ZoomLauncher started.
Zoom path is: /opt/local/zoom
cmd line: 
Start subprocess: /opt/local/zoom/zoom sucessfully,  process pid: 330185 
Can't load/home/matoken/.config/zoomus.conf
/opt/local/zoom/zoom: error while loading shared libraries: libxcb-xtest.so.0: cannot open shared object file: No such file or directory
Something went wrong while running zoom, exit code is 127.
ZoomLauncher exit.
snippet.bash
$ sudo apt install libxcb-xtest0

Discordがインストールできない

snippet.bash
$ sudo apt install ./discord-0.0.14.deb 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'discord' instead of './discord-0.0.14.deb'
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
 
The following packages have unmet dependencies:
 discord : Depends: libappindicator1 but it is not installable
E: Unable to correct problems, you have held broken packages.
$ apt-cache search libappindicator1

依存パッケージの libappindicator1 がbullseyeから削除されていたので導入できない.(libayatanaへ移行)

snap/flatpkにあるが公式ではなさそう.

とりあえず libappindicator1 がなくてもトレイアイコンが表示されないけど動作するようなので,公式から .tar.gz 版を入手して展開して利用.

/opt/local/ に入れてデスクトップファイルを ~/.local/share/applications/discord.desktop としてコピーして,以下のようにパスを修正した.これでランチャーやメニューに現れるようになる.

snippet.bash
$ diff -u /opt/local/Discord/discord.desktop ~/.local/share/applications/discord.desktop 
--- /opt/local/Discord/discord.desktop  2021-03-24 09:06:23.000000000 +0900
+++ /home/matoken/.local/share/applications/discord.desktop     2021-05-18 00:36:01.087904782 +0900
@@ -3,8 +3,8 @@
 StartupWMClass=discord
 Comment=All-in-one voice and text chat for gamers that's free, secure, and works on both your desktop and phone.
 GenericName=Internet Messenger
-Exec=/usr/share/discord/Discord
-Icon=discord
+Exec=/opt/local/Discord/Discord
+Icon=/opt/local/Discord/discord.png
 Type=Application
 Categories=Network;InstantMessaging;
 Path=/usr/bin

msmtpを設定

Wayland でクリップボード

  • Wayland で xselxclip が効かない

wl-clipboard が使えそう.

snippet.bash
$ sudo apt install wl-clipboard
$ echo clip | wl-copy 
$ wl-paste 
clip
  • waylandでのクリップボードマネージャー

Diodon が wayland で動作しない. clipman が使えそうだけどcliのみみたい?

Gnome Shell でタスクトレイアイコンを表示する

Xorg Xmodmap

日本語キーボードをus配列で利用.既定値で大体問題ない.が一部変更.

現在の設定を書き出しておいて, ~/.Xmodmap を書き換える

$ xmodmap -pke > ~/.Xmodmap
  • Del/Ins swap

Insertはよく使うけど Fn + End は押しにくい.Delete はあまり使わないのでswapする

keycode 118 = Delete NoSymbol Delete
keycode 119 = Insert NoSymbol Insert
  • \|

]}」む に割り当てられているが遠いので \|ー\| にしておく.

keycode 132 = backslash bar backslash bar

Gnome Shell 以外で自動画面回転

snippet.bash
$ wget https://gist.github.com/mortie/e725d37a71779b18e8eaaf4f8a02bf5b/raw/2a58de65dd2c2022340b6432ca88ee483b1d25d8/auto-screen-rotate.sh
$ mv 
$ ~/bin/auto-screen-rotate.sh eDP-1 'Wacom Pen and multitouch sensor Finger touch'

i3wmに設定( ~/.config/i3/config )

i3.config exec --no-startup-id ~/bin/auto-screen-rotate.sh eDP-1 'Wacom Pen and multitouch sensor Finger touch'

漫画を読む

Webブラウザの場合

  • BookWalkerは横長画面のときは見開き,縦長のときは1ページ表示と自動的に画面に追従してくれる
  • Amazon Kindle(Japan)は自動追従はしてくれない.画面縦横切り替え五ページ再読込が必要.
  • 漫画図書館ZはPCでは常に見開きで,UA偽装でAndroidなどにすると自動追従する.広告の位置の問題で,横画面時はPC,縦画面時はモバイルとしたほうが良さそう.

Mcomixは普通に利用できる.

Ubuntu 21.04

Gnome Shellでの画面自動回転

デスクトップ版インストーラのライブでは自動回転するけどインストール後は自動回転しない iio-sensor-proxy は導入されている

monitor-sensor で確認するとセンサーの値は取得できている

snippet.bash
$ /usr/bin/monitor-sensor
    Waiting for iio-sensor-proxy to appear
+++ iio-sensor-proxy appeared
=== Has accelerometer (orientation: normal)
=== Has ambient light sensor (value: 1.983000, unit: lux)
=== No proximity sensor
    Light changed: 3.967000 (lux)
    Light changed: 1.983000 (lux)
    Accelerometer orientation changed: left-up
    Accelerometer orientation changed: normal
    Light changed: 3.967000 (lux)
    Accelerometer orientation changed: right-up
    Light changed: 1.983000 (lux)
    Accelerometer orientation changed: normal
^C

Screen Autorotate の導入で自動回転するようになった

Gnome Shellでのスクリーンキーボード

デスクトップ版インストーラのライブではタッチ操作時に入力部分をタッチするとスクリーンキーボードが表示されるけどインストール後表示されない squeekboard を導入

snippet.bash
$ apt show squeekboard 2>&1 | grep -A1 ^Description:
Description: On-screen keyboard for Wayland
 Virtual keyboard supporting Wayland, built primarily for the Librem 5 phone.
$ sudo apt install squeekboard

有効にする

snippet.bash
$ gsettings set org.gnome.desktop.a11y.applications screen-keyboard-enabled true

BIOS Update

snippet.bash
$ sudo lshw -sanitize | grep "*-firmware" -A 8
     *-firmware
          description: BIOS
          vendor: LENOVO
          physical id: b
          version: N1GET91W (1.70 )
          date: 06/26/2018
          size: 128KiB
          capacity: 16MiB
          capabilities: pci pnp upgrade shadowing cdboot bootselect edd int13floppy720 int5printscreen int9keyboard int14serial int17printer int10video acpi usb biosbootspecification uefi

https://pcsupport.lenovo.com/fi/ja/products/laptops-and-netbooks/thinkpad-yoga-series-laptops/thinkpad-yoga-260/downloads/ds105460

snippet.bash
$ wget "https://download.lenovo.com/pccbbs/mobiles/n1gur37w.iso"
$ sha256sum ./n1gur37w.iso 
465e1883eae3da5ef6d302317fa3359848115745eff1160ecb28da6bb7793198  ./n1gur37w.iso
$ sudo apt install genisoimage
$ geteltorito -o ./n1gur37w.img ./n1gur37w.iso 
Booting catalog starts at sector: 20 
Manufacturer of CD: NERO BURNING ROM
Image architecture: x86
Boot media type is: harddisk
El Torito image starts at sector 27 and has 47104 sector(s) of 512 Bytes
 
Image has been written to file "./n1gur37w.img".
 sudo dd if=./n1gur37w.img of=/dev/sdc bs=4M;sync
5+1 records in
5+1 records out
24117248 bytes (24 MB, 23 MiB) copied, 0.0325536 s, 741 MB/s

F12でUSBメモリから起動してUpdate

snippet.bash
$ sudo lshw -sanitize | grep "*-firmware" -A 8
     *-firmware
          description: BIOS
          vendor: LENOVO
          physical id: b
          version: N1GETA3W (1.82 )
          date: 10/26/2020
          size: 128KiB
          capacity: 16MiB
          capabilities: pci pnp upgrade shadowing cdboot bootselect edd int13floppy720 int5printscreen int9keyboard int14serial int17printer int10video acpi usb biosbootspecification uefi

fwupdmgr でもできたかもしれない. 1.8.4 が出ていたので fwupdmgr refresh && fwupdmgr get-updates してみたが,更新可能なものはなかった. 以下のページを見るとYoga 260 は非対応のよう.Yoga 370 は載っている.

SSD frozen

再起動のタイミングでアクセスできなくなった.LENOVOのツールで初期化した.

snippet.bash
$ sudo hdparm -I /dev/sda | grep Security: -A20
Security: 
	Master password revision code = 2007
		supported
	not	enabled
	not	locked
		frozen
	not	expired: security count
		supported: enhanced erase
	2min for SECURITY ERASE UNIT. 8min for ENHANCED SECURITY ERASE UNIT.
Logical Unit WWN Device Identifier: 5002538da032d29c
	NAA		: 5
	IEEE OUI	: 002538
	Unique ID	: da032d29c
Device Sleep:
	DEVSLP Exit Timeout (DETO): 50 ms (drive)
	Minimum DEVSLP Assertion Time (MDAT): 30 ms (drive)
Checksum: correct

https://support.lenovo.com/jp/ja/downloads/ds019026

snippet.bash
$ sudo apt install genisoimage
$ geteltorito -o 83fd05ww.img 83fd05ww.iso
Booting catalog starts at sector: 19 
Manufacturer of CD: NERO BURNING ROM
Image architecture: x86
Boot media type is: harddisk
El Torito image starts at sector 23 and has 466944 sector(s) of 512 Bytes
 
Image has been written to file "83fd05ww.img".
$ sudo dd if=./83fd05ww.img of=/dev/sdb bs=4M
57+0 records in
57+0 records out
239075328 bytes (239 MB, 228 MiB) copied, 0.506991 s, 472 MB/s

故障

タッチパネル

突然反応しなくなった. 以前動作していた Ubuntu 21.04 Liveや,UEFI でも動作しないので故障と思われる.

保守部品としてはタッチパネル単体部分はなさそうで液晶ごと交換となるようで高い. Eliexpressを見ると単体があるが交換のハードルが高そう.

とりあえずドライバはアンロードしておく.

snippet.bash
$ sudo rmmod wacom

永続化

snippet.bash
$ echo 'blacklist wacom | sudo tee -a /etc/modprobe.d/blacklist.conf

関連URL

コメント

コメントを入力. Wiki文法が有効です:
   ___    ___    _  __   _  __  __  __
  / _ \  / _ \  / |/ /  / |/ / / / / /
 / ___/ / // / /    /  /    / / /_/ / 
/_/    /____/ /_/|_/  /_/|_/  \____/
 
lenovo/yoga-260.txt · 最終更新: 2022/02/07 05:27 by matoken