[Y-devel] About Video Drivers

Brandon Black brandon at tryplec.com
Tue Mar 9 21:53:40 GMT 2004


Shawn wrote:

>On Tue, 2004-03-09 at 21:09 +0000, Mark Thomas wrote:
>  
>
>>>How do you propose that Y removes the need to unload the nvidia kernel
>>>module in order to load the new one, which is the only reason you
>>>would /need/ to exit Y|X to upgrade the nvidia drivers.
>>>
>>>      
>>>
>>It's Easy:
>>
>>   yctl Server/Module -i unload drivers/video/proprietary/nvidia
>>   rmmod nvidia
>>   install_new_nvidia_kernel_and_y_module
>>   modprobe nvidia
>>   yctl Server/Module -i load drivers/video/proprietary/nvidia
>>    
>>
>
>Excellent. Does the display/screen continue to exist? That is to say, do
>already connected Y apps stay there and again get displayed using the
>new driver once it is loaded?
>
>I suspect this is the case since you say as much, but this was the
>sticking point in the argument about graphical installers for Y display
>adapter drivers.
>
>I suppose it could fork off and come back in between if not.
>
>Anyway, Y does not need a package management system, and I'm sure you
>agree.
>
>One day we may be able to train neural networks to go googling for
>adapter specs and write drivers for us. Heck, maybe even the grueling
>work of installing them. Nah... That'd just be WAYYY too hard.
>  
>

I would imagine you could at the very least handle it as a "reload" 
event.  Chances are X and Y require a lot of the same stuff out of the 
lower levels of the card driver, and chances are that nvidia would 
probably re-use the same kernel module they use now and just ship 
different Y parts that work on top of it.  So we probably *are* talking 
about a kernel module and a Y module as in the example above.  But I 
think Y could dissaociate itself from the display temporarily and 
unload/reload display drivers without terminating all your graphical 
software.  Kinda like how some X window managers can be reloaded with 
new configurations without shutting down any applications.  Y could 
simply turn the display off (screen goes black), unload mdule, do other 
stuff, reload module, screen comes back on and keeps on rendering the 
apps.  I think the order would have to go more like this though:

install_new_nvidia_kernel_module_and_y_module_to_filesystem
yctl Server/Module -i reload -k also_do_this_kernel_driver_named_this 
drivers/video/proprietary/nvidia
[which causes it to unload drivers/video/proprietary/nvidia, unload and 
reload also_do_this_kernel_driver using rmmod/modprobe, and reload 
drivers/video/proprietary/nvidia]

User intervention to execute other commands in the middle probably 
wouldn't be available with the screen gone.



More information about the Y-devel mailing list









2026 © www.Y-Windows.Org - All Rights Reserved