「Linuxのインストール」の版間の差分

Notion-MW
Notion-MW
タグ: 差し戻し済み
56行目: 56行目:
<li><p>NVIDIAのGPUが入っているPCでgrubが出るのにその先行かない(スプラッシュで止まるとか)時はnomodesetをつける(重要)</p></li>
<li><p>NVIDIAのGPUが入っているPCでgrubが出るのにその先行かない(スプラッシュで止まるとか)時はnomodesetをつける(重要)</p></li>
<li><p>セキュアブート関係かわからないが、</p>
<li><p>セキュアブート関係かわからないが、</p>
<syntaxhighlight lang="text">error processing package grub-efi-amd64-signed (--configure):
<syntaxhighlight lang="python">
text
error processing package grub-efi-amd64-signed (--configure):
  subprocess installed post-installation script returned error exit status 1</syntaxhighlight>
  subprocess installed post-installation script returned error exit status 1</syntaxhighlight>
<p>というエラーが更新をインストールするたびに出たことがあった。これは[https://askubuntu.com/questions/763472/what-can-i-do-to-fix-this-error-on-grub-efi https&#58;//askubuntu.com/questions/763472/what&#45;can&#45;i&#45;do&#45;to&#45;fix&#45;this&#45;error&#45;on&#45;grub&#45;efi] の通りgrubパッケージを再インストールする。この際途中で、grubのブートローダーのファイルを消しますか?と聞かれて、めんどいので消さないことにしたりして、色々やったり再起動したりしたりしたらなんか治ったきがする。詳細忘れた。</p></li></ul>
<p>というエラーが更新をインストールするたびに出たことがあった。これは[https://askubuntu.com/questions/763472/what-can-i-do-to-fix-this-error-on-grub-efi https&#58;//askubuntu.com/questions/763472/what&#45;can&#45;i&#45;do&#45;to&#45;fix&#45;this&#45;error&#45;on&#45;grub&#45;efi] の通りgrubパッケージを再インストールする。この際途中で、grubのブートローダーのファイルを消しますか?と聞かれて、めんどいので消さないことにしたりして、色々やったり再起動したりしたりしたらなんか治ったきがする。詳細忘れた。</p></li></ul>
88行目: 90行目:
一部のモニターだけに適用するには、crtcで指定する。ただしcrtcは割と不安定に変わってしまう感じがあるため、xrandrで表示されるoutputの名前(eDP&#45;1とかHDMI&#45;2とか)で指定したい。自分でxrandrの出力から計算するしかなさそう。(eDP&#45;1での)例&#58;
一部のモニターだけに適用するには、crtcで指定する。ただしcrtcは割と不安定に変わってしまう感じがあるため、xrandrで表示されるoutputの名前(eDP&#45;1とかHDMI&#45;2とか)で指定したい。自分でxrandrの出力から計算するしかなさそう。(eDP&#45;1での)例&#58;


<syntaxhighlight lang="javascript">#!/bin/sh
<syntaxhighlight lang="python">
 
javascript
#!/bin/sh
cd `dirname $0`
cd `dirname $0`
./redshift -x
./redshift -x
183行目: 188行目:
<p>modprobe intel_ipts</p>
<p>modprobe intel_ipts</p>
<p>とすれば治る。いちいち打つのは面倒なのでキーボードショートカットにするが、root権限がいるので、root権限無しで実行できる特例としてシェルスクリプトを作り([https://askubuntu.com/questions/821919/how-do-i-add-sudo-commands-to-a-keyboard-shortcut How do I add sudo commands to a keyboard shortcut? &#45; Ask Ubuntu]など参照)、ホットキー登録する。</p>
<p>とすれば治る。いちいち打つのは面倒なのでキーボードショートカットにするが、root権限がいるので、root権限無しで実行できる特例としてシェルスクリプトを作り([https://askubuntu.com/questions/821919/how-do-i-add-sudo-commands-to-a-keyboard-shortcut How do I add sudo commands to a keyboard shortcut? &#45; Ask Ubuntu]など参照)、ホットキー登録する。</p>
<syntaxhighlight lang="javascript">USERNAME ALL=(root) NOPASSWD: /usr/local/bin/set-kbd-backlight</syntaxhighlight></li></ul>
<syntaxhighlight lang="python">
 
javascript
USERNAME ALL=(root) NOPASSWD: /usr/local/bin/set-kbd-backlight</syntaxhighlight></li></ul>


<span id="蓋キーボードハイバーネート"></span>
<span id="蓋キーボードハイバーネート"></span>