0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Ubuntu ノートPCトラブルシューティングメモ帳(随時追加)

Last updated at Posted at 2025-10-18

2025年 最新のトラブル

(En) Ubuntu troubleshooting for laptop

1. Power off trouble

  • Even if selecting poweroff in the menu or command, PC is switch on when you close cover

solution

Edit logind.conf file

  1. Open terminal sudo "your favorite editor" /etc/systemd/logind.conf

sudo vi /etc/systemd/logind.conf


#HandleLidSwitch=suspend line should be modified
# remove # from this line, Changing parameter suspend to ignore  
HandleLidSwitch=ignore となります。

  • If you cannnot find "HandleLidSwitch=suspend ", adding "HandleLidSwitch=ignore"
  • Then you will power off your laptop conmputer.

If you will fail start PC

  • Please try dpkg in the Recovery mode

Power offを選択してもLCD画面を閉じると電源入ってしまう(ノートPC)

  • 予兆としてはACPI関連のFAILメッセージなどが出ていたりする

確認環境
Ubuntu 22.04
RTX4050内蔵ノートPC

対策

設定ファイルを編集する

  1. ターミナルを開き、sudo "エディタ名" /etc/systemd/logind.conf を実行
  • 私は使い勝手が悪いが、確実なviで編集なので、以下の通りになります

sudo vi /etc/systemd/logind.conf


#HandleLidSwitch=suspend という行を変更
# 行頭の # を削除し、suspend を ignore に変更します。 
HandleLidSwitch=ignore となります。

  • もし HandleLidSwitch=suspend がなければ、ファイルの末尾に HandleLidSwitch=ignore を追加
  1. 変更を保存して再起動する(GUIメニューのPoweroffでOK)
  2. ターミナルからの場合:
  • Ctrl+X を押し、Y を押して保存し、Enterキーを押す。
    

sudo systemctl restart systemd-logind

注意

  • 再起動、電源投入で固まる場合はRecovery modeでdpkgしてみる
  • 一度、有効になってもコンフィグの設定が生きない場合はUEFIでXCIを無効にしてみるのも一手
0
0
0

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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?