Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
problem with startx
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
lakecity
n00b
n00b


Joined: 26 Dec 2019
Posts: 10

PostPosted: Thu Dec 26, 2019 5:54 pm    Post subject: problem with startx Reply with quote

Hello!

After some updates startx (default/linux/amd64/17.1/desktop/gnome) stoped to work at Notebook Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz. Originally I used nouveau, than I switched to nvidia and than back again. Result is more or less the same: startx does not work.

Code:
>glxinfo
Error: unable to open display

>lspci | grep NVIDIA
01:00.0 3D controller: NVIDIA Corporation GM107M [GeForce GTX 950M] (rev a2)

IDEO_CARDS="nvidia nouveau"
INPUT_DEVICES="libinput synaptics"

>eix -I nouveau
[I] x11-drivers/xf86-video-nouveau
1.0.16

>dmesg | grep nouv

[   27.306522] nouveau: detected PR support, will not use DSM
[   27.306685] nouveau 0000:01:00.0: NVIDIA GM107 (1171a0a2)
[   27.331044] nouveau 0000:01:00.0: bios: version 82.07.97.00.0a
[   27.437192] nouveau 0000:01:00.0: fb: 2048 MiB GDDR5
[   27.437242] nouveau 0000:01:00.0: bus: MMIO read of 00000000 FAULT at 022554 [ IBUS ]
[   27.450579] nouveau 0000:01:00.0: bus: MMIO read of 00000000 FAULT at 10ac08 [ IBUS ]
[   28.111093] nouveau 0000:01:00.0: DRM: VRAM: 2048 MiB
[   28.111112] nouveau 0000:01:00.0: DRM: GART: 1048576 MiB
[   28.111114] nouveau 0000:01:00.0: DRM: Pointer to TMDS table invalid
[   28.111115] nouveau 0000:01:00.0: DRM: DCB version 4.0
[   28.111678] nouveau 0000:01:00.0: DRM: MM: using COPY for buffer copies
[   28.111700] [drm] Initialized nouveau 1.3.1 20120801 for 0000:01:00.0 on minor 0
[   40.821343] nouveau 0000:01:00.0: bus: MMIO read of 00000000 FAULT at 619444 [ IBUS ]
[   75.461217] nouveau 0000:01:00.0: bus: MMIO read of 00000000 FAULT at 619444 [ IBUS ]

>lsmod | grep nouv
nouveau              2158592  0
ttm                   122880  1 nouveau
mxm_wmi                16384  1 nouveau
video                  45056  1 nouveau
wmi                    28672  2 mxm_wmi,nouveau

>lsmod | grep -i nvid

nothing

Code:
>grep nouv kern.log

Dec 26 20:29:57 notebook kernel: [ 3401.923066] nouveau 0000:01:00.0: bus: MMIO read of 00000000 FAULT at 619444 [ IBUS ]
Dec 26 20:32:19 notebook kernel: [   27.936655] nouveau: detected PR support, will not use DSM
Dec 26 20:32:19 notebook kernel: [   27.936817] nouveau 0000:01:00.0: NVIDIA GM107 (1171a0a2)
Dec 26 20:32:19 notebook kernel: [   27.961861] nouveau 0000:01:00.0: bios: version 82.07.97.00.0a
Dec 26 20:32:19 notebook kernel: [   28.067814] nouveau 0000:01:00.0: fb: 2048 MiB GDDR5
Dec 26 20:32:19 notebook kernel: [   28.067863] nouveau 0000:01:00.0: bus: MMIO read of 00000000 FAULT at 022554 [ IBUS ]
Dec 26 20:32:19 notebook kernel: [   28.081313] nouveau 0000:01:00.0: bus: MMIO read of 00000000 FAULT at 10ac08 [ IBUS ]
Dec 26 20:32:20 notebook kernel: [   28.742003] nouveau 0000:01:00.0: DRM: VRAM: 2048 MiB
Dec 26 20:32:20 notebook kernel: [   28.742004] nouveau 0000:01:00.0: DRM: GART: 1048576 MiB
Dec 26 20:32:20 notebook kernel: [   28.742006] nouveau 0000:01:00.0: DRM: Pointer to TMDS table invalid
Dec 26 20:32:20 notebook kernel: [   28.742007] nouveau 0000:01:00.0: DRM: DCB version 4.0
Dec 26 20:32:20 notebook kernel: [   28.742684] nouveau 0000:01:00.0: DRM: MM: using COPY for buffer copies
Dec 26 20:32:20 notebook kernel: [   28.742689] [drm] Initialized nouveau 1.3.1 20120801 for 0000:01:00.0 on minor 0
Dec 26 20:32:33 notebook kernel: [   42.020054] nouveau 0000:01:00.0: bus: MMIO read of 00000000 FAULT at 619444 [ IBUS ]
Dec 26 20:32:52 notebook kernel: [   60.693231] nouveau 0000:01:00.0: bus: MMIO read of 00000000 FAULT at 619444 [ IBUS ]

>grep NVID /usr/src/linux/.config
CONFIG_NET_VENDOR_NVIDIA=y
# CONFIG_FB_NVIDIA is not set

>grep -i nouv /usr/src/linux/.config
CONFIG_DRM_NOUVEAU=m
# CONFIG_NOUVEAU_LEGACY_CTX_SUPPORT is not set
CONFIG_NOUVEAU_DEBUG=5
CONFIG_NOUVEAU_DEBUG_DEFAULT=3
# CONFIG_NOUVEAU_DEBUG_MMU is not set
CONFIG_DRM_NOUVEAU_BACKLIGHT=y

Attached code tags to preserve application output formatting.Chiitoo
Back to top
View user's profile Send private message
Banana
Guru
Guru


Joined: 21 May 2004
Posts: 564
Location: Germany

PostPosted: Thu Dec 26, 2019 7:33 pm    Post subject: Reply with quote

Hello lakecity,

a shot in the blue: Is your card still supported?

Also did you check those articles here? https://wiki.gentoo.org/wiki/NVIDIA (Choose one and not all of them for a sulution)
_________________
My personal space
Back to top
View user's profile Send private message
lakecity
n00b
n00b


Joined: 26 Dec 2019
Posts: 10

PostPosted: Thu Dec 26, 2019 8:06 pm    Post subject: Reply with quote

I do not see GeForce GTX 950M in the list for nvidia:

https://www.nvidia.com/en-us/drivers/unix/legacy-gpu/

It is quite new.. I can not find similar list for nouveau.
Back to top
View user's profile Send private message
Banana
Guru
Guru


Joined: 21 May 2004
Posts: 564
Location: Germany

PostPosted: Thu Dec 26, 2019 8:24 pm    Post subject: Reply with quote

This card should be no legacy card. See here: https://www.nvidia.de/Download/driverResults.aspx/156093/en

Also nouveau still lists this card. https://nouveau.freedesktop.org/wiki/CodeNames/

Did you try to downgrade the nvidia or nouveau driver?
did you made a kernel upgrade and did not rebuild the x drivers?
_________________
My personal space
Back to top
View user's profile Send private message
lakecity
n00b
n00b


Joined: 26 Dec 2019
Posts: 10

PostPosted: Thu Dec 26, 2019 8:34 pm    Post subject: Reply with quote

thank you, I see it in the list for nouveau. I recompiled kernel many times, made emerge deep updates...two weeks :-).. it was very large regular update already after the last kernel update and after that time I could use only i3. Gnome stoped to work. No, I did not downgrade. I will try.
Back to top
View user's profile Send private message
lakecity
n00b
n00b


Joined: 26 Dec 2019
Posts: 10

PostPosted: Fri Dec 27, 2019 8:07 am    Post subject: Reply with quote

there is only one version of x11-drivers/xf86-video-nouveau (1.0.16) on the stable branch. Should I use unstable ~ branch?
Back to top
View user's profile Send private message
Banana
Guru
Guru


Joined: 21 May 2004
Posts: 564
Location: Germany

PostPosted: Fri Dec 27, 2019 10:13 am    Post subject: Reply with quote

You said it worked so I do not think an upgrade to unstable of the nouveau drivers can help.

Did you make sure you remove all the nvdia driver stuff, also in the kernel to avoid any conflict between nouveau and nvidia driver?

Did you run a
Code:
emerge @x11-module-rebuild -av
after a kernel upgrade?
Do you use the upgraded kernel?
_________________
My personal space
Back to top
View user's profile Send private message
lakecity
n00b
n00b


Joined: 26 Dec 2019
Posts: 10

PostPosted: Fri Dec 27, 2019 10:36 am    Post subject: Reply with quote

*_-=Banana=-_* wrote:
You said it worked so I do not think an upgrade to unstable of the nouveau drivers can help.

Did you make sure you remove all the nvdia driver stuff, also in the kernel to avoid any conflict between nouveau and nvidia driver?


It is what I posted before (and what I have now):

Code:
lsmod | grep nouv
nouveau              2158592  0
ttm                   122880  1 nouveau
mxm_wmi                16384  1 nouveau
wmi                    28672  2 mxm_wmi,nouveau
video                  45056  1 nouveau

Code:
lsmod | grep nvidia

empty list

In the kernel I left
Code:
[*] Laptop Hybrid Graphics - GPU switching support                                                                   │ │
  <*> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)  --->

<M> Nouveau (NVIDIA) cards                                                                                           │ │
   [ ]   Nouveau legacy context support

< > Intel 8xx/9xx/G3x/G4x/HD Graphics

*_-=Banana=-_* wrote:
Did you run a
Code:
emerge @x11-module-rebuild -av
after a kernel upgrade?


just now, it did not help

*_-=Banana=-_* wrote:
Do you use the upgraded kernel?


yes!

What is this (from Xorg.0.log)?

Code:
180 [    66.861] (II) NOUVEAU(0): NVEnterVT is called.
    181 [    66.861] (EE)
    182 [    66.861] (EE) Backtrace:
    183 [    66.861] (EE) 0: /usr/bin/X (xorg_backtrace+0x4d) [0x55cf66aa12bd]
    184 [    66.861] (EE) 1: /usr/bin/X (0x55cf668f8000+0x1acef5) [0x55cf66aa4ef5]
    185 [    66.861] (EE) 2: /lib64/libpthread.so.0 (0x7f6be6399000+0x14670) [0x7f6be63ad670]
    186 [    66.861] (EE) 3: /usr/bin/X (xf86RandR12CreateScreenResources+0x541) [0x55cf669c9eb1]
    187 [    66.861] (EE) 4: /usr/bin/X (0x55cf668f8000+0xc4ad0) [0x55cf669bcad0]
    188 [    66.861] (EE) 5: /usr/bin/X (0x55cf668f8000+0x5b2d9) [0x55cf669532d9]
    189 [    66.861] (EE) 6: /lib64/libc.so.6 (__libc_start_main+0xeb) [0x7f6be61edf1b]
    190 [    66.861] (EE) 7: /usr/bin/X (_start+0x2a) [0x55cf6693d19a]
    191 [    66.861] (EE)
    192 [    66.861] (EE) Segmentation fault at address 0x0
    193 [    66.861] (EE)
    194 Fatal server error:
    195 [    66.861] (EE) Caught signal 11 (Segmentation fault). Server aborting
    196 [    66.861] (EE)
    197 [    66.861] (EE)
    198 Please consult the The X.Org Foundation support


[Moderator edit: added [code] tags to preserve output layout; switched bold tag to quote tag to clarify that these are quotes, not new text. -Hu]
Back to top
View user's profile Send private message
Banana
Guru
Guru


Joined: 21 May 2004
Posts: 564
Location: Germany

PostPosted: Sat Dec 28, 2019 7:03 pm    Post subject: Reply with quote

ugh, sorry I'm out of ideas...
_________________
My personal space
Back to top
View user's profile Send private message
luna80
Veteran
Veteran


Joined: 01 Feb 2004
Posts: 1170
Location: switzerland

PostPosted: Sun Dec 29, 2019 6:36 am    Post subject: Reply with quote

Sorry but I don't understand if you use nouveau or nvidia driver

if you use nvidia, after the update you should rebuild these drivers

Code:

localhost ~ # emerge --ask @module-rebuild



if you use nouveau (kernel module)

Code:

localhost ~ # make && make modules_install
localhost ~ # make modules_prepare
localhost ~ # make install



I don't know if this can help you but I tried
_________________
*** !f j00 c4n r34D tH15 tH3N j00 n33D t0 l0g Off ***
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sun Dec 29, 2019 11:39 am    Post subject: Reply with quote

lakecity,

Put all of the following onto a pastebin ...
dmesg
The kernel .config
/var/log/Xorg.0.log
wgetpaste is your friend.

Often, what is not in the logs is as important as what is there. That means we need the whole thing.

As a test, boot your old kernel. It would be good to rule out a hardware failure.
_________________
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
lakecity
n00b
n00b


Joined: 26 Dec 2019
Posts: 10

PostPosted: Sun Dec 29, 2019 6:46 pm    Post subject: Reply with quote

Thank you for advises. I will do everything but in a week!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sun Dec 29, 2019 8:37 pm    Post subject: Reply with quote

lakecity,

No hurry. Gentoo is a hobby for all of us.
_________________
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
lakecity
n00b
n00b


Joined: 26 Dec 2019
Posts: 10

PostPosted: Thu Jan 09, 2020 11:56 am    Post subject: Reply with quote

Hi!

1)

Usually I use this modified

/etc/genkernel.conf
https://pastebin.com/deMwHfGS

and then

genkernel all

make all what I need if the same kernel headers are used.

2)

I made it:

localhost ~ # make && make modules_install
localhost ~ # make modules_prepare
localhost ~ # make install

Here are the files:

/var/log/Xorg.0.log
https://pastebin.com/ZsrjBCxa

dmesg
https://pastebin.com/LUb4z8Hs

kernel .config
https://pastebin.com/QTSbStUq

May be I missed something, but I could not not use wgetpaste: files are too big. I've used https://pastebin.com/ instead.

3)

lsmod | grep nvidia

nothing

lsmod | grep nouveau

nouveau 2158592 0
ttm 122880 1 nouveau
mxm_wmi 16384 1 nouveau
wmi 28672 2 mxm_wmi,nouveau
video 45056 1 nouveau
Back to top
View user's profile Send private message
Banana
Guru
Guru


Joined: 21 May 2004
Posts: 564
Location: Germany

PostPosted: Fri Jan 10, 2020 9:16 pm    Post subject: Reply with quote

Code:
[  1397.120]    compiled for 1.20.5, module version = 1.0.0
[  1397.120]    ABI class: X.Org Server Extension, version 10.0
[  1397.120] (II) LoadModule: "nouveau"
[  1397.120] (II) Loading /usr/lib64/xorg/modules/drivers/nouveau_drv.so
[  1397.120] (II) Module nouveau: vendor="X.Org Foundation"
[  1397.120]    compiled for 1.20.5, module version = 1.0.16
[  1397.120]    Module class: X.Org Video Driver
[  1397.120]    ABI class: X.Org Video Driver, version 24.0
[  1397.120] (II) LoadModule: "nvidia"
[  1397.120] (II) Loading /usr/lib64/xorg/modules/drivers/nvidia_drv.so


Is this right? This looks like your have nvidia and nouveau installed and want to try to use it...
_________________
My personal space


Last edited by Banana on Sat Jan 11, 2020 10:16 am; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Fri Jan 10, 2020 10:54 pm    Post subject: Reply with quote

lakecity,

Code:
[  1397.121] (II) NVIDIA dlloader X Driver  440.36  Tue Nov 12 08:17:24 UTC 2019
[  1397.121] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs


You have all of the nouveau driver installed and at least the userspace part of nvidia-drives.

What does
Code:
eselect opengl list
show?
You will have a choice of two. nvidia and Xorg. You must select Xorg with the nouveau driver.
That may be enough to make Xorg work with nouveau

If you want to use nvidia-drivers, you must disable nouveau in the kernel.

Which graphics driver do you want to use?
_________________
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
lakecity
n00b
n00b


Joined: 26 Dec 2019
Posts: 10

PostPosted: Sat Jan 11, 2020 2:00 pm    Post subject: Reply with quote

NeddySeagoon,

eselect opengl list

Code:
Available OpenGL implementations:

  [1]   xorg-x11 *

Quote:
Which graphics driver do you want to use?


I plan to use nouveau.

Now I have

eix -I nouv:

x11-drivers/xf86-video-nouveau, 1.0.16(13:16:43 27.12.2019)

===

Banana,

I have

Code:
/usr/src/linux# grep -i nvidia .config
CONFIG_NET_VENDOR_NVIDIA=y
# CONFIG_FB_NVIDIA is not set

it is the same ouutput as at my another computer with nouveau installed and working.

or in this way:

Code:
<M> Nouveau (NVIDIA) cards
[ ]   Nouveau legacy context support
(5)   Maximum debug level
(3)   Default debug level
[ ]   Enable additional MMU debugging                                                                                                             [*]   Support for backlight control
< > Intel 8xx/9xx/G3x/G4x/HD Graphics

I used brute force and deleted

Code:
rm /usr/lib64/xorg/modules/drivers/nvidia_drv.so


Now I have warning

http://dpaste.com/3NAKF8G

Code:
 65 [    61.179] (II) LoadModule: "nvidia"
 66 [    61.179] (WW) Warning, couldn't open module nvidia
 67 [    61.179] (EE) Failed to load module "nvidia" (module does not exist, 0)

Should I disable this at all here
Code:
<M> Nouveau (NVIDIA) cards

??

I do not understand how to prevent loading of nvidia

Before to post it I made

Code:
emerge -uDNva world


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

PostPosted: Sat Jan 11, 2020 5:28 pm    Post subject: Reply with quote

lakecity,

Remove nvidia-drivers and remove nvidia from VIDEO_CARDS

Code:
[1] xorg-x11 *
is correct for nouveau.

Code:
[    61.179] (WW) Warning, couldn't open module nvidia
[    61.179] (EE) Failed to load module "nvidia" (module does not exist, 0)
is good but is the nvidia kernel module still listed in lsmod?

Somewhere in
Code:
[    61.170] (==) Using config file: "/etc/X11/xorg.conf"
[    61.170] (==) Using config directory: "/etc/X11/xorg.conf.d"
you will have told Xorg to use the nvidia driver.
Fix that.
_________________
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
lakecity
n00b
n00b


Joined: 26 Dec 2019
Posts: 10

PostPosted: Sat Jan 11, 2020 5:50 pm    Post subject: Reply with quote

1)
Quote:
Remove nvidia-drivers and remove nvidia from VIDEO_CARDS


I already done it with

VIDEO_CARDS="nouveau"

2)

Quote:
is the nvidia kernel module still listed in lsmod?


lsmod | grep -i nvid

nothing

3)

In
/etc/X11/xorg.conf

Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
EndSection

I deleted
Driver "nvidia"

Now this warning disappeared

[url] http://dpaste.com/2YJQPGY[/url]

But as before I have

Segmentation fault.

Looks like I have to recompile something?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Jan 11, 2020 5:53 pm    Post subject: Reply with quote

lakecity,

Try rebuilding mesa and xorg-drivers.

If that's not enough, what does
Code:
emerge -uUDav @world
want to rebuild?
_________________
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
lakecity
n00b
n00b


Joined: 26 Dec 2019
Posts: 10

PostPosted: Sat Jan 11, 2020 6:24 pm    Post subject: Reply with quote

NeddySeagoon,

1)

I did it before, so now it was quickly:

emerge -uUDav @world

These are the packages that would be merged, in order:

Calculating dependencies... done!

Total: 0 packages, Size of downloads: 0 KiB

Nothing to merge; quitting.

2)

But in Xorg.0.log

http://dpaste.com/3SS4Y1E

I see

173 [ 60.390] (EE) Backtrace:
174 [ 60.390] (EE) 0: /usr/bin/X (xorg_backtrace+0x4d) [0x55ea328d62bd]
175 [ 60.390] (EE) 1: /usr/bin/X (0x55ea3272d000+0x1acef5) [0x55ea328d9ef5]
176 [ 60.390] (EE) 2: /lib64/libpthread.so.0 (0x7f225c667000+0x14670) [0x7f225c67b670]
177 [ 60.390] (EE) 3: /usr/bin/X (xf86RandR12CreateScreenResources+0x541) [0x55ea327feeb1]
178 [ 60.390] (EE) 4: /usr/bin/X (0x55ea3272d000+0xc4ad0) [0x55ea327f1ad0]
179 [ 60.390] (EE) 5: /usr/bin/X (0x55ea3272d000+0x5b2d9) [0x55ea327882d9]
180 [ 60.390] (EE) 6: /lib64/libc.so.6 (__libc_start_main+0xeb) [0x7f225c4bbf1b]
181 [ 60.390] (EE) 7: /usr/bin/X (_start+0x2a) [0x55ea3277219a]
182 [ 60.390] (EE)
183 [ 60.390] (EE) Segmentation fault at address 0x0

I wonder if "emerge -uUDav @world" checks /lib64/libc.so.6 ?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Jan 11, 2020 8:52 pm    Post subject: Reply with quote

lakecity,

It this an Optimus system?
Code:
[    60.364] (--) PCI:*(0@0:2:0) 8086:191b:1043:1060 rev 6, Mem @ 0xdd000000/16777216, 0xb0000000/268435456, I/O @ 0x0000f000/64, BIOS @ 0x????????/131072
[    60.364] (--) PCI: (1@0:0:0) 10de:139a:1043:1060 rev 162, Mem @ 0xde000000/16777216, 0xc0000000/268435456, 0xd0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/524288

You have an Intel and a nVidia GPU.

Optimus needs a special set up. Its not possible to use the nVidia GPU alone as it cannot refresh the diisplay.
_________________
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 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