1 |
Hi, |
2 |
|
3 |
Greg KH wrote: |
4 |
>># Internal aliases, do not edit |
5 |
>>alias char-major-195 nvidia |
6 |
>>alias /dev/nvidiactl char-major-195 |
7 |
> |
8 |
> |
9 |
> Why do you need these? Aren't they automatically generated by depmod if |
10 |
> you put the correct code in the kernel module source code (see the |
11 |
> MODULE_ALIAS() stuff.) |
12 |
|
13 |
Was not aware of that - will investigate. |
14 |
|
15 |
>># Configurable module parameters |
16 |
>># For more details, see /usr/share/doc/nvidia-kernel-1.0.6629/README.gz |
17 |
>># |
18 |
>># silence_nvidia_output - Silence output: 0 (default, verbose) or 1 |
19 |
>>(silent) |
20 |
>># NVreg_EnableVia4x - Enable AGP4x on VIA chipsets (default disabled) |
21 |
>># NVreg_EnableALiAGP - Enable AGP on ALi1541/1647 chipsets (default |
22 |
>>disabled) |
23 |
>># NVreg_NvAGP - Select which AGPGART is used if unspecified by X - 0 |
24 |
>>(disable), 1 (use nvidia), 2 (use kernel), 3 (try 2 then 1, default) |
25 |
>># NVreg_EnableAGPSBA - Enable AGP Side Band Addressing |
26 |
>># NVreg_EnableAGPFW - Enable AGP Fast Writes (default disabled) |
27 |
>># NVreg_SoftEDIDs - Enable dynamic generation of EDID info (default |
28 |
>>enabled) |
29 |
>># NVreg_Mobile - Select Mobile registry key when SoftEDIDs is disabled - 0 |
30 |
>>(auto, default), 1 (Dell), 2 (Toshiba), 3 (other), 4 (Compal/Toshiba), 5 |
31 |
>>(Gateway) |
32 |
> |
33 |
> |
34 |
> modinfo also generates this automaticallly, with full strings, right? |
35 |
> Hm, your patch has that. |
36 |
|
37 |
Yep thats how they are generated. Except nvidia were too lazy to include param |
38 |
descriptions, so I had to write some myself in that other patch. |
39 |
|
40 |
> I guess I don't see the need for why we have these modules.d files. |
41 |
> Anyone want to hit me with the cluestick for being not awake yet today? |
42 |
|
43 |
To provide default options when loading or autoloading modules. For example, I |
44 |
have the example in that file uncommented, and when I boot up, nvidia module |
45 |
gets autoloaded with those options I have specified. To be more specific, all |
46 |
of the /etc/modules.d/ files get aggregated into /etc/modules.conf when |
47 |
"modules-update" is run (every bootup). |
48 |
|
49 |
Bear in mind that I am simply automating/generalising a process that is |
50 |
already in place. Currently, |
51 |
/usr/portage/media-video/nvidia-kernel/files/1.0.6629/nvidia is copied into |
52 |
/etc/modules.d but I am trying to generate a mechanism to automatically |
53 |
generate this and generalise it so that other module ebuilds can use it too. |
54 |
|
55 |
Daniel |
56 |
|
57 |
-- |
58 |
gentoo-kernel@g.o mailing list |