mirror of
https://github.com/AlexBocken/mykb.git
synced 2024-11-23 19:52:18 +01:00
added nvidia
This commit is contained in:
parent
bd1e99e154
commit
999ba81369
46
docs/nvidia.md
Normal file
46
docs/nvidia.md
Normal file
@ -0,0 +1,46 @@
|
||||
# Nvidia
|
||||
|
||||
Good luck.
|
||||
## Installation
|
||||
|
||||
Arch: install the `nvidia` package.
|
||||
|
||||
## Configuration
|
||||
|
||||
### Minimal xorg setup for only running on Nvidia GPU
|
||||
|
||||
This minimal configuration should get you started. Add this in `/etc/X11/xorg.conf.d` in a file similar to `10-nvidia-drm-outputclass.conf`
|
||||
|
||||
```xf86config
|
||||
Section "OutputClass"
|
||||
Identifier "intel"
|
||||
MatchDriver "i915"
|
||||
Driver "modesetting"
|
||||
EndSection
|
||||
|
||||
Section "OutputClass"
|
||||
Identifier "nvidia"
|
||||
MatchDriver "nvidia-drm"
|
||||
Driver "nvidia"
|
||||
Option "AllowEmptyInitialConfiguration"
|
||||
Option "PrimaryGPU" "yes"
|
||||
ModulePath "/usr/lib/nvidia/xorg"
|
||||
ModulePath "/usr/lib/xorg/modules"
|
||||
EndSection
|
||||
```
|
||||
|
||||
### Scaling without overscan on PRIME displays
|
||||
If you cannot use `xrandr --scale ` without leading to over/underscan you need to adjust a kernel parameter:
|
||||
|
||||
create a file in `/etc/modprobe.d` (for example called `nvidia-drm-nomodeset.conf`) with the following content.
|
||||
|
||||
```xf86config
|
||||
options nvidia-drm modeset=1
|
||||
```
|
||||
|
||||
and rebuild your kernel via
|
||||
```sh
|
||||
sudo mkinitcpio -P
|
||||
```
|
||||
|
||||
After a reboot this should enable scaling for PRIME displays.
|
3
index.md
3
index.md
@ -10,7 +10,8 @@ Happy to accept pull requests for new topics!
|
||||
- [weechat](docs/weechat.md) TUI client for matrix
|
||||
- [git](docs/GIT.md) version control software
|
||||
- [neomutt](docs/neomutt.md) highly customizable TUI email client
|
||||
- [matlab](docs/matlab.md) A proprietary but extensive python alternative with integrated IDE.
|
||||
- [matlab](docs/matlab.md) A proprietary but extensive python alternative with integrated IDE
|
||||
- [nvidia](docs/nvidia.md) Various recommendations for setting up NVIDIA drivers
|
||||
|
||||
# Server
|
||||
- [server](docs/ServerSetup.md) short guide for hosting a server
|
||||
|
Loading…
Reference in New Issue
Block a user