Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Issue with Intel Graphics i915
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
Dread0375
n00b
n00b


Joined: 10 Oct 2023
Posts: 16

PostPosted: Mon Dec 04, 2023 5:01 am    Post subject: Issue with Intel Graphics i915 Reply with quote

Hi all, I have everything working on my laptop A1425 (MacBook Pro 13) but i915. I can't for the love of me get this working.

My main issue is boot. The last message on my boot is i915 drm fb0: i915drmfb frame buffer device with no other lines after. There is just a blinking cursor. I can't access dmesg, or any logs. Plus the logs do not save. I checked and the journals which showed nothing.
I have the i915 built as a module with AGP support, Intel graphics checked under AGP, and dependencies.
The i915 is in my initramfs made with dracut.

Example of issue,
i915 using Transparent Hugepages
i915 DMAR active, disabling use of stolen memory,
i915 skipping intel_backlight registration.
[drm] initialized i915
Console: switching to colour framebuffer device 320x180
i915 0000:00:02:00 [drm] fb0: i915drmfb frame buffer device
_ <- blinking cursor.

Ill upload the config from my laptop

----------------

file:///mnt/gentoo/usr/src/linux/.config

----------------

Here is my dracut.
Code:
 Host-only (Kernel-modules will include only the tools and modules for rootfs)
hostonly="yes"

# Compress initramfs with LZ4
compress="lz4"

# Add Dracut Modules
dracutmodules+=" bash systemd busybox modsign kernel-modules rescue drm dm lvm
                 fstab-sys resume rootfs-block udev-rules usrmount base
                 fs-lib shutdown uefi-lib crypt "

# Add Kernel Modules to Dracut
add_drivers+=" iosf_mbi i915 intel_gtt drm_display_helper video drm_buddy ttm "

# Omit Kernel Modules
omit_drivers+=" cqhci sdhci_pci sdhci xhci xhci_pci xhci_hci xhci_pci_renesas "

# Omit modules (Omit certain dracut modules)
omit_dracutmodules+=" i18n dbus dbus-daemon masterkey dash mksh kernel-modules-extra kernel-modules-network systemd-network-management warpclock fips caps watchdog-modules
                      watchdog dbus-broker rngd convertfs connman network-legacy network-manager
                      network-wicked network ifcfg url-lib plymouth bluetooth cns lvmmerge
                      lvmthinpool-monitor btrfs dmraid dmsquash-live-ntfs dmsquash-live
                      livenet mdraid nvdimm qemu-net crypt-loop pcsc pkcs11 tpm2-tss
                      cifs debug fcoue-uefi fcoe iscsi lunmask nbd nfs nvmef ssh-client terminfo virtfs
                      virtiofs securityfs biosdevname ecryptfs integrity pollcdrom selinux syslog img-lib memstrack squash"

# Use fstab
use_fstab="yes"

# Include crypttab and key
install_items+=" /etc/crypttab
                 /etc/cryptsetup-keys.d/gentoo.key "

and in Pastebin is my kernel
https://pastebin.com/48fuYgBK

[Moderator edit: added [code] tags to preserve output layout. -Hu]

----------------

[Moderator edit: Moved poster's self-responses into main post, then deleted the self-responses to return the thread to the unanswered list.

OP: Generally, if post length permits, you should edit extra information into your first post instead of replying to it. Some users run a canned search for threads with zero replies as a way of finding posts to answer. When you replied to yourself, you removed your thread from that list, even though you were not replying to announce that the thread was solved. Thus, they would no longer see your thread on the list of unanswered threads.
-Hu]
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Mon Dec 04, 2023 4:20 pm    Post subject: Reply with quote

Plz would you post your
Code:

emerge --info
and
lspci -nnk | grep -iEA3 "3d|vga"

?
_________________
:)
Back to top
View user's profile Send private message
Dread0375
n00b
n00b


Joined: 10 Oct 2023
Posts: 16

PostPosted: Mon Dec 04, 2023 8:10 pm    Post subject: Reply with quote

alamahant wrote:
Plz would you post your
Code:

emerge --info
and
lspci -nnk | grep -iEA3 "3d|vga"

?


Probably says arch because im inside archiso chroot.
Portage 3.0.51 (python 3.11.5-final-0, default/linux/amd64/17.1/systemd/merged-usr, gcc-13, glibc-2.37-r7, 5.18.12-arch1-1 x86_64)
=================================================================
System uname: Linux-5.18.12-arch1-1-x86_64-Intel-R-_Core-TM-_i5-3230M_CPU_@_2.60GHz-with-glibc2.37
KiB Mem: 8012668 total, 4153496 free
KiB Swap: 0 total, 0 free
Timestamp of repository gentoo: Wed, 29 Nov 2023 04:30:01 +0000
Head commit of repository gentoo: e74ff314c127ca90d4a66c75e5fbdd7d1a14c758
sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.40 p7) 2.40.0
app-misc/pax-utils: 1.3.5::gentoo
app-shells/bash: 5.1_p16-r6::gentoo
dev-lang/perl: 5.38.0-r1::gentoo
dev-lang/python: 3.11.5::gentoo
dev-util/cmake: 3.27.7::gentoo
dev-util/meson: 1.2.3::gentoo
sys-apps/baselayout: 2.14::gentoo
sys-apps/sandbox: 2.38::gentoo
sys-apps/systemd: 254.5-r1::gentoo
sys-devel/autoconf: 2.71-r6::gentoo
sys-devel/automake: 1.16.5-r1::gentoo
sys-devel/binutils: 2.40-r9::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/gcc: 13.2.1_p20230826::gentoo
sys-devel/gcc-config: 2.11::gentoo
sys-devel/libtool: 2.4.7-r1::gentoo
sys-devel/make: 4.4.1-r1::gentoo
sys-kernel/linux-headers: 6.1::gentoo (virtual/os-headers)
sys-libs/glibc: 2.37-r7::gentoo
Repositories:

gentoo
location: /var/db/repos/gentoo
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000
volatile: False
sync-rsync-extra-opts:
sync-rsync-verify-max-age: 24
sync-rsync-verify-metamanifest: yes
sync-rsync-verify-jobs: 1

Binary Repositories:

gentoobinhost
priority: 1
sync-uri: https://gentoo.osuosl.org/releases/amd64/binpackages/17.1/x86-64

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE @FSF-APPROVED @OSI-APPROVED @MISC-FREE @FSF-APPROVED-OTHER @FREE @OSI-APPROVED-NONFREE @OSI-APPROVED"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=ivybridge -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d"
CXXFLAGS="-O2 -march=ivybridge -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -march=ivybridge -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -march=ivybridge -pipe"
GENTOO_MIRRORS="http://tux.rainside.sk/gentoo/ http://ftp.vectranet.pl/gentoo/ http://gentoo.mirror.root.lu/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j5 -l4"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/usr/bin/zsh"
USE="acpi amd64 bash-completion branding cli crypt curl git libtirpc multilib nptl opengl openmp pam secureboot ssl systemd test-rust threads uefi" ABI_X86="64" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx f16c mmx mmxext pclmul popcnt rdrand sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS

00:02.0 VGA compatible controller [0300]: Intel Corporation 3rd Gen Core processor Graphics Controller [8086:0166] (rev 09)
Subsystem: Apple Inc. 3rd Gen Core processor Graphics Controller [106b:0102]
Kernel driver in use: i915
00:14.0 USB controller [0c03]: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller [8086:1e31] (rev 04)
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Mon Dec 04, 2023 9:52 pm    Post subject: Reply with quote

Ok your cpu is a third gen intel.
In make.conf you need
Code:

VIDEO_CARDS="intel i915"

followed by
Code:

emerge -av sys-kernel/linux-firmware
emerge -DUav @world.

You have a plain profile.
Maybe you should consider switching to a desktop profile followed by a rebuild @world.
Do you have
x11-drivers/xf86-video-intel
or
x11-base/xorg-drivers
installed?
I wonder why the console driver is not working for you....
In make menuconfig try to add
Code:

CONFIG_FB_VESA
CONFIG_FB_SIMPLE

rebuild and reinstall kernel.
_________________
:)


Last edited by alamahant on Mon Dec 04, 2023 9:59 pm; edited 1 time in total
Back to top
View user's profile Send private message
Dread0375
n00b
n00b


Joined: 10 Oct 2023
Posts: 16

PostPosted: Mon Dec 04, 2023 9:59 pm    Post subject: Reply with quote

alamahant wrote:
Ok your cpu is a third gen intel.
In make.conf you need
Code:

VIDEO_CARDS="intel i915"

followed by
Code:

emerge -av sys-kernel/linux-firmware
emerge -DUav @world.

You have a plain profile.Maybe you should consider switching to a desktop profile.Do you have
x11-drivers/xf86-video-intel
or
x11-base/xorg-drivers
installed?
I wonder why the console driver is not working for you....

'
Yup. I have xf86-video-intel. Im confused? I thought for Intel i just need "Intel" as according to wiki.
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Mon Dec 04, 2023 10:05 pm    Post subject: Reply with quote

According to
https://wiki.gentoo.org/wiki/Intel#X_drivers
you need
Code:

VIDEO_CARDS="intel i915"


Try adding
Code:

echo "options i915 modeset=1" > /etc/modprobe.d/i915.conf

And plz see my above updated comment.
Are you intentionally using a non-desktop profile?
_________________
:)


Last edited by alamahant on Mon Dec 04, 2023 10:06 pm; edited 1 time in total
Back to top
View user's profile Send private message
Dread0375
n00b
n00b


Joined: 10 Oct 2023
Posts: 16

PostPosted: Mon Dec 04, 2023 10:05 pm    Post subject: Reply with quote

Dread0375 wrote:
alamahant wrote:
Ok your cpu is a third gen intel.
In make.conf you need
Code:

VIDEO_CARDS="intel i915"

followed by
Code:

emerge -av sys-kernel/linux-firmware
emerge -DUav @world.

You have a plain profile.Maybe you should consider switching to a desktop profile.Do you have
x11-drivers/xf86-video-intel
or
x11-base/xorg-drivers
installed?
I wonder why the console driver is not working for you....



'
Yup. I have xf86-video-intel. Im confused? I thought for Intel i just need "Intel" as according to wiki
https://wiki.gentoo.org/wiki/Intel Is mine not ivybridge? or am i mixing it up. My cpu is a i5-3210m which falls under ivy. .
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Mon Dec 04, 2023 10:17 pm    Post subject: Reply with quote

Dread0375,

It sounds like the console works until the i915drmfb frame buffer driver takes over the console and its broken.

Can you post dmesg please, se we can see what happens on startup.

your kerne has both EFI_FB, which will start fastest as its built into the kernel
i915drmfb is a loadable module, so it will be loaded after the kernel mounts the initrd as root.

The output of
Code:
lspci -nnk
will be useful too.

-- edit --

Intel® Core™ i5-3210M Processor
Its an Ivy Bridge.
_________________
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
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Mon Dec 04, 2023 10:27 pm    Post subject: Reply with quote

I think you should remove i915 from dracut.
_________________
:)
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1663

PostPosted: Tue Dec 05, 2023 12:16 am    Post subject: Reply with quote

alamahant wrote:
According to
https://wiki.gentoo.org/wiki/Intel#X_drivers
you need
Code:

VIDEO_CARDS="intel i915"


This is wrong, it should be just VIDEO_CARDS="intel" for this 7th Gen GPU

Ensure that xf86-video-intel is *not* installed or problems may occur without extra configuration.
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Tue Dec 05, 2023 4:24 pm    Post subject: Reply with quote

@grknight
It is 3rd generation not 7th.
Quote:

00:02.0 VGA compatible controller [0300]: Intel Corporation 3rd Gen Core processor Graphics Controller [8086:0166] (rev 09)
Subsystem: Apple Inc. 3rd Gen Core processor Graphics Controller [106b:0102]
Kernel driver in use: i915

_________________
:)
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1663

PostPosted: Tue Dec 05, 2023 4:30 pm    Post subject: Reply with quote

alamahant wrote:
@grknight
It is 3rd generation not 7th.
Quote:

00:02.0 VGA compatible controller [0300]: Intel Corporation 3rd Gen Core processor Graphics Controller [8086:0166] (rev 09)
Subsystem: Apple Inc. 3rd Gen Core processor Graphics Controller [106b:0102]
Kernel driver in use: i915

This text is misleading. It is Gen7 GPU because it is Ivy Bridge. It may be '3rd Gen Core', however the GPU generation starts with I810 as Gen1 (PIII era). Gen3 GPU is a P4. Core i5 CPUs equate to at least Gen5 GPU.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4167
Location: Bavaria

PostPosted: Tue Dec 05, 2023 5:38 pm    Post subject: Reply with quote

Yes, a 3rd Gen. Intel CPU has an integrated 7th. Gen. GPU ... where you use only VIDEO_CARDS="intel"

See also:

https://wiki.gentoo.org/wiki/Intel#Feature_support
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
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