Dell製ノートパソコンでUbuntuまたはRed Hat Enterprise Linux 7のスリープを無効にしてカバーの電源設定を構成する方法
Summary: この記事に記載されている手順に従って、UbuntuまたはRed Hat Enterprise Linux 7がインストールされているDell製ノートパソコンでスリープを無効にするか、カバーの電源設定を行います。
This article applies to
This article does not apply to
This article is not tied to any specific product.
Not all product versions are identified in this article.
Instructions
UbuntuまたはRed Hat Enterprise Linux 7のスリープを無効にして、カバーの電源設定を構成する方法
スリープを無効にする:
メモ: このスリープを無効にする方法は、systemdを使用してサービスを管理する他のLinuxオペレーティング システムでも機能するはずです。
- ご使用の特定のオペレーティング システムについての以下の手順に従ってターミナルを開きます。
- Ubuntuのターミナルを開きます(図1)。

図1: Ubuntuのターミナルを開く - Ctrl + Alt + Tキーボード コマンドを使用して、Red Hat Enterprise 7のターミナルを開きます。
- Red Hat Enterprise 7でターミナルを開くには、[Applications]メニューに移動し、[Utilities]を選択し、リストから[Terminal]を選択することもできます(図2)。

図2:アプリケーション/ユーティリティー メニューからターミナルを開く - また、Red Hat Enterprise 7では、メイン[Applications]メニューからターミナルを開くこともできます(図3)。

図3:アプリケーション メニューからターミナルを開く
- Ubuntuのターミナルを開きます(図1)。
- ターミナルを開き、次のコマンドを実行します。 # systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
スリープを有効にする:
- ターミナルを開きます。
- 次のコマンドを実行します。 # systemctl unmask sleep.target suspend.target hibernate.target hybrid-sleep.target
カバーの電源設定を設定する:
- /etc/systemd/logind.confファイルを開いて編集します。
- #HandleLidSwitch=suspendの行を検索します。
- 行の先頭にある#文字を削除します。
- 次のいずれかの設定に行を変更します。
- HandleLidSwitch=poweroff(カバーが閉じられたらコンピューターをシャットダウンする)
- HandleLidSwitch=hibernate(カバーが閉じられたらコンピューターを休止状態にする)
- HandleLidSwitch=suspend(カバーが閉じられたらコンピューターをサスペンド状態にする)
- HandleLidSwitch=ignore(何もしない)
- ファイルを保存し、変更を適用するために# systemctl restart systemd-logindと入力してサービスを再起動します。
Affected Products
Red Hat Enterprise Linux Version 7Article Properties
Article Number: 000179566
Article Type: How To
Last Modified: 16 Feb 2024
Version: 7
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.