Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Startx error due to incorrect kernel settings
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
stormblade
n00b
n00b


Joined: 06 Sep 2017
Posts: 65

PostPosted: Sun Dec 24, 2017 4:35 pm    Post subject: Startx error due to incorrect kernel settings Reply with quote

Got the following error after startx:
https://paste.pound-python.org/show/zjfTeyrAxq6VcWPhffq9/
As far as I understand, first of all I have no drivers for my videocards (I have intel and nvidia). Quite surprising how I even managed to forget about them. Btw, I also have VIDEO_CARDS="nouveau intel i915". The log also says I don't have the following directory: /dev/dri/card0. Sadly, I don't know what it is :( I also guess that I have something wrong in my kernel settings
My kernel config: https://paste.pound-python.org/show/Pn9QsZpwfQyvSwvmol2R/
Info about my PCI devices including videocards: https://paste.pound-python.org/show/dvENRCE80nrla28nPvHr/

Any ideas what I need to change in the kernel (and not only there probably) in order to get Xorg working?
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2613

PostPosted: Sun Dec 24, 2017 5:30 pm    Post subject: Reply with quote

Your 00:02.0 VGA compatible controller [0300] seems to have no driver.
Maybe missing firmware? What are you having in dmesg?
Did you configure modesetting?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sun Dec 24, 2017 6:16 pm    Post subject: Reply with quote

stormblade,

Code:
[  2216.783] (EE) open /dev/dri/card0: No such file or directory

Thats a
Code:
Go to Jail,
Go Directly to Jail
Do Not Pass Go
Do Not Collect 200 <insernt local currency here>
error.

You have DRM support for your Intel chipset missing from your kernel.

That may not be everything. If intel is not in your VIDEO_CARDS= you need to add 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
stormblade
n00b
n00b


Joined: 06 Sep 2017
Posts: 65

PostPosted: Sun Dec 24, 2017 7:58 pm    Post subject: Reply with quote

charles17,
thanks for an advice to configure modesetting, I tried that and managed to get rid of some of the errors:
https://paste.pound-python.org/show/gjMgrASrjFSdY3v9gi4K/
as for dmesg, it seems to be fine, in case of this device: https://paste.pound-python.org/show/qLYwrLspMZrRszDfxObp/

NeddySeagoon, I recompiled the kernel with CONFIG_DRM_I915_ALPHA_SUPPORT, however this is probably not enough as I still got the error with /dev/dri/card0. Do you have any assumptions what to do next?
UPD: Also, as I mentioned before, my VIDEO_CARDS variable stores intel, nouveau, i915, and after the modesetting configuration, i965 options inside
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sun Dec 24, 2017 8:18 pm    Post subject: Reply with quote

stormblade,

On the
Code:
<*> /dev/agpgart (AGP Support)  --->
menu, choose your motherboard chipset.
Its probably
Code:
< >   Intel 440LX/BX/GX, I8xx and E7x05 chipset support

It may be obsolete but its harmless.

On the
Code:
<*> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)  --->
menu
choose
Code:
 [*]   Enable legacy fbdev support for your modesetting driver 


Your Intel Graphics is HD Graphics 620, from the PCI ID in the Xorg log.
Choose
Code:
< > Intel 8xx/9xx/G3x/G4x/HD Graphics


Modules <M> or built in <*> work but if you choose built in, any required firmware must be built into the kernel. too.

Your nVidia card is a GeForce 940MX. Having both intel and nVidia cards is a warning that you have an Optimus graphics system.
In which case the kernel advice above is good but as soon an the Intel graphics works alone, you need to decide if you want the speed boost and power drain of the nVida card helping out.

Optimus has a wiki page all of its own.

When you boot a new kernel, look at the date/time in
Code:
uname -a
just to make sure you are actually using the new kernel.
Thats the build date and time of the runnnig 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
stormblade
n00b
n00b


Joined: 06 Sep 2017
Posts: 65

PostPosted: Mon Dec 25, 2017 1:19 pm    Post subject: Reply with quote

NeddySeagoon,
I'm trying to configure Optimus now and I'm facing some problems. After configuring the kernel and /etc/X11/xorg.conf.d/10-nvidia.conf and /etc/X11/xorg.conf.d/20-nvidia.conf files, I moved on to working with xrandr. However, it fails with the output "can't open display", and I don't know why. Then I look here once again http://us.download.nvidia.com/XFree86/Linux-x86_64/343.36/README/randr14.html and suppose that I don't have the appropriate driver interfaces present:
    drm_gem_prime_export
    drm_gem_prime_import
    gem_prime_pin
    gem_prime_get_sg_table
    gem_prime_import_sg_table
    gem_prime_vmap
    gem_prime_vunmap

However, I have literally no idea, what these driver interfaces are, how they work and where can I check for them :(
if they are the reason of xrandr not working, what shall I do?
Back to top
View user's profile Send private message
stormblade
n00b
n00b


Joined: 06 Sep 2017
Posts: 65

PostPosted: Mon Dec 25, 2017 10:18 pm    Post subject: Reply with quote

UPD: found some info about the driver interfaces above, quite tough to understand
https://www.kernel.org/doc/html/latest/gpu/drm-mm.html#overview-and-driver-interface
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