Skip to content

Commit

Permalink
Make the fallback service check for the module status instead of the …
Browse files Browse the repository at this point in the history
…device, which appears only after starting X
  • Loading branch information
scaronni committed May 12, 2017
1 parent d27a996 commit f1f99b4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions nvidia-driver.spec
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

Name: nvidia-driver
Version: 381.22
Release: 3%{?dist}
Release: 4%{?dist}
Summary: NVIDIA's proprietary display driver for NVIDIA graphic cards
Epoch: 2
License: NVIDIA License
Expand Down Expand Up @@ -484,11 +484,15 @@ fi ||:
%{_libdir}/libnvidia-encode.so

%changelog
* Fri May 12 2017 Simone Caronni <negativo17@gmail.com> - 2:381.22-4
- Make the fallback service check for the module status instead of the device,
which appears only after starting X.

* Fri May 12 2017 Simone Caronni <negativo17@gmail.com> - 2:381.22-3
- Restore blacklist for nouveau in modprobe configuration as it creates havoc on
Optimus laptops.

* Thu May 10 2017 Simone Caronni <negativo17@gmail.com> - 2:381.22-2
* Thu May 11 2017 Simone Caronni <negativo17@gmail.com> - 2:381.22-2
- Remove nouveau.modeset=0 from kernel cmdline arguments for Fedora 25+, as this
breaks fallback to nouveau when nvidia.ko fails to load for some reason
- Add nvidia-fallback.service which automatically fallsback to nouveau if the
Expand Down
2 changes: 1 addition & 1 deletion nvidia-fallback.service
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Description=Fallback to nouveau if nvidia did not load
After=akmods.service dkms.service
Before=display-manager.service
ConditionPathExists=!/dev/nvidia
ConditionPathExists=!/sys/module/nvidia

[Service]
Type=oneshot
Expand Down

0 comments on commit f1f99b4

Please sign in to comment.