Bug 121893 - Module still loaded after device removal
Summary: Module still loaded after device removal
Status: RESOLVED WONTFIX
Alias: None
Product: SUSE Linux 10.1
Classification: openSUSE
Component: YaST2 (show other bugs)
Version: Alpha 1
Hardware: Other All
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Ladislav Slezák
QA Contact: Klaus Kämpf
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-09 19:27 UTC by Michael Stather
Modified: 2008-06-25 09:52 UTC (History)
0 users

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
YaST2 logs (675.74 KB, application/x-gtar)
2005-10-09 19:28 UTC, Michael Stather
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Stather 2005-10-09 19:27:58 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.
Comment 1 Michael Stather 2005-10-09 19:28:16 UTC
Created attachment 52045 [details]
YaST2 logs
Comment 2 Ladislav Slezák 2005-10-10 14:32:39 UTC
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)
Comment 3 Michael Stather 2005-10-10 14:46:00 UTC
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.
Comment 4 Michael Stather 2005-10-16 22:07:48 UTC
I removed the card from my system and the driver isn´t loaded anymore at startup.
Comment 5 Michael Stather 2005-10-18 16:19:07 UTC
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.
Comment 6 Michael Stather 2005-11-01 15:59:36 UTC
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.
Comment 7 Ladislav Slezák 2006-01-09 16:57:18 UTC
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?
Comment 8 Michael Stather 2006-01-09 19:25:52 UTC
IMHO all sevice setting and rules should be removed, since trying out new hardware shouldn´t harm the system configuration.
Comment 9 Christian Zoz 2006-01-10 09:55:10 UTC
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
Comment 12 Ladislav Slezák 2008-04-08 08:47:55 UTC
openSUSE10.3/11.0 do not use sysconfig anymore, the driver needs to be blacklisted...
Comment 13 Stephan Kulow 2008-06-25 09:33:47 UTC
mass reopening all SuSE Linux bugs that are set to REMIND+LATER to change the resolution to WONTFIX (adapting to new policy)
Comment 14 Stephan Kulow 2008-06-25 09:35:25 UTC
mass reopening all SuSE Linux bugs that are set to REMIND+LATER to change the resolution to WONTFIX (adapting to new policy)
Comment 15 Stephan Kulow 2008-06-25 09:41:25 UTC
mass reopening all SuSE Linux bugs that are set to REMIND+LATER to change the resolution to WONTFIX (adapting to new policy)
Comment 16 Stephan Kulow 2008-06-25 09:52:55 UTC
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 ;(