Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gentoo beginner can't start Intel graphics card
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
audinot
n00b
n00b


Joined: 04 Aug 2020
Posts: 4
Location: Canada

PostPosted: Tue Aug 04, 2020 3:54 am    Post subject: Gentoo beginner can't start Intel graphics card Reply with quote

Dear Gentoo forum, I apologize for this question that probably has an obvious answer, I am a total Gentoo beginner. I have used Linux casually for a long time now, but I'm no power user.

I have a full Gentoo install completed, and everything works, except the Intel graphics card! Please send help. For reference, I am using the Sakaki install guide and I'm at chapter 12 (installing Gnome with Wayland, but I'm going with KDE instead). I have been using the wiki to properly set my profile to KDE and various changes (sddm instead of gdm, etc). I HAVE NOT finished installing or testing Xorg/Wayland yet because I need to solve this first, so I DO NOT have Xorg or xinit configuration yet.

THE GRITTY DETAILS: I have an "Optimus" laptop with two graphics cards. Gentoo calls the main card "Intel Corporation HD Graphics 630 (rev 04)", but the paperwork says it should be a Gen 9.5/Kaby Lake. The other card is an Nvidia GeForce GTX 1050 Mobile.

Nvidia is properly installed with nvidia-firmware (nouveau is disabled) and the correct kernel config. The hwinfo --gfxcard confirms that it has drivers and everything checks out.

hwinfo --gfxcard does not list any drivers for Intel and it's driving me nuts. I have kernel 5.4 and have followed the Intel graphics card wiki:

* All required Intel graphics kernel options are properly enabled from what I understand. (AGP support, Intel 440LX..., DRM, legacy fbdev, Intel 8xx..., GPU capture, compressing GPU error, userptr support, and bootup logo).

* I have installed mesa, xorg-drivers and linux-firmware.

* I do not have xf86-video-intel as that is listed as deprecated, and should not be required.

* VIDEO_CARDS="intel i965 iris fbdev nvidia" does nothing.

* VIDEO_CARDS="intel i965 fbdev nvidia" does nothing.

* VIDEO_CARDS="intel i915 fbdev nvidia" does nothing.

* I refresh @world with --new-use after each VIDEO_CARDS experiment.

* I reboot in between VIDEO_CARDS experiments.

* I have installed and enabled Plymouth, but nothing happens because there is no video card recognized.

* OpenRC does not report any errors during boot.

Please send help, friendly Gentoo community! I really, really gave this my best shot reading the wikis and forum posts and Google, and I can't figure out what crucial piece I'm missing.
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 24533
Location: here

PostPosted: Tue Aug 04, 2020 5:46 am    Post subject: Reply with quote

Welcome to gentoo forum!

You can post /var/log/Xorg.0.log?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Tue Aug 04, 2020 8:06 am    Post subject: Reply with quote

audinot,

Welcome to Gentoo.

Optimus means that you have one and a half graphics cards. The Intel one is the whole one and is always used to refresh the display surface.
The nVidia graphics has no output wiring. It can be used to draw into the the common framebuffer RAM for the Intel chip to use to refresh the display surface.

Make the intel chip work on its own with the modesetting driver, then add in nVidia.

fedeliallalinea has already asked for your /var/log/Xorg.0.log.
I suspect that we will need /usr/src/linux/.config too as you mentioned kernel options that on on that need to be off.

Put both of those files onto pastebins please. wgetpaste is your friend.
_________________
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
audinot
n00b
n00b


Joined: 04 Aug 2020
Posts: 4
Location: Canada

PostPosted: Tue Aug 04, 2020 1:00 pm    Post subject: Reply with quote

Relevant code from /usr/src/linux/.config for my Acer Nitro 5 AN515-51

Code:

#
# Graphics support
#
CONFIG_AGP=y
# CONFIG_AGP_AMD64 is not set
CONFIG_AGP_INTEL=y
# CONFIG_AGP_SIS is not set
# CONFIG_AGP_VIA is not set
CONFIG_INTEL_GTT=y
CONFIG_VGA_ARB=y
CONFIG_VGA_ARB_MAX_GPUS=16
CONFIG_VGA_SWITCHEROO=y
CONFIG_DRM=y
CONFIG_DRM_MIPI_DSI=y
# CONFIG_DRM_DP_AUX_CHARDEV is not set
# CONFIG_DRM_DEBUG_MM is not set
# CONFIG_DRM_DEBUG_SELFTEST is not set
CONFIG_DRM_KMS_HELPER=y
CONFIG_DRM_KMS_FB_HELPER=y
CONFIG_DRM_FBDEV_EMULATION=y
CONFIG_DRM_FBDEV_OVERALLOC=100
# CONFIG_DRM_LOAD_EDID_FIRMWARE is not set
# CONFIG_DRM_DP_CEC is not set
CONFIG_DRM_TTM=m
CONFIG_DRM_VM=y

#
# I2C encoder or helper chips
#
CONFIG_DRM_I2C_CH7006=m
CONFIG_DRM_I2C_SIL164=m
# CONFIG_DRM_I2C_NXP_TDA998X is not set
# CONFIG_DRM_I2C_NXP_TDA9950 is not set
# end of I2C encoder or helper chips

#
# ARM devices
#
# end of ARM devices

# CONFIG_DRM_RADEON is not set
# CONFIG_DRM_AMDGPU is not set

#
# ACP (Audio CoProcessor) Configuration
#
# end of ACP (Audio CoProcessor) Configuration

CONFIG_DRM_NOUVEAU=m
CONFIG_NOUVEAU_LEGACY_CTX_SUPPORT=y
CONFIG_NOUVEAU_DEBUG=5
CONFIG_NOUVEAU_DEBUG_DEFAULT=3
# CONFIG_NOUVEAU_DEBUG_MMU is not set
CONFIG_DRM_NOUVEAU_BACKLIGHT=y
CONFIG_DRM_I915=y
# 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 is not set
CONFIG_DRM_I915_USERFAULT_AUTOSUSPEND=250
CONFIG_DRM_I915_SPIN_REQUEST=5
# CONFIG_DRM_VGEM is not set
# CONFIG_DRM_VKMS is not set
CONFIG_DRM_ATI_PCIGART=y
# CONFIG_DRM_VMWGFX is not set
# CONFIG_DRM_GMA500 is not set
# CONFIG_DRM_UDL is not set
# CONFIG_DRM_AST is not set
# CONFIG_DRM_MGAG200 is not set
# CONFIG_DRM_CIRRUS_QEMU is not set
# CONFIG_DRM_QXL is not set
# CONFIG_DRM_BOCHS is not set
# CONFIG_DRM_VIRTIO_GPU is not set
CONFIG_DRM_PANEL=y

#
# Display Panels
#
# CONFIG_DRM_PANEL_RASPBERRYPI_TOUCHSCREEN is not set
# end of Display Panels

CONFIG_DRM_BRIDGE=y
CONFIG_DRM_PANEL_BRIDGE=y

#
# Display Interface Bridges
#
# CONFIG_DRM_ANALOGIX_ANX78XX is not set
# end of Display Interface Bridges

# CONFIG_DRM_ETNAVIV is not set
# CONFIG_DRM_GM12U320 is not set
# CONFIG_DRM_XEN is not set
# CONFIG_DRM_VBOXVIDEO is not set
CONFIG_DRM_LEGACY=y
# CONFIG_DRM_TDFX is not set
# CONFIG_DRM_R128 is not set
# CONFIG_DRM_I810 is not set
# CONFIG_DRM_MGA is not set
# CONFIG_DRM_SIS is not set
# CONFIG_DRM_VIA is not set
# CONFIG_DRM_SAVAGE is not set
CONFIG_DRM_PANEL_ORIENTATION_QUIRKS=y

#
# Frame buffer Devices
#
CONFIG_FB_CMDLINE=y
CONFIG_FB_NOTIFY=y
CONFIG_FB=y
CONFIG_FIRMWARE_EDID=y
CONFIG_FB_BOOT_VESA_SUPPORT=y
CONFIG_FB_CFB_FILLRECT=y
CONFIG_FB_CFB_COPYAREA=y
CONFIG_FB_CFB_IMAGEBLIT=y
CONFIG_FB_SYS_FILLRECT=y
CONFIG_FB_SYS_COPYAREA=y
CONFIG_FB_SYS_IMAGEBLIT=y
# CONFIG_FB_FOREIGN_ENDIAN is not set
CONFIG_FB_SYS_FOPS=y
CONFIG_FB_DEFERRED_IO=y
# CONFIG_FB_MODE_HELPERS is not set
# CONFIG_FB_TILEBLITTING is not set

#
# Frame buffer hardware drivers
#
# CONFIG_FB_CIRRUS is not set
# CONFIG_FB_PM2 is not set
# CONFIG_FB_CYBER2000 is not set
# CONFIG_FB_ARC is not set
# CONFIG_FB_ASILIANT is not set
# CONFIG_FB_IMSTT is not set
# CONFIG_FB_VGA16 is not set
# CONFIG_FB_UVESA is not set
CONFIG_FB_VESA=y
CONFIG_FB_EFI=y
# CONFIG_FB_N411 is not set
# CONFIG_FB_HGA is not set
# CONFIG_FB_OPENCORES is not set
# CONFIG_FB_S1D13XXX is not set
# CONFIG_FB_NVIDIA is not set
# CONFIG_FB_RIVA is not set
# CONFIG_FB_I740 is not set
# CONFIG_FB_LE80578 is not set
# CONFIG_FB_MATROX is not set
# CONFIG_FB_RADEON is not set
# CONFIG_FB_ATY128 is not set
# CONFIG_FB_ATY is not set
# CONFIG_FB_S3 is not set
# CONFIG_FB_SAVAGE is not set
# CONFIG_FB_SIS is not set
# CONFIG_FB_VIA is not set
# CONFIG_FB_NEOMAGIC is not set
# CONFIG_FB_KYRO is not set
# CONFIG_FB_3DFX is not set
# CONFIG_FB_VOODOO1 is not set
# CONFIG_FB_VT8623 is not set
# CONFIG_FB_TRIDENT is not set
# CONFIG_FB_ARK is not set
# CONFIG_FB_PM3 is not set
# CONFIG_FB_CARMINE is not set
# CONFIG_FB_SMSCUFX is not set
# CONFIG_FB_UDL is not set
# CONFIG_FB_IBM_GXT4500 is not set
# CONFIG_FB_VIRTUAL is not set
CONFIG_XEN_FBDEV_FRONTEND=y
# CONFIG_FB_METRONOME is not set
# CONFIG_FB_MB862XX is not set
# CONFIG_FB_HYPERV is not set
CONFIG_FB_SIMPLE=y
# CONFIG_FB_SM712 is not set
# end of Frame buffer Devices

#
# Backlight & LCD device support
#
CONFIG_LCD_CLASS_DEVICE=m
# CONFIG_LCD_PLATFORM is not set
CONFIG_BACKLIGHT_CLASS_DEVICE=y
CONFIG_BACKLIGHT_GENERIC=m
# CONFIG_BACKLIGHT_APPLE is not set
# CONFIG_BACKLIGHT_PM8941_WLED is not set
# CONFIG_BACKLIGHT_SAHARA is not set
# CONFIG_BACKLIGHT_ADP8860 is not set
# CONFIG_BACKLIGHT_ADP8870 is not set
# CONFIG_BACKLIGHT_LM3639 is not set
# CONFIG_BACKLIGHT_GPIO is not set
# CONFIG_BACKLIGHT_LV5207LP is not set
# CONFIG_BACKLIGHT_BD6107 is not set
# CONFIG_BACKLIGHT_ARCXCNN is not set
# end of Backlight & LCD device support

CONFIG_HDMI=y

#
# Console display driver support
#
CONFIG_VGA_CONSOLE=y
# CONFIG_VGACON_SOFT_SCROLLBACK is not set
CONFIG_DUMMY_CONSOLE=y
CONFIG_DUMMY_CONSOLE_COLUMNS=80
CONFIG_DUMMY_CONSOLE_ROWS=25
CONFIG_FRAMEBUFFER_CONSOLE=y
CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y
# CONFIG_FRAMEBUFFER_CONSOLE_ROTATION is not set
# CONFIG_FRAMEBUFFER_CONSOLE_DEFERRED_TAKEOVER is not set
# end of Console display driver support

CONFIG_LOGO=y
CONFIG_LOGO_LINUX_MONO=y
CONFIG_LOGO_LINUX_VGA16=y
CONFIG_LOGO_LINUX_CLUT224=y
# end of Graphics support


I don't have Xorg set up yet, so that Xorg file does not exist - I checked. I wanted to get the hwgfx output to show Intel before proceeding with setting it up, because that was the step I was on for Sakaki's guide. Someone gave me advice to "just set it up anyway, I'm sure your hwinfo is just wrong" and that just can't be the correct answer, but should I still start working on it anyway?

I'm sure this kernel setup is a mess, but the goal is to fix it. Thank you for helping, I really appreciate it a lot!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Tue Aug 04, 2020 1:56 pm    Post subject: Reply with quote

audinot,

That looks "mostly harmless".

Please post the output of dmesg (all of it) to a pastebin.

dmesg, the kernel .config Xorg.0.log are all important for the things that are missing that should be there as well as the things that are there but shouldn't be.
We can only spot things that are missing if the entire file is provided.

e.g. your kernel fragment says nothing about the MTRR setting but it must be on for some graphics.
_________________
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
audinot
n00b
n00b


Joined: 04 Aug 2020
Posts: 4
Location: Canada

PostPosted: Wed Aug 05, 2020 2:36 am    Post subject: Reply with quote

Whoops, sorry! Here is what wgetpaste gave me for everything.

.config - https://dpaste.com/GP7V97LL2
dmesg - https://dpaste.com/6HP5EP777
xorg.conf.d/10-nvidia.conf - https://dpaste.com/HG3R5K42M
xinitrc - https://dpaste.com/CYE7SKHAH
EDIT: ohmygosh completely forgot official xorg.0.log - https://dpaste.com/A28HYGS6Z

Xorg does not start, running as regular user:

Code:

$ startx


X.Org X Server 1.20.8
X Protocol Version 11, Revision 0
Build Operating System: Linux 5.4.48-gentoo-x86_64 x86_64 Gentoo
Current Operating System: Linux leviathan 5.4.48-gentoo-x86_64 #3 SMP Sun Aug 2 21:24:40 EDT 2020 x86_64
Kernel command line: root=/dev/ram0 crypt_root=/dev/disk/by-partuuid/bcd45a4d-b3c2-4bf9-820a-07d45f8e9858 dolvm real_root=/dev/mapper/vg1-root rootfstype=ext4 real_init=/sbin/init root_keydev=/dev/disk/by-partuuid/91eca2c2-3069-490b-b4f4-22aac26df7cc root_key=luks-key.gpg real_resume=/dev/mapper/vg1-swap keymap=us
Build Date: 04 August 2020  09:28:44PM
 
Current version of pixman: 0.40.0
   Before reporting problems, check http://wiki.x.org
   to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
   (++) from command line, (!!) notice, (II) informational,
   (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/home/kp/.local/share/xorg/Xorg.0.log", Time: Tue Aug  4 22:19:47 2020
(==) Using config directory: "/etc/X11/xorg.conf.d"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(EE)
Fatal server error:
(EE) parse_vt_settings: Cannot open /dev/tty0 (Permission denied)
(EE)
(EE)
Please consult the The X.Org Foundation support
    at http://wiki.x.org
 for help.
(EE) Please also check the log file at "/home/kp/.local/share/xorg/Xorg.0.log" for additional information.
(EE)
(EE) Server terminated with error (1). Closing log file.
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error
Couldn't get a file descriptor referring to the console


Alternatively

Code:

$ sudo startx
xauth:  file /root/.Xauthority does not exist
xauth:  file /root/.Xauthority does not exist


X.Org X Server 1.20.8
X Protocol Version 11, Revision 0
Build Operating System: Linux 5.4.48-gentoo-x86_64 x86_64 Gentoo
Current Operating System: Linux leviathan 5.4.48-gentoo-x86_64 #3 SMP Sun Aug 2 21:24:40 EDT 2020 x86_64
Kernel command line: root=/dev/ram0 crypt_root=/dev/disk/by-partuuid/bcd45a4d-b3c2-4bf9-820a-07d45f8e9858 dolvm real_root=/dev/mapper/vg1-root rootfstype=ext4 real_init=/sbin/init root_keydev=/dev/disk/by-partuuid/91eca2c2-3069-490b-b4f4-22aac26df7cc root_key=luks-key.gpg real_resume=/dev/mapper/vg1-swap keymap=us
Build Date: 04 August 2020  09:28:44PM
 
Current version of pixman: 0.40.0
   Before reporting problems, check http://wiki.x.org
   to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
   (++) from command line, (!!) notice, (II) informational,
   (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Tue Aug  4 22:21:02 2020
(==) Using config directory: "/etc/X11/xorg.conf.d"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(EE)
Fatal server error:
(EE) no screens found(EE)
(EE)
Please consult the The X.Org Foundation support
    at http://wiki.x.org
 for help.
(EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
(EE)
(EE) Server terminated with error (1). Closing log file.
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error


I can tell my Intel is not being picked up. I have not had time to touch the kernel yet! Nvidia is set in the kernel as a module vs Intel installed directly, but reading the Optimus wiki again, I understand that the module is unnecessary. Is this what prevents the Intel driver from loading? (Or is it, uhhh, MANY mistakes?)

Thank you for all your help :oops:
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Wed Aug 05, 2020 7:08 pm    Post subject: Reply with quote

audinot,

Code:
[    0.000000] Linux version 5.4.48-gentoo-x86_64 (root@livecd)

We need dmesg from your own kernel, not the liveCD.
dmesg is a list of the kernel messages as it boots.
It does not tell what your kernel does.

Xorg.0.log run from the liveCD, or using the liveCD kernel doesn't help.
Its a record of what Xorg did as it started. That depends on the running kernel too.

As you want to use out of tree kernel modules, keep CONFIG_LOCALVERSION= empty.
Not all out of tree modules honour it, then they won't load.

Is the kernel .config yours or for the liveCD kernel?
_________________
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
audinot
n00b
n00b


Joined: 04 Aug 2020
Posts: 4
Location: Canada

PostPosted: Thu Aug 06, 2020 2:44 am    Post subject: Reply with quote

Hi all. Where I live it's late at night, and I just checked on this. This is going to sound crazy, but I didn't realize dmesg had stopped reporting for duty. Dmesg is running (according to OpenRC) but will not record any boot since last Sunday. I have been looking for a solution but I'm also working full time from home on this same laptop. (Gentoo is being installed to its own drive.) I'm so sorry for the slow updates and the beginner errors. I'll try to get dmesg posted ASAP.

The .config file and the Xorg logs are definitely the recent ones (NOT from the live cd)! I'm removing the Nvidia options from the kernel right now and loading the Nvidia drivers as a module (following the Optimus wiki exactly).

I honestly am running on brain farts. This entire install has been rookie mistakes. I shouldn't say this, but the dmesg realization made me laugh. How did I not read that, it's right at the top! I'm going to bed early tonight I think!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Thu Aug 06, 2020 6:45 pm    Post subject: Reply with quote

audinot,

You are gaining experience. That's good.
However, experience is what you get just after you needed it :)
Don't be too hard on yourself.

dmesg is something the kernel does. However, logs only get saved if your root filesystem get mounted read/write.
Not having any logs con be a sign that there is something wrong there.
_________________
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 Installing Gentoo 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