You are not logged in.

#1 2009-11-29 13:57:22

kenshis
Member
Registered: 2008-12-16
Posts: 52

disable internal usb at bootup or in kernel

First of all, i can"t repair hardware, cos it will cost as new laptop.

I need to disable internal usb, because it halts my laptop.

temporary solution is:

echo -n 0000:00:1d.3 >/sys/bus/pci/drivers/uhci_hcd/unbind
echo -n 0000:00:1d.2 >/sys/bus/pci/drivers/uhci_hcd/unbind
echo -n 0000:00:1d.1 >/sys/bus/pci/drivers/uhci_hcd/unbind
echo -n 0000:00:1d.0 >/sys/bus/pci/drivers/uhci_hcd/unbind
echo -n 0000:00:1d.7 >/sys/bus/pci/drivers/ehci_hcd/unbind

and i init this script in /etc/rc.sysinit in about various 10 places, cos i don"t now when it will work.

but lately, it disables usb only at very system bootup end. So, if fschk starts at bootup, usb isn"t disabled, and my laptop begins to hiccup (i keep presing touchpad to let it finish, and disable usb (i need to this until usb i disabled))

i would like disable this in kernel (of course, i need to use usb controller, i just need disable thees specific ports)
or how can i disable usb faster, without messing up with kernel hacks?

i got this advice in gentoo forum:

Next thing is to get the kernel to not setup the afflicted port. Unfortunately this is in the realm of custom kernel hacks, I'm not sure if there's a way to override this default behavior to initialize all cards the driver supports... You could try compiling in PCI Fake hotplug and "unplug" the PCI "board", though I'm not familiar with this, I suppose lspci, find the card, and echo a "0" into the power file in /sys ...

Offline

Board footer

Powered by FluxBB