Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]difficulties getting X to start[SOLVED]
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
bammbamm808
Guru
Guru


Joined: 08 Dec 2002
Posts: 487
Location: Hawaii

PostPosted: Sat Mar 10, 2018 4:29 am    Post subject: [SOLVED]difficulties getting X to start[SOLVED] Reply with quote

Recently reinstalling gentoo after not updating for over 2 years. Same hardware as before, but I'm experiencing difficulties I don't recall having before.

I want to use the proprietary nvidia drivers, but hopefully have decent console resolution before I start X manually.

Hardware: i7 4790k, in an Asus Z97A and UEFI booting. No overclock. I have a couple of SSDs and a couple of HDDs in the case. Right now / is on one of the SSDs.

I have set up my efi system partition and am using rEFInd. I have some custom efistub kernels. The only ones that boot for me have FB_EFI set and the "nomodeset" option in reflind_linux.conf. Will FB_EFI conflict with my Nvidia drivers? I've heard both yes and no.

I have not been able to get X started with nouveau or Nvidia, with any kernel. I have tried kernels with simplefb and vesafb. I can only get kernels to boot using FB_EFI and "nomodeset". Nvidia-drivers compiles, installs and loads fine, but X crashes on lauch with no specific error. My USE includes "nvidia and evdev"

I was always able to get things working in the past by following guides and a bit of Googling, but am stuck this time. I don't know how to determine what is preventing X from working.

Any direction would be appreciated.
_________________
Asrock X470 Taichi
Ryzen 2700x
32Gb Samsung B-die (16GB dual rank x2) DDR4
Geforce GTX 1060 6GB
Samsung Evo 840 500Gb +Seagate 1TB HDD
Etc....


Last edited by bammbamm808 on Sun Mar 11, 2018 7:53 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Mar 10, 2018 12:38 pm    Post subject: Reply with quote

bammbamm808,

Pastebin /var/log/Xorg.0.log and dmesg after Xorg has failed to start.

You will need wgetpaste.

Put the output of
Code:
 lspci -knn
in your post.
_________________
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
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13842

PostPosted: Sat Mar 10, 2018 3:35 pm    Post subject: Reply with quote

Please include also the output of emerge --verbose --info x11-base/xorg-server x11-base/xorg-drivers $(eix --only-names -I x11-drivers/).
Back to top
View user's profile Send private message
bammbamm808
Guru
Guru


Joined: 08 Dec 2002
Posts: 487
Location: Hawaii

PostPosted: Sat Mar 10, 2018 11:38 pm    Post subject: Reply with quote

Will do. But interestingly, when I first set out to reinstalll gentoo, if I booted sysreqcd nomodeset option, I was able to startx. On the next boot, with no other changes to uefi settings, or anything else, the sysresqcd's startx failed with Error 1. Since then, I have managed everything but startx.

I have another system with the same motherboard, 16GB RAM, and an i5 4590/960gtx in place of the i7 4790k/970gtx in this box. Because of the sudden startx fail, and the lack of my having made changes to the system and its settings prior to X no longer starting, i started swapping the videocards and trying to startx off the sysresqcd. Startx fails in this motherboard regardless of gpu, and succeeds in the other with either gpu. Is it likely to have a hardware motherboard issue that allows console, but will cause X to fail with no error? FWIW, my voltages, etc look fine in uefi setup. Im thinking this is a hardware issue given that startx began failing with no changes or warning from one boot to the next. Especially since I am testing against the same bootable environment on nearly identical hardware. Thoughts?
_________________
Asrock X470 Taichi
Ryzen 2700x
32Gb Samsung B-die (16GB dual rank x2) DDR4
Geforce GTX 1060 6GB
Samsung Evo 840 500Gb +Seagate 1TB HDD
Etc....
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sun Mar 11, 2018 12:12 am    Post subject: Reply with quote

bammbamm808,

Add dmesg to the list of things to pastebin if you think it might be hardware.
_________________
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
bammbamm808
Guru
Guru


Joined: 08 Dec 2002
Posts: 487
Location: Hawaii

PostPosted: Sun Mar 11, 2018 3:41 am    Post subject: Reply with quote

Edit: mistake posting from phone.
_________________
Asrock X470 Taichi
Ryzen 2700x
32Gb Samsung B-die (16GB dual rank x2) DDR4
Geforce GTX 1060 6GB
Samsung Evo 840 500Gb +Seagate 1TB HDD
Etc....


Last edited by bammbamm808 on Sun Mar 11, 2018 4:03 am; edited 2 times in total
Back to top
View user's profile Send private message
bammbamm808
Guru
Guru


Joined: 08 Dec 2002
Posts: 487
Location: Hawaii

PostPosted: Sun Mar 11, 2018 3:54 am    Post subject: Reply with quote

Hu wrote:
Please include also the output of emerge --verbose --info x11-base/xorg-server x11-base/xorg-drivers $(eix --only-names -I x11-drivers/).


emerge --verbose --info x11-base/xorg-server x11-base/xorg-drivers: https://paste.pound-python.org/show/MGOqAcIUlkRf45joQjkb/

$(eix --only-names -l x11-drivers/): http://paste.pound-python.org/show/kSjG40bFXqiOHVqECd4K/
_________________
Asrock X470 Taichi
Ryzen 2700x
32Gb Samsung B-die (16GB dual rank x2) DDR4
Geforce GTX 1060 6GB
Samsung Evo 840 500Gb +Seagate 1TB HDD
Etc....
Back to top
View user's profile Send private message
bammbamm808
Guru
Guru


Joined: 08 Dec 2002
Posts: 487
Location: Hawaii

PostPosted: Sun Mar 11, 2018 4:13 am    Post subject: Reply with quote

NeddySeagoon wrote:
bammbamm808,

Pastebin /var/log/Xorg.0.log and dmesg after Xorg has failed to start.

You will need wgetpaste.

Put the output of
Code:
 lspci -knn
in your post.


/var/log/Xorg.0.log: https://paste.pound-python.org/show/LYW1SDV4bXKfKQbpyLB4/

dmesg: https://paste.pound-python.org/show/5oCbpIMIdHT9NE35B3YH/

lsmod: https://paste.pound-python.org/show/JlfVdGMw6DSgKz42okmO/

lspci -knn: https://paste.pound-python.org/show/uy5hpxXqNu9gQGX60V0U/
_________________
Asrock X470 Taichi
Ryzen 2700x
32Gb Samsung B-die (16GB dual rank x2) DDR4
Geforce GTX 1060 6GB
Samsung Evo 840 500Gb +Seagate 1TB HDD
Etc....
Back to top
View user's profile Send private message
blopsalot
Apprentice
Apprentice


Joined: 28 Jan 2017
Posts: 231

PostPosted: Sun Mar 11, 2018 6:18 am    Post subject: Reply with quote

modesetting is failing for some reason, has the monitor changed from what was working before?

you want to use efifb
Back to top
View user's profile Send private message
bammbamm808
Guru
Guru


Joined: 08 Dec 2002
Posts: 487
Location: Hawaii

PostPosted: Sun Mar 11, 2018 6:51 am    Post subject: Reply with quote

blopsalot wrote:
modesetting is failing for some reason, has the monitor changed from what was working before?

you want to use efifb


Monitor hasn't changed and I can only get a booting kernel by passing "nomodeset" via refind_linux.conf and FB_EFI=y. I'll post my kernel .config later tonight or tomorrow.

linux-4.9.76-gentoo-r1: http://paste.pound-python.org/show/FqZujgYSBhJCqiN2wcqa/
_________________
Asrock X470 Taichi
Ryzen 2700x
32Gb Samsung B-die (16GB dual rank x2) DDR4
Geforce GTX 1060 6GB
Samsung Evo 840 500Gb +Seagate 1TB HDD
Etc....
Back to top
View user's profile Send private message
blopsalot
Apprentice
Apprentice


Joined: 28 Jan 2017
Posts: 231

PostPosted: Sun Mar 11, 2018 11:51 am    Post subject: Reply with quote

yeah, you missing:
Code:

CONFIG_DRM=y
CONFIG_DRM_KMS_HELPER=y
CONFIG_DRM_KMS_FB_HELPER=y
Back to top
View user's profile Send private message
bammbamm808
Guru
Guru


Joined: 08 Dec 2002
Posts: 487
Location: Hawaii

PostPosted: Sun Mar 11, 2018 6:53 pm    Post subject: Reply with quote

blopsalot wrote:
yeah, you missing:
Code:

CONFIG_DRM=y
CONFIG_DRM_KMS_HELPER=y
CONFIG_DRM_KMS_FB_HELPER=y


Thanks I will try that this morning.
_________________
Asrock X470 Taichi
Ryzen 2700x
32Gb Samsung B-die (16GB dual rank x2) DDR4
Geforce GTX 1060 6GB
Samsung Evo 840 500Gb +Seagate 1TB HDD
Etc....
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sun Mar 11, 2018 7:20 pm    Post subject: Reply with quote

bammbamm808,

Your log shows Xorg starting normally and shutting down normally without doing anything in between.
How did you start Xorg?

That's actually correct default behaviour on Gentoo as the packages that Xorg would run by default are not installed by default..
_________________
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
bammbamm808
Guru
Guru


Joined: 08 Dec 2002
Posts: 487
Location: Hawaii

PostPosted: Sun Mar 11, 2018 7:24 pm    Post subject: Reply with quote

NeddySeagoon wrote:
bammbamm808,

Your log shows Xorg starting normally and shutting down normally without doing anything in between.
How did you start Xorg?

That's actually correct default behaviour on Gentoo as the packages that Xorg would run by default are not installed by default..


By typing 'startx' in console.
_________________
Asrock X470 Taichi
Ryzen 2700x
32Gb Samsung B-die (16GB dual rank x2) DDR4
Geforce GTX 1060 6GB
Samsung Evo 840 500Gb +Seagate 1TB HDD
Etc....
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sun Mar 11, 2018 7:32 pm    Post subject: Reply with quote

bammbamm808,

I thought that :)

Code:
emerge -1 twm xterm xclock
and you will get three xterms and xclock all wrapped up in twm.
If you don't like twm, you need to create an ~/.xinitrc to tell Xorg what you would like it to do.
_________________
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
bammbamm808
Guru
Guru


Joined: 08 Dec 2002
Posts: 487
Location: Hawaii

PostPosted: Sun Mar 11, 2018 7:52 pm    Post subject: Reply with quote

NeddySeagoon wrote:
bammbamm808,

I thought that :)

Code:
emerge -1 twm xterm xclock
and you will get three xterms and xclock all wrapped up in twm.
If you don't like twm, you need to create an ~/.xinitrc to tell Xorg what you would like it to do.


Apologies. It has been nearly 3 years since I did any configuration in linux, and I'm not getting any younger, quicker to learn, or more able to retain. Your question got me thinking, and I reread the Gentoo KDE guide and realized I had missed the .xinitrc step. Posting from my Plasma DE at the moment.

Thanks for all who took the time to help.

Started messing with some plasma desktop preferences via gui. Quickly found no way to enable multiple desktops and some glitches with transparency and not being able to turn background blur off once I had tested it out. Unmerged kde/plasma and dependencies, changed to a mere desktop profile, and emerged good old xfce4. Much less bloat and I'm happy.
_________________
Asrock X470 Taichi
Ryzen 2700x
32Gb Samsung B-die (16GB dual rank x2) DDR4
Geforce GTX 1060 6GB
Samsung Evo 840 500Gb +Seagate 1TB HDD
Etc....
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