[One (M8) Q&A, Help & Troubleshooting] Nicosss@And:
Hello,

Same problem with a HTC One M8 (m8wl - product: m8_wlv) that does not recognize my SIM card with the Official LineageOS 17.1 (lineage-17.1-20211029-nightly-m8-signed.zip and lineage-17.1-20211022-nightly-m8-signed.zip).

With the stock ROM, my SIM card is recognize and I make phone call without problem.

I have an other HTC One M8 (m8 - product: m8_ul) that works fine with stock ROM and Official LineageOS 17.1 (same builds used as described before).

HTC One M8 (m8 - product: m8_ul):

$ fastboot getvar all
(bootloader) version: 0.5
(bootloader) version-bootloader: 3.19.0.0000
(bootloader) version-baseband: 1.29.214500021.12G
(bootloader) version-cpld: None
(bootloader) version-microp: None
(bootloader) version-main: 6.12.401.4
(bootloader) version-misc: PVT SHIP S-OFF
(bootloader) serialno: <removed>
(bootloader) imei: <removed>
(bootloader) imei2: Not Support
(bootloader) meid: <removed>
(bootloader) product: m8_ul
(bootloader) platform: hTCBmsm8974
(bootloader) modelid: 0P6B11000
(bootloader) cidnum: 11111111
(bootloader) battery-status: good
(bootloader) battery-voltage: 0mV
(bootloader) partition-layout: Generic
(bootloader) security: off
(bootloader) build-mode: SHIP
(bootloader) boot-mode: FASTBOOT
(bootloader) commitno-bootloader: 76df2b54
(bootloader) hbootpreupdate: 11
(bootloader) gencheckpt: 0
all: Done!
Finished. Total time: 0.017s

HTC One M8 (m8wl - product: m8_wlv):

$ fastboot getvar all
(bootloader) version: 0.5
(bootloader) version-bootloader: 3.19.0.0000
(bootloader) version-baseband: 1.14.20.0930
(bootloader) version-cpld: None
(bootloader) version-microp: None
(bootloader) version-main: 3.28.605.4
(bootloader) version-misc: PVT SHIP S-OFF
(bootloader) serialno: <removed>
(bootloader) imei: <removed>
(bootloader) imei2: Not Support
(bootloader) meid: <removed>
(bootloader) product: m8_wlv
(bootloader) platform: hTCBmsm8974
(bootloader) modelid: 0P6B20000
(bootloader) cidnum: 11111111
(bootloader) battery-status: good
(bootloader) battery-voltage: 0mV
(bootloader) partition-layout: Generic
(bootloader) security: off
(bootloader) build-mode: SHIP
(bootloader) boot-mode: FASTBOOT
(bootloader) commitno-bootloader: 205bdca3
(bootloader) hbootpreupdate: 11
(bootloader) gencheckpt: 0
all: Done!
Finished. Total time: 0.017s

I updated the firmware (m8vzw_AllInOne_Firmware_6.21.605.3.zip) but SIM card always not recognized:

$ fastboot getvar all
(bootloader) version: 0.5
(bootloader) version-bootloader: 3.19.0.0000
(bootloader) version-baseband: 1.14.20.0930
(bootloader) version-cpld: None
(bootloader) version-microp: None
(bootloader) version-main: 6.21.605.3
(bootloader) version-misc: PVT SHIP S-OFF
(bootloader) serialno: <removed>
(bootloader) imei: <removed>
(bootloader) imei2: Not Support
(bootloader) meid: <removed>
(bootloader) product: m8_wlv
(bootloader) platform: hTCBmsm8974
(bootloader) modelid: 0P6B20000
(bootloader) cidnum: 11111111
(bootloader) battery-status: good
(bootloader) battery-voltage: 0mV
(bootloader) partition-layout: Generic
(bootloader) security: off
(bootloader) build-mode: SHIP
(bootloader) boot-mode: FASTBOOT
(bootloader) commitno-bootloader: 205bdca3
(bootloader) hbootpreupdate: 11
(bootloader) gencheckpt: 0
all: Done!
Finished. Total time: 0.019s

I hope it helps to investigate.