Bug 42629 - Bluetooth not working on ThinkPad E14 Gen 3
Summary: Bluetooth not working on ThinkPad E14 Gen 3
Status: CLOSED FIXED
Alias: None
Product: Branch p10
Classification: Unclassified
Component: kernel-image-std-def (show other bugs)
Version: не указана
Hardware: x86_64 Linux
: P5 normal
Assignee: qa-team@altlinux.org
QA Contact: qa-p10@altlinux.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-28 13:11 MSK by Iakunin Andrei
Modified: 2022-05-30 16:40 MSK (History)
0 users

See Also:


Attachments
inxi, basic system information (2.38 KB, text/plain)
2022-05-11 14:30 MSK, Iakunin Andrei
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Iakunin Andrei 2022-04-28 13:11:40 MSK
Bluetooth not working. All soft updated.
# hciconfig hci0 up  
Can't init device hci0: Connection timed out (110)


# inxi -E
Bluetooth: Device-1: Foxconn / Hon Hai Wireless_Device type: USB driver: btusb 
           Report: hciconfig ID: hci0 rfk-id: 1 state: down bt-service: enabled,running rfk-block: 
           hardware: no software: no address: 00:00:00:00:00:00


# hciconfig -a hci0 
hci0:   Type: Primary  Bus: USB
        BD Address: 00:00:00:00:00:00  ACL MTU: 0:0  SCO MTU: 0:0
        DOWN 
        RX bytes:0 acl:0 sco:0 events:0 errors:0
        TX bytes:3 acl:0 sco:0 commands:1 errors:0
        Features: 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
        Packet type: DM1 DH1 HV1 
        Link policy: 
        Link mode: PERIPHERAL ACCEPT 


# systemctl status bluetooth
● bluetooth.service - Bluetooth service
     Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
     Active: active (running) since Thu 2022-04-28 12:13:28 MSK; 43min ago
       Docs: man:bluetoothd(8)
   Main PID: 2669 (bluetoothd)
     Status: "Running"
      Tasks: 1 (limit: 8059)
     Memory: 1.8M
        CPU: 17ms
     CGroup: /system.slice/bluetooth.service
             └─2669 /usr/libexec/bluetooth/bluetoothd

апр 28 12:13:28 AAY systemd[1]: Starting Bluetooth service...
апр 28 12:13:28 AAY bluetoothd[2669]: Bluetooth daemon 5.62
апр 28 12:13:28 AAY bluetoothd[2669]: Starting SDP server
апр 28 12:13:28 AAY systemd[1]: Started Bluetooth service.
апр 28 12:13:28 AAY bluetoothd[2669]: Bluetooth management interface 1.21 initialized



#  lsmod | grep -i blue
bluetooth             507904  12 btrtl,btintel,btbcm,bnep,btusb
ecdh_generic           16384  1 bluetooth
rfkill                 28672  9 bluetooth,thinkpad_acpi,cfg80211


# rfkill list 
0: tpacpi_bluetooth_sw: Bluetooth
        Soft blocked: no
        Hard blocked: no
1: hci0: Bluetooth
        Soft blocked: no
        Hard blocked: no
2: phy0: Wireless LAN
        Soft blocked: no
        Hard blocked: no
Comment 1 Iakunin Andrei 2022-04-28 13:13:33 MSK
# lsmod| grep bt
btusb                  45056  0
btrtl                  20480  1 btusb
btbcm                  20480  1 btusb
btintel                40960  1 btusb
bluetooth             507904  12 btrtl,btintel,btbcm,bnep,btusb
btrfs                1687552  1
libcrc32c              16384  1 btrfs
xor                    24576  1 btrfs
raid6_pq              122880  1 btrfs


# hciconfig hci0 down
# rmmod btusb
# modprobe btusb
# hciconfig hci0 up
Can't init device hci0: Connection timed out (110)
Comment 2 Andrey Cherepanov 2022-04-28 13:55:16 MSK
lspci -knn | grep -A4 Blue
Comment 3 Iakunin Andrei 2022-04-28 14:40:03 MSK
(Ответ для Andrey Cherepanov на комментарий #2)
> lspci -knn | grep -A4 Blue

[root@AAY ~]# lspci -knn | grep -A4 Blue
[root@AAY ~]#
Comment 4 Iakunin Andrei 2022-04-28 15:13:14 MSK
Tried: update-kernel -t std-def

Wifi - off, Bluetooth - off.
Comment 5 Andrey Cherepanov 2022-04-28 15:43:16 MSK
Установите dkms и попробуйте собрать через dkms с https://github.com/neurobin/MT7630E

Взято с https://www.cyberforum.ru/linux-hardware/thread1927464.html
Comment 6 Iakunin Andrei 2022-04-28 16:03:11 MSK
(Ответ для Andrey Cherepanov на комментарий #5)
> Установите dkms и попробуйте собрать через dkms с
> https://github.com/neurobin/MT7630E
> 
> Взято с https://www.cyberforum.ru/linux-hardware/thread1927464.html

Не подскажите наиболее близкую Альту инструкцию для этого?
Comment 7 Iakunin Andrei 2022-04-28 17:18:32 MSK
#dkms build mt7630e/2.1.0
Error! echo
Your kernel headers for kernel 5.15.25-un-def-alt1 cannot be found at
/lib/modules/5.15.25-un-def-alt1/build or /lib/modules/5.15.25-un-def-alt1/source.
You can use the --kernelsourcedir option to tell DKMS where it's located.

Что-то dkms&kernel-headers друг-друга не понимают.

# rpm -qa | grep headers
glibc-kernheaders-nios2-5.13-alt2.noarch
glibc-kernheaders-x86-5.13-alt2.noarch
glibc-kernheaders-microblaze-5.13-alt2.noarch
glibc-kernheaders-hexagon-5.13-alt2.noarch
opencl-headers-2.2-alt1.noarch
glibc-kernheaders-sparc-5.13-alt2.noarch
glibc-kernheaders-arm64-5.13-alt2.noarch
kernel-headers-un-def-5.15.34-alt1.x86_64
glibc-kernheaders-riscv-5.13-alt2.noarch
glibc-kernheaders-5.13-alt2.x86_64
glibc-kernheaders-m68k-5.13-alt2.noarch
glibc-kernheaders-alpha-5.13-alt2.noarch
kernel-headers-modules-un-def-5.15.34-alt1.x86_64
glibc-kernheaders-openrisc-5.13-alt2.noarch
glibc-kernheaders-h8300-5.13-alt2.noarch
glibc-kernheaders-sh-5.13-alt2.noarch
glibc-kernheaders-mips-5.13-alt2.noarch
glibc-kernheaders-arm-5.13-alt2.noarch
glibc-kernheaders-powerpc-5.13-alt2.noarch
glibc-kernheaders-ia64-5.13-alt2.noarch
glibc-kernheaders-all-5.13-alt2.noarch
glibc-kernheaders-xtensa-5.13-alt2.noarch
glibc-kernheaders-csky-5.13-alt2.noarch
glibc-kernheaders-s390-5.13-alt2.noarch
glibc-kernheaders-arc-5.13-alt2.noarch
glibc-kernheaders-generic-5.13-alt2.noarch
glibc-kernheaders-parisc-5.13-alt2.noarch
kernel-headers-common-1.2.7-alt1.x86_64
glibc-kernheaders-nds32-5.13-alt2.noarch
Comment 8 Iakunin Andrei 2022-04-29 09:15:00 MSK
Докладываю!
DKMS проверить нет возможности.
Headers for kernel has version un-def-5.15.34-alt1
Current kernel has version 5.15.25-un-def-alt1

And kernel un-def-5.15.34-alt1 make system unbootable.
Comment 9 Andrey Cherepanov 2022-04-29 17:28:50 MSK
(Ответ для Iakunin Andrei на комментарий #8)
> Докладываю!
> DKMS проверить нет возможности.
> Headers for kernel has version un-def-5.15.34-alt1
> Current kernel has version 5.15.25-un-def-alt1
> 
> And kernel un-def-5.15.34-alt1 make system unbootable.

Или скачивайте из архивов kernel-headers{,-modules}-un-def или переходите на std-def.
Comment 10 Iakunin Andrei 2022-05-04 10:35:51 MSK
> или переходите на
> std-def.
На этой ветке у меня даже wifi не работает. А без WiFi наш факультатив отключит работу. Так что рисковать мы не будем :)

> 
> Или скачивайте из архивов kernel-headers{,-modules}-un-def 
Не нашел возможности скачать rpm конкретной версии.

Скачал https://git.altlinux.org/gears/k/kernel-image-un-def.git, хочу сделать

git checkout -b new_branch kernel-image-un-def-5.15.25-alt1  и запуститть сборку rpm под p10, но натыкаюсь на ошибку 

$ gear-hsh --verbose -- --no-sisyphus-check=packager,gpg,changelog -v --mountpoint=/proc --lazy-cleanup --apt-config=/home/iakuninaa/hsh-sandboxes/p10-x86_64/apt.conf /home/iakuninaa/hsh-sandboxes/p10-x86_64/hasher  2>&1 | tee log
mkdir: создан каталог '/tmp/.private/iakuninaa/gear.5k6To8av/out'
gear: specsubst directive requires a tag

Как бы мне headers себе добыть?
Comment 11 Iakunin Andrei 2022-05-04 12:32:53 MSK
Худо-бедно сделал заголовки и даже запустил 
sudo make dkms

но опять ошибка:
make -j8 KERNELRELEASE=5.15.25-un-def-alt1 KDIR=/lib/modules/5.15.25-un-def-alt1/build...(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.15.25-un-def-alt1 (x86_64)
Consult /var/lib/dkms/mt7630e/2.1.0/build/make.log for more information.


$cat /var/lib/dkms/mt7630e/2.1.0/build/make.log
...
/var/lib/dkms/mt7630e/2.1.0/build/rt2x00/rt2x00.h:39:10: fatal error: linux/input-polldev.h: Нет такого файла или каталога
   39 | #include <linux/input-polldev.h>
...

И input-polldev.h я так и не смог найти в kernel-headers
Comment 12 Iakunin Andrei 2022-05-11 14:30:09 MSK
Created attachment 10720 [details]
inxi, basic system information
Comment 13 Andrey Cherepanov 2022-05-11 15:16:57 MSK
(Ответ для Iakunin Andrei на комментарий #11)
> И input-polldev.h я так и не смог найти в kernel-headers

Потому что не все пакеты доустановили. 
/usr/src/linux-5.10.113-std-def-alt1/include/linux/input-polldev.h в пакете kernel-headers-modules-std-def
Comment 14 Iakunin Andrei 2022-05-30 16:40:41 MSK
Обновил ядро до версии 5.15.41-un-def-alt1. 
Bluetooth работает. Багу закрываю.