Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
eepm
Commits
f25212c0
Commit
f25212c0
authored
Mar 25, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm prescription: add switch-to-nouveau and switch-to-nvidia commands
parent
df0acad6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
82 additions
and
0 deletions
+82
-0
switch-to-nouveau.sh
prescription.d/switch-to-nouveau.sh
+49
-0
switch-to-nvidia.sh
prescription.d/switch-to-nvidia.sh
+33
-0
No files found.
prescription.d/switch-to-nouveau.sh
0 → 100755
View file @
f25212c0
#!/bin/sh
[
"
$1
"
!=
"--run"
]
&&
echo
"Switch to using open source driver nouveau for NVIDIA cards"
&&
exit
assure_root
exit
[
"
$(
epm print info
-s
)
"
=
"alt"
]
||
fatal
"Only ALTLinux is supported"
# https://www.altlinux.org/Nvidia#Смена_открытых_драйверов_на_проприетарные[1]
epm update
||
exit
epm update-kernel
||
exit
# epm full-upgrade || exit
# TODO: проверить, совпадает ли ядро
# reboot now
# TODO
#kernel-modules-drm-nouveau-std-def (un-def)
#xorg-drv-nouveau
#xorg-dri-nouveau
echo
"Set nouveau in /etc/X11/xorg.conf.d/10-monitor.conf"
a
=
xsetup-monitor
-d
nouveau
# TODO
grep
nvidia /etc/X11/xorg.conf.d/
*
.conf /etc/X11/xorg.conf
#/etc/modprobe.d/blacklist-nvidia-x11.conf и записываем туда:[1]
#blacklist nvidia
#blacklist nouveau
# TODO
# rm -f /etc/modprobe.d/blacklist-alterator-x11
# или наоборот записываем в него вместо блокировки nouveau , блокировку nvidia
# TODO
a
=
x11presetdrv
a
=
ldconfig
# И не обязательно перезагружаться?
a
=
make-initrd
-k
$(
uname
-r
)
# /usr/bin/nvidia-clean-driver
# TODO: https://www.altlinux.org/Nvidia#Замена_драйверов_nouveau/nvidia_"на_лету"
echo
"Done. Just you need reboot your system to use open source nouveau drivers for NVIDIA cards."
prescription.d/switch-to-nvidia.sh
0 → 100755
View file @
f25212c0
#!/bin/sh
[
"
$1
"
!=
"--run"
]
&&
echo
"Switch to using nVidia proprietary driver"
&&
exit
assure_root
exit
[
"
$(
epm print info
-s
)
"
=
"alt"
]
||
fatal
"Only ALTLinux is supported"
# https://www.altlinux.org/Nvidia#Смена_открытых_драйверов_на_проприетарные[1]
epm update
||
exit
epm update-kernel
||
exit
# TODO: проверить, совпадает ли ядро
# reboot now
# rewrite:
#rpm -e $(rpm -qf `modinfo -F filename nouveau`)
epm
install
--skip-installed
nvidia_glx_common
||
exit
# FIXME: really needed,
# make-initrd
# Возьмём команды оттуда, потому что пакета может не быть
# epm assure /usr/bin/nvidia-install-driver nvidia_glx_common
epm update
||
exit
a
=
apt-get install-nvidia
||
exit
a
=
x11presetdrv
a
=
ldconfig
echo
"Done. Just you need reboot your system to use nVidia proprietary drivers."
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment