Bluetooth losts connections itself

Hi, I have multiple questions:

  1. my headphones losts connections itself. i have to turn off and on my headphone to connect again.

  2. Does needed system clean up from temp cache unwanted files as it happens on Windows OS? In windows i was using cleanmgr tool. here how happens? if needed which terminal commands?

Thanks in advanced.

Can you please provide inxi -Fza?

If you have an Intel AX200 for bluetooth, you’ll have to downgrade the linux-firmware package, which I can help with. There is regression issues in newer versions.

2 Likes

I can only answer this question here-above ─ I do not have any experience with Bluetooth devices.

The short answer is “no”. The longer answer is that temporary files are stored in /tmp, which is by default a tmpfs in Manjaro. tmpfs is a special type of filesystem in Linux-based operating systems, and it lives in virtual memory, i.e. it starts in RAM, but the contents can be swapped out if needed ─ or at least, if you do have a swap partition or swap file.

What this means is that the contents of /tmp are always deleted when the machine is powered off (because they do not exist on your drive), and in addition to that, by default, Manjaro also runs a script that periodically deletes the contents of /tmp that are no longer needed by any process.

There are of course also certain caches ─ both system-wide and in your home directory ─ that can be deleted, but that would defeat their purpose; a cache is intended to have information readily available without needing to download or compute it every time. Deleting those caches has to be done manually, but is ─ as explained in the previous sentence ─ unnecessary.

1 Like
> Blockquoteinxi -Fza
System:
  Kernel: 5.11.14-1-MANJARO x86_64 bits: 64 compiler: gcc v: 10.2.0 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.11-x86_64 
  root=UUID=fbf8038b-ad6c-41a0-a92c-af61f7be2aca rw quiet apparmor=1 
  security=apparmor resume=UUID=955e023e-5bb8-43c8-b682-9768f3a9c5f3 
  udev.log_priority=3 
  Desktop: KDE Plasma 5.21.4 tk: Qt 5.15.2 wm: kwin_x11 vt: 1 dm: SDDM 
  Distro: Manjaro Linux base: Arch Linux 
Machine:
  Type: Laptop System: LENOVO product: 20TA0027RT v: ThinkPad E14 Gen 2 
  serial: <filter> Chassis: type: 10 serial: <filter> 
  Mobo: LENOVO model: 20TA0027RT serial: <filter> UEFI: LENOVO 
  v: R1EET34W(1.34 ) date: 02/25/2021 
Battery:
  ID-1: BAT0 charge: 32.8 Wh (70.8%) condition: 46.3/45.0 Wh (102.8%) 
  volts: 12.2 min: 11.1 model: LGC 5B10X026 type: Li-poly serial: <filter> 
  status: Charging cycles: 41 
CPU:
  Info: Quad Core model: 11th Gen Intel Core i5-1135G7 bits: 64 type: MT MCP 
  arch: Tiger Lake family: 6 model-id: 8C (140) stepping: 1 microcode: 66 cache: 
  L2: 8 MiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx 
  bogomips: 38720 
  Speed: 1201 MHz min/max: 400/4200 MHz Core speeds (MHz): 1: 1201 2: 1201 
  3: 1200 4: 1202 5: 1200 6: 1200 7: 1200 8: 1200 
  Vulnerabilities: Type: itlb_multihit status: Not affected 
  Type: l1tf status: Not affected 
  Type: mds status: Not affected 
  Type: meltdown status: Not affected 
  Type: spec_store_bypass 
  mitigation: Speculative Store Bypass disabled via prctl and seccomp 
  Type: spectre_v1 
  mitigation: usercopy/swapgs barriers and __user pointer sanitization 
  Type: spectre_v2 mitigation: Enhanced IBRS, IBPB: conditional, RSB filling 
  Type: srbds status: Not affected 
  Type: tsx_async_abort status: Not affected 
Graphics:
  Device-1: Intel Iris Xe Graphics vendor: Lenovo driver: i915 v: kernel 
  bus-ID: 00:02.0 chip-ID: 8086:9a49 class-ID: 0300 
  Device-2: Luxvisions Innotech Limited Integrated Camera type: USB 
  driver: uvcvideo bus-ID: 3-8:3 chip-ID: 30c9:0014 class-ID: 0e02 
  serial: <filter> 
  Display: x11 server: X.Org 1.20.11 compositor: kwin_x11 driver: loaded: intel 
  unloaded: modesetting alternate: fbdev,vesa display-ID: :0 screens: 1 
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.0x11.2") 
  s-diag: 582mm (22.9") 
  Monitor-1: eDP1 res: 1920x1080 hz: 60 dpi: 157 size: 310x170mm (12.2x6.7") 
  diag: 354mm (13.9") 
  OpenGL: renderer: Mesa Intel Xe Graphics (TGL GT2) v: 4.6 Mesa 21.0.2 
  direct render: Yes 
Audio:
  Device-1: Intel Tiger Lake-LP Smart Sound Audio vendor: Lenovo 
  driver: sof-audio-pci alternate: snd_hda_intel,snd_sof_pci bus-ID: 00:1f.3 
  chip-ID: 8086:a0c8 class-ID: 0401 
  Sound Server-1: ALSA v: k5.11.14-1-MANJARO running: yes 
  Sound Server-2: JACK v: 0.125.0 running: no 
  Sound Server-3: PulseAudio v: 14.2 running: yes 
  Sound Server-4: PipeWire v: 0.3.25 running: yes 
Network:
  Device-1: Intel Wi-Fi 6 AX201 driver: iwlwifi v: kernel port: 4000 
  bus-ID: 00:14.3 chip-ID: 8086:a0f0 class-ID: 0280 
  IF: wlp0s20f3 state: up mac: <filter> 
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: Lenovo driver: r8169 v: kernel port: 3000 bus-ID: 04:00.0 
  chip-ID: 10ec:8168 class-ID: 0200 
  IF: enp4s0 state: down mac: <filter> 
Bluetooth:
  Device-1: Intel type: USB driver: btusb v: 0.8 bus-ID: 3-10:5 
  chip-ID: 8087:0026 class-ID: e001 
  Report: rfkill ID: hci0 rfk-id: 2 state: up address: see --recommends 
Drives:
  Local Storage: total: 238.47 GiB used: 15.59 GiB (6.5%) 
  SMART Message: Unable to run smartctl. Root privileges required. 
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung model: MZALQ256HAJD-000L1 
  size: 238.47 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s 
  lanes: 4 rotation: SSD serial: <filter> rev: BL1QFXV7 temp: 22.9 C scheme: GPT 
Partition:
  ID-1: / raw-size: 229.37 GiB size: 224.71 GiB (97.97%) used: 15.59 GiB (6.9%) 
  fs: ext4 dev: /dev/nvme0n1p2 maj-min: 259:2 
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%) 
  used: 296 KiB (0.1%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1 
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default) 
  ID-1: swap-1 type: partition size: 8.8 GiB used: 0 KiB (0.0%) priority: -2 
  dev: /dev/nvme0n1p3 maj-min: 259:3 
Sensors:
  System Temperatures: cpu: 40.0 C mobo: 37.0 C 
  Fan Speeds (RPM): cpu: 0 
Info:
  Processes: 224 Uptime: 1h 28m wakeups: 7324 Memory: 7.48 GiB 
  used: 2.02 GiB (26.9%) Init: systemd v: 247 tool: systemctl Compilers: 
  gcc: N/A Packages: pacman: 1234 lib: 353 flatpak: 0 Shell: Bash v: 5.1.0 
  running-in: konsole inxi: 3.3.04`Preformatted text`

Thanks for your reply. i got it now clearly.

in home directory there is folder called softmaker. i deleted it once but after again appeared.

Can you please edit this output and either put ``` before and after the output or highlight the output and click on </>?

It makes it a lot easier to read.

AX200 & AX201 are having issues currently due to regression from the linux-firmware package as of 2021. Someone posted about it a few days ago as well.

You need to temporarily use linux-firmware v20201218.646f159-1, this is a package version from 2020-12-18

I got my package from Arch Linux Archive

sudo pacman -U https://archive.archlinux.org/packages/l/linux-firmware/linux-firmware-20201218.646f159-1-any.pkg.tar.zst

You’ll also have to go into /etc/pacman.conf and put:

IgnorePkg = linux-firmware

so that it doesn’t keep updating that package. I’ve been keeping an eye on this Arch forums thread to see if newer packages fixes it, but doesn’t seem like it yet. I do recommend to remove that IgnorePkg after we find out that a newer package fixes the regression though.

2 Likes

SoftMaker Office is an office suite. That directory probably contains its configuration.

The normal convention for user-specific configuration files and/or directories in UNIX systems is to have their names start with a dot/period (".") or put them under a directory whose name already starts with a dot/period, such as ~/.config or ~/.local. This is because files and directories whose name starts with a dot are hidden by default, so that they would not clog up the listing of work-related files and documents.

Manjaro is partnered with SoftMaker, the company that produces this office suite, and that’s why you get the option of installing it. However ─ and I could of course be wrong ─ it is my impression that SoftMaker Office is not a native UNIX application, but rather that it was originally a Windows application that was ported to GNU/Linux. And that would then explain why it doesn’t follow the convention of storing its user-specific configuration in a directory whose name starts with a dot.

2 Likes

Thanks for your supporting. ok will do like you sad. firmware is like kernel or?

Kinda…? In the sense that it contains binary blobs needed for functionality of certain hardware devices. Think of linux-firmware more like… drivers. It isn’t a kernel.

1 Like

I had installed freeoffice but did not liked and removed it. after i installed Libreoffice and its better than freeoffice.

p.s. what about security purpose? what steps is needed for harden system security? in windows also have to care about it. as i guess in Linux there is no needed that right?

should i add cloudflare dns and vpns etc?

In the broader sense, the term firmware is used for a special kind of low-level software that is embedded into hardware components. Because this software is embedded into the hardware, it cannot be overwritten ─ with the exception of a BIOS or UEFI, of course, because they are stored on a flash EPROM ─ but like all software, firmware can and usually does contain bugs.

The solution to this problem is to load an improved version of the firmware into memory at boot time from within the operating system. This improved version will not overwrite the embedded version, but will take its place as the interface between the kernel and the hardware in question for as long as the machine is running.

2 Likes

This is all up to you. But please make a separate thread for this as it’s deviating from the original question, which makes it harder for other users to find answers to such questions.

1 Like

i did it and put that code on etc at last end saved.

That’s all overkill. Microsoft Windows is notoriously insecure as an operating system because it was never originally designed to be an operating system; it was designed as a graphical user interface on top of MS-DOS, a single-tasking, single-user operating system for non-networked computers.

By contrast, GNU/Linux is a UNIX-architecture operating system, and UNIX was developed from the ground up as a secure multiuser platform, modeled after the Multics mainframe operating system.

A userspace firewall might be a good idea if your computer is a laptop that connects to the internet by way of WiFi, but other than that, you won’t need it. UNIX does not listen on all privileged ports the way Microsoft Windows does; it only listens on privileged ports that you yourself have explicitly opened by running a service on them, like e.g. an ssh server.

2 Likes

Ok than not will open new post about Security.

Thanks both of you for such kind support. i appreciate that. So because of that i left Windows. i was fed up with care to it as babysitter. i will think only to change system to gnome because of kde not supports fingerprint sensor.

i will test bluetooth if it drops or and let u know friends.

hope i put ```
IgnorePkg = linux-firmware
correctly on etc

Well… don’t forget to install the older package as well

1 Like

Oh, thanks for info. Now I know why BT mouse losts connection lately.

1 Like

thank you. when it will fixed let us to know please. i also will have look on that links u provided.

Damn, I switched from pulseaudio & pulseaudio-modules-bt to pipewire today and now I’m also having those bluetooth disconnects.

New firmware with an update for AX200 just hit the unstable branch.
Let’s see how that goes…

[    6.904461] Bluetooth: hci0: Firmware revision 0.0 build 118 week 15 2021