Re: [Solved] Command to Toggle wifi adapter enabled/disabl

Questions about Wi-Fi and other network devices, file sharing, firewalls, connection sharing etc
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
JeremyB
Level 21
Level 21
Posts: 13854
Joined: Fri Feb 21, 2014 8:17 am

Re: [Unsolved] Command to Toggle wifi adapter enabled/disabl

Post by JeremyB »

I have found setting the interfaces file to wlan0 manual to have issues at times and I choose to use a unique name to blacklist a module to make the blacklist easier to remove. If the blacklist is in the blacklist.conf file, you would have to edit with sudo permissions but it if has another name, it is easy to do with terminal, with yours it would be just

Code: Select all

sudo rm /etc/modprobe.d/rt2800pci.conf
reboot and the blacklist is gone
johnywhy

Re: [Unsolved] Command to Toggle wifi adapter enabled/disabl

Post by johnywhy »

JeremyB wrote:If the blacklist is in the blacklist.conf file, you would have to edit with sudo permissions but it if has another name, it is easy to do with terminal
OK, I think I understand all that, but we need Sudo in both cases, right?

Thx!
JeremyB
Level 21
Level 21
Posts: 13854
Joined: Fri Feb 21, 2014 8:17 am

Re: [Unsolved] Command to Toggle wifi adapter enabled/disabl

Post by JeremyB »

johnywhy wrote:
JeremyB wrote:If the blacklist is in the blacklist.conf file, you would have to edit with sudo permissions but it if has another name, it is easy to do with terminal
OK, I think I understand all that, but we need Sudo in both cases, right?

Thx!
yes
johnywhy

Re: [Unsolved] Command to Toggle wifi adapter enabled/disabl

Post by johnywhy »

ok, cool. the only thing i'm not understanding is why putting the blacklist into blacklist.conf did not work.

thx for all help!
JeremyB
Level 21
Level 21
Posts: 13854
Joined: Fri Feb 21, 2014 8:17 am

Re: [Unsolved] Command to Toggle wifi adapter enabled/disabl

Post by JeremyB »

You can only blacklist drivers, not devices and the driver for the internal card was rt2800pci
johnywhy

Re: [Unsolved] Command to Toggle wifi adapter enabled/disabl

Post by johnywhy »

JeremyB wrote:You can only blacklist drivers, not devices and the driver for the internal card was rt2800pci
so should this work?

Code: Select all

blacklist rt2800pci
JeremyB
Level 21
Level 21
Posts: 13854
Joined: Fri Feb 21, 2014 8:17 am

Re: Re: [Unsolved] Command to Toggle wifi adapter enabled/di

Post by JeremyB »

johnywhy wrote:
JeremyB wrote:You can only blacklist drivers, not devices and the driver for the internal card was rt2800pci
so should this work?

Code: Select all

blacklist rt2800pci
It will work in any .conf file in /etc/modprobe.d/
johnywhy

Re: [Unsolved] Command to Toggle wifi adapter enabled/disabl

Post by johnywhy »

thx, i learned something new!

new issue:
- i closed my lid a couple times (not sure if related).
- then i noticed a leafpad window was stuck in the foreground-- i could activate other windows, but leafpad stayed in front.
- then, my connection started acting very flaky. Tried disconnecting and reconnecting several times.
- then, i pulled out the wifi dongle, and Mint crashed.
- i got a text screen which said "kernel panic" at the bottom.

Should this be a separate thread?

thx!
JeremyB
Level 21
Level 21
Posts: 13854
Joined: Fri Feb 21, 2014 8:17 am

Re: [Unsolved] Command to Toggle wifi adapter enabled/disabl

Post by JeremyB »

A new thread would be appropriate as we don't know if or how it would be related to wifi. If you remember what time it happened you could look through /var/log/syslog and possibly /var/log/syslog.1 to find the time to see if there is something related to the kernel panic
Locked

Return to “Networking”