Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
kernel options for X
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
danny.huffman
n00b
n00b


Joined: 17 Jan 2017
Posts: 7

PostPosted: Tue Jan 17, 2017 11:04 pm    Post subject: kernel options for X Reply with quote

I have an Intel GPU and use the generic modesetting driver. But I cannot get my X server to start. Whenever I run startx I get the
Code:
No devices found
error. I used a generic (big) kernel before and everything worked fine, so I am 100% sure X does not start because of my kernel configuration. Unfortunately, the diff between the two configs is really big so I was hoping someone can give me a hint which options to check first. I followed the wiki (https://wiki.gentoo.org/wiki/Intel#Kernel) but it was not enough.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


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

PostPosted: Tue Jan 17, 2017 11:19 pm    Post subject: Reply with quote

For open source Xorg drivers KMS is required. You can use wgetpaste to show us your kernel config.
_________________
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: 42588
Location: 56N 3W

PostPosted: Tue Jan 17, 2017 11:34 pm    Post subject: Reply with quote

danny.huffman,

As well as your kernel .config use wgetpaste to post /var/log/Xorg.0.log
That will tell what Xorg did when it tried to start.
_________________
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
danny.huffman
n00b
n00b


Joined: 17 Jan 2017
Posts: 7

PostPosted: Wed Jan 18, 2017 12:01 am    Post subject: Reply with quote

The X log:
https://bpaste.net/raw/a3a9f7bc18f4

The config:
https://bpaste.net/raw/01b5fa556998


Last edited by danny.huffman on Wed Jan 18, 2017 12:48 am; edited 3 times in total
Back to top
View user's profile Send private message
danny.huffman
n00b
n00b


Joined: 17 Jan 2017
Posts: 7

PostPosted: Wed Jan 18, 2017 12:13 am    Post subject: Reply with quote

EDIT: Removed. See previous post for links to the requested files.

Last edited by danny.huffman on Wed Jan 18, 2017 12:49 am; edited 1 time in total
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


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

PostPosted: Wed Jan 18, 2017 12:28 am    Post subject: Reply with quote

What might be this wgetpaste thingie?
_________________
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: 42588
Location: 56N 3W

PostPosted: Wed Jan 18, 2017 4:46 pm    Post subject: Reply with quote

danny.huffman,

Code:
CONFIG_FB_I740=y
needs to be off.

All the CONFIG_FB_* hardware drivers are obsolete. Even if you have one of those cards, you probably don't have a motherboard to plug it into.
Worse, they all conflict with the _DRM drivers that you want to use.
You have two drivers fighting over your video hardware.

From your Xorg log
Code:
[    17.309] (--) PCI:*(0:0:2:0) 8086:1916:17aa:2231 rev 7, Mem @ 0xe0000000/16777216, 0xc0000000/536870912, I/O @ 0x0000e000/64

You have an Intel® HD Graphics 520

Code:
CONFIG_EXTRA_FIRMWARE="iwlwifi-8000C-24.ucode i915/skl_dmc_ver1_26.bin i915/skl_guc_ver6_1.bin"
CONFIG_EXTRA_FIRMWARE_DIR="firmware"

I'll take your word for it on the exact firmware you need. Does the CONFIG_EXTRA_FIRMWARE_DIR="firmware" work?
dmesg will tell
I use CONFIG_EXTRA_FIRMWARE_DIR="/lib/firmware", I might even have a trailing /.

Code:
# CONFIG_AGP is not set
may be needed too. I know you don't have AGP ...
_________________
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
danny.huffman
n00b
n00b


Joined: 17 Jan 2017
Posts: 7

PostPosted: Wed Jan 18, 2017 5:11 pm    Post subject: Reply with quote

I disabled all the unneccessary framebuffer drivers but this did not change anything. The firmware directory seems to be correct. iwlwifi is loaded but I get the message
Code:
[drm] GuC firmware load skipped
.
Enabling or disabling CONFIG_AGP makes no difference. Tried both without success.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Wed Jan 18, 2017 5:57 pm    Post subject: Reply with quote

danny.huffman,

Please pastebin your dmesg output, current kernel .config and /var/log/Xorg.0.log
Every time things change, its good to have a current self consistent data set to work with.
_________________
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
danny.huffman
n00b
n00b


Joined: 17 Jan 2017
Posts: 7

PostPosted: Wed Jan 18, 2017 7:56 pm    Post subject: Reply with quote

Current config: https://bpaste.net/raw/387d618cc787
Current dmesg: https://bpaste.net/raw/bc37de381619
Current xorg.log: https://bpaste.net/raw/45ff46ab2382
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Wed Jan 18, 2017 9:08 pm    Post subject: Reply with quote

danny.huffman,

dmesg:
[    1.730029] Linux agpgart interface v0.103
[    1.730052] [drm] Initialized
[    1.730097] i915 0000:00:02.0: enabling device (0006 -> 0007)
[    1.730483] [drm] Memory usable by graphics device = 4096M
[    1.730484] [drm] Replacing VGA console driver
[    1.736399] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    1.736400] [drm] Driver supports precise vblank timestamp query.
[    1.745333] [drm] Finished loading i915/skl_dmc_ver1_26.bin (v1.26)
...
[    3.332148] Console: switching to colour frame buffer device 240x67
...
[    3.348738] i915 0000:00:02.0: fb0: inteldrmfb frame buffer device

That's all good stuff. You have got to the drm framebuffer provided by the kernel driver. That's usually the hard bit.
Its a good sign for your
Code:
Linux version 4.9.0-2-custom (danny@danny-laptop) (gcc version 6.2.1 20160830 (GCC) ) #1 SMP Wed Jan 18 18:51:25 EST 2017
kernel.
That gcc version 6.2.1 was never in portage.

The Xorg.0.log has changed.
Xorg.0.log:
[    46.521] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[    46.521] (II) modeset(G0): using drv /dev/dri/card0
[    46.521] (EE) No devices detected.

It no longer complains that /dev/dri/card0 does not exist. That's progress and another pointer to your kernel being good.
Xorg.0.log:
[    46.503] (==) No device specified for screen "Default Screen Section".
   Using the first device section listed.
[    46.503] (**) |   |-->Device "Intel Graphics"
[    46.503] (==) No monitor specified for screen "Default Screen Section".

Tells that you have a config file somewhere with an entry for Device "Intel Graphics".
Wherever it is, move it so that Xorg can't find it. With an Intel graphics card, Xorg should just work.
Try Xorg again.

With that file no longer in use, the log will contain a list of preferred video drivers for your card.
modesetting may not be at the top.
_________________
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
danny.huffman
n00b
n00b


Joined: 17 Jan 2017
Posts: 7

PostPosted: Thu Jan 19, 2017 12:18 am    Post subject: Reply with quote

Yes I do have such a config file. Without it, that's the Xorg log: https://bpaste.net/raw/c5dc2d764972
Just for reference, the file is called 20-modesetting.conf and looks like this:
Code:
Section "Device"
  Identifier "Intel Graphics"
  Driver     "modesetting"
  Option     "AccelMethod" "glamor"
  Option     "kmsdev" "dri3"
EndSection

With the generic kernel, X starts fine with this config file (and without the warning messages about fbdev and vesa).
Quote:
It no longer complains that /dev/dri/card0 does not exist.

It never did.
So I guess I have to bisect the kernel configs. Any hints which options affect X? Maybe pci? The gpu options are exhausted by now.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments 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