https://bugzilla.novell.com/show_bug.cgi?id=231171#c37
--- Comment #37 from andy ritger 2007-11-21 17:23:56 MST ---
I'm happy to investigate sending a uevent if/when the NVIDIA driver
creates a device file.
FWIW, here is the flow from the NVIDIA X driver perspective:
ScreenInit()
...
|--> xf86LoadKernelModule("nvidia")
...
|--> if /dev/nvidia* doesn't exist, then mknod, chmod, and chown
The NVIDIA driver README has a little more detail:
-----
Q. How and when are the the NVIDIA device files created?
A. Depending on the target system's configuration, the NVIDIA device files
used to be created in one of three different ways:
o at installation time, using mknod
o at module load time, via devfs (Linux device file system)
o at module load time, via hotplug/udev
With current NVIDIA driver releases, device files are created or modified
by the X driver when the X server is started.
By default, the NVIDIA driver will attempt to create device files with the
following attributes:
UID: 0 - 'root'
GID: 0 - 'root'
Mode: 0666 - 'rw-rw-rw-'
Existing device files are changed if their attributes don't match these
defaults. If you want the NVIDIA driver to create the device files with
different attributes, you can specify them with the "NVreg_DeviceFileUID"
(user), "NVreg_DeviceFileGID" (group) and "NVreg_DeviceFileMode" NVIDIA
Linux kernel module parameters.
For example, the NVIDIA driver can be instructed to create device files
with UID=0 (root), GID=44 (video) and Mode=0660 by passing the following
module parameters to the NVIDIA Linux kernel module:
NVreg_DeviceFileUID=0
NVreg_DeviceFileGID=44
NVreg_DeviceFileMode=0660
The "NVreg_ModifyDeviceFiles" NVIDIA kernel module parameter will disable
dynamic device file management, if set to 0.
-----
Note that the NVIDIA driver used to create the device files from the
NVIDIA kernel module, but there were sequencing problems with hotplug/udev
that made that unworkable.
I have to admit, though, that I'm not very familiar with the current
state of uevent/HAL. Could you please spell out for me what exactly
you'd like the NVIDIA driver to do, what calls the NVIDIA driver needs
to make to do that, and how the NVIDIA driver should detect on what
systems/distributions it should do this?
Thanks,
- Andy
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.