Bugzilla – Bug 121893
Module still loaded after device removal
Last modified: 2008-06-25 09:52:55 UTC
I´ve a TV card with BT848 chipset installed. I configured it as "MIRO PCTV Pro". It didn´t work correctly and sometimes locked my system (I filed bug reports for that) so I selected it in YaST2 and removed it. Now there´s again a "BT848 video capture" entry but it´s displayed as "not configured". But on system starup I still see messages form the bttv driver in the messages log, so it´s still loaded even if the card is removed. YaST2 logs are attached.
Created attachment 52045 [details] YaST2 logs
According to the log file /etc/sysconfig/hardware/bus-pci-0000:04:06.0 was removed by the yast module. Could you check whether any of /etc/sysconfig/hardware/* files use bttv driver? (use "grep bttv /etc/sysconfig/hardware/*" command)
The grep command didn´t return a result, so I guess bttv isn´t referenced. I checked again but it starts and detects my card.
I removed the card from my system and the driver isn´t loaded anymore at startup.
I just noticed that it´s the same with a soundcard. I installed one then removed it in YaST but the kernel module is still loaded.
Is hardware removed from sysconfig automatically if I remove it from the system or so I have to remove the hardware in YaST prior to removing the cards. I just tested with another soundcard which doesn´t work. I removed it from YaST but I still have the errors about it in the messages log.
I think that the drivers are loaded automatically by hotplug/udev. Can I prevent loading of a driver? What should yast do when user decides to remove a device? Just to remove all configuration (and leave hotplug to load the drivers) or to prevent loading of the drivers?
IMHO all sevice setting and rules should be removed, since trying out new hardware shouldn´t harm the system configuration.
Every physically conected device will be set up at startup via udev. udev calls hwup. hwup looks for a config file. If there is a config then hwup follows the settings from it. If there is no configuration it automatically detects the right driver and loads it. Thus you normally need no special config file for most devices. If you want to disable a physically conected device, then just create a config file (/etc/sysconfig/hardware/bus-pci-0000:04:06.0 in your case) and set STARTMODE=manual
openSUSE10.3/11.0 do not use sysconfig anymore, the driver needs to be blacklisted...
mass reopening all SuSE Linux bugs that are set to REMIND+LATER to change the resolution to WONTFIX (adapting to new policy)
Closing old LATER+REMIND bugs as WONTFIX - if you still plan to work on it, feel free to reopen and set to ASSIGNED. In case the report saw repeated reopen comments, it's due to bugzilla timing out on the huge request ;(