public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] deactivate (bluetooth) hardware based on irq/mac address
@ 2021-07-03 11:17 Tamer Higazi
  2021-07-03 11:26 ` Michael
  0 siblings, 1 reply; 6+ messages in thread
From: Tamer Higazi @ 2021-07-03 11:17 UTC (permalink / raw
  To: gentoo-user

Hi people,

I want to deactivate my bluetooth device on my mainboard when gentoo is 
loaded.
I don't want to "blacklist" the driver, more I want to tell the kernel 
to ignore this hardware.

Is there a way to tell "gentoo" to disable, or not load the driver for 
this particular hardware based on the irq or mac address ?

What is the propper way to do this ?


best, Tamer



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] deactivate (bluetooth) hardware based on irq/mac address
  2021-07-03 11:17 [gentoo-user] deactivate (bluetooth) hardware based on irq/mac address Tamer Higazi
@ 2021-07-03 11:26 ` Michael
  2021-07-03 11:59   ` Tamer Higazi
  0 siblings, 1 reply; 6+ messages in thread
From: Michael @ 2021-07-03 11:26 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 699 bytes --]

On Saturday, 3 July 2021 12:17:42 BST Tamer Higazi wrote:
> Hi people,
> 
> I want to deactivate my bluetooth device on my mainboard when gentoo is
> loaded.
> I don't want to "blacklist" the driver, more I want to tell the kernel
> to ignore this hardware.
> 
> Is there a way to tell "gentoo" to disable, or not load the driver for
> this particular hardware based on the irq or mac address ?
> 
> What is the propper way to do this ?
> 
> 
> best, Tamer

Not sure of a 'proper' way.  I know of a physical way - in hardware where the 
bluetooth has a button you can press to switch it off - typically available in 
laptops.  I also know of the rfkill command which comes with sys-apps/util-
linux.

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] deactivate (bluetooth) hardware based on irq/mac address
  2021-07-03 11:26 ` Michael
@ 2021-07-03 11:59   ` Tamer Higazi
  2021-07-03 12:03     ` Michael
                       ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Tamer Higazi @ 2021-07-03 11:59 UTC (permalink / raw
  To: gentoo-user

Hi

The problem is that the bluetooth circuit seems to be damaged, as I have 
recently the same result on Windows (not only on linux.

At Windows, I can deactivate the hardware at the "device manager", I 
want this the same to be done on Linux.

Not the driver, just to ignore the hardware.
Why do I ask this ?

I ordered now a new bluetooth 5 stick, what if it uses the same driver ?
So loading the driver should not be suppressed more the hardware should 
be ignored....


best, Tamer

Am 3 Jul 2021 um 13:26 schrieb Michael:
> Not sure of a 'proper' way.  I know of a physical way - in hardware where the
> bluetooth has a button you can press to switch it off - typically available in
> laptops.  I also know of the rfkill command which comes with sys-apps/util-
> linux.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] deactivate (bluetooth) hardware based on irq/mac address
  2021-07-03 11:59   ` Tamer Higazi
@ 2021-07-03 12:03     ` Michael
  2021-07-03 12:09     ` tastytea
  2021-07-05 11:24     ` J. Roeleveld
  2 siblings, 0 replies; 6+ messages in thread
From: Michael @ 2021-07-03 12:03 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 653 bytes --]

On Saturday, 3 July 2021 12:59:24 BST Tamer Higazi wrote:
> Hi
> 
> The problem is that the bluetooth circuit seems to be damaged, as I have
> recently the same result on Windows (not only on linux.
> 
> At Windows, I can deactivate the hardware at the "device manager", I
> want this the same to be done on Linux.
> 
> Not the driver, just to ignore the hardware.
> Why do I ask this ?
> 
> I ordered now a new bluetooth 5 stick, what if it uses the same driver ?
> So loading the driver should not be suppressed more the hardware should
> be ignored....

rfkill list
rfkill block bluetooth (or bluetooth device ID)

should block individual device(s).

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] deactivate (bluetooth) hardware based on irq/mac address
  2021-07-03 11:59   ` Tamer Higazi
  2021-07-03 12:03     ` Michael
@ 2021-07-03 12:09     ` tastytea
  2021-07-05 11:24     ` J. Roeleveld
  2 siblings, 0 replies; 6+ messages in thread
From: tastytea @ 2021-07-03 12:09 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 910 bytes --]

On 2021-07-03 13:59+0200 Tamer Higazi <th982a@googlemail.com> wrote:

> Hi
> 
> The problem is that the bluetooth circuit seems to be damaged, as I
> have recently the same result on Windows (not only on linux.
> 
> At Windows, I can deactivate the hardware at the "device manager", I 
> want this the same to be done on Linux.
> 
> Not the driver, just to ignore the hardware.
> Why do I ask this ?
> 
> I ordered now a new bluetooth 5 stick, what if it uses the same
> driver ? So loading the driver should not be suppressed more the
> hardware should be ignored....

If the broken bluetooth device is attached via USB (turns up in
`lsusb`), you can disable it via udev:
<https://projectgus.com/2014/09/blacklisting-a-single-usb-device-from-linux/>.

Kind regards, tastytea

-- 
Get my PGP key with `gpg --locate-keys tastytea@tastytea.de` or at
<https://tastytea.de/tastytea.asc>.

[-- Attachment #2: Digitale Signatur von OpenPGP --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] deactivate (bluetooth) hardware based on irq/mac address
  2021-07-03 11:59   ` Tamer Higazi
  2021-07-03 12:03     ` Michael
  2021-07-03 12:09     ` tastytea
@ 2021-07-05 11:24     ` J. Roeleveld
  2 siblings, 0 replies; 6+ messages in thread
From: J. Roeleveld @ 2021-07-05 11:24 UTC (permalink / raw
  To: gentoo-user

On Saturday, July 3, 2021 1:59:24 PM CEST Tamer Higazi wrote:
> Hi
> 
> The problem is that the bluetooth circuit seems to be damaged, as I have
> recently the same result on Windows (not only on linux.
> 
> At Windows, I can deactivate the hardware at the "device manager", I
> want this the same to be done on Linux.
> 
> Not the driver, just to ignore the hardware.
> Why do I ask this ?
> 
> I ordered now a new bluetooth 5 stick, what if it uses the same driver ?
> So loading the driver should not be suppressed more the hardware should
> be ignored....

Can't you disable the onboard bluetooth in the BIOS?

I managed to do that on my system and it's not detected during boot/use of 
either OS.

--
Joost




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-07-05 11:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-07-03 11:17 [gentoo-user] deactivate (bluetooth) hardware based on irq/mac address Tamer Higazi
2021-07-03 11:26 ` Michael
2021-07-03 11:59   ` Tamer Higazi
2021-07-03 12:03     ` Michael
2021-07-03 12:09     ` tastytea
2021-07-05 11:24     ` J. Roeleveld

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox