[packages/nvidiabl] add modprobe.conf with sample module options

glen glen at pld-linux.org
Tue Feb 26 18:51:20 CET 2013


commit b08319f79aa5551c65a6d41b36adcc472bfe1182
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Tue Feb 26 19:47:54 2013 +0200

    add modprobe.conf with sample module options

 modprobe.conf | 27 +++++++++++++++++++++++++++
 nvidiabl.spec |  6 +++++-
 2 files changed, 32 insertions(+), 1 deletion(-)
---
diff --git a/nvidiabl.spec b/nvidiabl.spec
index a3305c3..0d3643a 100644
--- a/nvidiabl.spec
+++ b/nvidiabl.spec
@@ -18,6 +18,7 @@ License:	GPL v2+
 URL:		https://github.com/guillaumezin/nvidiabl
 Source0:	https://github.com/guillaumezin/nvidiabl/archive/v%{version}.tar.gz?/%{modname}-%{version}.tgz
 # Source0-md5:	f72d90c0fe34b36a0ff3b6d7034e99c4
+Source1:	modprobe.conf
 Patch0:		nvidiabl-dkmsconf.patch
 Group:		Base/Kernel
 %{?with_dist_kernel:BuildRequires:	kernel%{_alt_kernel}-module-build >= 3:2.6.20.2}
@@ -95,11 +96,13 @@ Ten pakiet zawiera moduł jądra Linuksa.
 rm -rf $RPM_BUILD_ROOT
 %if %{with kernel}
 %install_kernel_modules -m nvidiabl -d misc
+install -d $RPM_BUILD_ROOT/etc/modprobe.d/%{_kernel_ver}
+cp -p %{SOURCE1} $RPM_BUILD_ROOT/etc/modprobe.d/%{_kernel_ver}/%{pname}.conf
 %endif
 
 %if %{with dkms}
 install -d $RPM_BUILD_ROOT%{_usrsrc}/%{modname}-%{version}-%{rel}
-cp -a Makefile *.[ch] $RPM_BUILD_ROOT%{_usrsrc}/%{modname}-%{version}-%{rel}
+cp -p Makefile *.[ch] $RPM_BUILD_ROOT%{_usrsrc}/%{modname}-%{version}-%{rel}
 sed -e 's|@MODNAME@|%{modname}|g' -e 's|@MODVERSION@|%{version}-%{rel}|g' \
 	dkms.conf > $RPM_BUILD_ROOT%{_usrsrc}/%{modname}-%{version}-%{rel}/dkms.conf
 %endif
@@ -131,4 +134,5 @@ rm -rf $RPM_BUILD_ROOT
 %files -n kernel%{_alt_kernel}-video-nvidiabl
 %defattr(644,root,root,755)
 /lib/modules/%{_kernel_ver}/misc/*.ko*
+%config(noreplace) %verify(not md5 mtime size) /etc/modprobe.d/%{_kernel_ver}/%{pname}.conf
 %endif
diff --git a/modprobe.conf b/modprobe.conf
new file mode 100644
index 0000000..3f6de1e
--- /dev/null
+++ b/modprobe.conf
@@ -0,0 +1,27 @@
+# nvidiabl module options:
+#
+# - model (charp)
+# backlight model, must be empty for autodetection, nv4x, or nv5x
+#
+# - type (string)
+# Backlight type (raw|platform|firmware) default is raw
+#
+# - off (long)
+# value to put in the register to disable the backlight, negative value is
+# interpreted as percentage of maximum, -101 for default, autodetect otherwise
+#
+# - min (long)
+# minimum register value for the backlight, negative value is interpreted as
+# percentage of maximum, -101 for default, autodetect otherwise
+
+# - screen_type (long)
+#
+# - max (long)
+# maximum register value for the backlight, -101 for default, autodetect
+# otherwise
+#
+# - pci_id (ulong)
+# PCI ID of the Nvidia card - usefull only when not using autodetection and
+# more than one Nvidia PCI device
+
+#options nvidiabl max=180
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/nvidiabl.git/commitdiff/2b4d907b42670fc3ad0832f458666027a6292313



More information about the pld-cvs-commit mailing list