LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   can't open X-session in new installation slackware 15.0 x64 (https://www.linuxquestions.org/questions/slackware-14/cant-open-x-session-in-new-installation-slackware-15-0-x64-4175728845/)

vonbiber 09-11-2023 04:23 AM

can't open X-session in new installation slackware 15.0 x64
 
I installed slackware-15.0 64-bit on a brand new laptop.
I applied the latest patches available (including linux-5.15.117/*).

I tried to open an X-session.

Code:

startx
failed, with some error messages.

Here's an excerpt of /var/logs/Xorg.0.log
that I think might be relevant:

Code:

X.Org X Server 1.20.14
X Protocol Version 11, Revision 0
[  325.235] Build Operating System: Slackware 15.0 Slackware Linux Project
...
[  325.237] (EE) open /dev/dri/card0: No such file or directory
[  325.237] (WW) Falling back to old probe method for modesetting
[  325.237] (EE) open /dev/dri/card0: No such file or directory
[  325.237] vesa: Refusing to run on UEFI

I was wondering if this was due to the new kernel.
So I tried a new installation on another partition.
This time I skipped the patching from the linux-5.15.117

This time the booting process got stuck here
Code:

Updating hardware database index
/sbin/udevadm hudb --update
Triggering udev...


business_kid 09-11-2023 06:13 AM

Video drivers? We've nothing to go on except that the video card isn't seen and that it's likely your fault, or the kernel's. You'd have to reinstall nvivia drivers but you could have anything.

bitfuzzy 09-11-2023 07:47 AM

Quote:

Originally Posted by business_kid (Post 6452967)
Video drivers? We've nothing to go on except that the video card isn't seen and that it's likely your fault, or the kernel's. You'd have to reinstall nvivia drivers but you could have anything.

I'm leaning towards agreeing with business_kid

I personally haven't seen this issue in years, but when I did I was usually due to a driver issue.

Could you provide some hardware information, or at least the brand/model of the laptop?

It might prove useful

Petri Kaukasoina 09-11-2023 07:56 AM

Quote:

Originally Posted by vonbiber (Post 6452949)
I applied the latest patches available (including linux-5.15.117/*).

Did you upgrade your initrd after upgrading the kernel packages and run eliloconfig to copy the kernel and initrd to the EFI System Partition as told in the Slackware Security Advisories?

vonbiber 09-11-2023 08:18 AM

Quote:

Originally Posted by business_kid (Post 6452967)
Video drivers? We've nothing to go on except that the video card isn't seen and that it's likely your fault, or the kernel's. You'd have to reinstall nvivia drivers but you could have anything.

The graphic card is Intel Iris Xe Graphics

I bought the laptop from a web site.
they say that their laptops are all linux-compatible.
At least with the preinstalled ones they offer.
As slackware wasn't in the list (*buntu, fedora, debian...),
I opted for a clean system.
This is my model
https://laptopwithlinux.com/product/clevo-nj70/

allend 09-11-2023 09:24 AM

From 3.2 of this Arch wiki
Quote:

Using Intel DDX driver with recent GPUs

For Intel GPUs starting from Gen8 (Broadwell), the Iris Mesa driver is needed:

Option "DRI" "iris"

vonbiber 09-13-2023 02:32 AM

It seems a more recent version of the kernel and firmware
(at least version 6.1) was needed.
Today I downloaded slackware64-current-install-dvd.iso
(I also downloaded the corresponding multilib for current)
I installed current (also applied multilib),
created a new user
Code:

startx
It worked!
I'm gonna mark this as solved even if it doesn't work on the stable version
(unless the kernel and firmware is updated, which I'll try on the
stable version installed in another partition.

@Petri
[quote]
Did you upgrade your initrd after upgrading the kernel packages and run eliloconfig to copy the kernel and initrd to the EFI System Partition
[/code]
I use refind as a boot loader
It's installed in the first partition (vfat)
When I did my installation on the 4th partition
I just created a subdirectory named 4 in the EFI partition,
placed the used kernel there
(there's an entry in my fstab that allows me to mount
/dev/nvme0n1p1 to /ESP)
Code:

mount /ESP
cd /boot
cp $(readlink vmlinuz) /ESP/EFI/4/vmlinuz

and I created an entry in the boot menu for it
(I use the huge kernel, so no initrd is needed)

Petri Kaukasoina 09-13-2023 04:14 AM

Quote:

Originally Posted by vonbiber (Post 6453367)
Code:

mount /ESP
cd /boot
cp $(readlink vmlinuz) /ESP/EFI/4/vmlinuz


OK, if you copied the upgraded kernel to the EFI partition. But if you copied the original one, and then applied all the patches, the system booted to the original kernel, but its modules were missing after upgrade, resulting non-working graphics.

vonbiber 09-13-2023 05:11 AM

Quote:

Originally Posted by Petri Kaukasoina (Post 6453378)
OK, if you copied the upgraded kernel to the EFI partition. But if you copied the original one, and then applied all the patches, the system booted to the original kernel, but its modules were missing after upgrade, resulting non-working graphics.

That, I did (copied the upgraded kernel to the EFI partition).
My guess is that the Intel Iris Xe wasn't supported in kernel versions < 6.1

vonbiber 09-14-2023 05:52 AM

To make things clearer.
In a previous post, I said that the X-server
could be accessed with current.

Now, with the stable version neither of 5.15.19
(the original kernel version) nor 5.15.117 (after applying
the patches for the stable slackware) allowed me to open
an X-session, I did the following:
1. I extracted all the kernel packages from current
(as of September 12, 2023), placed them in a
packages directory:
Code:

packages/kernel-firmware-20230906_ad03b85-noarch-1.txt
packages/kernel-firmware-20230906_ad03b85-noarch-1.txz
packages/kernel-firmware-20230906_ad03b85-noarch-1.txz.asc
packages/linux-6.1.52/kernel-generic-6.1.52-x86_64-1.txt
packages/linux-6.1.52/kernel-headers-6.1.52-x86-1.txz.asc
packages/linux-6.1.52/kernel-source-6.1.52-noarch-1.txt
packages/linux-6.1.52/kernel-generic-6.1.52-x86_64-1.txz.asc
packages/linux-6.1.52/kernel-modules-6.1.52-x86_64-1.txz
packages/linux-6.1.52/kernel-modules-6.1.52-x86_64-1.txz.asc
packages/linux-6.1.52/kernel-huge-6.1.52-x86_64-1.txz
packages/linux-6.1.52/kernel-source-6.1.52-noarch-1.txz.asc
packages/linux-6.1.52/kernel-huge-6.1.52-x86_64-1.txz.asc
packages/linux-6.1.52/kernel-generic-6.1.52-x86_64-1.txz
packages/linux-6.1.52/kernel-headers-6.1.52-x86-1.txt
packages/linux-6.1.52/kernel-huge-6.1.52-x86_64-1.txt
packages/linux-6.1.52/kernel-source-6.1.52-noarch-1.txz
packages/linux-6.1.52/kernel-headers-6.1.52-x86-1.txz
packages/linux-6.1.52/kernel-modules-6.1.52-x86_64-1.txt

I patched the stable installation with these.
This time X-server could be accessed.


All times are GMT -5. The time now is 02:03 AM.