Skip to main content
  • Place orders quickly and easily
  • View orders and track your shipping status
  • Enjoy members-only rewards and discounts
  • Create and access a list of your products
  • Manage your Dell EMC sites, products, and product-level contacts using Company Administration.

Dell製ノートパソコンでUbuntuまたはRed Hat Enterprise Linux 7のスリープを無効にしてカバーの電源設定を構成する方法

Summary: この記事に記載されている手順に従って、UbuntuまたはRed Hat Enterprise Linux 7がインストールされているDell製ノートパソコンでスリープを無効にするか、カバーの電源設定を行います。

This article may have been automatically translated. If you have any feedback regarding its quality, please let us know using the form at the bottom of this page.

Article Content


Instructions


UbuntuまたはRed Hat Enterprise Linux 7のスリープを無効にして、カバーの電源設定を構成する方法

スリープを無効にする:

メモ: このスリープを無効にする方法は、systemdを使用してサービスを管理する他のLinuxオペレーティング システムでも機能するはずです。
  1. ご使用の特定のオペレーティング システムについての以下の手順に従ってターミナルを開きます。
    • Ubuntuのターミナルを開きます(図1)。

      HOW12691_en_US__2Open Terminal
      図1: Ubuntuのターミナルを開く

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

      HOW12691_en_US__3Red Hat Enterprise 7 Terminal Utitilities
      図2:アプリケーション/ユーティリティー メニューからターミナルを開く

    • また、Red Hat Enterprise 7では、メイン[Applications]メニューからターミナルを開くこともできます(図3)。

      HOW12691_en_US__4Red Hat Enterprise 7 Terminal Applications
      図3:アプリケーション メニューからターミナルを開く

  2. ターミナルを開き、次のコマンドを実行します。 # systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target

スリープを有効にする:

  1. ターミナルを開きます。
  2. 次のコマンドを実行します。 # systemctl unmask sleep.target suspend.target hibernate.target hybrid-sleep.target

カバーの電源設定を設定する:

  1. /etc/systemd/logind.confファイルを開いて編集します。
  2. #HandleLidSwitch=suspendの行を検索します。
  3. 行の先頭にある#文字を削除します。
  4. 次のいずれかの設定に行を変更します。
    • HandleLidSwitch=poweroff(カバーが閉じられたらコンピューターをシャットダウンする)
    • HandleLidSwitch=hibernate(カバーが閉じられたらコンピューターを休止状態にする)
    • HandleLidSwitch=suspend(カバーが閉じられたらコンピューターをサスペンド状態にする)
    • HandleLidSwitch=ignore(何もしない)
  5. ファイルを保存し、変更を適用するために# systemctl restart systemd-logindと入力してサービスを再起動します。

Article Properties


Affected Product

Red Hat Enterprise Linux Version 7

Last Published Date

16 Feb 2024

Version

7

Article Type

How To