You are not logged in.

#1 2023-07-03 19:19:31

Yuri Takanashi
Member
Registered: 2023-01-30
Posts: 7

Arch not using built-in laptop screen and using it only on Xorg.

I recently reinstalled my Arch installation, which was working fine before. However, after the  fresh installation, I encountered an issue where Arch would go through the GRUB boot loader, but then the laptop screen would flash a few times and go black. Arch was still running smoothly in the background as I could input my credentials and perform tasks. To get display output, I had to connect my TV via HDMI, where it would show up normally (I didn't try mini display port as I don't have monitor for it).
The only way to get output Arch on the built-in screen, was to install xorg-server, xorg-xrandr, i3-wm, and xinit. By starting the xorg-server (using the command "startx" to initiate i3-wm), the display output switched from the TV to the built-in screen. However, when I attempted to switch to another terminal (tty), it caused the built-in screen to freeze and revert to using the TV as the display output.
Furthermore, I noticed that the xrandr settings were not persistent across reboots, which is not big problem as I don't intend to use Xorg anyway (I want to use Hyprland which is a wayland compostitor).
I found that adding "nomodeset" to kernel parameters in grub does make the built-in screen work normally for the tty but Xorg or even Wayland stop working.

I have laptop with hybrid gpus.
GPU#1: Integrated intel gpu
GPU#2: Nvidia geforce rtx 3070

But the laptop is switched to intel mode. (I tried to blacklist nouveau in modprobe.d but it did nothing - proprietary nvidia driver is not installed)

laptop: HP Omen 17 ck0002 (https://support.hp.com/hk-en/document/c08023455)

Offline

#2 2023-07-03 21:09:00

seth
Member
Registered: 2012-09-03
Posts: 66,248

Re: Arch not using built-in laptop screen and using it only on Xorg.

But the laptop is switched to intel mode. (I tried to blacklist nouveau in modprobe.d but it did nothing - proprietary nvidia driver is not installed)

Please post your complete system journal for the boot:

sudo journalctl -b | curl -F 'f:1=<-' ix.io

I noticed that the xrandr settings were not persistent across reboots

Please post your Xorg logs for such boots, https://wiki.archlinux.org/title/Xorg#General

https://raw.githubusercontent.com/torva … /fbcon.rst
Check for fbcon=map, but in theory shoudl should™ be booting on the intel device (where the internal output is most likely wired)

Offline

#3 2023-07-03 21:30:19

Yuri Takanashi
Member
Registered: 2023-01-30
Posts: 7

Re: Arch not using built-in laptop screen and using it only on Xorg.

Here is the journal:
http://ix.io/4zGw

Here is the /var/log/Xorg.0.log
https://pastebin.com/nnWeGneJ

Offline

#4 2023-07-03 22:12:19

seth
Member
Registered: 2012-09-03
Posts: 66,248

Re: Arch not using built-in laptop screen and using it only on Xorg.

That server ran on the intel chip and the internal display is attached there.
The HDMI output is attached to the nvidia GPU so

tried to blacklist nouveau in modprobe.d

is really not a good idea.

Jul 03 23:13:29 Neko-arch kernel: nouveau 0000:01:00.0: [drm] Cannot find any crtc or sizes
Jul 03 23:13:29 Neko-arch kernel: nouveau 0000:01:00.0: [drm] Cannot find any crtc or sizes
Jul 03 23:13:29 Neko-arch kernel: nouveau 0000:01:00.0: [drm] Cannot find any crtc or sizes
Jul 03 23:13:29 Neko-arch kernel: nouveau 0000:01:00.0: [drm] Cannot find any crtc or sizes
Jul 03 23:13:29 Neko-arch kernel: nouveau 0000:01:00.0: [drm] Cannot find any crtc or sizes
Jul 03 23:13:29 Neko-arch kernel: i915 0000:00:02.0: [drm] Cannot find any crtc or sizes
Jul 03 23:13:30 Neko-arch kernel: i915 0000:00:02.0: [drm] Cannot find any crtc or sizes

nouveau likely because the HDMI output wasn't attached, i915 is not good.

i915.enable_dc=0 i915.enable_fbc=0 i915.enable_psr=0

https://wiki.archlinux.org/title/Kernel_parameters

I recently reinstalled my Arch installation

How "recently", did you use any kernel < 6.4?
=> Try the behavior w/ the LTS one.

Offline

#5 2023-07-03 22:38:16

Yuri Takanashi
Member
Registered: 2023-01-30
Posts: 7

Re: Arch not using built-in laptop screen and using it only on Xorg.

How "recently", did you use any kernel < 6.4?

I reinstalled it on July 03, 2023. So no, in the new installation I didn't use kernel < 6.4

Switching to LTS kernel did solve the problem, it now boot to grub and then to the login screen. Hyprland also works and with correct resolution.

Thanks for help.

Offline

#6 2023-07-04 06:01:22

seth
Member
Registered: 2012-09-03
Posts: 66,248

Re: Arch not using built-in laptop screen and using it only on Xorg.

You want to keep an eye on whether this is fixed w/ the next kernel(s) and otherwise file an upstream bug asap
The "i915 0000:00:02.0: [drm] Cannot find any crtc or sizes" messages are gone w/ the LTS kernel?

Offline

#7 2023-07-05 14:19:10

Yuri Takanashi
Member
Registered: 2023-01-30
Posts: 7

Re: Arch not using built-in laptop screen and using it only on Xorg.

Yes they are gone (Or I couldn't find them)

http://ix.io/4zOP

Last edited by Yuri Takanashi (2023-07-05 15:50:19)

Offline

Board footer

Powered by FluxBB