Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cannot startx after new install
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
augustin2
Apprentice
Apprentice


Joined: 16 Mar 2012
Posts: 244
Location: France

PostPosted: Wed Dec 03, 2014 3:30 pm    Post subject: Cannot startx after new install Reply with quote

Hi,

I am trying to install gentoo on a new laptop. I managed to have the first UEFI boot and then installed what is necessary for xorg-server:

Profile amd64 systemd
initramfs integrated in kernel to have an easy uefi stub

Graphic card/ Nvidia GEForce GTX860M
VIDEO_CARDS = "nvidia" in /etc/portage/make.conf (nouveau doesn't seem to be compatible)
lspci -k says that the card is recognized and the driver in use is nivdia
Version of nvidia-drivers is 343-22-r2 and is declared supporting the card by NVIDIA's site.
Here is Xorg.0.log:

Quote:
[ 2705.275]
X.Org X Server 1.15.0
Release Date: 2013-12-27
[ 2705.275] X Protocol Version 11, Revision 0
[ 2705.275] Build Operating System: Linux 3.16.5-gentoo x86_64 Gentoo
[ 2705.276] Current Operating System: Linux jo-laptop 3.16.5-gentoo #2 SMP Wed Dec 3 15:07:38 2014 x86_64
[ 2705.276] Kernel command line: root=/dev/sda8 \EFI\gentoo\bootx64-gentoo-nvidia.efi
[ 2705.276] Build Date: 03 December 2014 02:21:51PM
[ 2705.277]
[ 2705.277] Current version of pixman: 0.32.4
[ 2705.277] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 2705.277] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 2705.279] (==) Log file: "/var/log/Xorg.0.log", Time: Wed Dec 3 15:55:24 2014
[ 2705.279] (==) Using config directory: "/etc/X11/xorg.conf.d"
[ 2705.279] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 2705.280] (==) No Layout section. Using the first Screen section.
[ 2705.280] (**) |-->Screen "screen0" (0)
[ 2705.280] (**) | |-->Monitor "monitor0"
[ 2705.280] (**) | |-->Device "nvidia"
[ 2705.280] (==) Automatically adding devices
[ 2705.280] (==) Automatically enabling devices
[ 2705.280] (==) Automatically adding GPU devices
[ 2705.280] (WW) The directory "/usr/share/fonts/misc/" does not exist.
[ 2705.280] Entry deleted from font path.
[ 2705.280] (WW) The directory "/usr/share/fonts/TTF/" does not exist.
[ 2705.280] Entry deleted from font path.
[ 2705.280] (WW) The directory "/usr/share/fonts/OTF/" does not exist.
[ 2705.280] Entry deleted from font path.
[ 2705.280] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[ 2705.280] Entry deleted from font path.
[ 2705.280] (WW) The directory "/usr/share/fonts/100dpi/" does not exist.
[ 2705.280] Entry deleted from font path.
[ 2705.280] (WW) The directory "/usr/share/fonts/75dpi/" does not exist.
[ 2705.280] Entry deleted from font path.
[ 2705.280] (==) FontPath set to:

[ 2705.280] (==) ModulePath set to "/usr/lib64/xorg/modules"
[ 2705.280] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 2705.280] (II) Loader magic: 0x802c60
[ 2705.280] (II) Module ABI versions:
[ 2705.280] X.Org ANSI C Emulation: 0.4
[ 2705.280] X.Org Video Driver: 15.0
[ 2705.280] X.Org XInput driver : 20.0
[ 2705.280] X.Org Server Extension : 8.0
[ 2705.280] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 2705.281] (--) PCI:*(0:0:2:0) 8086:0416:1558:3501 rev 6, Mem @ 0xf7400000/4194304, 0xd0000000/268435456, I/O @ 0x0000f000/64
[ 2705.281] (--) PCI: (0:1:0:0) 10de:1392:1558:3501 rev 162, Mem @ 0xf6000000/16777216, 0xe0000000/268435456, 0xf0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/524288
[ 2705.281] Initializing built-in extension Generic Event Extension
[ 2705.281] Initializing built-in extension SHAPE
[ 2705.282] Initializing built-in extension MIT-SHM
[ 2705.282] Initializing built-in extension XInputExtension
[ 2705.283] Initializing built-in extension XTEST
[ 2705.283] Initializing built-in extension BIG-REQUESTS
[ 2705.283] Initializing built-in extension SYNC
[ 2705.284] Initializing built-in extension XKEYBOARD
[ 2705.284] Initializing built-in extension XC-MISC
[ 2705.285] Initializing built-in extension XINERAMA
[ 2705.285] Initializing built-in extension XFIXES
[ 2705.285] Initializing built-in extension RENDER
[ 2705.286] Initializing built-in extension RANDR
[ 2705.286] Initializing built-in extension COMPOSITE
[ 2705.287] Initializing built-in extension DAMAGE
[ 2705.287] Initializing built-in extension MIT-SCREEN-SAVER
[ 2705.287] Initializing built-in extension DOUBLE-BUFFER
[ 2705.288] Initializing built-in extension RECORD
[ 2705.288] Initializing built-in extension DPMS
[ 2705.289] Initializing built-in extension Present
[ 2705.289] Initializing built-in extension DRI3
[ 2705.289] Initializing built-in extension X-Resource
[ 2705.290] Initializing built-in extension XVideo
[ 2705.290] Initializing built-in extension XVideo-MotionCompensation
[ 2705.291] Initializing built-in extension XFree86-VidModeExtension
[ 2705.291] Initializing built-in extension XFree86-DGA
[ 2705.292] Initializing built-in extension XFree86-DRI
[ 2705.292] Initializing built-in extension DRI2
[ 2705.292] (II) LoadModule: "glx"
[ 2705.292] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[ 2705.293] (II) Module glx: vendor="X.Org Foundation"
[ 2705.293] compiled for 1.15.0, module version = 1.0.0
[ 2705.293] ABI class: X.Org Server Extension, version 8.0
[ 2705.293] (==) AIGLX enabled
[ 2705.293] Loading extension GLX
[ 2705.293] (II) LoadModule: "nvidia"
[ 2705.293] (II) Loading /usr/lib64/xorg/modules/drivers/nvidia_drv.so
[ 2705.293] (II) Module nvidia: vendor="NVIDIA Corporation"
[ 2705.293] compiled for 4.0.2, module version = 1.0.0
[ 2705.293] Module class: X.Org Video Driver
[ 2705.293] (II) NVIDIA dlloader X Driver 343.22 Thu Sep 11 15:34:47 PDT 2014
[ 2705.293] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[ 2705.293] (--) using VT number 7

[ 2705.297] (EE) No devices detected.
[ 2705.297] (EE)
Fatal server error:
[ 2705.297] (EE) no screens found(EE)
[ 2705.297] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 2705.297] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[ 2705.297] (EE)


I understand that it is a matter of config but I must confess I have trouble understanding how to configure xorg.
I did that in /etc/X11/xorg.con.d/nvidia.conf /

Quote:
Section "Device"
Identifier "nvidia"
Driver "nvidia"
EndSection
Section "Monitor"
Identifier "monitor0"
Option "PreferredMode" "1920x1080"
EndSection
Section "Screen"
Identifier "screen0"
Device "nvidia"
Monitor "monitor0"

EndSection
Back to top
View user's profile Send private message
WWWW
Tux's lil' helper
Tux's lil' helper


Joined: 30 Nov 2014
Posts: 143

PostPosted: Wed Dec 03, 2014 3:41 pm    Post subject: Reply with quote

nowadays works without a xorg.conf. Try that first. After that you start tweaking xorg.conf, or xorg.conf.d/ for further customization.
Back to top
View user's profile Send private message
augustin2
Apprentice
Apprentice


Joined: 16 Mar 2012
Posts: 244
Location: France

PostPosted: Wed Dec 03, 2014 3:50 pm    Post subject: Reply with quote

Thank you for help

Without the nvidia.conf the message is the same No screen found
Back to top
View user's profile Send private message
augustin2
Apprentice
Apprentice


Joined: 16 Mar 2012
Posts: 244
Location: France

PostPosted: Wed Dec 03, 2014 4:06 pm    Post subject: Reply with quote

I remove the config file and did

Code:
nvidia-xconfig


But I have a "No device detected" and a "No screen found"
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 5761

PostPosted: Wed Dec 03, 2014 4:42 pm    Post subject: Reply with quote

Are you sure the kernel driver loaded properly? Look for a /dev/nvidia* device and check dmesg.
Back to top
View user's profile Send private message
augustin2
Apprentice
Apprentice


Joined: 16 Mar 2012
Posts: 244
Location: France

PostPosted: Wed Dec 03, 2014 5:03 pm    Post subject: Reply with quote

I have a /dev/nvidia0

Code:
dmesg -k |grep nvidia


gives

Quote:

nvidia: module licence "NVIDIA" taints kernel
[drm] Initialized nvidia-drm 0.0.0 20130102 for 0000:01:00.0 on minor 0
nvidia 000:01:00.0 irq 46 for MSI/MSI-X
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


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

PostPosted: Wed Dec 03, 2014 5:19 pm    Post subject: Reply with quote

First, I've never heard before you do not need xorg.conf with nvidia blob, AFAIK a minimum four-liner is needed.
Second, if you have nouveau stuff enabled in kernel (and you do have) the blob will not work.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
augustin2
Apprentice
Apprentice


Joined: 16 Mar 2012
Posts: 244
Location: France

PostPosted: Wed Dec 03, 2014 5:55 pm    Post subject: Reply with quote

Nouveau was selected as module in the kernel. I completely removed it. This doesn't change anything.

After running nvidia-xconfig can I assume the config is OK?

By the way. I also have trouble with localectl. Each command like localectl list-<something> return a "Failed to create bus connection" message. Can this be connected with x''s impossibility to start?
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


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

PostPosted: Wed Dec 03, 2014 6:09 pm    Post subject: Reply with quote

http://wiki.gentoo.org/wiki/NVidia/nvidia-drivers

Everything is valid there, except you do not generate any xorg.conf, it will generate a big bloated conf. All you need it the four-liner.

Pastebin your kernel config if still in trouble.

You have this (it shouldn't be there):
Code:
[drm] Initialized nvidia-drm 0.0.0 20130102 for 0000:01:00.0 on minor 0

_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
augustin2
Apprentice
Apprentice


Joined: 16 Mar 2012
Posts: 244
Location: France

PostPosted: Wed Dec 03, 2014 7:35 pm    Post subject: Reply with quote

Jaglover wrote:

Everything is valid there, except you do not generate any xorg.conf, it will generate a big bloated conf. All you need it the four-liner.

Do you mean I can keep only the Section "Device" and delete the rest ?
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


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

PostPosted: Wed Dec 03, 2014 8:10 pm    Post subject: Reply with quote

Yes, you only add lines there for fine-tuning - but first get your X up and running with plain Device section with two lines in it.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
augustin2
Apprentice
Apprentice


Joined: 16 Mar 2012
Posts: 244
Location: France

PostPosted: Wed Dec 03, 2014 8:28 pm    Post subject: Reply with quote

Cannot find how to eliminate [drm] line

here is my config
http://paste.debian.net/134786/
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


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

PostPosted: Wed Dec 03, 2014 8:39 pm    Post subject: Reply with quote

You still have
Code:
CONFIG_DRM=y

although all suboptions are turned off so I'm not sure if it will cause problems.

Make sure you are running the kernel you think you are
Code:
uname -v

Is the date and time correct?
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
augustin2
Apprentice
Apprentice


Joined: 16 Mar 2012
Posts: 244
Location: France

PostPosted: Wed Dec 03, 2014 8:49 pm    Post subject: Reply with quote

Date is correct
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


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

PostPosted: Wed Dec 03, 2014 8:54 pm    Post subject: Reply with quote

You may want to rebuild nvidia module just in case.
Code:
emerge -1 nvidia

Then try starting X again and if not successful inspect the new Xorg log, pastebin it if you need help.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
augustin2
Apprentice
Apprentice


Joined: 16 Mar 2012
Posts: 244
Location: France

PostPosted: Wed Dec 03, 2014 9:03 pm    Post subject: Reply with quote

I think you mean nvidia-drivers

here is the yorg.0.log : http://paste.debian.net/134793/
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


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

PostPosted: Wed Dec 03, 2014 9:21 pm    Post subject: Reply with quote

Yes, thanks for correction. I see now EFI is involved, have no experience with that, hopefully someone else will chime in.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
augustin2
Apprentice
Apprentice


Joined: 16 Mar 2012
Posts: 244
Location: France

PostPosted: Wed Dec 03, 2014 9:22 pm    Post subject: Reply with quote

Thanks a lot for your help and time.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


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

PostPosted: Wed Dec 03, 2014 9:38 pm    Post subject: Reply with quote

Just a few more things to check,
Code:
ls /dev/nvidia*

Does it show nodes?

If not, what error is printed when you do
Code:
# modprobe nvidia

_________________
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: 43178
Location: 56N 3W

PostPosted: Wed Dec 03, 2014 10:51 pm    Post subject: Reply with quote

augustin2,

Code:
[  1632.973] (EE) No devices detected.
suggests that either another driver has grabbed the nvidia chip.
Framebuffer drivers must be disabled. You used to get away winh vesafb but the kernel module gives a warning.

The other cause in that the nvidia chipset is not supported by the driver you are using.
Code:
[  1632.947] (--) PCI: (0:1:0:0) 10de:1392:1558:3501 rev 162, Mem @ 0xf6000000/16777216, 0xe0000000/268435456, 0xf0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/524288
says that you have a GM107M [GeForce GTX 860M] card. Check the /usr/share/do.../README to ensure that the driver supports that card.
_________________
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
augustin2
Apprentice
Apprentice


Joined: 16 Mar 2012
Posts: 244
Location: France

PostPosted: Wed Dec 03, 2014 10:58 pm    Post subject: Reply with quote

Code:
ls /div/nvidia*

/dev/nvidia0 /dev/nvidiactl



Code:
modprobe nvidia

nothing prompt returns immediately

Code:
lsmod | grep nvidia

nvidia 10998464 0
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


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

PostPosted: Thu Dec 04, 2014 12:21 am    Post subject: Reply with quote

If you still have problems please post
Code:
zcat /proc/config.gz | wgetpaste

just to make sure we are not chasing shadows here.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
augustin2
Apprentice
Apprentice


Joined: 16 Mar 2012
Posts: 244
Location: France

PostPosted: Thu Dec 04, 2014 7:33 am    Post subject: Reply with quote

Here you are:

https://bpaste.net/show/d5eccf44e515
Back to top
View user's profile Send private message
augustin2
Apprentice
Apprentice


Joined: 16 Mar 2012
Posts: 244
Location: France

PostPosted: Thu Dec 04, 2014 7:38 am    Post subject: Reply with quote

The recompilation of nvidia-drivers says that there are kernel misconfigurations but I dont understand what it is about (it is at the beginning of the output -line 53):

https://bpaste.net/show/cbb90f9e2e19
Back to top
View user's profile Send private message
augustin2
Apprentice
Apprentice


Joined: 16 Mar 2012
Posts: 244
Location: France

PostPosted: Thu Dec 04, 2014 8:15 am    Post subject: Reply with quote

Also have this:
Code:
eselect opengl list
[1] nvidia *
[2] xorg-x11

Code:
glxinfo | grep direct
Error : unable to open display
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
Goto page 1, 2  Next
Page 1 of 2

 
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