LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 07-12-2019, 02:59 AM   #1
P5music
Member
 
Registered: Nov 2010
Posts: 111

Rep: Reputation: 0
Bluetooth is shut down, then started again, very often


I am using UbuntuStudio 18.10 on Asus S300CA.
In the past I had issues with Linux distros and bluetooth: the adapter was recognized but after some reboots it disappeared (and sometimes to appear again) because it was like not present on the hardware.

Now I solved this issue by installing this particular distro, that in fact has not that issue, it's the first one to be useful to me as to bluetooth: the bluetooth is alsways recognized and shown on the menu bar at boot.

But every some minutes the bluetooth disappears and after some seconds it appears again. If I am using the bluetooth mouse I get aware of that because it is not responding. It is very frustrating. Similar issue with the bluetooth headphones.

I applied many suggested changes to settings, this is a very common issue, but no way.
I would like to understand why it is so difficult to solve it.
I mean it is a drastic disappearance, shut down of the bluetooth, why?
If the blueman applet is opened I see that all devices disappear and it is greyed out. The icon disappears from the menu bar.
How to check out which service is shutting down the bluetooth at regular time intervals. How to disable this useless action on my system?
Thank you in advance

Last edited by P5music; 07-12-2019 at 03:01 AM.
 
Old 07-13-2019, 12:32 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,553

Rep: Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946
Quote:
Originally Posted by P5music View Post
I am using UbuntuStudio 18.10 on Asus S300CA.
In the past I had issues with Linux distros and bluetooth: the adapter was recognized but after some reboots it disappeared (and sometimes to appear again) because it was like not present on the hardware.

Now I solved this issue by installing this particular distro, that in fact has not that issue, it's the first one to be useful to me as to bluetooth: the bluetooth is alsways recognized and shown on the menu bar at boot.

But every some minutes the bluetooth disappears and after some seconds it appears again. If I am using the bluetooth mouse I get aware of that because it is not responding. It is very frustrating. Similar issue with the bluetooth headphones.

I applied many suggested changes to settings, this is a very common issue, but no way.
And since you don't tell us what these "many suggested changes" are, what you've done/tried, or what you mean by "but no way", there's not much we can suggest.
Quote:
I would like to understand why it is so difficult to solve it. I mean it is a drastic disappearance, shut down of the bluetooth, why? If the blueman applet is opened I see that all devices disappear and it is greyed out. The icon disappears from the menu bar. How to check out which service is shutting down the bluetooth at regular time intervals. How to disable this useless action on my system?
It is called "bluetooth idle timeout", and it's used to keep bluetooth devices batteries from draining when they're not in use. You can look in the blueman settings and disable bluetooth power management.

This isn't a difficult problem to solve, and it's well documented.
 
Old 10-02-2019, 07:05 AM   #3
P5music
Member
 
Registered: Nov 2010
Posts: 111

Original Poster
Rep: Reputation: 0
My bluetooth keeps disconnecting and reconnecting. Many times in day.
I changed my OS and now my system is:

(ASUS S300CA laptop)
Operating System: Kubuntu 19.04
KDE Plasma Version: 5.15.4
KDE Frameworks Version: 5.56.0
Qt Version: 5.12.2
Kernel Version: 5.0.0-29-generic
OS Type: 64-bit
Processors: 4 × Intel® Core™ i5-3317U CPU @ 1.70GHz
Memory: 3,7 GiB of RAM

Here's some log from /var/log/syslog:
Code:
Oct  2 13:23:09 pc kernel: [12566.632409] Bluetooth: hci0: corrupted ACL packet
Oct  2 13:23:13 pc dbus-daemon[842]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' requested by ':1.922' (uid=1000 pid=2181 comm="/usr/lib/firefox/firefox " label="unconfined")
Oct  2 13:23:13 pc systemd[1]: Starting Hostname Service...
Oct  2 13:23:14 pc dbus-daemon[842]: [system] Successfully activated service 'org.freedesktop.hostname1'
Oct  2 13:23:14 pc systemd[1]: Started Hostname Service.
Oct  2 13:23:44 pc systemd[1]: systemd-hostnamed.service: Succeeded.
Oct  2 13:23:55 pc kernel: [12612.435790] usb 1-1.1: USB disconnect, device number 8
Oct  2 13:23:55 pc bluetoothd[838]: Endpoint unregistered: sender=:1.115 path=/MediaEndpoint/A2DPSource
Oct  2 13:23:55 pc systemd[1]: Stopped target Bluetooth.
Oct  2 13:23:55 pc kernel: [12612.714771] usb 1-1.1: new full-speed USB device number 9 using ehci-pci
Oct  2 13:23:55 pc bluetoothd[838]: Endpoint unregistered: sender=:1.115 path=/MediaEndpoint/A2DPSink
Oct  2 13:23:56 pc systemd[1]: Starting Load/Save RF Kill Switch Status...
Oct  2 13:23:56 pc kernel: [12612.824645] usb 1-1.1: New USB device found, idVendor=13d3, idProduct=3402, bcdDevice= 0.01
Oct  2 13:23:56 pc kernel: [12612.824649] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Oct  2 13:23:56 pc kernel: [12612.824651] usb 1-1.1: Product: Bluetooth USB Host Controller
Oct  2 13:23:56 pc kernel: [12612.824653] usb 1-1.1: Manufacturer: Atheros Communications
Oct  2 13:23:56 pc kernel: [12612.824655] usb 1-1.1: SerialNumber: Alaska Day 2006
Oct  2 13:23:56 pc NetworkManager[844]: <info>  [1570015435.9052] bluez5: NAP: removed interface 6C:71:D9:50:6E:2C
Oct  2 13:23:56 pc systemd[1]: Started Load/Save RF Kill Switch Status.
Oct  2 13:23:56 pc kernel: [12613.204062] usb 1-1.1: USB disconnect, device number 9
Oct  2 13:23:56 pc kernel: [12613.426855] usb 1-1.1: new full-speed USB device number 10 using ehci-pci
Oct  2 13:24:01 pc systemd[1]: systemd-rfkill.service: Succeeded.
Oct  2 13:24:02 pc kernel: [12618.780885] usb 1-1.1: New USB device found, idVendor=13d3, idProduct=3402, bcdDevice= 0.02
Oct  2 13:24:02 pc kernel: [12618.780891] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Oct  2 13:24:02 pc kernel: [12618.780895] usb 1-1.1: Product: Bluetooth USB Host Controller
Oct  2 13:24:02 pc kernel: [12618.780897] usb 1-1.1: Manufacturer: Atheros Communications
Oct  2 13:24:02 pc kernel: [12618.780900] usb 1-1.1: SerialNumber: Alaska Day 2006
Oct  2 13:24:02 pc systemd[1]: Starting Load/Save RF Kill Switch Status...
Oct  2 13:24:02 pc systemd[1]: Started Load/Save RF Kill Switch Status.
Oct  2 13:24:02 pc systemd[1]: Reached target Bluetooth.
Oct  2 13:24:02 pc NetworkManager[844]: <info>  [1570015442.3890] bluez5: NAP: added interface 6C:71:D9:50:6E:2C
Oct  2 13:24:02 pc bluetoothd[838]: Endpoint registered: sender=:1.115 path=/MediaEndpoint/A2DPSource
Oct  2 13:24:02 pc bluetoothd[838]: Endpoint registered: sender=:1.115 path=/MediaEndpoint/A2DPSink
Oct  2 13:24:04 pc kernel: [12621.108025] input: BluetoothMouse3600 Mouse as /devices/virtual/misc/uhid/0005:045E:0916.0005/input/input26
Oct  2 13:24:04 pc kernel: [12621.109127] input: BluetoothMouse3600 Consumer Control as /devices/virtual/misc/uhid/0005:045E:0916.0005/input/input27
Oct  2 13:24:04 pc kernel: [12621.109618] hid-generic 0005:045E:0916.0005: input,hidraw2: BLUETOOTH HID v1.00 Mouse [BluetoothMouse3600] on 6C:71:D9:50:6E:2C
Oct  2 13:24:07 pc systemd[1]: systemd-rfkill.service: Succeeded.
I would like to understand what happens when bluetooth is disconnected. I see that the bt icon disappears, mouse is not responding anymore, I have to wait for the bt is up again.
Is there a solution? I can run some script also if necessary. I found this script but it doesn't work for me (I do not know what it does or if it is safe, if you want to try it, use it only if you are aware of possible risks and consequences)

Code:
# Prevents the Bluetooth USB card from getting reset which disconnects the mouse
BTUSB_DEV="13d3:3402"
BTUSB_BINDING="$(lsusb -d "$BTUSB_DEV" |
    cut -f 1 -d : |
    sed -e 's,Bus ,,' -e 's, Device ,/,' |
    xargs -I {} udevadm info -q path -n /dev/bus/usb/{} |
    xargs basename)"


echo "Disabling autosuspend for Bluetooth USB Soundcard: $BTUSB_BINDING..."
echo -1 > "/sys/bus/usb/devices/$BTUSB_BINDING/power/autosuspend_delay_ms"
I found it here
https://ubuntuforums.org/showthread....0#post12926730


the device id should be right, but I am not 100% sure because I found only this:
Bus 001 Device 014: ID 13d3:3402 IMC Networks

command
bluetoothctl --version
output
bluetoothctl: 5.50

command
hciconfig -a
output
hci0: Type: Primary Bus: USB
BD Address: 6C:719:50:6E:2C ACL MTU: 1022:8 SCO MTU: 183:5
UP RUNNING PSCAN
RX bytes:339336 acl:16949 sco:0 events:101 errors:3
TX bytes:5375 acl:34 sco:0 commands:63 errors:0
Features: 0xff 0xfe 0x0d 0xfe 0xd8 0x7f 0x7b 0x87
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: RSWITCH HOLD SNIFF
Link mode: SLAVE ACCEPT
Name: 'pc'
Class: 0x1c010c
Service Classes: Rendering, Capturing, Object Transfer
Device Class: Computer, Laptop
HCI Version: 4.0 (0x6) Revision: 0x102
LMP Version: 4.0 (0x6) Subversion: 0x1
Manufacturer: Atheros Communications, Inc. (69)

command
rfkill list
output
0: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
5: hci0: Bluetooth
Soft blocked: no
Hard blocked: no

I am interested in finding the moment when it happens so I can detect it in a script and restart immediately.
Thank you in advance

Last edited by P5music; 10-02-2019 at 07:07 AM.
 
Old 10-02-2019, 07:16 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,553

Rep: Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946
Quote:
Originally Posted by P5music View Post
My bluetooth keeps disconnecting and reconnecting. Many times in day.
I changed my OS and now my system is:

(ASUS S300CA laptop)
Operating System: Kubuntu 19.04
KDE Plasma Version: 5.15.4
KDE Frameworks Version: 5.56.0
Qt Version: 5.12.2
Kernel Version: 5.0.0-29-generic
OS Type: 64-bit
Processors: 4 × Intel® Core™ i5-3317U CPU @ 1.70GHz
Memory: 3,7 GiB of RAM

Here's some log from /var/log/syslog:
Code:
Oct  2 13:23:09 pc kernel: [12566.632409] Bluetooth: hci0: corrupted ACL packet
Oct  2 13:23:13 pc dbus-daemon[842]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' requested by ':1.922' (uid=1000 pid=2181 comm="/usr/lib/firefox/firefox " label="unconfined")
Oct  2 13:23:13 pc systemd[1]: Starting Hostname Service...
Oct  2 13:23:14 pc dbus-daemon[842]: [system] Successfully activated service 'org.freedesktop.hostname1'
Oct  2 13:23:14 pc systemd[1]: Started Hostname Service.
Oct  2 13:23:44 pc systemd[1]: systemd-hostnamed.service: Succeeded.
Oct  2 13:23:55 pc kernel: [12612.435790] usb 1-1.1: USB disconnect, device number 8
Oct  2 13:23:55 pc bluetoothd[838]: Endpoint unregistered: sender=:1.115 path=/MediaEndpoint/A2DPSource
Oct  2 13:23:55 pc systemd[1]: Stopped target Bluetooth.
Oct  2 13:23:55 pc kernel: [12612.714771] usb 1-1.1: new full-speed USB device number 9 using ehci-pci
Oct  2 13:23:55 pc bluetoothd[838]: Endpoint unregistered: sender=:1.115 path=/MediaEndpoint/A2DPSink
Oct  2 13:23:56 pc systemd[1]: Starting Load/Save RF Kill Switch Status...
Oct  2 13:23:56 pc kernel: [12612.824645] usb 1-1.1: New USB device found, idVendor=13d3, idProduct=3402, bcdDevice= 0.01
Oct  2 13:23:56 pc kernel: [12612.824649] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Oct  2 13:23:56 pc kernel: [12612.824651] usb 1-1.1: Product: Bluetooth USB Host Controller
Oct  2 13:23:56 pc kernel: [12612.824653] usb 1-1.1: Manufacturer: Atheros Communications
Oct  2 13:23:56 pc kernel: [12612.824655] usb 1-1.1: SerialNumber: Alaska Day 2006
Oct  2 13:23:56 pc NetworkManager[844]: <info>  [1570015435.9052] bluez5: NAP: removed interface 6C:71:D9:50:6E:2C
Oct  2 13:23:56 pc systemd[1]: Started Load/Save RF Kill Switch Status.
Oct  2 13:23:56 pc kernel: [12613.204062] usb 1-1.1: USB disconnect, device number 9
Oct  2 13:23:56 pc kernel: [12613.426855] usb 1-1.1: new full-speed USB device number 10 using ehci-pci
Oct  2 13:24:01 pc systemd[1]: systemd-rfkill.service: Succeeded.
Oct  2 13:24:02 pc kernel: [12618.780885] usb 1-1.1: New USB device found, idVendor=13d3, idProduct=3402, bcdDevice= 0.02
Oct  2 13:24:02 pc kernel: [12618.780891] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Oct  2 13:24:02 pc kernel: [12618.780895] usb 1-1.1: Product: Bluetooth USB Host Controller
Oct  2 13:24:02 pc kernel: [12618.780897] usb 1-1.1: Manufacturer: Atheros Communications
Oct  2 13:24:02 pc kernel: [12618.780900] usb 1-1.1: SerialNumber: Alaska Day 2006
Oct  2 13:24:02 pc systemd[1]: Starting Load/Save RF Kill Switch Status...
Oct  2 13:24:02 pc systemd[1]: Started Load/Save RF Kill Switch Status.
Oct  2 13:24:02 pc systemd[1]: Reached target Bluetooth.
Oct  2 13:24:02 pc NetworkManager[844]: <info>  [1570015442.3890] bluez5: NAP: added interface 6C:71:D9:50:6E:2C
Oct  2 13:24:02 pc bluetoothd[838]: Endpoint registered: sender=:1.115 path=/MediaEndpoint/A2DPSource
Oct  2 13:24:02 pc bluetoothd[838]: Endpoint registered: sender=:1.115 path=/MediaEndpoint/A2DPSink
Oct  2 13:24:04 pc kernel: [12621.108025] input: BluetoothMouse3600 Mouse as /devices/virtual/misc/uhid/0005:045E:0916.0005/input/input26
Oct  2 13:24:04 pc kernel: [12621.109127] input: BluetoothMouse3600 Consumer Control as /devices/virtual/misc/uhid/0005:045E:0916.0005/input/input27
Oct  2 13:24:04 pc kernel: [12621.109618] hid-generic 0005:045E:0916.0005: input,hidraw2: BLUETOOTH HID v1.00 Mouse [BluetoothMouse3600] on 6C:71:D9:50:6E:2C
Oct  2 13:24:07 pc systemd[1]: systemd-rfkill.service: Succeeded.
I would like to understand what happens when bluetooth is disconnected. I see that the bt icon disappears, mouse is not responding anymore, I have to wait for the bt is up again. Is there a solution?
Yes, and you were given the solution in the first reply, post #2, back in July.
Quote:
I can run some script also if necessary.
That's nice.
Quote:
I found this script but it doesn't work for me (I do not know what it does or if it is safe, if you want to try it, use it only if you are aware of possible risks and consequences)
Code:
# Prevents the Bluetooth USB card from getting reset which disconnects the mouse
BTUSB_DEV="13d3:3402"
BTUSB_BINDING="$(lsusb -d "$BTUSB_DEV" |
    cut -f 1 -d : |
    sed -e 's,Bus ,,' -e 's, Device ,/,' |
    xargs -I {} udevadm info -q path -n /dev/bus/usb/{} |
    xargs basename)"

echo "Disabling autosuspend for Bluetooth USB Soundcard: $BTUSB_BINDING..."
echo -1 > "/sys/bus/usb/devices/$BTUSB_BINDING/power/autosuspend_delay_ms"
I found it here
https://ubuntuforums.org/showthread....0#post12926730

the device id should be right, but I am not 100% sure because I found only this:
Bus 001 Device 014: ID 13d3:3402 IMC Networks

command
bluetoothctl --version
output
bluetoothctl: 5.50

command
hciconfig -a
output
hci0: Type: Primary Bus: USB
BD Address: 6C:719:50:6E:2C ACL MTU: 1022:8 SCO MTU: 183:5
UP RUNNING PSCAN
RX bytes:339336 acl:16949 sco:0 events:101 errors:3
TX bytes:5375 acl:34 sco:0 commands:63 errors:0
Features: 0xff 0xfe 0x0d 0xfe 0xd8 0x7f 0x7b 0x87
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: RSWITCH HOLD SNIFF
Link mode: SLAVE ACCEPT
Name: 'pc'
Class: 0x1c010c
Service Classes: Rendering, Capturing, Object Transfer
Device Class: Computer, Laptop
HCI Version: 4.0 (0x6) Revision: 0x102
LMP Version: 4.0 (0x6) Subversion: 0x1
Manufacturer: Atheros Communications, Inc. (69)

command
rfkill list
output
0: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
5: hci0: Bluetooth
Soft blocked: no
Hard blocked: no

I am interested in finding the moment when it happens so I can detect it in a script and restart immediately.Thank you in advance
Re-read post #2 where you were given the solution; if you don't understand the solution, there's not much we can do to explain it to you further. And if you don't know what that script does and you think it's 'dangerous', why did you modify/run it? Why can't you look at the individual lines, to see what it's doing? The commands are simple, and after using Linux for YEARS now, it shouldn't be hard to figure out....especially since it's only the last line that actually does much of anything.
 
Old 10-02-2019, 07:48 AM   #5
P5music
Member
 
Registered: Nov 2010
Posts: 111

Original Poster
Rep: Reputation: 0
@TB0ne
You did neither understand what's written in July nor in October.
The bluetooth is disconnected while I am using the mouse, so no idle state.
I do not know how to say you more clearly not to answer my questions, as you are not very good at reading or thinking.
You are wasted here. You'd better register an account on Quora so you can share your condition with scientists and the people.
 
Old 10-02-2019, 07:57 AM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,553

Rep: Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946
Quote:
Originally Posted by P5music View Post
@TB0ne
You did neither understand what's written in July nor in October. The bluetooth is disconnected while I am using the mouse, so no idle state.
Sorry, but it is YOU that doesn't understand...you were told how to fix it, and yes, I'm fully aware of it happening while the device is being used, as this happens frequently, to lots of folks in the same situation. YOU are not aware of what that setting does, and it doesn't appear that you want to. What it's called on the GUI interface for bluetooth is NOT what it's called in /sys/bus/... files.

Again, set the value stated; if you bothered to read the 'dangerous' script you posted, you'd see what it's doing, but you do not understand THAT script either. You have been given a solution (twice), but I don't think it can be explained simply enough for you to understand.
Quote:
I do not know how to say you more clearly not to answer my questions, as you are not very good at reading or thinking.
And I do not know how to say more clearly, that when you post on a public forum, ANY can reply..so it would certainly seem like you aren't very good at reading or thinking, since you've been told this several times, and it should be very obvious.
Quote:
You are wasted here. You'd better register an account on Quora so you can share your condition with scientists and the people.
It would appear that it is wasteful to try to explain things or to help you, yes. Again, you were given the answer and have NINE YEARS experience with Linux...if you can't proceed, there isn't much else we can help you with. Try putting "how to disable autosuspend for bluetooth in kubuntu" into Google, and pressing ENTER...perhaps that will give you the help you need.

Last edited by TB0ne; 10-02-2019 at 08:14 AM.
 
Old 10-02-2019, 08:14 AM   #7
P5music
Member
 
Registered: Nov 2010
Posts: 111

Original Poster
Rep: Reputation: 0
@TB0ne
As I said, it's you not reading carefully. In the first post I have written:
Quote:
I applied many suggested changes to settings, this is a very common issue, but no way.
So I am looking here for some clever suggestion, not the same the internet is full about this issue.
If you have not a clever solution or a suggestion how to perform advanced troubleshooting please do not bother answering again, please.
 
Old 10-02-2019, 08:21 AM   #8
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,553

Rep: Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946Reputation: 7946
Quote:
Originally Posted by P5music View Post
@TB0ne
As I said, it's you not reading carefully. In the first post I have written:
Quote:
Originally Posted by P5music
I applied many suggested changes to settings, this is a very common issue, but no way.
Really??? And did *YOU* bother to read post #2, where I asked:
Quote:
Originally Posted by TB0ne
And since you don't tell us what these "many suggested changes" are, what you've done/tried, or what you mean by "but no way", there's not much we can suggest.
You have told us *NOTHING* about what you've done/tried...just 'many suggested changes', and 'but no way'...are we supposed to guess as to what you've done/tried?? Did you not read or understand that sentence? We have NO IDEA what you've done, unless you tell us...and saying "but no way", gives us zero information as well.
Quote:
So I am looking here for some clever suggestion, not the same the internet is full about this issue. If you have not a clever solution or a suggestion how to perform advanced troubleshooting please do not bother answering again, please.
You were told; you were suggestions; do them or not. Again, this is with the autosuspend feature of bluetooth; set it or not, your choice.

You have NOT shown any efforts, told us what you've done/tried (again, as with most of your other threads), and continue to rehash the same thing, without providing any information or answering questions.
 
Old 10-07-2019, 06:20 AM   #9
P5music
Member
 
Registered: Nov 2010
Posts: 111

Original Poster
Rep: Reputation: 0
I solved the problem with a workaround. I do not know if it is safe for the system, so use it only if you are aware of risks and consequences.

To have a stable bluetooth for mouse and headphone using I programmed crontab this way:
4,9,14,19,24,29,34,39,44,49,54,59 * * * * bluetoothctl power on
I think it should work also with large time intervals, I am currently testing and experimenting it.
Also it is necessary to run the above mentioned script.
I think these two are the things that are making my bluetooth work.

But I have to say that previously I blacklisted the bluetooth disconnection adding these two lines to a certain configuration file.
Code:
HOOK_BLACKLIST="wireless"
HOOK_BLACKLIST="bluetooth"
I cannot give more information about that.

And

I set the idle timeout value for bluetooth=0 (in /etc/bluetooth/input.conf if I remember).

I do not know whether those two additions are necessary. I think it is enough to run the script and set the crontab recurring event.
It is up to you how to set them permanently on your system, if you need it and it is safe.

So the issue is not "solved" as to the knowledge of what is involved in the bluetooth disconnection event (maybe an hardware/firmware weakness of my laptop, in combination with Linux - every distro I have used for now).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
shut down problem - wont shut down.. UbrInKid Linux - Newbie 4 12-10-2009 06:20 AM
Xubuntu won't shut down - black screen after trying to shut down Snickar-Lasse Ubuntu 2 11-30-2009 04:33 PM
HDD spins down then up then down again when halting the system auxsvr Linux - Kernel 5 02-16-2007 09:59 PM
A very very very very big problem!! Elbryan Linux - Software 2 09-23-2005 05:56 AM
shut down won't shut system down taoweijia Linux - General 3 03-03-2004 06:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 08:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration