[SOLVED] Restore a configuration file in modprobe.d and disabling internal bluetooth adaptor to use the external one

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
lalincedeldeserto

[SOLVED] Restore a configuration file in modprobe.d and disabling internal bluetooth adaptor to use the external one

Post by lalincedeldeserto »

Hi!!! :D :D :D
I'm in trouble with modprobe from this morning. I used a command containing tee followed by a string with some options... Like this:

Code: Select all

echo "options rtl8723be msi=1" | sudo tee -a /etc/modprobe.d/rtl8723be.conf
I was modifying the file named rtl8723be.conf. I don't know what it contained before... How can I get the default options?
wifi it's working correctly. This morning I was trying to set the internal Bluetooth adapter off in order to use the external one.

Laptop information:

Code: Select all

riccardo@riccardo-HP-ProBook-450-G2:~$ inxi -Fxz
System:    Host: riccardo-HP-ProBook-450-G2 Kernel: 4.15.0-38-generic x86_64
           bits: 64 gcc: 7.3.0
           Desktop: Cinnamon 3.8.9 (Gtk 3.22.30-1ubuntu1)
           Distro: Linux Mint 19 Tara
Machine:   Device: laptop System: Hewlett-Packard product: HP ProBook 450 G2 v: A3009DD10303 serial: N/A
           Mobo: Hewlett-Packard model: 2248 v: KBC Version 67.24 serial: N/A
           BIOS: Hewlett-Packard v: M74 Ver. 01.09 date: 01/26/2015
Battery    BAT0: charge: 27.9 Wh 96.5% condition: 28.9/28.9 Wh (100%)
           model: Hewlett-Packard Primary status: N/A
CPU:       Dual core Intel Core i7-4510U (-MT-MCP-) 
           arch: Haswell rev.1 cache: 4096 KB
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 10375
           clock speeds: max: 3100 MHz 1: 1622 MHz 2: 1389 MHz 3: 1271 MHz
           4: 1349 MHz
Graphics:  Card: Intel Haswell-ULT Integrated Graphics Controller
           bus-ID: 00:02.0
           Display Server: x11 (X.Org 1.19.6 ) driver: intel
           Resolution: 1366x768@60.02hz
           OpenGL: renderer: Mesa DRI Intel Haswell Mobile
           version: 4.5 Mesa 18.0.5 Direct Render: Yes
Audio:     Card-1 Intel 8 Series HD Audio Controller
           driver: snd_hda_intel bus-ID: 00:1b.0
           Card-2 Intel Haswell-ULT HD Audio Controller
           driver: snd_hda_intel bus-ID: 00:03.0
           Sound: Advanced Linux Sound Architecture v: k4.15.0-38-generic
Network:   Card-1: Realtek RTL8111/8168/8411 PCIE Gigabit Ethernet Controller
           driver: r8169 v: 2.3LK-NAPI port: 4000 bus-ID: 08:00.0
           IF: enp8s0 state: down mac: <filter>
           Card-2: Realtek RTL8723BE PCIe Wireless Network Adapter
           driver: rtl8723be port: 3000 bus-ID: 09:00.0
           IF: wlo1 state: up mac: <filter>
Drives:    HDD Total Size: 380.1GB (11.2% used)
           ID-1: /dev/sda model: TOSHIBA_MQ01ABD0 size: 320.1GB
           ID-2: /dev/sdb model: Dogfish_SSD_60G size: 60.0GB
Partition: ID-1: / size: 55G used: 9.4G (18%) fs: ext4 dev: /dev/sdb1
           ID-2: /home size: 285G used: 23G (9%) fs: ext4 dev: /dev/sda1
           ID-3: swap-1 size: 9.00GB used: 0.00GB (0%)
           fs: swap dev: /dev/sda2
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 39.5C mobo: 0.0C
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 225 Uptime: 29 min Memory: 1886.8/7848.9MB
           Init: systemd runlevel: 5 Gcc sys: 7.3.0
           Client: Shell (bash 4.4.191) inxi: 2.3.56 
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 4 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
JeremyB
Level 21
Level 21
Posts: 13846
Joined: Fri Feb 21, 2014 8:17 am

Re: Is there a way to restore a configuration file in modprobe.d?

Post by JeremyB »

Try

Code: Select all

sudo rm /etc/modprobe.d/rtl8723be.conf
sudo modprobe -r rtl8723be
sudo modprobe rtl8723
That should return you to defaults

Post results for

Code: Select all

lsusb
lalincedeldeserto

Re: Is there a way to restore a configuration file in modprobe.d?

Post by lalincedeldeserto »

Code: Select all

riccardo@riccardo-HP-ProBook-450-G2:~$ sudo rm /etc/modprobe.d/rtl8723be.conf
[sudo] password di riccardo: 
riccardo@riccardo-HP-ProBook-450-G2:~$ sudo modprobe -r rtl8723be
riccardo@riccardo-HP-ProBook-450-G2:~$ sudo modprobe rtl8723
modprobe: FATAL: Module rtl8723 not found in directory /lib/modules/4.15.0-38-generic
riccardo@riccardo-HP-ProBook-450-G2:~$ sudo modprobe rtl8723be
riccardo@riccardo-HP-ProBook-450-G2:~$
Done it works!! :D :D :D :D
Thanks :lol: :wink:
Last edited by lalincedeldeserto on Sat Nov 03, 2018 11:58 am, edited 1 time in total.
lalincedeldeserto

Re: Is there a way to restore a configuration file in modprobe.d?

Post by lalincedeldeserto »

JeremyB wrote: Sat Nov 03, 2018 11:49 am Try

Code: Select all

sudo rm /etc/modprobe.d/rtl8723be.conf
sudo modprobe -r rtl8723be
sudo modprobe rtl8723
That should return you to defaults

Post results for

Code: Select all

lsusb
lsusb command produces these results

Code: Select all

riccardo@riccardo-HP-ProBook-450-G2:~$ lsusb
Bus 001 Device 002: ID 8087:8000 Intel Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 004: ID 05c8:0374 Cheng Uei Precision Industry Co., Ltd (Foxlink) 
Bus 002 Device 003: ID 138a:003f Validity Sensors, Inc. VFS495 Fingerprint Reader
Bus 002 Device 002: ID 0bda:b001 Realtek Semiconductor Corp. 
Bus 002 Device 005: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
JeremyB
Level 21
Level 21
Posts: 13846
Joined: Fri Feb 21, 2014 8:17 am

Re: Is there a way to restore a configuration file in modprobe.d?

Post by JeremyB »

Create a file named /etc/udev/rules.d/81-bluetooth-hci.rules
Add the following for contents

Code: Select all

SUBSYSTEM=="usb", ATTRS{idVendor}=="0bda", ATTRS{idProduct}=="b001", ATTR{authorized}="0"
Reboot and the internal bluetooth won't interfere
gm10

Re: Is there a way to restore a configuration file in modprobe.d?

Post by gm10 »

Wouldn't a simple rfkill be easier, in particular for when he wants to switch back?
JeremyB
Level 21
Level 21
Posts: 13846
Joined: Fri Feb 21, 2014 8:17 am

Re: Is there a way to restore a configuration file in modprobe.d?

Post by JeremyB »

gm10 wrote: Sun Nov 04, 2018 6:18 am Wouldn't a simple rfkill be easier, in particular for when he wants to switch back?
The bluetooth managers don't work if rfkill is used but someone could do a hciconfig -a to see if hci0 or hci1 is the one they don't want working and then do sudo hciconfig hci? down to temporarily disable it
gm10

Re: Is there a way to restore a configuration file in modprobe.d?

Post by gm10 »

I didn't actually know that command, thx.
lalincedeldeserto

Re: Is there a way to restore a configuration file in modprobe.d?

Post by lalincedeldeserto »

JeremyB wrote: Sun Nov 04, 2018 5:45 am Create a file named /etc/udev/rules.d/81-bluetooth-hci.rules
Add the following for contents

Code: Select all

SUBSYSTEM=="usb", ATTRS{idVendor}=="0bda", ATTRS{idProduct}=="b001", ATTR{authorized}="0"
Reboot and the internal bluetooth won't interfere
Thanks, man!! It's working greatly :wink: :lol: :D 8)
Locked

Return to “Software & Applications”