You are not logged in.

#1 2016-02-16 15:52:52

tancrackers
Member
From: USA
Registered: 2012-04-11
Posts: 44

[SOLVED] Bad Xorg configuration using Nvidia-xconfig

My NVIDIA card:
NVIDIA GTX 960M

I installed nvidia, nvidia-utils, and bumblebee.
I used nvidia-xconfig to generate a xorg.conf file, but when I use the generated one, I run into a black screen.
The error I receive involves "no screens found(EE)," which I find very unusual.
The configuration looks fine to me.

Here is the file:

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 361.28  (buildmeister@swio-display-x64-rhel04-04)  Wed Feb  3 16:27:53 PST 2016

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

Section "Files"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    HorizSync       28.0 - 33.0
    VertRefresh     43.0 - 72.0
    Option         "DPMS"
EndSection

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

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

I am running Plasma 5.5.4, Linux 4.4.1-2, nvidia 361.28-1, and xorg-server 1.18.1-3

Last edited by tancrackers (2016-02-17 01:35:16)


Block ads forever! http://adblockplus.org/en/

Offline

#2 2016-02-16 20:09:41

Awebb
Member
Registered: 2010-05-06
Posts: 6,334

Re: [SOLVED] Bad Xorg configuration using Nvidia-xconfig

Since you mentioned bumblebee, why don't you read the Optimus and bumblebee wiki articles? In addition, post the nvidia chip you have. Recent setups don't have NVIDIA only options in the Bios anymore.

Offline

#3 2016-02-17 01:34:16

tancrackers
Member
From: USA
Registered: 2012-04-11
Posts: 44

Re: [SOLVED] Bad Xorg configuration using Nvidia-xconfig

I edited /etc/X11/xorg.conf:

Section "Module"
    Load "modesetting"
EndSection

Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    BusID "PCI:1:0:0"
    Option "AllowEmptyInitialConfiguration"
EndSection

Then followed the instructions for SDDM:
https://wiki.archlinux.org/index.php/NV … timus#SDDM

Also, nvidia-xconfig produces an obsolete X config file. I would recommend against using that command.

Last edited by tancrackers (2016-02-17 02:58:54)


Block ads forever! http://adblockplus.org/en/

Offline

#4 2016-02-17 01:39:35

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] Bad Xorg configuration using Nvidia-xconfig

tancrackers wrote:

Also, nvidia-xconfig produces an obsolete X config file. I would recommend against using that command.

Isn't there a note on the wiki to that effect? There used to be...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2022-06-01 19:10:44

onetimeuser123
Member
Registered: 2022-06-01
Posts: 1

Re: [SOLVED] Bad Xorg configuration using Nvidia-xconfig

Linux deathstar.absolute.net 5.17.1 #1 SMP PREEMPT Mon Mar 28 13:04:14 CDT 2022 x86_64 Intel(R) Core(TM) i7-2670QM CPU @ 2.20GHz GenuineIntel GNU/Linux

Laptop - Dell XPS l502x
GPU - NVIDIA GeForce GT 540M

Drivers downloaded from here - https://www.nvidia.com/en-us/drivers/unix/ (Latest Legacy GPU version (390.xx series): 390.151)

Before running the installation package, X server has to be shut down. Ctrl+Alt+F2 will open a console from where linux boot mode has to to be set to 3 - `telinit 3` (default with X server - 4). Reboot...

The installation package has to be run as root. During the installation, user is prompted whether to install 32-bit compatibility modules and whether to generate an X config file.

Once the installation is done, the default generated xorg.config file has to be modified.
  - Run `nvidia-xconfig --query-gpu-info | grep BusID` to get bus id. It will be required for further X configuration.
  - Amend 'Device0' section in /etc/X11/xorg.config and add BusID Option.
  - In 'Screen' section, connect your monitor to Device0 with any required options.

Eventually, the config should look like this:
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 390.151  (dvs-builder@U64-E08-26-1)  Wed Apr 20 17:42:18 UTC 2022


Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "0"
EndSection

Section "Files"
    FontPath        "/usr/lib64/X11/fonts/misc/:unscaled"
    FontPath        "/usr/lib64/X11/fonts/100dpi/:unscaled"
    FontPath        "/usr/lib64/X11/fonts/75dpi/:unscaled"
    FontPath        "/usr/lib64/X11/fonts/misc/"
    FontPath        "/usr/lib64/X11/fonts/Type1/"
    FontPath        "/usr/lib64/X11/fonts/Speedo/"
    FontPath        "/usr/lib64/X11/fonts/100dpi/"
    FontPath        "/usr/lib64/X11/fonts/75dpi/"
    FontPath        "/usr/lib64/X11/fonts/cyrillic/"
    FontPath        "/usr/lib64/X11/fonts/TTF/"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"

    # HorizSync source: edid, VertRefresh source: edid
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Seiko/Epson"
    HorizSync       47.4 - 47.4
    VertRefresh     60.1
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "GeForce GT 540M"
    BusID          "PCI:1:0:0"
EndSection

Section "Screen"

# Removed Option "metamodes" "HDMI-0: nvidia-auto-select +0+0 {ForceCompositionPipeline=On}"
# Removed Option "metamodes" "VGA-0: nvidia-auto-select +0+0 {ForceCompositionPipeline=On}, HDMI-0: nvidia-auto-select +0+0 {ForceCompositionPipeline=On}"
# Removed Option "metamodes" "HDMI-0: nvidia-auto-select +0+0 {ForceCompositionPipeline=On}"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "CRT-0"
    Option         "metamodes" "VGA-0: nvidia-auto-select +0+0 {ForceCompositionPipeline=On}, HDMI-0: nvidia-auto-select +0+0 {ForceCompositionPipeline=On}"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection



Useful links:
https://forums.developer.nvidia.com/t/d … g/142838/2
https://forums.developer.nvidia.com/t/m … d/162327/7

Good luck

Offline

#6 2022-06-01 19:57:40

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] Bad Xorg configuration using Nvidia-xconfig

Please don't necrobump old solved threads - especially with incorrect information.

Closing.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

Board footer

Powered by FluxBB