You are not logged in.

#1 2023-01-25 05:11:10

dojoho
Member
Registered: 2023-01-25
Posts: 3

Kernel 6.1.7 hangs on boot

Hello all,

I have an old HP Notebook (specs linked below) that I'm trying to turn into a school laptop, and after running through several different "lightweight" Linux options and finding them distastefully limited and having a manjaro iso freeze on boot, I decided to finally take the full plunge into Arch. Something I learned through that process, though, is that this particular laptop refuses to boot the 6.1.7 linux kernel. A Fedora Kinoite install had similar problems that only worked by selected an older version in the grub, and while I downloaded an older Arch install iso and successfully (I think) installed it to the computer, it automatically installed/updated to the latest kernel and now freezes on boot.

My question, therefore, is twofold. First - is there a known solution for the 6.1.7 kernel? If so, that seems the simpler route. If there isn't, however, where can I download the 6.0.10 kernel that the Arch install iso I used was running on? I checked the pacman cache as per the Arch wiki but the only kernel file it had was 6.1.7.

Laptop specs - https://support.hp.com/us-en/product/hp … /c06254889



Incidentally - If somebody would be so kind as to tell me where it's relevant to post this, I'd be much obliged, but... I find it beyond idiotic that I have to input a complicated linux command output to set up an account, on a forum that any sensible person would go to when, theoretically, their system was in a state of nonfunction. I realize that Arch isn't for beginners running their first linux rodeo, but not all of us have the luxury of multiple Linux installations and I'd be mad as hell if I had had to set up a whole live disk to run one dumb command when recaptchas exist.

Last edited by dojoho (2023-01-25 05:11:41)

Offline

#2 2023-01-25 06:26:48

topcat01
Member
Registered: 2019-09-17
Posts: 66

Re: Kernel 6.1.7 hangs on boot

You can try installing the linux-lts kernel/package which can coexist with the linux package and try booting that instead. Also, it would be useful to see a journal log:

sudo journalctl -b |& curl -F file=@- https://0x0.st

when booted into a working kernel (say linux-lts), and

sudo journalctl -b-1 |& curl -F file=@- https://0x0.st

after a freeze with linux 6.1.7 and a subsequent successful boot into linux-lts (assuming the latter works and the frozen kernel manages to write any logs).

Edit: With older machines like this it is prudent to run a thorough memory test, e.g. https://wiki.archlinux.org/title/Stress … MemTest86+

Last edited by topcat01 (2023-01-25 09:20:34)

Offline

#3 2023-01-25 14:26:50

dojoho
Member
Registered: 2023-01-25
Posts: 3

Re: Kernel 6.1.7 hangs on boot

I installed the linux-lts package using the same process as initially installing the linux package - booted a live disk, mount sda partitions, pacstrap into /mnt. It still freezes on boot. Is there any chance it would still be using the newer kernel version over the alternative?

Offline

#4 2023-01-25 18:14:10

topcat01
Member
Registered: 2019-09-17
Posts: 66

Re: Kernel 6.1.7 hangs on boot

What boot loader are you using? You need to configure it.

Offline

#5 2023-01-25 19:11:57

dojoho
Member
Registered: 2023-01-25
Posts: 3

Re: Kernel 6.1.7 hangs on boot

Grub. I did configure it when I first installed, do I need to do so again? And if so, should I change any commands or just re-run them? I copied them from the itsfoss.com arch install guide, and they seem pretty ubiquitous as far as kernel versions go. I haven't had much prior experience with bootloader commands, though.

Offline

#6 2023-01-25 19:27:39

topcat01
Member
Registered: 2019-09-17
Posts: 66

Re: Kernel 6.1.7 hangs on boot

After adding the new kernel just running the grub-mkconfig command should be sufficient: https://wiki.archlinux.org/title/GRUB#Configuration.

Offline

#7 2023-01-25 19:28:51

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 6,873
Website

Re: Kernel 6.1.7 hangs on boot

dojoho wrote:

Grub. I did configure it when I first installed, do I need to do so again?

Yes.

dojoho wrote:

should I change any commands or just re-run them? I copied them from the itsfoss.com arch install guide

Crappy random interweb "guides" are not supported here. Follow https://wiki.archlinux.org/title/GRUB#Configuration instead. And don't post here again unless and until you reinstall following the official guide.

dojoho wrote:

I find it beyond idiotic that I have to input a complicated linux command output to set up an account, on a forum that any sensible person would go to when, theoretically, their system was in a state of nonfunction. I realize that Arch isn't for beginners running their first linux rodeo, but not all of us have the luxury of multiple Linux installations and I'd be mad as hell if I had had to set up a whole live disk to run one dumb command when recaptchas exist.

https://www.youtube.com/watch?v=ybGOT4d2Hs8

Offline

#8 2023-01-25 19:32:08

Adriik
Member
From: Argentina
Registered: 2022-03-10
Posts: 114

Re: Kernel 6.1.7 hangs on boot

If you install/uninstall a kernel, you need to regenerate the grub config.

From grub wiki:

After installing or removing a kernel, you just need to re-run the above grub-mkconfig command.

And you need this to be able to choose which kernel to use in a menu.

Edit: AGAIN, I write tooooooo slow

Last edited by Adriik (2023-01-25 19:32:27)


I'm just someone. Please use [code] [/code] tags.
Command cheatsheetCommand not found?
If I write something wrong in English, please correct me.
♪ Muchachos, ahora nos volvimos a ilusionar ★★★ ♪

Offline

#9 2023-02-06 21:13:10

mamai
Member
Registered: 2023-02-06
Posts: 4

Re: Kernel 6.1.7 hangs on boot

Hi, i have almost the same laptop ( its hp 14-cf0078ur ), and having the exact same problem.
I use it on linux-lts kernel and everything works fine, but the latest ones result in freeze on kernel messages or just black screen.
If i disable display manager, it freezes on login prompt, after cursor blinks 1-2 times.

Here are my journalctl logs:
linux-lts 5.15 ( successful boot ):
https://0x0.st/oCY5.txt
linux 6.1.9 ( freeze ):
https://0x0.st/oCYn.txt

Offline

#10 2023-02-06 22:11:17

loqs
Member
Registered: 2014-03-06
Posts: 15,645

Re: Kernel 6.1.7 hangs on boot

@mamai does blacklisting i915 amdgpu and r8169 have any effect?
Edit:
If not is the issue present on 6.0?  You can obtain a 6.0 from Arch Linux Archive.

Last edited by loqs (2023-02-06 22:45:32)

Offline

#11 2023-02-06 22:47:27

seth
Member
Registered: 2012-09-03
Posts: 35,307

Re: Kernel 6.1.7 hangs on boot

https://bbs.archlinux.org/viewtopic.php?id=282992

rtw_8723de is in the LTS boot and NM configures it before the user logs in, so that fits.
But the freezing boot ends too early and we can't see whether it gets loaded and/or does anything.

Offline

#12 2023-02-07 05:29:47

mamai
Member
Registered: 2023-02-06
Posts: 4

Re: Kernel 6.1.7 hangs on boot

Disabling networkmanager does result in successful boot:
https://0x0.st/oC6N.txt
Is there any fix for this, or should i start nm manually from now on, if i wanna use latest kernel?
Tried adding rtw88_8723de into mkinitcpio "MODULES=" section, but had no success with that.

Offline

#13 2023-02-07 05:53:00

mamai
Member
Registered: 2023-02-06
Posts: 4

Re: Kernel 6.1.7 hangs on boot

@loqs
Blacklisting i915 results in krenel failing to load kernel modules, blacklisting amdgpu and r8169 doesnt change anything, same freeze
I guess i wont need to test 6.0 because now we know the issue is with rtw module and networkmanager

Offline

#14 2023-02-07 07:23:18

seth
Member
Registered: 2012-09-03
Posts: 35,307

Re: Kernel 6.1.7 hangs on boot

Is there any fix for this, or should i start nm manually from now on, if i wanna use latest kernel?

The other mitigation would be to not allow NM to connect the NIC before your session, https://wiki.archlinux.org/title/Networ … et_on_boot (but you wanrt to *dis*able that)
You could also artificially delay NM, there's a similar situation w/ iwd (one might infer that it's a situation w/ system's aggressive parallelization to make the system boot in 3 seconds instead of 4, well - iff it boots… I digress): https://wiki.archlinux.org/title/Iwd#Re … after_boot
You of course want to edit the NetworkManager.service and whether the arbitrary 2s delay is sufficiently safe needs to be seen.

Offline

#15 2023-02-07 20:20:18

mamai
Member
Registered: 2023-02-06
Posts: 4

Re: Kernel 6.1.7 hangs on boot

Thanks for help, i guess ill just stick to lts kernel for now, and hope they will fix it by the time new lts kernel comes out. Ive googled this problem a bit more and found modified kernel module on opensuse bugtrackers, but im too lazy to compile it myself. Not sure if its allowed to post links to other forums here, but its pretty easy to find it yourself

Offline

Board footer

Powered by FluxBB