「Linuxのインストール」の版間の差分
Notion-MW タグ: 手動差し戻し |
Notion-MW |
||
(同じ利用者による、間の3版が非表示) | |||
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="plain 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://askubuntu.com/questions/763472/what-can-i-do-to-fix-this-error-on-grub-efi] の通りgrubパッケージを再インストールする。この際途中で、grubのブートローダーのファイルを消しますか?と聞かれて、めんどいので消さないことにしたりして、色々やったり再起動したりしたりしたらなんか治ったきがする。詳細忘れた。</p></li></ul> | <p>というエラーが更新をインストールするたびに出たことがあった。これは[https://askubuntu.com/questions/763472/what-can-i-do-to-fix-this-error-on-grub-efi https://askubuntu.com/questions/763472/what-can-i-do-to-fix-this-error-on-grub-efi] の通りgrubパッケージを再インストールする。この際途中で、grubのブートローダーのファイルを消しますか?と聞かれて、めんどいので消さないことにしたりして、色々やったり再起動したりしたりしたらなんか治ったきがする。詳細忘れた。</p></li></ul> | ||
88行目: | 88行目: | ||
一部のモニターだけに適用するには、crtcで指定する。ただしcrtcは割と不安定に変わってしまう感じがあるため、xrandrで表示されるoutputの名前(eDP-1とかHDMI-2とか)で指定したい。自分でxrandrの出力から計算するしかなさそう。(eDP-1での)例: | 一部のモニターだけに適用するには、crtcで指定する。ただしcrtcは割と不安定に変わってしまう感じがあるため、xrandrで表示されるoutputの名前(eDP-1とかHDMI-2とか)で指定したい。自分でxrandrの出力から計算するしかなさそう。(eDP-1での)例: | ||
<syntaxhighlight lang=" | <syntaxhighlight lang="shell">#!/bin/sh | ||
cd `dirname $0` | cd `dirname $0` | ||
./redshift -x | ./redshift -x | ||
178行目: | 178行目: | ||
<li><p>shim-signedパッケージのエラーがaptやるたびにでてるのは</p> | <li><p>shim-signedパッケージのエラーがaptやるたびにでてるのは</p> | ||
<p>[https://github.com/jakeday/linux-surface/commits/master/SIGNING.md https://github.com/jakeday/linux-surface/commits/master/SIGNING.md]</p> | <p>[https://github.com/jakeday/linux-surface/commits/master/SIGNING.md https://github.com/jakeday/linux-surface/commits/master/SIGNING.md]</p> | ||
<p> | <p>(現在は最新版が削除されているので[https://github.com/jakeday/linux-surface/blob/a39cc29295318894d624977a107c0999cc0ef6ac/SIGNING.md こちら])に従ってブートローダーに署名すれば良いっぽい</p> | ||
<ul> | |||
<li>ubuntu系に関しては [https://github.com/berglh/ubuntu-sb-kernel-signing https://github.com/berglh/ubuntu-sb-kernel-signing] を使うのが楽そう。設定項目は基本的にはデフォルトのままで進めればいいと思うが、MokManagerに関するものだけなぜかデフォルトがNoになっているのでこれはYesにしたほうがいい。</li></ul> | |||
</li> | |||
<li><p>タッチパネルをすばやく操作すると反応しなくなることがある。その時は[https://github.com/jakeday/linux-surface/issues/55 https://github.com/jakeday/linux-surface/issues/55]に記載の通り、</p> | <li><p>タッチパネルをすばやく操作すると反応しなくなることがある。その時は[https://github.com/jakeday/linux-surface/issues/55 https://github.com/jakeday/linux-surface/issues/55]に記載の通り、</p> | ||
<p>rmmod intel_ipts</p> | <p>rmmod intel_ipts</p> | ||
<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? - 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? - Ask Ubuntu]など参照)、ホットキー登録する。</p> | ||
<syntaxhighlight lang=" | <syntaxhighlight lang="shell">USERNAME ALL=(root) NOPASSWD: /usr/local/bin/set-kbd-backlight</syntaxhighlight></li></ul> | ||
<span id="蓋キーボードハイバーネート"></span> | <span id="蓋キーボードハイバーネート"></span> |