{"id":341,"date":"2024-07-12T22:57:04","date_gmt":"2024-07-12T13:57:04","guid":{"rendered":"https:\/\/yug-oc.net\/serv_blog\/?p=341"},"modified":"2024-07-12T22:57:04","modified_gmt":"2024-07-12T13:57:04","slug":"fedora40%e3%82%92%e3%83%8e%e3%83%bc%e3%83%88pc%e3%81%a7%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%81%a8%e3%81%97%e3%81%a6%e5%88%a9%e7%94%a8%e3%81%99%e3%82%8b%e6%9c%80%e4%bd%8e%e9%99%90%e3%81%ae%e8%a8%ad","status":"publish","type":"post","link":"https:\/\/yug-oc.net\/serv_blog\/archives\/341","title":{"rendered":"Fedora40\u3092\u30ce\u30fc\u30c8PC\u3067\u30b5\u30fc\u30d0\u30fc\u3068\u3057\u3066\u5229\u7528\u3059\u308b\u6700\u4f4e\u9650\u306e\u8a2d\u5b9a\uff08\u30b9\u30ea\u30fc\u30d7\u3055\u305b\u306a\u3044\uff09"},"content":{"rendered":"\n<p>OS\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u884c\u3044\u3001\u8d77\u52d5\u3057\u305f\u7d20\u306e\u72b6\u614b\u3067\u30ab\u30d0\u30fc\u3092\u9589\u3058\u308b\u3068\u30d1\u30bd\u30b3\u30f3\u304c\u30b9\u30ea\u30fc\u30d7\u3057\u3066\u3057\u307e\u3046\u3002<br>\u305d\u306e\u5bfe\u7b56\u3092\u771f\u3063\u5148\u306b\u884c\u3046\u3053\u3068\u306b\u3057\u305f\u3002<\/p>\n\n\n\n<p>RHEL\u306e\u30de\u30cb\u30e5\u30a2\u30eb\u4e0a\u3067\u306f\u3001\/etc\/systemd\/logind.conf\u3092\u7de8\u96c6\u3059\u308b\u6d41\u308c\u306b\u306a\u3063\u3066\u3044\u308b\u304c\u3001Fedora\u3067\u306f\u305d\u306e\u4f4d\u7f6e\u306b\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306f\u7121\u3044\u3002<br>\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3068\u306a\u308b\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306f\/usr\/lib\/systemd\/logind.conf\u306b\u3042\u308b\u306e\u3067\u3001\u305d\u3061\u3089\u3092\u6d41\u7528\u3059\u308b\u3053\u3068\u306b\u306a\u308b\u3002<\/p>\n\n\n\n<p>\/usr\/lib\/systemd\/logind.conf\u306e\u30b3\u30e1\u30f3\u30c8\u90e8\u5206\u3092\u8aad\u3080\u3068\u3001\/etc\/systemd\/logind.conf.d\/\u3042\u305f\u308a\u306b\u30b3\u30d4\u30fc\u3059\u308b\u304b\u306a\u3093\u304b\u3057\u3061\u3083\u3063\u3066\uff5e\u307f\u305f\u3044\u306a\u4e8b\u304c\u66f8\u3044\u3066\u3042\u308b\u306e\u3067\u3001\u305d\u3053\u306b\u30f3\u30d9\u30c3\u3068\u8a2d\u5b9a\u3092\u7f6e\u3044\u3066\u3044\u304f\u3053\u3068\u306b\u3059\u308b\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--cbp-line-number-width:calc(1 * 0.6 * .875rem);line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#2f363c;color:#d3d7dd\">Bash<\/span><span role=\"button\" tabindex=\"0\" data-code=\"sudo mkdir \/etc\/systemd\/logind.conf.d\/\nsudo vim \/etc\/systemd\/logind.conf.d\/99-logind.conf\n\n[Login]\nHandleSuspendKey=ignore\nHandleSuspendKeyLongPress=ignore\nHandleHibernateKey=ignore\nHandleLidSwitch=ignore\nHandleLidSwitchExternalPower=ignore\" style=\"color:#e1e4e8;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki github-dark\" style=\"background-color: #24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #B392F0\">sudo<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #9ECBFF\">mkdir<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #9ECBFF\">\/etc\/systemd\/logind.conf.d\/<\/span><\/span>\n<span class=\"line\"><span style=\"color: #B392F0\">sudo<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #9ECBFF\">vim<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #9ECBFF\">\/etc\/systemd\/logind.conf.d\/99-logind.conf<\/span><\/span>\n<span class=\"line\"><\/span>\n<span class=\"line\"><span style=\"color: #E1E4E8\">[Login]<\/span><\/span>\n<span class=\"line\"><span style=\"color: #E1E4E8\">HandleSuspendKey<\/span><span style=\"color: #F97583\">=<\/span><span style=\"color: #9ECBFF\">ignore<\/span><\/span>\n<span class=\"line\"><span style=\"color: #E1E4E8\">HandleSuspendKeyLongPress<\/span><span style=\"color: #F97583\">=<\/span><span style=\"color: #9ECBFF\">ignore<\/span><\/span>\n<span class=\"line\"><span style=\"color: #E1E4E8\">HandleHibernateKey<\/span><span style=\"color: #F97583\">=<\/span><span style=\"color: #9ECBFF\">ignore<\/span><\/span>\n<span class=\"line\"><span style=\"color: #E1E4E8\">HandleLidSwitch<\/span><span style=\"color: #F97583\">=<\/span><span style=\"color: #9ECBFF\">ignore<\/span><\/span>\n<span class=\"line\"><span style=\"color: #E1E4E8\">HandleLidSwitchExternalPower<\/span><span style=\"color: #F97583\">=<\/span><span style=\"color: #9ECBFF\">ignore<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u8a2d\u5b9a\u5f8c\u306f\u3001Systemd\u306b\u3066systemd-logind\u3092\u518d\u8d77\u52d5\u3055\u305b\u3066\u8a2d\u5b9a\u3092\u53cd\u6620\u3055\u305b\u308c\u3070OK\u3067\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-JetBrains-Mono\" style=\"font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span style=\"display:flex;align-items:center;padding:10px 0px 10px 16px;margin-bottom:-2px;width:100%;text-align:left;background-color:#2f363c;color:#d3d7dd\">Bash<\/span><span role=\"button\" tabindex=\"0\" data-code=\"sudo systemctl restart systemd-logind\" style=\"color:#e1e4e8;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2\"><\/path><\/svg><\/span><pre class=\"shiki github-dark\" style=\"background-color: #24292e\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #B392F0\">sudo<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #9ECBFF\">systemctl<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #9ECBFF\">restart<\/span><span style=\"color: #E1E4E8\"> <\/span><span style=\"color: #9ECBFF\">systemd-logind<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u3088\u304f\u898b\u304b\u3051\u308b\u8a18\u4e8b\u3067\u306f\u3001<br><strong>systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target<\/strong><\/p>\n\n\n\n<p>\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u3044\u308b\u30d1\u30bf\u30fc\u30f3\uff08systemctl mask\u306e\u307f\u3068\u3001\u8a2d\u5b9a\u3092\u5909\u3048\u308b\u624b\u9806\u306e\u5408\u308f\u305b\u6280\u306a\u3069\uff09\u3082\u3042\u308b\u3088\u3046\u3067\u3059\u304c\u3001\u6b63\u3057\u304f\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308c\u3070\u57fa\u672c\u7684\u306b\u306f\u4e0d\u8981\u3063\u307d\u3044\u3002<\/p>\n\n\n\n<p>\u9006\u306b\u3001\u8a2d\u5b9a\u304c\u6b63\u3057\u304f\u53cd\u6620\u3055\u308c\u3066\u3044\u306a\u3044\u306e\u306b\u300c<strong>systemctl unmask sleep.target suspend.target hibernate.target hybrid-sleep.target<\/strong>\u300d\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u3057\u307e\u3046\u3068\u3001\u30ab\u30d0\u30fc\u3092\u9589\u3058\u305f\u3068\u304d\u306bsystemd-logind\u30d7\u30ed\u30bb\u30b9\u304c\u30a8\u30e9\u30fc\u3092\u5410\u304d\u7d9a\u3051\u3001\u5927\u91cf\u306e\u30a8\u30e9\u30fc\u30ed\u30b0\u3067\u30c7\u30a3\u30b9\u30af\u3092\u5727\u8feb\u3057\u3001\u3055\u3089\u306bCPU\u3092\u5360\u6709\u3057\u3066\u3057\u307e\u3046\u305f\u3081\u30aa\u30b9\u30b9\u30e1\u3057\u3066\u3044\u307e\u305b\u3093\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>OS\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u884c\u3044\u3001\u8d77\u52d5\u3057\u305f\u7d20\u306e\u72b6\u614b\u3067\u30ab\u30d0\u30fc\u3092\u9589\u3058\u308b\u3068\u30d1\u30bd\u30b3\u30f3\u304c\u30b9\u30ea\u30fc\u30d7\u3057\u3066\u3057\u307e\u3046\u3002\u305d\u306e\u5bfe\u7b56\u3092\u771f\u3063\u5148\u306b\u884c\u3046\u3053\u3068\u306b\u3057\u305f\u3002 RHEL\u306e\u30de\u30cb\u30e5\u30a2\u30eb\u4e0a\u3067\u306f\u3001\/etc\/systemd\/logind.conf\u3092\u7de8\u96c6\u3059\u308b\u6d41\u308c\u306b\u306a\u3063 &hellip; <a href=\"https:\/\/yug-oc.net\/serv_blog\/archives\/341\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">Fedora40\u3092\u30ce\u30fc\u30c8PC\u3067\u30b5\u30fc\u30d0\u30fc\u3068\u3057\u3066\u5229\u7528\u3059\u308b\u6700\u4f4e\u9650\u306e\u8a2d\u5b9a\uff08\u30b9\u30ea\u30fc\u30d7\u3055\u305b\u306a\u3044\uff09<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[],"class_list":["post-341","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/yug-oc.net\/serv_blog\/wp-json\/wp\/v2\/posts\/341","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yug-oc.net\/serv_blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yug-oc.net\/serv_blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yug-oc.net\/serv_blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yug-oc.net\/serv_blog\/wp-json\/wp\/v2\/comments?post=341"}],"version-history":[{"count":1,"href":"https:\/\/yug-oc.net\/serv_blog\/wp-json\/wp\/v2\/posts\/341\/revisions"}],"predecessor-version":[{"id":342,"href":"https:\/\/yug-oc.net\/serv_blog\/wp-json\/wp\/v2\/posts\/341\/revisions\/342"}],"wp:attachment":[{"href":"https:\/\/yug-oc.net\/serv_blog\/wp-json\/wp\/v2\/media?parent=341"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yug-oc.net\/serv_blog\/wp-json\/wp\/v2\/categories?post=341"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yug-oc.net\/serv_blog\/wp-json\/wp\/v2\/tags?post=341"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}