LinuxQuestions.org

LinuxQuestions.org (http://www.linuxquestions.org/questions/index.php)
-   Linux - Hardware (http://www.linuxquestions.org/questions/forumdisplay.php?f=18)
-   -   scan for new hardware (http://www.linuxquestions.org/questions/showthread.php?t=4175458488)

masonje 04-17-2013 09:43 AM

scan for new hardware
 
Is there some kind of hardware discovery command I can run? This is actually on a thin client and I know the image has the drivers. But for some strange quark, maybe about 5% of the time, when I load the image, it doesn't find the sound card. There is a "Factory reset" option that removes all customization, and that seams to fix it. I would like to avoid having to do this, and proactively run a script post customization to check for no audio devices and if nothing is found, then run the hardware discovery command.

OS: ThinPro 4.0 (HP's customized version of Ubuntu 10.04)
Hardware: HP t5745

derekpock 04-17-2013 02:33 PM

In Ubuntu Sofware Center, under preferences, there should be a other hardware tab. There is where it is listed. I assume when you apt-get update, it recheck hardware as well.

ra.amri 04-19-2013 06:26 AM

I assume the sound card is connected via the PCI bus.

In this case, first type "lspci -D" to determine the path to your sound card, it has the form domain:bus:slot.function at the beginning of the line. (domain is usually 0000)

Then "echo 1 > /sys/class/pci_bus/domain\:bus/rescan".

From the kernel documentation :
Quote:

Writing a non-zero value to this attribute will
force a rescan of the device's parent bus and all
child buses, and re-discover devices removed earlier
from this part of the device tree.
Depends on CONFIG_HOTPLUG


All times are GMT -5. The time now is 09:00 PM.