<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>「ignore」タグの記事一覧Python Tech</title>
	<atom:link href="https://tech.nkhn37.net/tag/ignore/feed/" rel="self" type="application/rss+xml" />
	<link>https://tech.nkhn37.net</link>
	<description>Python学習サイト</description>
	<lastBuildDate>Mon, 12 Jan 2026 21:09:20 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://tech.nkhn37.net/wp-content/uploads/2021/01/cropped-lion-normal-clear-1-32x32.png</url>
	<title>「ignore」タグの記事一覧Python Tech</title>
	<link>https://tech.nkhn37.net</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>【Ubuntu Tips】ノートPCを閉じても起動したままにする方法</title>
		<link>https://tech.nkhn37.net/ubuntu-tips-notebook-close/</link>
					<comments>https://tech.nkhn37.net/ubuntu-tips-notebook-close/#respond</comments>
		
		<dc:creator><![CDATA[naoki-hn]]></dc:creator>
		<pubDate>Sun, 11 Jul 2021 02:00:00 +0000</pubDate>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[HandleLidSwitch]]></category>
		<category><![CDATA[ignore]]></category>
		<category><![CDATA[logind.conf]]></category>
		<guid isPermaLink="false">https://tech.nkhn37.net/?p=1787</guid>

					<description><![CDATA[UbuntuをノートPCで使用している場合に、ノートPCを閉じるとサスペンド状態となってしまいますが、ノートPCを閉じた状態でも起動したままとする設定方法について紹介します。 ノートPCを閉じても起動したままにする設定方 [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>UbuntuをノートPCで使用している場合に、ノートPCを閉じるとサスペンド状態となってしまいますが、<span class="marker"><strong>ノートPCを閉じた状態でも起動したままとする設定方法</strong></span>について紹介します。</p>



<h2 class="wp-block-heading jinr-heading d--bold" id="ノートpcを閉じても起動したままにする設定方法">ノートPCを閉じても起動したままにする設定方法</h2>



<p>ノートPCをサーバー用途などのためにリモートで使用したい場合に、ノートPCを閉じたままでも起動したままの状態としたくなる場合があります。</p>



<h3 class="wp-block-heading jinr-heading d--bold" id="設定ファイルの変更">設定ファイルの変更</h3>



<p>UbuntuでノートPCを閉じた状態で起動状態とするためには「<span class="marker"><strong>/etc/systemd/logind.conf</strong></span>」を編集します。</p>



<pre class="EnlighterJSRAW" data-enlighter-language="raw" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">#HandleLidSwitch=suspend
HandleLidSwitch=ignore</pre>



<p>設定を変更する項目は「HandleLidSwitch」で、設定値を「ignore」に変更します。#はコメント行なので、新しく行を追加してignoreとするか、#を消してignoreに変更してください。</p>



<h3 class="wp-block-heading jinr-heading d--bold" id="設定の反映方法">設定の反映方法</h3>



<p>設定ファイルへの変更を反映するためには以下のコマンドを実行します。</p>



<pre class="EnlighterJSRAW" data-enlighter-language="raw" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="false" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">sudo systemctl restart systemd-logind</pre>



<p>コマンド実行後は、ノートPCを閉じてもPCは起動した状態となります。</p>



<h2 class="wp-block-heading jinr-heading d--bold" id="ノートpcをサーバーとして使うことについて">ノートPCをサーバーとして使うことについて</h2>



<p>ノートPCを閉じた状態で使用としたい方はサーバー用途等で常につけっぱなしにすることを目的としている方がもしかしたらいるかもしれません。停電時でもバッテリー駆動なのでサーバーが即停止とならないことからノートPCを選択する方もいるかもしれません。</p>



<p>しかし、自宅でノートPCをサーバー用途として利用するのは個人的にはやめた方がよいと思います。ノートPCのバッテリーは製品によりますが発火するような事例がこれまでも起こっています。そのため、外出して不在の時にバッテリーが発火してしまうと自宅火災で大きな損害となる場合が考えられます。</p>



<p>そのため、サーバー用途で常時起動し公開が必要な場合は、AWSやXServer等のようなレンタルサーバーを使用するのが無難かと思います。今回の閉じた状態でもPCを起動状態にするのは、あくまで家にいるときにデスクトップからリモートアクセスして大きな画面で使用したいなど、そういった用途にとどめるべきかと思います。</p>


<section class="b--jinr-block b--jinr-blogcard d--blogcard-hover-up d--blogcard-style1 d--blogcard-mysite t--round "><div class="a--blogcard-label ef">あわせて読みたい</div><a class="o--blogcard-link t--round" href="https://tech.nkhn37.net/python-tech-summary-page/"><div class="c--blogcard-image"><img decoding="async" class="a--blogcard-img-src" width="128" height="72" src="https://tech.nkhn37.net/wp-content/uploads/2024/08/Python-Tech-Pythonプログラミングガイド_new1-640x360.jpg" alt="【Python Tech】プログラミングガイド" /></div><div class="a--blogcard-title d--bold">【Python Tech】プログラミングガイド</div></a></section>]]></content:encoded>
					
					<wfw:commentRss>https://tech.nkhn37.net/ubuntu-tips-notebook-close/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Disk: Enhanced  を使用したページ キャッシュ

Served from: tech.nkhn37.net @ 2026-04-22 12:50:16 by W3 Total Cache
-->