-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
54 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# Created by .ignore support plugin (hsz.mobi) | ||
nvidia-xrun.iml | ||
.idea | ||
test-install.sh | ||
test-cleanup.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
BUS_ID=0000:00:01.0 | ||
MODULE_NVIDIA_DRM_PARAMS="modeset=1" | ||
BUS_RESCAN_WAIT_SEC=1 | ||
MODULES_LOAD=(nvidia nvidia_uvm nvidia_modeset "nvidia_drm modeset=1") | ||
MODULES_UNLOAD=(nvidia_drm nvidia_modeset nvidia_uvm nvidia) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,45 @@ | ||
#!/bin/bash | ||
#!/usr/bin/env bash | ||
|
||
userresources=$HOME/.Xresources | ||
usermodmap=$HOME/.Xmodmap | ||
sysresources=/etc/X11/xinit/.Xresources | ||
sysmodmap=/etc/X11/xinit/.Xmodmap | ||
userxinitrc=$HOME/.nvidia-xinitrc | ||
|
||
# merge in defaults and keymaps | ||
if [ -f ${sysresources} ]; then | ||
if [[ -f ${sysresources} ]]; then | ||
xrdb -merge ${sysresources} | ||
fi | ||
|
||
if [ -f ${sysmodmap} ]; then | ||
if [[ -f ${sysmodmap} ]]; then | ||
xmodmap ${sysmodmap} | ||
fi | ||
|
||
if [ -f "$userresources" ]; then | ||
if [[ -f "$userresources" ]]; then | ||
xrdb -merge "$userresources" | ||
fi | ||
|
||
if [ -f "$usermodmap" ]; then | ||
if [[ -f "$usermodmap" ]]; then | ||
xmodmap "$usermodmap" | ||
fi | ||
|
||
export LD_LIBRARY_PATH=/usr/lib64/nvidia/:/usr/lib32/nvidia:/usr/lib:${LD_LIBRARY_PATH} | ||
|
||
# load additional configs | ||
if [ -d /etc/X11/xinit/nvidia-xinitrc.d ] ; then | ||
if [[ -d /etc/X11/xinit/nvidia-xinitrc.d ]] ; then | ||
for f in /etc/X11/xinit/nvidia-xinitrc.d/?*.sh ; do | ||
[ -x "$f" ] && . "$f" | ||
[[ -x "$f" ]] && . "$f" | ||
done | ||
unset f | ||
fi | ||
|
||
xrandr --setprovideroutputsource modesetting NVIDIA-0 | ||
xrandr --auto | ||
|
||
if [ -f "$userxinitrc" ]; then | ||
if [[ -f "$userxinitrc" ]]; then | ||
sh ${userxinitrc} $* | ||
else | ||
if [ $# -gt 0 ]; then | ||
if [[ $# -gt 0 ]]; then | ||
sh -c "exec $*" | ||
fi | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters