permanently disabling usb / mmc ports under linux
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
My BIOS does not have option to disable specific ports.
I want to disable permanently specific USB / MMC ports on my system ( x86_64, kernel 4.15+, debian-like). I started with USB ports.
- Disabling : Port will be powered down just like unbind mechanism.
- Permanent : Please someone help me to make this persistent via UDEV/KernelCMDLINE. I read almost all references on the net, but couldn't find an example to avoid kernel to create device nodes very early at initramfs !
I read: https://www.kernel.org/doc/html/v4.16/driver-api/usb/power-management.html
And with my current kernel ( 4.15+) except unbind mechanism, I couldn't find a way to poweroff specific port, while other ports still continue to have powered on.
And unfortunately, bind/unbind mechanism is not very friendly: Even without reboot, if you remove/re-insert the device, your settings for that port are get lost.
Is there a way to achive permanently disable specific port under linux ?
linux usb power-management
add a comment |Â
up vote
0
down vote
favorite
My BIOS does not have option to disable specific ports.
I want to disable permanently specific USB / MMC ports on my system ( x86_64, kernel 4.15+, debian-like). I started with USB ports.
- Disabling : Port will be powered down just like unbind mechanism.
- Permanent : Please someone help me to make this persistent via UDEV/KernelCMDLINE. I read almost all references on the net, but couldn't find an example to avoid kernel to create device nodes very early at initramfs !
I read: https://www.kernel.org/doc/html/v4.16/driver-api/usb/power-management.html
And with my current kernel ( 4.15+) except unbind mechanism, I couldn't find a way to poweroff specific port, while other ports still continue to have powered on.
And unfortunately, bind/unbind mechanism is not very friendly: Even without reboot, if you remove/re-insert the device, your settings for that port are get lost.
Is there a way to achive permanently disable specific port under linux ?
linux usb power-management
A possible duplicate
â RubberStamp
18 mins ago
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
My BIOS does not have option to disable specific ports.
I want to disable permanently specific USB / MMC ports on my system ( x86_64, kernel 4.15+, debian-like). I started with USB ports.
- Disabling : Port will be powered down just like unbind mechanism.
- Permanent : Please someone help me to make this persistent via UDEV/KernelCMDLINE. I read almost all references on the net, but couldn't find an example to avoid kernel to create device nodes very early at initramfs !
I read: https://www.kernel.org/doc/html/v4.16/driver-api/usb/power-management.html
And with my current kernel ( 4.15+) except unbind mechanism, I couldn't find a way to poweroff specific port, while other ports still continue to have powered on.
And unfortunately, bind/unbind mechanism is not very friendly: Even without reboot, if you remove/re-insert the device, your settings for that port are get lost.
Is there a way to achive permanently disable specific port under linux ?
linux usb power-management
My BIOS does not have option to disable specific ports.
I want to disable permanently specific USB / MMC ports on my system ( x86_64, kernel 4.15+, debian-like). I started with USB ports.
- Disabling : Port will be powered down just like unbind mechanism.
- Permanent : Please someone help me to make this persistent via UDEV/KernelCMDLINE. I read almost all references on the net, but couldn't find an example to avoid kernel to create device nodes very early at initramfs !
I read: https://www.kernel.org/doc/html/v4.16/driver-api/usb/power-management.html
And with my current kernel ( 4.15+) except unbind mechanism, I couldn't find a way to poweroff specific port, while other ports still continue to have powered on.
And unfortunately, bind/unbind mechanism is not very friendly: Even without reboot, if you remove/re-insert the device, your settings for that port are get lost.
Is there a way to achive permanently disable specific port under linux ?
linux usb power-management
linux usb power-management
asked 24 mins ago
Sertac TULLUK
112
112
A possible duplicate
â RubberStamp
18 mins ago
add a comment |Â
A possible duplicate
â RubberStamp
18 mins ago
A possible duplicate
â RubberStamp
18 mins ago
A possible duplicate
â RubberStamp
18 mins ago
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f478737%2fpermanently-disabling-usb-mmc-ports-under-linux%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
A possible duplicate
â RubberStamp
18 mins ago