Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Blank screen on Asus UX431FA but works on HDMI, FB issue
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
legorythme
n00b
n00b


Joined: 06 Dec 2019
Posts: 3

PostPosted: Fri Dec 06, 2019 11:51 am    Post subject: Blank screen on Asus UX431FA but works on HDMI, FB issue Reply with quote

Hi there,

I have a Laptop Asus Zenbook 14 UX431FA model. I never was able to boot on any liveUSB from Gentoo. Live USB of Arch Linux starts on my HDMI output. I used an Ubuntu Live USB that I could start the graphic with safeboot graphic and could install my Gentoo without any issues. But when I'm booting on Gentoo, it blocks on initramfs for a few seconds then my HDMI monitor shows up as like it's my main screen. I can see that my laptop screen shows it is on but blank. On Kde, I can enable and disable the laptop screen but does not any effects, only the tiny difference that it is on or not.

I followed https://wiki.gentoo.org/wiki/Intel, https://forums.gentoo.org/viewtopic-t-1034212.html, https://wiki.archlinux.org/index.php/Kernel_mode_setting, https://wiki.gentoo.org/wiki/NVIDIA/Optimus#Using_a_specific_monitor_via_EDID

dmesg | grep drm

Code:
[    4.809660] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    4.809661] [drm] Driver supports precise vblank timestamp query.
[    4.811509] [drm] Finished loading DMC firmware i915/kbl_dmc_ver1_04.bin (v1.4)
[    4.818734] [drm] EDID has major version 2, instead of 1
[    4.821960] [drm] EDID has major version 2, instead of 1
[    4.825164] [drm] EDID has major version 2, instead of 1
[    4.828379] [drm] EDID has major version 2, instead of 1
[    4.828383] [drm] EDID has major version 2, instead of 1
[    4.839607] [drm] Initialized i915 1.6.0 20190822 for 0000:00:02.0 on minor 0
[    4.872948] fbcon: i915drmfb (fb0) is primary device
[    6.225616] i915 0000:00:02.0: fb0: i915drmfb frame buffer device

lspci -k
Code:
00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 620 (Whiskey Lake)
        Subsystem: ASUSTeK Computer Inc. UHD Graphics 620 (Whiskey Lake)
        Kernel driver in use: i915
        Kernel modules: i915


cat /etc/kernels/kernel-config-x86_64-5.4.1-gentoo | grep EDID

Code:
CONFIG_DRM_LOAD_EDID_FIRMWARE=y
CONFIG_FIRMWARE_EDID=y


cat /etc/kernels/kernel-config-x86_64-5.4.1-gentoo | grep I915
Code:
CONFIG_DRM_I915=m
# CONFIG_DRM_I915_ALPHA_SUPPORT is not set
CONFIG_DRM_I915_FORCE_PROBE=""
CONFIG_DRM_I915_CAPTURE_ERROR=y
CONFIG_DRM_I915_COMPRESS_ERROR=y
CONFIG_DRM_I915_USERPTR=y
CONFIG_DRM_I915_GVT=y
# CONFIG_DRM_I915_WERROR is not set
# CONFIG_DRM_I915_DEBUG is not set
# CONFIG_DRM_I915_DEBUG_MMIO is not set
# CONFIG_DRM_I915_SW_FENCE_DEBUG_OBJECTS is not set
# CONFIG_DRM_I915_SW_FENCE_CHECK_DAG is not set
# CONFIG_DRM_I915_DEBUG_GUC is not set
# CONFIG_DRM_I915_SELFTEST is not set
# CONFIG_DRM_I915_LOW_LEVEL_TRACEPOINTS is not set
# CONFIG_DRM_I915_DEBUG_VBLANK_EVADE is not set
# CONFIG_DRM_I915_DEBUG_RUNTIME_PM is not set
CONFIG_DRM_I915_USERFAULT_AUTOSUSPEND=250
CONFIG_DRM_I915_SPIN_REQUEST=5
CONFIG_SND_HDA_I915=y

I compiled all with and without EDID fb, with and without AGP, with and without simple framebuffer, with and without efi frame buffer, played with grub also, and more tests, I'm out of any ideas...

Any help would be great!

[Moderator edit: added [code] tags to preserve output layout. -Hu]
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 44945
Location: 56N 3W

PostPosted: Sat Dec 07, 2019 4:12 pm    Post subject: Reply with quote

legorythme,

Welcome to Gentoo.

Lets not work through a keyhole :)

Please put your entire dmesg, and your kernel .config file onto a pastebin site.
Post the links together with
Code:
lspci -knn

_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
legorythme
n00b
n00b


Joined: 06 Dec 2019
Posts: 3

PostPosted: Sat Dec 07, 2019 6:59 pm    Post subject: Reply with quote

Thank you for your reply! :)

Here are the infos you requested:

http://www.legorythme.com/gentoo/dmesg
http://www.legorythme.com/gentoo/kernel
http://www.legorythme.com/gentoo/lspci

I hope you find what is blocking my laptop screen...

Thanks in advance
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 44945
Location: 56N 3W

PostPosted: Sat Dec 07, 2019 8:37 pm    Post subject: Reply with quote

legorythme,

First, some markers in time.
[ 0.613405] Trying to unpack rootfs image as initramfs...
[ 0.645543] Freeing initrd memory: 3104K
That's your initrd doing whatever it does, in only 32ms.
Code:
[    3.102126] EXT4-fs (nvme0n1p4): mounted filesystem with ordered data mode. Opts: (null)
Your root filesystem being mounted read only, so that it can be read and rootfsck can be run.
and
Code:
[    6.280504] EXT4-fs (nvme0n1p4): re-mounted. Opts: (null)
root becoming read write.

Code:
[    4.732157] i915 0000:00:02.0: eDP-1: EDID is invalid:
[    4.732158] [drm] EDID has major version 2, instead of 1
I guess, that's your laptop display.
The kernel cannot determine its capabilities an the data it presents is invalid.
There has not been an EDID with a major version 2 yet.
Code:
[    4.732160]  [00] BAD  00 ff ff ff ff ff ff 00 38 70 35 00 00 00 00 00
[    4.732161]  [00] BAD  01 1c 02 04 a5 1f 11 78 02 a1 05 a1 56 4f a0 27
[    4.732161]  [00] BAD  0f 50 54 00 00 00 01 01 01 01 01 01 01 01 01 01
[    4.732162]  [00] BAD  01 01 01 01 01 01 1a 36 80 a0 70 38 1f 40 30 20
[    4.732163]  [00] BAD  35 00 35 ae 10 00 00 1a 00 00 00 00 00 00 00 00
[    4.732164]  [00] BAD  00 00 00 00 00 00 00 00 00 1a 00 00 00 fe 00 43
[    4.732164]  [00] BAD  45 43 20 50 41 0a 20 20 20 20 20 20 00 00 00 fe
[    4.732165]  [00] BAD  00 4c 4d 31 34 30 4c 46 2d 33 4c 0a 20 20 00 26

This Wikipedia explains how to read it.

You can override the EDID data that the kernel sees.
In the kernel, go to
Code:
# CONFIG_DRM_LOAD_EDID_FIRMWARE is not set
and set the option on.
Now you can pass the kernel a file name of what it should use for EDID data.

As the EDID data has a checksum, its probably more than changing the
Code:
[    4.732161]  [00] BAD  01 1c 02
that last 02.

The hard bit now is determining what should be in the EDID data. I suspect most of that is valid. I've not checked.
There is some background reading

Before we go further, your kernel command line is
Code:
[    0.000000] Command line: BOOT_IMAGE=/kernel-genkernel-x86_64-5.4.2-gentoo root=UUID=9534f831-bfe3-4c94-8d65-eb0b5ce6ed00 ro acpi_osi=Linux acpi_backlight=video

Add nomodeset to the end and see what happens. You won't like it but your laptop screen may work like that.

Post back after that test.

In grub, select the option you want to boot then press 'e' for edit. This is not a permanent change.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
legorythme
n00b
n00b


Joined: 06 Dec 2019
Posts: 3

PostPosted: Tue Dec 10, 2019 9:19 pm    Post subject: Reply with quote

Thanks NeddySeagoon!

It worked in kind of a way.
Quote:
[ 4.732157] i915 0000:00:02.0: eDP-1: EDID is invalid:
[ 4.732158] [drm] EDID has major version 2, instead of 1

Yes eDP-1 is my laptop screen.

I added the option for EDID in the kernel again as you said for the hand made edid:
Quote:
# CONFIG_DRM_LOAD_EDID_FIRMWARE is not set


But I did not quite understand or find the way to make my own EDID, but I solved it with the standard one with grub:
Code:
nano /etc/default/grub

And added it for the laptop screen:
Code:
GRUB_CMDLINE_LINUX_DEFAULT="drm_kms_helper.edid_firmware=eDP-1:edid/1920x1080.bin acpi_osi=Linux acpi_backlight=video"


I removed also at boot acpi_osi=Linux, did not get the difference yet, maybe not needed. I'm still finishing my installation. And also I could not find the right driver for my Touchpad.

But for now my laptop screen works and I can use the HDMI as I want without problem.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 44945
Location: 56N 3W

PostPosted: Tue Dec 10, 2019 9:56 pm    Post subject: Reply with quote

legorythme,

Thats fine. I don't use grub2 as all my installs are too old.
I wonder where the file edid/1920x1080.bin comes from.
As is passed to the kernel by GRUB_CMDLINE_LINUX_DEFAULT, I suspect its in /lib/firmware but I don't have it.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum