Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
noob doesn't understand graphics/audio drivers
View unanswered posts
View posts from last 24 hours

Goto page 1, 2, 3, 4  Next  
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
not_a_robot
n00b
n00b


Joined: 10 Mar 2019
Posts: 36

PostPosted: Sun Mar 10, 2019 11:18 pm    Post subject: noob doesn't understand graphics/audio drivers Reply with quote

I'm brand new to Gentoo and the kernel, followed the handbook and have read over some of the wiki but I'm still not wrapping my head around what's going on.

My problems:
1) I don't have sound.
2) I think I am running the graphics hardware with generic drivers, and I'd like to use the specific ones.

I'm not running X, and I have installed fbterm and managed to view videos on the framebuffer.

My hardware:
ASUS Z390i motherboard
i5 9600K with UHD 630 integrated graphics
I'm not sure about the sound. Mobo manual says "ROG SupremeFX S1220A". lspci says Intel Corporation Device a348
Graphics and sound are both (supposed to be) carried over HDMI

I've noticed in the output of lspci -v that the audio device has "Kernel driver in use: snd_hda_intel" while the VGA controller has no "Kernel driver in use" listing.

I have CONFIG_RM_I915=y and CONFIG_SND_HDA_I915=y

I thought i915 was a graphics driver? What is i965 and how does it relate?

Full output of lspci -v:
Code:
00:00.0 Host bridge: Intel Corporation Device 3ec2 (rev 0a)
   Subsystem: ASUSTeK Computer Inc. Device 8694
   Flags: bus master, fast devsel, latency 0
   Capabilities: [e0] Vendor Specific Information: Len=10 <?>
   Kernel driver in use: skl_uncore

00:02.0 VGA compatible controller: Intel Corporation Device 3e98 (prog-if 00 [VGA controller])
   Subsystem: ASUSTeK Computer Inc. Device 8694
   Flags: bus master, fast devsel, latency 0, IRQ 255
   Memory at a0000000 (64-bit, non-prefetchable) [size=16M]
   Memory at 90000000 (64-bit, prefetchable) [size=256M]
   I/O ports at 3000 [size=64]
   [virtual] Expansion ROM at 000c0000 [disabled] [size=128K]
   Capabilities: [40] Vendor Specific Information: Len=0c <?>
   Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
   Capabilities: [ac] MSI: Enable- Count=1/1 Maskable- 64bit-
   Capabilities: [d0] Power Management version 2
   Capabilities: [100] Process Address Space ID (PASID)
   Capabilities: [200] Address Translation Service (ATS)
   Capabilities: [300] Page Request Interface (PRI)

00:14.0 USB controller: Intel Corporation Device a36d (rev 10) (prog-if 30 [XHCI])
   Subsystem: ASUSTeK Computer Inc. Device 8694
   Flags: bus master, medium devsel, latency 0, IRQ 137
   Memory at a1220000 (64-bit, non-prefetchable) [size=64K]
   Capabilities: [70] Power Management version 2
   Capabilities: [80] MSI: Enable+ Count=1/8 Maskable- 64bit+
   Capabilities: [90] Vendor Specific Information: Len=14 <?>
   Kernel driver in use: xhci_hcd

00:14.2 RAM memory: Intel Corporation Device a36f (rev 10)
   Subsystem: ASUSTeK Computer Inc. Device 8694
   Flags: fast devsel
   Memory at a123a000 (64-bit, non-prefetchable) [disabled] [size=8K]
   Memory at a1240000 (64-bit, non-prefetchable) [disabled] [size=4K]
   Capabilities: [80] Power Management version 3

00:14.3 Network controller: Intel Corporation Device a370 (rev 10)
   Subsystem: Intel Corporation Device 0034
   Flags: bus master, fast devsel, latency 0, IRQ 16
   Memory at a1234000 (64-bit, non-prefetchable) [size=16K]
   Capabilities: [c8] Power Management version 3
   Capabilities: [d0] MSI: Enable- Count=1/1 Maskable- 64bit+
   Capabilities: [40] Express Root Complex Integrated Endpoint, MSI 00
   Capabilities: [80] MSI-X: Enable+ Count=16 Masked-
   Capabilities: [100] #00
   Capabilities: [14c] Latency Tolerance Reporting
   Capabilities: [164] Vendor Specific Information: ID=0010 Rev=0 Len=014 <?>
   Kernel driver in use: iwlwifi

00:16.0 Communication controller: Intel Corporation Device a360 (rev 10)
   Subsystem: ASUSTeK Computer Inc. Device 8694
   Flags: fast devsel, IRQ 255
   Memory at a123f000 (64-bit, non-prefetchable) [disabled] [size=4K]
   Capabilities: [50] Power Management version 3
   Capabilities: [8c] MSI: Enable- Count=1/1 Maskable- 64bit+
   Capabilities: [a4] Vendor Specific Information: Len=14 <?>

00:17.0 SATA controller: Intel Corporation Device a352 (rev 10) (prog-if 01 [AHCI 1.0])
   Subsystem: ASUSTeK Computer Inc. Device 8694
   Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 255
   Memory at a1238000 (32-bit, non-prefetchable) [size=8K]
   Memory at a123e000 (32-bit, non-prefetchable) [size=256]
   I/O ports at 3090 [size=8]
   I/O ports at 3080 [size=4]
   I/O ports at 3060 [size=32]
   Memory at a123d000 (32-bit, non-prefetchable) [size=2K]
   Capabilities: [80] MSI: Enable- Count=1/1 Maskable- 64bit-
   Capabilities: [70] Power Management version 3
   Capabilities: [a8] SATA HBA v1.0

00:1b.0 PCI bridge: Intel Corporation Device a340 (rev f0) (prog-if 00 [Normal decode])
   Flags: bus master, fast devsel, latency 0
   Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
   I/O behind bridge: 00004000-00004fff [size=4K]
   Memory behind bridge: a1300000-a14fffff [size=2M]
   Prefetchable memory behind bridge: 00000000a1500000-00000000a16fffff [size=2M]
   Capabilities: [40] Express Root Port (Slot+), MSI 00
   Capabilities: [80] MSI: Enable- Count=1/1 Maskable- 64bit-
   Capabilities: [90] Subsystem: ASUSTeK Computer Inc. Device 8694
   Capabilities: [a0] Power Management version 3
   Kernel driver in use: pcieport

00:1c.0 PCI bridge: Intel Corporation Device a338 (rev f0) (prog-if 00 [Normal decode])
   Flags: bus master, fast devsel, latency 0
   Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
   I/O behind bridge: None
   Memory behind bridge: None
   Prefetchable memory behind bridge: None
   Capabilities: [40] Express Root Port (Slot-), MSI 00
   Capabilities: [80] MSI: Enable- Count=1/1 Maskable- 64bit-
   Capabilities: [90] Subsystem: ASUSTeK Computer Inc. Device 8694
   Capabilities: [a0] Power Management version 3
   Kernel driver in use: pcieport

00:1d.0 PCI bridge: Intel Corporation Device a330 (rev f0) (prog-if 00 [Normal decode])
   Flags: bus master, fast devsel, latency 0, IRQ 120
   Bus: primary=00, secondary=03, subordinate=03, sec-latency=0
   I/O behind bridge: None
   Memory behind bridge: a1100000-a11fffff [size=1M]
   Prefetchable memory behind bridge: None
   Capabilities: [40] Express Root Port (Slot+), MSI 00
   Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
   Capabilities: [90] Subsystem: ASUSTeK Computer Inc. Device 8694
   Capabilities: [a0] Power Management version 3
   Capabilities: [100] Advanced Error Reporting
   Capabilities: [140] Access Control Services
   Capabilities: [150] Precision Time Measurement
   Capabilities: [220] #19
   Capabilities: [250] Downstream Port Containment
   Kernel driver in use: pcieport

00:1f.0 ISA bridge: Intel Corporation Device a305 (rev 10)
   Subsystem: ASUSTeK Computer Inc. Device 8694
   Flags: bus master, medium devsel, latency 0

00:1f.3 Audio device: Intel Corporation Device a348 (rev 10)
   Subsystem: ASUSTeK Computer Inc. Device 8723
   Flags: bus master, fast devsel, latency 32, IRQ 138
   Memory at a1230000 (64-bit, non-prefetchable) [size=16K]
   Memory at a1000000 (64-bit, non-prefetchable) [size=1M]
   Capabilities: [50] Power Management version 3
   Capabilities: [80] Vendor Specific Information: Len=14 <?>
   Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+
   Kernel driver in use: snd_hda_intel

00:1f.4 SMBus: Intel Corporation Device a323 (rev 10)
   Subsystem: ASUSTeK Computer Inc. Device 8694
   Flags: medium devsel, IRQ 16
   Memory at a123c000 (64-bit, non-prefetchable) [size=256]
   I/O ports at efa0 [size=32]
   Kernel driver in use: i801_smbus

00:1f.5 Serial bus controller [0c80]: Intel Corporation Device a324 (rev 10)
   Subsystem: ASUSTeK Computer Inc. Device 8694
   Flags: fast devsel
   Memory at fe010000 (32-bit, non-prefetchable) [size=4K]

00:1f.6 Ethernet controller: Intel Corporation Ethernet Connection (7) I219-V (rev 10)
   Subsystem: ASUSTeK Computer Inc. Ethernet Connection (7) I219-V
   Flags: bus master, fast devsel, latency 0, IRQ 122
   Memory at a1200000 (32-bit, non-prefetchable) [size=128K]
   Capabilities: [c8] Power Management version 3
   Capabilities: [d0] MSI: Enable+ Count=1/1 Maskable- 64bit+
   Kernel driver in use: e1000e

03:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD Controller SM961/PM961 (prog-if 02 [NVM Express])
   Subsystem: Samsung Electronics Co Ltd NVMe SSD Controller SM961/PM961
   Flags: bus master, fast devsel, latency 0, IRQ 16, NUMA node 0
   Memory at a1100000 (64-bit, non-prefetchable) [size=16K]
   Capabilities: [40] Power Management version 3
   Capabilities: [50] MSI: Enable- Count=1/32 Maskable- 64bit+
   Capabilities: [70] Express Endpoint, MSI 00
   Capabilities: [b0] MSI-X: Enable+ Count=8 Masked-
   Capabilities: [100] Advanced Error Reporting
   Capabilities: [148] Device Serial Number 00-00-00-00-00-00-00-00
   Capabilities: [158] Power Budgeting <?>
   Capabilities: [168] #19
   Capabilities: [188] Latency Tolerance Reporting
   Capabilities: [190] L1 PM Substates
   Kernel driver in use: nvme

Full output of aplay -L:
Code:
null
    Discard all samples (playback) or generate zero samples (capture)
default:CARD=PCH
    HDA Intel PCH, Generic Analog
    Default Audio Device
sysdefault:CARD=PCH
    HDA Intel PCH, Generic Analog
    Default Audio Device
front:CARD=PCH,DEV=0
    HDA Intel PCH, Generic Analog
    Front speakers
surround21:CARD=PCH,DEV=0
    HDA Intel PCH, Generic Analog
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=PCH,DEV=0
    HDA Intel PCH, Generic Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
    HDA Intel PCH, Generic Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
    HDA Intel PCH, Generic Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
    HDA Intel PCH, Generic Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
    HDA Intel PCH, Generic Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=PCH,DEV=0
    HDA Intel PCH, Generic Digital
    IEC958 (S/PDIF) Digital Audio Output


[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: 54214
Location: 56N 3W

PostPosted: Mon Mar 11, 2019 12:26 am    Post subject: Reply with quote

not_a_robot,

Welcome to Gentoo,
lspci:
00:02.0 VGA compatible controller: Intel Corporation Device 3e98 (prog-if 00 [VGA controller])
00:1f.3 Audio device: Intel Corporation Device a348 (rev 10)

You have a single sound card. That makes things easier.
Normally the video card would have its own sound card built in.

You have only one digital output too.
Code:
iec958:CARD=PCH,DEV=0
    HDA Intel PCH, Generic Digital
    IEC958 (S/PDIF) Digital Audio Output


In alsamixer find the output with IEC958 or S/PDIF in its name and unmute it.
This will probably mute your analogue sound as snd_hda_intel cab do both the 44.1kHz sample rate for analogue and 48.0kHz rate for digital outputs but not both at the name time.

Sound cards are in two parts. The PIC interface part, in your case, controlled by snd_hda_intel and the CODEC that does all the IO. That's your "ROG SupremeFX S1220A"
Google says its a Realtek ALC1220. The kernel needs to support both parts.
Thats CONFIG_SND_HDA_CODEC_REALTEK in the kernel.
You may also need CONFIG_SND_HDA_CODEC_HDMI

To help with your graphics make friends with wgetpaste and put the output of dmesg and your kernel .config file onto a pastebin site.
Post the links here. They are far to big to fit into a post.
_________________
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
not_a_robot
n00b
n00b


Joined: 10 Mar 2019
Posts: 36

PostPosted: Mon Mar 11, 2019 1:29 am    Post subject: Reply with quote

Thank you! I now have sound coming through the analog outputs but still nothing over HDMI. I have noticed in others' aplay -L outputs that HDMI will be listed, but mine is missing.
Here is dmesg http://dpaste.com/3SS1GTS
Here is .config http://dpaste.com/2NQG1Q5
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Mon Mar 11, 2019 1:39 am    Post subject: Reply with quote

Your kernel is too old for your hardware. Support for your Intel was added in kernel-4.20.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
not_a_robot
n00b
n00b


Joined: 10 Mar 2019
Posts: 36

PostPosted: Mon Mar 11, 2019 1:45 am    Post subject: Reply with quote

How do I select the kernel version? I just skimmed back over the handbook and couldn't find a reference to kernel version, so I'm not exactly sure how I wound up with 4.19.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Mon Mar 11, 2019 2:33 am    Post subject: Reply with quote

Code:
emerge -av1 =gentoo-sources-5.0.1


Portage will tell you how to install it.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
not_a_robot
n00b
n00b


Joined: 10 Mar 2019
Posts: 36

PostPosted: Mon Mar 11, 2019 2:35 am    Post subject: Reply with quote

I get:

Code:
emerge: there are no ebuilds to satisfy "=gentoo-sources-5.0.1"


If it makes a difference, I'm on profile default/linux/amd64/17.0 (stable)
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Mon Mar 11, 2019 2:53 am    Post subject: Reply with quote

Then run emerge --sync, 5.0.1 was just added.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Mon Mar 11, 2019 10:41 am    Post subject: Reply with quote

not_a_robot,

dmesg:
[   11.392782] snd_hda_codec_hdmi hdaudioC0D2: No i915 binding for Intel HDMI/DP codec
[   11.392797] hdaudio hdaudioC0D2: Unable to bind the codec


You do need snd_hda_codec_hdmi but it can't find your sound card.

dmesg:
[    0.317625] Linux agpgart interface v0.103
[    0.317642] efifb: probing for efifb
[    0.317648] efifb: framebuffer at 0x90000000, using 32448k, total 32448k
[    0.317650] efifb: mode is 3840x2160x32, linelength=15360, pages=1
[    0.317651] efifb: scrolling: redraw
[    0.317653] efifb: Truecolor: size=8:8:8:8, shift=24:16:8:0
[    0.327406] Console: switching to colour frame buffer device 480x135
[    0.336837] fb0: EFI VGA frame buffer device

You are indeed using a generic framebuffer device for your console.

Your kernel has
Code:
CONFIG_DRM_I915=y
so you should be using the framebuffer that provides.

Go with Jaglovers advice and update your kernel. This page lists all the hardware that the driver works with.
Your Device 3e98 is there too. As its not being used, that device ID is probably not listed in your kernel, so the driver will not bind to your device.
Code:

$ grep -i 3e98 -R /usr/src/linux/
on kernel-4.19.0 shows its not listed.
$ grep -i 3e98 -R /usr/src/linux-5.0.0-gentoo/ includes
Code:
/usr/src/linux-5.0.0-gentoo/include/drm/i915_pciids.h:   INTEL_VGA_DEVICE(0x3E98, info), /* SRV GT2 */ \

That's the definition for your video device. Notice the 0x3E98.
_________________
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
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Mon Mar 11, 2019 4:17 pm    Post subject: Reply with quote

A word of warning.
Using much newer kernel than your stable branch may put you in a situation when you need also unstable versions of some applications which build kernel modules, like proprietary nVidia drivers or VirtualBox, for instance.
In case you do not wish to open this can of worms you may opt for one of 4.20 kernels available in portage.

https://packages.gentoo.org/packages/sys-kernel/gentoo-sources
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
not_a_robot
n00b
n00b


Joined: 10 Mar 2019
Posts: 36

PostPosted: Thu Mar 14, 2019 2:57 am    Post subject: Reply with quote

Thanks to you both. I've compiled a 5.0.1 kernel and I can see in the dmesg output that both the intel graphics driver and the HDMI audio are beig referenced, so that's good, but as soon as the handoff occurs to the intel driver, the screen goes black. I'm able to get dmesg output and reboot from console by typing blind.

dmesg: http://dpaste.com/0HPGRXK
.config: http://dpaste.com/0P3CNNT
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Thu Mar 14, 2019 2:44 pm    Post subject: Reply with quote

Can't spot anything wrong at first glance. How exactly the screen blanks? Does it turn black with backlight on or it goes into sleep with "No Signal" message?
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
not_a_robot
n00b
n00b


Joined: 10 Mar 2019
Posts: 36

PostPosted: Thu Mar 14, 2019 3:04 pm    Post subject: Reply with quote

No signal.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Thu Mar 14, 2019 3:08 pm    Post subject: Reply with quote

This probably means the EDID is not read from monitor or it is buggy. As a result monitor protects itself from incompatible video mode and turns off. You need to specify a safe video mode by hand if this is the case.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
not_a_robot
n00b
n00b


Joined: 10 Mar 2019
Posts: 36

PostPosted: Thu Mar 14, 2019 3:33 pm    Post subject: Reply with quote

I installed read-edid and tried it with both the 4.19 and 5.0 kernel, with the same result.

Code:
This is read-edid version 3.0.2. Prepare for some fun.
Attempting to use i2c interface
Looks like no busses have an EDID. Sorry!
Attempting to use the classical VBE interface

   Performing real mode VBE call
   Interrupt 0x10 ax=0x4f00 bx=0x0 cx=0x0


My monitor is actually a Samsung "Smart TV", maybe that has something to do with it.
How do I set this manually? I managed to set my framebuffer size manually in /etc/default/grub, maybe some setting I have in there (GRUB_GFXPAYLOAD_LINUX=keep?) is causing a problem.
My /etc/default/grub: http://dpaste/02PWDXE
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Thu Mar 14, 2019 3:35 pm    Post subject: Reply with quote

Yes you can add video mode to kernel command line, also you could read /usr/src/linux/Documentation/EDID/HOWTO.txt.

Edit: Once I had a computer which sent the video to a wrong output altogether - the output even wasn't present on motherboard. Read about this here: https://www.osadl.org/Single-View.111+M5f0e4909445.0.html
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Thu Mar 14, 2019 7:05 pm    Post subject: Reply with quote

not_a_robot,

Can you startx?
It might be a console only problem. That would be worth knowing.
_________________
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
not_a_robot
n00b
n00b


Joined: 10 Mar 2019
Posts: 36

PostPosted: Wed Mar 20, 2019 4:52 pm    Post subject: Reply with quote

Jaglover, that link and doc was productive. I wound up taking the following steps:
1) Build a custom EDID for 4K@60h using values pulled from the advanced calculator here: https://www.extron.com/product/videotools.aspx
This caused dmesg to show an attempt to load my '3840x2160.bin" for "DP-1".
2) Disable DP-1 and enable HDMI-A-1 on the kernel command liine.
Now dmesg reports finding HDMI-A-1 and loading 3840x2160.bin for it. However, the TV is still reporting "no signal".
3) Repeat step (1) for 30h and 24h. Same result.
4) Attempt to load predefined EDID for 1920x1280. Same result.
5) Omit all EDID data but enable HDMI-A-1 to see if it will read EDID this time. It doesn't,
6) On the assumption that I most likely got the EDID values wrong, I chat with Samsung support to see if I could get the EDID directly from them.
This was unhelpful. They claimed that Samung TVs don't use EDID because they are "plug and play." Requests to be forwarded to an engineer were deflected.

I can think of one thing to try next with regard to EDID, and that is to purchase an HDMI passthrough EDID emulator. Hopefully it doesn't come to that.

NeddySeagoon, I'll try after reinstalling X tonight.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Wed Mar 20, 2019 9:05 pm    Post subject: Reply with quote

Wouldn't it be easier to pass video=<yourmode> to your kernel for testing? In case you are using Grub2 it is just a matter of hitting 'e' and adding the option you wish to test. Furthermore, you could try with some mainstream live distro, if it works then you can duplicate the setup.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
not_a_robot
n00b
n00b


Joined: 10 Mar 2019
Posts: 36

PostPosted: Thu Mar 21, 2019 4:36 pm    Post subject: Reply with quote

Jaglover:
I gave it a try, no dice. `video=HDMI-A-1:3840x2160@60`
I tried to boot from an arch-linux livecd and the moment it switches graphics modes during boot, I see this: http://dpaste.com/1NC5182
It looks like it could be a horizontal sync issue; maybe I can get the EDID arch is trying to use and tweak it until it works?

NeddySeagoon:
`startx` was apparently successful, though I still didn't get any video output. I removed the kms.edid_firmware statement from my kernel command line to see if the video mode might be autodetected. My xorg log (http://dpaste.com/2VKNFHG) shows some hopeful signs, I think. The monitor still isn't getting its settings across, though, the 4k video mode isn't detected.

Kernel config is here:
http://dpaste.com/15XS1S9
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Thu Mar 21, 2019 5:04 pm    Post subject: Reply with quote

Code:
video=HDMI-A-1:3840x2160@60


Some things to check.

Do you really have HDMI-A-1 output? Is the above syntax correct?

Regarding your Xorg, you need to run an application on it, otherwise it will terminate. If you build Kodi frontend for instance, run Kodi on Xorg and it will stay up.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
not_a_robot
n00b
n00b


Joined: 10 Mar 2019
Posts: 36

PostPosted: Thu Mar 21, 2019 5:16 pm    Post subject: Reply with quote

I'm reasonably sure I have HDMI-A-1. I tried HDMI-1 at first but this had no visible effect; using HDMI-A-1 causes some messages about it to appear in dmesg, as well as creating an entry in /sys/class/drm (or wherever they populate, I'm not in front of the machine right now).

I installed lxde and xorg in hopes that lxde would just be automatically selected as my wm. I'm not too familiar with X, (I always took it for granted on desktop systems and have spent the last few years doing my personal comptering on guiless devservers in the cloud anyway.) so I will need to poke around with it when I get home tonight and make sure I'm actually running something on Xorg.

In this case, though, Xorg seems to stay up - judging by the Xorg log.
Back to top
View user's profile Send private message
not_a_robot
n00b
n00b


Joined: 10 Mar 2019
Posts: 36

PostPosted: Thu Mar 21, 2019 5:18 pm    Post subject: Reply with quote

I also tried with a different monitor - in this case, a handheld HDMI projector. Same result, same exact dmesg output (besides timestamps).
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Thu Mar 21, 2019 8:11 pm    Post subject: Reply with quote

not_a_robot,

It looks promising but ...
Code:
[    25.897] (II) modeset(0): Output HDMI-1 has no monitor section
[    25.897] (II) modeset(0): EDID for output DP-1
[    25.897] (II) modeset(0): EDID for output DP-2
[    25.907] (II) modeset(0): EDID for output HDMI-1
[    25.907] (II) modeset(0): Printing probed modes for output HDMI-1
[    25.907] (II) modeset(0): Modeline "1024x768"x60.0   65.00  1024 1048 1184 1344  768 771 777 806 -hsync -vsync (48.4 kHz e)
[    25.907] (II) modeset(0): Modeline "800x600"x60.3   40.00  800 840 968 1056  600 601 605 628 +hsync +vsync (37.9 kHz e)
[    25.907] (II) modeset(0): Modeline "800x600"x56.2   36.00  800 824 896 1024  600 601 603 625 +hsync +vsync (35.2 kHz e)
[    25.907] (II) modeset(0): Modeline "848x480"x60.0   33.75  848 864 976 1088  480 486 494 517 +hsync +vsync (31.0 kHz e)
[    25.907] (II) modeset(0): Modeline "640x480"x59.9   25.18  640 656 752 800  480 490 492 525 -hsync -vsync (31.5 kHz e)

There are no widescreen modes there, like you are only getting old VESA modes.

Code:
[    26.588] (II) Server terminated successfully (0). Closing log file.
suggests that Xorg worked properly but found nothing to do, so exited cleanly.
Code:
emerge twm xterm xclock -1av
will get you the default test applications for Xorg.

Is
Code:
[    26.127] (II) modeset(0): Setting screen physical size to 270 x 203
the correct size, in mm for your display?
That's too small to be useful for a 4k display. Do you have another display device attached?
That EDID data, including the physical size, came from somewhere.

Looking at the preferred video drivers, you hawe
Code:
[    25.829] (==) Matched intel as autoconfigured driver 0
[    25.829] (==) Matched modesetting as autoconfigured driver 1
[    25.829] (==) Matched fbdev as autoconfigured driver 2
[    25.829] (==) Matched vesa as autoconfigured driver 3
[    25.829] (==) Assigned the driver to the xf86ConfigLayout
[    25.829] (II) LoadModule: "intel"

For diagnostics only, turn on
[code]# CONFIG_FB_SIMPLE is not set[/code]Grub sets up a framebuffer. This option allows the kernel to draw on that framebuffer. The kernel will not do any framebuffer setup. It just draws on what it finds. It just might get you an image though.
[    25.830] (WW) Warning, couldn't open module intel


If you can get it, the output of dmesg will be useful.
_________________
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
not_a_robot
n00b
n00b


Joined: 10 Mar 2019
Posts: 36

PostPosted: Sat Mar 23, 2019 6:08 pm    Post subject: Reply with quote

I don't have any other displays attached - and the output size is definitely wrong. I baked the intel driver into the kernel instead of compiling as a module, which is probably why Xorg isn't finding the module.

dmesg: http://dpaste.com/3XJ1QSV
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
Goto page 1, 2, 3, 4  Next
Page 1 of 4

 
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