Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
startx fault & xrandr: Can`t open display
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
CrySam
n00b
n00b


Joined: 27 Jun 2019
Posts: 7

PostPosted: Wed Oct 09, 2019 6:05 am    Post subject: startx fault & xrandr: Can`t open display Reply with quote

hi,all,i am using links to post this topic,so i think there will be some problems in the layout,please understand.
i am new to Gentoo,i followed the instructions in the manual on installing nvidia-drivers and X11,but i run into some problems,when i startx,tty shows:
Code:

   (EE) Fatal server error:(EE) no screens found(EE)

,then i ran "xrandr" and "glxinfo | grep direct",and it shows:
Code:

    ~# xrandr
    ~# Can`t find display
    ~# glxinfo | grep direct
    ~# Error:unable to open display

My /var/log/Xorg.0.log is: (just contain ERROR)
Code:

(EE) NVIDIA(0): Faild to assign any connected display devices to X screen 0.
(EE) NVIDIA(0): Set AllowEmptyInitialConfiguration if you want the server to start anyway
(EE) NVIDIA(0): Falling initialization of X screen"
...omit 5 informations(II)...
(EE) Screen(s) found, but none have a usable configuration.
(EE) Fatal server error:
(EE) no screens found
...omit...

and my /etc/X11/xorg.conf is (All comments are omitted):
Code:

Section "ServerLayout"
    Identifier     "Layout 0"
    Screen     0   "Screen0" 0 0
    InputDevice    "Keyboard0"
"CoreKeyboard"
    InputDevice    "Mouse0""CorePointer"
EndSection

Section "Files"
EndSection

Section "InputDevice"
    Identifier    "Mouse0"
    Driver        "mouse"
    Option        "Protocol"
    Option        "Device" "/dev/input/mice"
    Option        "Emulate3Buttons" "no"
    Option        "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    Identifier    "Keyboard0"
    Driver        "kbd"
EndSection

Section "Monitor"
    Identifier    "Monitor0"
    VendorName    "Unknown"
    ModelName     "Unknown"
    Option        "DPMS"
EndSection

Section "Device"
    Identifier    "Device0"
    Driver        "nvidia"
    VendorName    "NVIDIA Corporation"
    BusID         "PCI:1:0:0"
EndSection

Section "Screen"
    Identifier    "Screen0"
    Device        "Device0"
    Monitor       "Monitor0"
    DefaultDepth  24
    SubSection    "Display"
        Depth     24
    EndSubSection
EndSection   


----------------

My graphics cards are NVIDIA Quadro M2200 and Intel HD Graphics 630,and my laptop`s display is 15.6 inch

[Moderator edit: Moved poster's self-response into main post, then deleted that self-response to return the thread to the unanswered list.

OP: Generally, if post length permits, you should edit extra information into your first post instead of replying to it. Some users run a canned search for threads with zero replies as a way of finding posts to answer. When you replied to yourself, you removed your thread from that list, even though you were not replying to announce that the thread was solved. Thus, they would no longer see your thread on the list of unanswered threads.
-Hu]


Last edited by CrySam on Wed Oct 09, 2019 7:36 am; edited 1 time in total
Back to top
View user's profile Send private message
Dominique_71
Veteran
Veteran


Joined: 17 Aug 2005
Posts: 1694
Location: Switzerland (Romandie)

PostPosted: Sat Oct 12, 2019 7:54 pm    Post subject: Reply with quote

The best current way of setting X is with files into /etc/X11/xorg.conf.d

For now, you have to remove or comment out every thing, and follow Xorg/Guide.
Back to top
View user's profile Send private message
CrySam
n00b
n00b


Joined: 27 Jun 2019
Posts: 7

PostPosted: Sat Oct 12, 2019 8:05 pm    Post subject: Reply with quote

Dominique_71 wrote:
The best current way of setting X is with files into /etc/X11/xorg.conf.d

For now, you have to remove or comment out every thing, and follow Xorg/Guide.

thank you, my X11 is returned to normal, When I meet new problems, please help me if you are willing. Here's my question:
[HELP] primus error : failed to load any of the libraries
https://forums.gentoo.org/viewtopic-t-1102846-start-0-postdays-0-postorder-asc-highlight-.html
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