Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't configure proprietary nvidia drivers
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
mvlabat
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jan 2014
Posts: 82

PostPosted: Wed Jan 28, 2015 3:19 pm    Post subject: Can't configure proprietary nvidia drivers Reply with quote

Hello

Some time ago I used nouveau drivers. After making the decision to move on proprietary drivers I've met some problems.
Firstly, this is a history of my adventures.
I changed my portage make.conf file, setting "nvidia" value only for VIDEO_CARD, emerged nvidia driver, disabled nouveau support in my kernel, rebuilded it, done deep world update with --newuse, ran emerge @module-rebuild... I know I made it in a not absolutely right order... But it seems to me that it hasn't to have any matter.
After I tried to run nvidia-xconfig. When running it from root (su) it said that there was no such command. If I ran it from non-root user it said
Quote:
WARNING: Unable to locate/open X configuration file.


ERROR: Unable to write to directory '/etc/X11'.

As I understood it's normal, because of not having permissions to do that.

Okaaay. Then I tried to execute "/opt/bin/nvidia-xconfig" manually. After that was done I've stucked with running "startx". It said that it couldn't detect any monitors or something like that, sorry for such uncertainty.
Nevermind, I've just deleted this xorg.conf (it didn't existed before I ran "/opt/bin/nvidia-xconfig" manually too). What a miracle! X server succesfully started.

So, excuse me, WTF?

Trying to start NVidia X Server Setting from KDE it says "You do not appear to be using the NVIDIA X driver. Please edit your X configuration file (just run `nvidia-xconfig` as root), and restart the X server."

So what driver am I using now, if there is nothing except nvidia, and how to determine it?

Sorry for such a confusion. Could you help me to solve this problem? I actually want to get my nvidia driver working.
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3806
Location: Austro Bavaria

PostPosted: Wed Jan 28, 2015 7:00 pm    Post subject: Reply with quote

Hi output of, please:

Code:
cat /var/log/Xorg.0.log


Code:
localhost roman # eselect opengl list
Available OpenGL implementations:
  [1]   nvidia *
  [2]   xorg-x11


Code:
localhost roman # eselect opengl list
Available OpenGL implementations:
  [1]   nvidia *
  [2]   xorg-x11


lspci

eix nvidia-drivers


Code:
localhost roman # cat /etc/X11/xorg.conf.d/nvidia.conf
Section "Device"
         Identifier  "nvidia"
         Driver      "nvidia"
EndSection


Code:
localhost roman # cat /etc/X11/xorg.conf.d/20opengl.conf
Section "Files"
   ModulePath "/usr/lib32/xorg/modules"
   ModulePath "/usr/lib64/opengl/nvidia"
   ModulePath "/usr/lib64/xorg/modules"
EndSection


https://wiki.archlinux.org/index.php/NVIDIA
Quote:
Configuring

It is possible that after installing the driver it may not be needed to create an Xorg server configuration file. You can run a test to see if the Xorg server will function correctly without a configuration file. However, it may be required to create a configuration file (prefer /etc/X11/xorg.conf.d/20-nvidia.conf over /etc/X11/xorg.conf) in order to adjust various settings. This configuration can be generated by the NVIDIA Xorg configuration tool, or it can be created manually. If created manually, it can be a minimal configuration (in the sense that it will only pass the basic options to the Xorg server), or it can include a number of settings that can bypass Xorg's auto-discovered or pre-configured options.
Note: Since 1.8.x Xorg uses separate configuration files in /etc/X11/xorg.conf.d/ - check out advanced configuration section.
Back to top
View user's profile Send private message
mvlabat
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jan 2014
Posts: 82

PostPosted: Wed Jan 28, 2015 11:47 pm    Post subject: Reply with quote

Thank you for your answer!

Code:
cat /var/log/Xorg.0.log


Code:
[    98.942]
X.Org X Server 1.15.2
Release Date: 2014-06-27
[    98.942] X Protocol Version 11, Revision 0
[    98.942] Build Operating System: Linux 3.13.5 x86_64 Gentoo
[    98.942] Current Operating System: Linux mvlabat 3.13.5 #5 SMP Wed Jan 28 12:36:02 Local time zone must be set--see zic  x86_64
[    98.942] Kernel command line: root=/dev/sda7
[    98.942] Build Date: 27 January 2015  08:51:33PM
[    98.942] 
[    98.942] Current version of pixman: 0.32.4
[    98.942]    Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[    98.942] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    98.942] (==) Log file: "/var/log/Xorg.0.log", Time: Thu Jan 29 00:07:04 2015
[    98.943] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    98.957] (==) No Layout section.  Using the first Screen section.
[    98.957] (==) No screen section available. Using defaults.
[    98.957] (**) |-->Screen "Default Screen Section" (0)
[    98.957] (**) |   |-->Monitor "<default monitor>"
[    98.957] (==) No monitor specified for screen "Default Screen Section".
        Using a default monitor configuration.
[    98.957] (==) Automatically adding devices
[    98.957] (==) Automatically enabling devices
[    98.957] (==) Automatically adding GPU devices
[    98.957] (WW) The directory "/usr/share/fonts/misc/" does not exist.
[    98.957]    Entry deleted from font path.
[    98.957] (WW) The directory "/usr/share/fonts/TTF/" does not exist.
[    98.957]    Entry deleted from font path.
[    98.957] (WW) The directory "/usr/share/fonts/OTF/" does not exist.
[    98.957]    Entry deleted from font path.
[    98.957] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[    98.957]    Entry deleted from font path.
[    98.957] (WW) The directory "/usr/share/fonts/100dpi/" does not exist.
[    98.957]    Entry deleted from font path.
[    98.957] (WW) The directory "/usr/share/fonts/75dpi/" does not exist.
[    98.957]    Entry deleted from font path.
[    98.957] (==) FontPath set to:

[    98.957] (==) ModulePath set to "/usr/lib64/xorg/modules"
[    98.957] (II) The server relies on udev to provide the list of input devices.
        If no devices become available, reconfigure udev or disable AutoAddDevices.
[    98.957] (II) Loader magic: 0x603c60
[    98.957] (II) Module ABI versions:
[    98.957]    X.Org ANSI C Emulation: 0.4
[    98.957]    X.Org Video Driver: 15.0
[    98.957]    X.Org XInput driver : 20.0
[    98.957]    X.Org Server Extension : 8.0
[    98.957] (II) xfree86: Adding drm device (/dev/dri/card1)
[    98.957] (II) xfree86: Adding drm device (/dev/dri/card0)
[    98.958] (--) PCI:*(0:0:2:0) 8086:0416:17aa:380a rev 6, Mem @ 0xb5000000/4194304, 0xc0000000/268435456, I/O @ 0x00006000/64
[    98.958] (--) PCI: (0:7:0:0) 10de:1292:17aa:380a rev 161, Mem @ 0xb3000000/16777216, 0xa0000000/268435456, 0xb0000000/33554432, I/O @ 0x00004000/128
[    98.959] Initializing built-in extension Generic Event Extension
[    98.959] Initializing built-in extension SHAPE
[    98.959] Initializing built-in extension MIT-SHM
[    98.959] Initializing built-in extension XInputExtension
[    98.959] Initializing built-in extension XTEST
[    98.959] Initializing built-in extension BIG-REQUESTS
[    98.959] Initializing built-in extension SYNC
[    98.959] Initializing built-in extension XKEYBOARD
[    98.959] Initializing built-in extension XC-MISC
[    98.959] Initializing built-in extension XINERAMA
[    98.959] Initializing built-in extension XFIXES
[    98.959] Initializing built-in extension RENDER
[    98.959] Initializing built-in extension RANDR
[    98.959] Initializing built-in extension COMPOSITE
[    98.959] Initializing built-in extension DAMAGE
[    98.959] Initializing built-in extension MIT-SCREEN-SAVER
[    98.959] Initializing built-in extension DOUBLE-BUFFER
[    98.959] Initializing built-in extension RECORD
[    98.959] Initializing built-in extension DPMS
[    98.959] Initializing built-in extension Present
[    98.960] Initializing built-in extension DRI3
[    98.960] Initializing built-in extension X-Resource
[    98.961] Initializing built-in extension XVideo
[    98.961] Initializing built-in extension XVideo-MotionCompensation
[    98.962] Initializing built-in extension XFree86-VidModeExtension
[    98.962] Initializing built-in extension XFree86-DGA
[    98.963] Initializing built-in extension XFree86-DRI
[    98.963] Initializing built-in extension DRI2
[    98.963] (II) LoadModule: "glx"
[    99.264] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[   100.046] (II) Module glx: vendor="NVIDIA Corporation"
[   100.046]    compiled for 4.0.2, module version = 1.0.0
[   100.046]    Module class: X.Org Server Extension
[   100.055] (II) NVIDIA GLX Module  343.36  Mon Dec  1 15:50:02 PST 2014
[   100.067] Loading extension GLX
[   100.067] (==) Matched intel as autoconfigured driver 0
[   100.067] (==) Matched nouveau as autoconfigured driver 1
[   100.067] (==) Matched nv as autoconfigured driver 2
[   100.067] (==) Matched intel as autoconfigured driver 3
[   100.067] (==) Matched modesetting as autoconfigured driver 4
[   100.067] (==) Matched fbdev as autoconfigured driver 5
[   100.067] (==) Matched vesa as autoconfigured driver 6
[   100.067] (==) Assigned the driver to the xf86ConfigLayout
[   100.067] (II) LoadModule: "intel"
[   100.067] (II) Loading /usr/lib64/xorg/modules/drivers/intel_drv.so
[   100.105] (II) Module intel: vendor="X.Org Foundation"
[   100.105]    compiled for 1.15.2, module version = 2.21.15
[   100.105]    Module class: X.Org Video Driver
[   100.105]    ABI class: X.Org Video Driver, version 15.0
[   100.105] (II) LoadModule: "nouveau"
[   100.117] (WW) Warning, couldn't open module nouveau
[   100.117] (II) UnloadModule: "nouveau"
[   100.117] (II) Unloading nouveau
[   100.117] (EE) Failed to load module "nouveau" (module does not exist, 0)
[   100.117] (II) LoadModule: "nv"
[   100.117] (WW) Warning, couldn't open module nv
[   100.117] (II) UnloadModule: "nv"
[   100.117] (II) Unloading nv
[   100.117] (EE) Failed to load module "nv" (module does not exist, 0)
[   100.117] (II) LoadModule: "modesetting"
[   100.117] (WW) Warning, couldn't open module modesetting
[   100.117] (II) UnloadModule: "modesetting"
[   100.117] (II) Unloading modesetting
[   100.117] (EE) Failed to load module "modesetting" (module does not exist, 0)
[   100.117] (II) LoadModule: "fbdev"
[   100.117] (WW) Warning, couldn't open module fbdev
[   100.117] (II) UnloadModule: "fbdev"
[   100.117] (II) Unloading fbdev
[   100.117] (EE) Failed to load module "fbdev" (module does not exist, 0)
[   100.117] (II) LoadModule: "vesa"
[   100.117] (WW) Warning, couldn't open module vesa
[   100.117] (II) UnloadModule: "vesa"
[   100.117] (II) Unloading vesa
[   100.117] (EE) Failed to load module "vesa" (module does not exist, 0)
[   100.117] (II) intel: Driver for Intel(R) Integrated Graphics Chipsets:
        i810, i810-dc100, i810e, i815, i830M, 845G, 854, 852GM/855GM, 865G,
        915G, E7221 (i915), 915GM, 945G, 945GM, 945GME, Pineview GM,
        Pineview G, 965G, G35, 965Q, 946GZ, 965GM, 965GME/GLE, G33, Q35, Q33,
        GM45, 4 Series, G45/G43, Q45/Q43, G41, B43, HD Graphics,
        HD Graphics 2000, HD Graphics 3000, HD Graphics 2500,
        HD Graphics 4000, HD Graphics P4000, HD Graphics 4600,
        HD Graphics 5000, HD Graphics P4600/P4700, Iris(TM) Graphics 5100,
        HD Graphics 4400, HD Graphics 4200, Iris(TM) Pro Graphics 5200
[   100.117] (--) using VT number 7

[   100.143] (II) intel(0): Creating default Display subsection in Screen section
        "Default Screen Section" for depth/fbbpp 24/32
[   100.143] (==) intel(0): Depth 24, (--) framebuffer bpp 32
[   100.144] (==) intel(0): RGB weight 888
[   100.144] (==) intel(0): Default visual is TrueColor
[   100.144] (--) intel(0): Integrated Graphics Chipset: Intel(R) HD Graphics 4600
[   100.144] (--) intel(0): CPU: x86-64, sse2, sse3, ssse3, sse4.1, sse4.2, avx, avx2
[   100.144] (**) intel(0): Framebuffer tiled
[   100.144] (**) intel(0): Pixmaps tiled
[   100.144] (**) intel(0): "Tear free" disabled
[   100.144] (**) intel(0): Forcing per-crtc-pixmaps? no
[   100.144] (II) intel(0): Output eDP1 has no monitor section
[   100.144] (--) intel(0): found backlight control interface acpi_video0 (type 'firmware')
[   100.144] (II) intel(0): Output VGA1 has no monitor section
[   100.144] (II) intel(0): Output HDMI1 has no monitor section
[   100.144] (--) intel(0): Output eDP1 using initial mode 1366x768 on pipe 0
[   100.144] (==) intel(0): DPI set to (96, 96)
[   100.144] (II) Loading sub module "dri2"
[   100.144] (II) LoadModule: "dri2"
[   100.144] (II) Module "dri2" already built-in
[   100.144] (==) Depth 24 pixmap format is 32 bpp
[   100.157] (II) intel(0): SNA initialized with Haswell (gen7.5, gt2) backend
[   100.157] (==) intel(0): Backing store enabled
[   100.157] (==) intel(0): Silken mouse enabled
[   100.157] (II) intel(0): HW Cursor enabled
[   100.157] (II) intel(0): RandR 1.2 enabled, ignore the following RandR disabled message.
[   100.166] (==) intel(0): DPMS enabled
[   100.166] (II) intel(0): [DRI2] Setup complete
[   100.166] (II) intel(0): [DRI2]   DRI driver: i965
[   100.166] (II) intel(0): direct rendering: DRI2 Enabled
[   100.166] (==) intel(0): hotplug detection: "enabled"
[   100.166] (--) RandR disabled
[   100.175] (EE) Failed to initialize GLX extension (Compatible NVIDIA X driver not found)
[   100.177] (II) intel(0): switch to mode 1366x768@60.0 on pipe 0 using eDP1, position (0, 0), rotation normal
[   100.193] (II) intel(0): Setting screen physical size to 361 x 203
[   100.833] (II) config/udev: Adding input device Power Button (/dev/input/event2)
[   100.833] (**) Power Button: Applying InputClass "evdev keyboard catchall"
[   100.833] (II) LoadModule: "evdev"
[   100.833] (II) Loading /usr/lib64/xorg/modules/input/evdev_drv.so
[   100.885] (II) Module evdev: vendor="X.Org Foundation"
[   100.885]    compiled for 1.15.2, module version = 2.8.2
[   100.885]    Module class: X.Org XInput Driver
[   100.885]    ABI class: X.Org XInput driver, version 20.0
[   100.885] (II) Using input driver 'evdev' for 'Power Button'
[   100.885] (**) Power Button: always reports core events
[   100.885] (**) evdev: Power Button: Device: "/dev/input/event2"
[   100.885] (--) evdev: Power Button: Vendor 0 Product 0x1
[   100.885] (--) evdev: Power Button: Found keys
[   100.885] (II) evdev: Power Button: Configuring as keyboard
[   100.885] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/LNXPWRBN:00/input/input2/event2"
[   100.885] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 6)
[   100.885] (**) Option "xkb_rules" "evdev"
[   100.885] (**) Option "xkb_model" "pc104"
[   100.885] (**) Option "xkb_layout" "us"
[   100.901] (II) config/udev: Adding input device Video Bus (/dev/input/event4)
[   100.901] (**) Video Bus: Applying InputClass "evdev keyboard catchall"
[   100.901] (II) Using input driver 'evdev' for 'Video Bus'
[   100.901] (**) Video Bus: always reports core events
[   100.901] (**) evdev: Video Bus: Device: "/dev/input/event4"
[   100.901] (--) evdev: Video Bus: Vendor 0 Product 0x6
[   100.901] (--) evdev: Video Bus: Found keys
[   100.901] (II) evdev: Video Bus: Configuring as keyboard
[   100.901] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/device:00/PNP0A08:00/LNXVIDEO:01/input/input4/event4"
[   100.901] (II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD, id 7)
[   100.901] (**) Option "xkb_rules" "evdev"
[   100.901] (**) Option "xkb_model" "pc104"
[   100.901] (**) Option "xkb_layout" "us"
[   100.902] (II) config/udev: Adding input device Video Bus (/dev/input/event3)
[   100.902] (**) Video Bus: Applying InputClass "evdev keyboard catchall"
[   100.902] (II) Using input driver 'evdev' for 'Video Bus'
[   100.902] (**) Video Bus: always reports core events
[   100.902] (**) evdev: Video Bus: Device: "/dev/input/event3"
[   100.902] (--) evdev: Video Bus: Vendor 0 Product 0x6
[   100.902] (--) evdev: Video Bus: Found keys
[   100.902] (II) evdev: Video Bus: Configuring as keyboard
[   100.902] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/device:00/PNP0A08:00/device:40/LNXVIDEO:00/input/input3/event3"
[   100.902] (II) XINPUT: Adding extended input device "Video Bus" (type: KEYBOARD, id 8)
[   100.902] (**) Option "xkb_rules" "evdev"
[   100.902] (**) Option "xkb_model" "pc104"
[   100.902] (**) Option "xkb_layout" "us"
[   100.902] (II) config/udev: Adding input device Power Button (/dev/input/event1)
[   100.902] (**) Power Button: Applying InputClass "evdev keyboard catchall"
[   100.902] (II) Using input driver 'evdev' for 'Power Button'
[   100.902] (**) Power Button: always reports core events
[   100.902] (**) evdev: Power Button: Device: "/dev/input/event1"
[   100.902] (--) evdev: Power Button: Vendor 0 Product 0x1
[   100.902] (--) evdev: Power Button: Found keys
[   100.902] (II) evdev: Power Button: Configuring as keyboard
[   100.902] (**) Option "config_info" "udev:/sys/devices/LNXSYSTM:00/device:00/PNP0C0C:00/input/input1/event1"
[   100.902] (II) XINPUT: Adding extended input device "Power Button" (type: KEYBOARD, id 9)
[   100.902] (**) Option "xkb_rules" "evdev"
[   100.902] (**) Option "xkb_model" "pc104"
[   100.902] (**) Option "xkb_layout" "us"
[   100.902] (II) config/udev: Adding input device Lid Switch (/dev/input/event0)
[   100.902] (II) No input driver specified, ignoring this device.
[   100.902] (II) This device may have been added with another device file.
[   100.902] (II) config/udev: Adding drm device (/dev/dri/card1)
[   100.902] (II) config/udev: Adding drm device (/dev/dri/card0)
[   100.903] (II) config/udev: Adding input device AT Translated Set 2 keyboard (/dev/input/event5)
[   100.903] (**) AT Translated Set 2 keyboard: Applying InputClass "evdev keyboard catchall"
[   100.903] (II) Using input driver 'evdev' for 'AT Translated Set 2 keyboard'
[   100.903] (**) AT Translated Set 2 keyboard: always reports core events
[   100.903] (**) evdev: AT Translated Set 2 keyboard: Device: "/dev/input/event5"
[   100.903] (--) evdev: AT Translated Set 2 keyboard: Vendor 0x1 Product 0x1
[   100.903] (--) evdev: AT Translated Set 2 keyboard: Found keys
[   100.903] (II) evdev: AT Translated Set 2 keyboard: Configuring as keyboard
[   100.903] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio0/input/input5/event5"
[   100.903] (II) XINPUT: Adding extended input device "AT Translated Set 2 keyboard" (type: KEYBOARD, id 10)
[   100.903] (**) Option "xkb_rules" "evdev"
[   100.903] (**) Option "xkb_model" "pc104"
[   100.903] (**) Option "xkb_layout" "us"
[   100.903] (II) config/udev: Adding input device SynPS/2 Synaptics TouchPad (/dev/input/event6)
[   100.903] (**) SynPS/2 Synaptics TouchPad: Applying InputClass "evdev touchpad catchall"
[   100.903] (**) SynPS/2 Synaptics TouchPad: Applying InputClass "touchpad catchall"
[   100.903] (**) SynPS/2 Synaptics TouchPad: Applying InputClass "Default clickpad buttons"
[   100.903] (II) LoadModule: "synaptics"
[   100.903] (II) Loading /usr/lib64/xorg/modules/input/synaptics_drv.so
[   101.226] (II) Module synaptics: vendor="X.Org Foundation"
[   101.226]    compiled for 1.15.2, module version = 1.7.4
[   101.226]    Module class: X.Org XInput Driver
[   101.226]    ABI class: X.Org XInput driver, version 20.0
[   101.226] (II) Using input driver 'synaptics' for 'SynPS/2 Synaptics TouchPad'
[   101.226] (**) SynPS/2 Synaptics TouchPad: always reports core events
[   101.226] (**) Option "Device" "/dev/input/event6"
[   101.246] (II) synaptics: SynPS/2 Synaptics TouchPad: found clickpad property
[   101.246] (--) synaptics: SynPS/2 Synaptics TouchPad: x-axis range 1472 - 5664 (res 42)
[   101.246] (--) synaptics: SynPS/2 Synaptics TouchPad: y-axis range 1408 - 4682 (res 52)
[   101.246] (--) synaptics: SynPS/2 Synaptics TouchPad: pressure range 0 - 255
[   101.246] (--) synaptics: SynPS/2 Synaptics TouchPad: finger width range 0 - 15
[   101.246] (--) synaptics: SynPS/2 Synaptics TouchPad: buttons: left double triple
[   101.246] (--) synaptics: SynPS/2 Synaptics TouchPad: Vendor 0x2 Product 0x7
[   101.246] (**) Option "SoftButtonAreas" "50% 0 82% 0 0 0 0 0"
[   101.246] (--) synaptics: SynPS/2 Synaptics TouchPad: touchpad found
[   101.246] (**) SynPS/2 Synaptics TouchPad: always reports core events
[   101.256] (**) Option "config_info" "udev:/sys/devices/platform/i8042/serio1/input/input7/event6"
[   101.256] (II) XINPUT: Adding extended input device "SynPS/2 Synaptics TouchPad" (type: TOUCHPAD, id 11)
[   101.256] (**) synaptics: SynPS/2 Synaptics TouchPad: (accel) MinSpeed is now constant deceleration 2.5
[   101.256] (**) synaptics: SynPS/2 Synaptics TouchPad: (accel) MaxSpeed is now 1.75
[   101.256] (**) synaptics: SynPS/2 Synaptics TouchPad: (accel) AccelFactor is now 0.038
[   101.256] (**) SynPS/2 Synaptics TouchPad: (accel) keeping acceleration scheme 1
[   101.256] (**) SynPS/2 Synaptics TouchPad: (accel) acceleration profile 1
[   101.256] (**) SynPS/2 Synaptics TouchPad: (accel) acceleration factor: 2.000
[   101.256] (**) SynPS/2 Synaptics TouchPad: (accel) acceleration threshold: 4
[   101.256] (--) synaptics: SynPS/2 Synaptics TouchPad: touchpad found
[   101.256] (II) config/udev: Adding input device SynPS/2 Synaptics TouchPad (/dev/input/mouse0)
[   101.256] (**) SynPS/2 Synaptics TouchPad: Ignoring device from InputClass "touchpad ignore duplicates"
[   115.858] (II) intel(0): EDID vendor "LGD", prod id 998
[   115.858] (II) intel(0): Printing DDC gathered Modelines:
[   115.858] (II) intel(0): Modeline "1366x768"x0.0   76.30  1366 1414 1446 1610  768 771 776 790 -hsync -vsync (47.4 kHz eP)


Opengl is selected correctly.

Code:
lspci

Code:
00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor DRAM Controller (rev 06)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor PCI Express x16 Controller (rev 06)
00:01.1 PCI bridge: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor PCI Express x8 Controller (rev 06)
00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)
00:03.0 Audio device: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller (rev 06)
00:14.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB xHCI (rev 05)
00:16.0 Communication controller: Intel Corporation 8 Series/C220 Series Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #2 (rev 05)
00:1b.0 Audio device: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller (rev 05)
00:1c.0 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #4 (rev d5)
00:1c.4 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #5 (rev d5)
00:1d.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #1 (rev 05)
00:1f.0 ISA bridge: Intel Corporation HM86 Express LPC Controller (rev 05)
00:1f.2 SATA controller: Intel Corporation 8 Series/C220 Series Chipset Family 6-port SATA Controller 1 [AHCI mode] (rev 05)
00:1f.3 SMBus: Intel Corporation 8 Series/C220 Series Chipset Family SMBus Controller (rev 05)
07:00.0 3D controller: NVIDIA Corporation GK208M [GeForce GT 740M] (rev a1)
08:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 07)
09:00.0 Network controller: Intel Corporation Wireless 7260 (rev 73)


Code:
eix nvidia-drivers

Sorry. Is "eix" command or what? )
Back to top
View user's profile Send private message
mvlabat
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jan 2014
Posts: 82

PostPosted: Wed Jan 28, 2015 11:56 pm    Post subject: Reply with quote

After applying your configs:

Code:
[  6175.804]
X.Org X Server 1.15.2
Release Date: 2014-06-27
[  6175.806] X Protocol Version 11, Revision 0
[  6175.807] Build Operating System: Linux 3.13.5 x86_64 Gentoo
[  6175.807] Current Operating System: Linux mvlabat 3.13.5 #5 SMP Wed Jan 28 12:36:02 Local time zone must be set--see zic  x86_64
[  6175.807] Kernel command line: root=/dev/sda7
[  6175.809] Build Date: 27 January 2015  08:51:33PM
[  6175.810] 
[  6175.811] Current version of pixman: 0.32.4
[  6175.812]    Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[  6175.812] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[  6175.815] (==) Log file: "/var/log/Xorg.0.log", Time: Thu Jan 29 01:48:21 2015
[  6175.816] (==) Using config directory: "/etc/X11/xorg.conf.d"
[  6175.817] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[  6175.817] (==) No Layout section.  Using the first Screen section.
[  6175.817] (==) No screen section available. Using defaults.
[  6175.817] (**) |-->Screen "Default Screen Section" (0)
[  6175.817] (**) |   |-->Monitor "<default monitor>"
[  6175.817] (==) No device specified for screen "Default Screen Section".
        Using the first device section listed.
[  6175.817] (**) |   |-->Device "nvidia"
[  6175.817] (==) No monitor specified for screen "Default Screen Section".
        Using a default monitor configuration.
[  6175.817] (==) Automatically adding devices
[  6175.817] (==) Automatically enabling devices
[  6175.817] (==) Automatically adding GPU devices
[  6175.817] (WW) The directory "/usr/share/fonts/misc/" does not exist.
[  6175.817]    Entry deleted from font path.
[  6175.817] (WW) The directory "/usr/share/fonts/TTF/" does not exist.
[  6175.817]    Entry deleted from font path.
[  6175.817] (WW) The directory "/usr/share/fonts/OTF/" does not exist.
[  6175.817]    Entry deleted from font path.
[  6175.817] (WW) The directory "/usr/share/fonts/Type1/" does not exist.
[  6175.817]    Entry deleted from font path.
[  6175.817] (WW) The directory "/usr/share/fonts/100dpi/" does not exist.
[  6175.817]    Entry deleted from font path.
[  6175.817] (WW) The directory "/usr/share/fonts/75dpi/" does not exist.
[  6175.817]    Entry deleted from font path.
[  6175.817] (==) FontPath set to:

[  6175.817] (**) ModulePath set to "/usr/lib32/xorg/modules,/usr/lib64/opengl/nvidia,/usr/lib64/xorg/modules"
[  6175.817] (II) The server relies on udev to provide the list of input devices.
        If no devices become available, reconfigure udev or disable AutoAddDevices.
[  6175.817] (II) Loader magic: 0x603c60
[  6175.817] (II) Module ABI versions:
[  6175.817]    X.Org ANSI C Emulation: 0.4
[  6175.817]    X.Org Video Driver: 15.0
[  6175.817]    X.Org XInput driver : 20.0
[  6175.817]    X.Org Server Extension : 8.0
[  6175.818] (II) xfree86: Adding drm device (/dev/dri/card1)
[  6175.818] (II) xfree86: Adding drm device (/dev/dri/card0)
[  6175.819] (--) PCI:*(0:0:2:0) 8086:0416:17aa:380a rev 6, Mem @ 0xb5000000/4194304, 0xc0000000/268435456, I/O @ 0x00006000/64
[  6175.819] (--) PCI: (0:7:0:0) 10de:1292:17aa:380a rev 161, Mem @ 0xb3000000/16777216, 0xa0000000/268435456, 0xb0000000/33554432, I/O @ 0x00004000/128
[  6175.819] Initializing built-in extension Generic Event Extension
[  6175.820] Initializing built-in extension SHAPE
[  6175.821] Initializing built-in extension MIT-SHM
[  6175.822] Initializing built-in extension XInputExtension
[  6175.822] Initializing built-in extension XTEST
[  6175.823] Initializing built-in extension BIG-REQUESTS
[  6175.824] Initializing built-in extension SYNC
[  6175.824] Initializing built-in extension XKEYBOARD
[  6175.825] Initializing built-in extension XC-MISC
[  6175.826] Initializing built-in extension XINERAMA
[  6175.826] Initializing built-in extension XFIXES
[  6175.827] Initializing built-in extension RENDER
[  6175.828] Initializing built-in extension RANDR
[  6175.828] Initializing built-in extension COMPOSITE
[  6175.829] Initializing built-in extension DAMAGE
[  6175.829] Initializing built-in extension MIT-SCREEN-SAVER
[  6175.830] Initializing built-in extension DOUBLE-BUFFER
[  6175.830] Initializing built-in extension RECORD
[  6175.831] Initializing built-in extension DPMS
[  6175.831] Initializing built-in extension Present
[  6175.832] Initializing built-in extension DRI3
[  6175.833] Initializing built-in extension X-Resource
[  6175.833] Initializing built-in extension XVideo
[  6175.834] Initializing built-in extension XVideo-MotionCompensation
[  6175.834] Initializing built-in extension XFree86-VidModeExtension
[  6175.835] Initializing built-in extension XFree86-DGA
[  6175.835] Initializing built-in extension XFree86-DRI
[  6175.836] Initializing built-in extension DRI2
[  6175.836] (II) LoadModule: "glx"
[  6175.836] (II) Loading /usr/lib64/opengl/nvidia/extensions/libglx.so
[  6175.845] (II) Module glx: vendor="NVIDIA Corporation"
[  6175.845]    compiled for 4.0.2, module version = 1.0.0
[  6175.845]    Module class: X.Org Server Extension
[  6175.845] (II) NVIDIA GLX Module  343.36  Mon Dec  1 15:50:02 PST 2014
[  6175.846] Loading extension GLX
[  6175.846] (II) LoadModule: "nvidia"
[  6175.846] (II) Loading /usr/lib64/xorg/modules/drivers/nvidia_drv.so
[  6175.961] (II) Module nvidia: vendor="NVIDIA Corporation"
[  6175.961]    compiled for 4.0.2, module version = 1.0.0
[  6175.961]    Module class: X.Org Video Driver
[  6175.975] (II) NVIDIA dlloader X Driver  343.36  Mon Dec  1 15:28:39 PST 2014
[  6175.975] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[  6175.977] (--) using VT number 7

[  6175.979] (EE) No devices detected.
[  6175.979] (EE)
Fatal server error:
[  6175.979] (EE) no screens found(EE)
[  6175.979] (EE)
Please consult the The X.Org Foundation support
         at http://wiki.x.org
 for help.
[  6175.979] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[  6175.979] (EE)
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


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

PostPosted: Thu Jan 29, 2015 12:10 am    Post subject: Reply with quote

Can you please wgetpaste your dmesg. The blob will not work with KMS enabled.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
mvlabat
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jan 2014
Posts: 82

PostPosted: Thu Jan 29, 2015 12:44 pm    Post subject: Reply with quote

Here is dmesg
http://pastebin.com/2xK5iybz

Quote:
The blob will not work with KMS enabled.

Could you, please, explain? I don't know meaning of "blob" and "KMS"...
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


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

PostPosted: Thu Jan 29, 2015 1:29 pm    Post subject: Reply with quote

KMS - kernel modesetting
Blob - binary nVidia driver

Is this a laptop with Optimus? I see intel in your dmesg.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
mvlabat
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jan 2014
Posts: 82

PostPosted: Thu Jan 29, 2015 5:16 pm    Post subject: Reply with quote

Didn't know about Optimus technology. My laptop is Lenovo 740m. It seems to me it has it
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3806
Location: Austro Bavaria

PostPosted: Thu Jan 29, 2015 6:03 pm    Post subject: Reply with quote

http://wiki.gentoo.org/wiki/NVIDIA_Driver_with_Optimus_Laptops

It seems also that you did not set related configs juding on the posts. it loads novou, cant find nouvoau, it loads vesa, cant find vesa and so on...

Please set video variable as suggested in make.conf and please follow the wiki guide.

Please verify if your hardware supports optimus. Please read related wiki articles about optimus / kernel / x-server.

please pastebin, lshw output, eix nvidia-drivers, eix xorg-server, ...

Code:
emerge eix lshw
Back to top
View user's profile Send private message
mvlabat
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jan 2014
Posts: 82

PostPosted: Fri Jan 30, 2015 1:36 pm    Post subject: Reply with quote

lshw: http://pastebin.com/p3avsNtj
eix: http://pastebin.com/qsFwuqCJ

I've just set VIDEO_CARDS="nvidia intel modesetting" and made deep world update with --newuse.
it had "nvidia" only.

I've created /etc/X11/xorg.conf file:
Code:
Section "ServerLayout"
    Identifier "layout"
    Screen 0 "nvidia"
    Inactive "intel"
EndSection

Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    BusID "PCI:07:00.0"
EndSection

Section "Screen"
    Identifier "nvidia"
    Device "nvidia"
    Option "AllowEmptyInitialConfiguration"
EndSection

Section "Device"
    Identifier "intel"
    Driver "modesetting"
EndSection

Section "Screen"
    Identifier "intel"
    Device "intel"
EndSection


and /home/mvlabat/.xinitrc with
Code:
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto


The same error (as here)... Maybe my BUS ID is wrong. Did I set it rightly? From lspci:
Code:
07:00.0 3D controller: NVIDIA Corporation GK208M [GeForce GT 740M] (rev a1)
Back to top
View user's profile Send private message
mvlabat
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jan 2014
Posts: 82

PostPosted: Fri Jan 30, 2015 2:16 pm    Post subject: Reply with quote

I've also tried to run "X -configure". Failed...
http://pastebin.com/aHZHJKNE
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


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

PostPosted: Fri Jan 30, 2015 6:25 pm    Post subject: Reply with quote

According to man xorg.conf the correct form is as “PCI:1:0:0”.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
mvlabat
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jan 2014
Posts: 82

PostPosted: Sat Jan 31, 2015 1:22 pm    Post subject: Reply with quote

My config: http://pastebin.com/E0h0JL48
My last log: http://pastebin.com/r8X0qHVJ

It still doesn't want to work (
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3806
Location: Austro Bavaria

PostPosted: Sun Feb 01, 2015 12:04 am    Post subject: Reply with quote

is acpid in the boot runlevel?

Code:
rc-update show


I see another problem with your display, ether you have wrong modesettings, mode settings which are impossible or no mode settings at all. or your bios is borked when it is a laptop with build in screen. I assume for some reason the box does not find a suitable resolution / frequency to use at all. Therefore you may set one modeline in xorg.config and ensure acpid is running.

could also be a edid / bios / gpu bios issue. are you using the latest available bios?

you should specify mode lines in your xorg.config or reduce and remove those pci lines, as i am not sure if those causes issues also ... I highly recommned you search for xorg.config regarding "assumpinton" build in intel cpu/gpu + nvidia gpu ...
Back to top
View user's profile Send private message
mvlabat
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jan 2014
Posts: 82

PostPosted: Sun Feb 01, 2015 3:47 pm    Post subject: Reply with quote

Updated my BIOS, added acpid to boot - still the same thing.
Could you please point me in what section do I have to add modeline? By the way, will this line be okay? (Generated by this site.)
Code:
Modeline "1368x768_60.00" 85.86 1368 1440 1584 1800 768 769 772 795 -HSync +Vsync

Removing BusID didn't help too. So returned my xorg.conf to the previous state.
Back to top
View user's profile Send private message
dweezil-n0xad
Apprentice
Apprentice


Joined: 30 Oct 2006
Posts: 156
Location: Ostend, Belgium

PostPosted: Sun Feb 01, 2015 4:13 pm    Post subject: Reply with quote

I would suggest to simply use bumblebee to load the nvidia driver when programs want to use the nvidia card. I have no problems with that on my laptop.
_________________
i7-4790K | 16GB DDR3 | GTX 970 | 500GB SSD
ASUS N56VV | i7-3630QM | 12GB DDR3 | GT 750M | 256GB SSD
Back to top
View user's profile Send private message
mvlabat
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jan 2014
Posts: 82

PostPosted: Sun Feb 01, 2015 7:57 pm    Post subject: Reply with quote

Anyway I would like to use Optimus technology
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


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

PostPosted: Sun Feb 01, 2015 8:03 pm    Post subject: Reply with quote

Alright, can you get it working with Intel only? Did you say you have 4th generation Intel? Do you have "intel i965 ..." in your VIDEO_CARDS variable?
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
mvlabat
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jan 2014
Posts: 82

PostPosted: Sun Feb 01, 2015 8:13 pm    Post subject: Reply with quote

Yes, I can get my intel working, just deleting my xorg.conf file. I don't have "i965" in my VIDEO_CARDS variable.. Doesn't "intel" include both i915 and i965 by itself?
Back to top
View user's profile Send private message
dweezil-n0xad
Apprentice
Apprentice


Joined: 30 Oct 2006
Posts: 156
Location: Ostend, Belgium

PostPosted: Mon Feb 02, 2015 11:14 am    Post subject: Reply with quote

delete xorg.conf

in make.conf:
Code:
VIDEO_CARDS="nvidia intel i965"

emerge --deep --newuse --ask --verbose world
eselect opengl set xorg-x11
emerge bumblebee

add your user to the bumblee group, start bumblebee and add it to the default runlevel:
usermod -a -G bumblebee username
/etc/init.d/bumblebee start
rc-update add bumblebee default


To run a 3D application you need to start it with `optirun <command>`. To run games I use `primusrun <command>`. primus is available in the bumblebee overlay.
_________________
i7-4790K | 16GB DDR3 | GTX 970 | 500GB SSD
ASUS N56VV | i7-3630QM | 12GB DDR3 | GT 750M | 256GB SSD


Last edited by dweezil-n0xad on Mon Feb 02, 2015 1:16 pm; edited 2 times in total
Back to top
View user's profile Send private message
mvlabat
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jan 2014
Posts: 82

PostPosted: Mon Feb 02, 2015 11:33 am    Post subject: Reply with quote

Thank you for your answer. I'll try it if I get absolutely frustrated about Optimus, but not yet. By the way, will your method of running 3D applications work if a game starts from launcher?
Back to top
View user's profile Send private message
dweezil-n0xad
Apprentice
Apprentice


Joined: 30 Oct 2006
Posts: 156
Location: Ostend, Belgium

PostPosted: Mon Feb 02, 2015 1:55 pm    Post subject: Reply with quote

you'll have to edit the launcher and change the execution line to start with primusrun or optirun.
_________________
i7-4790K | 16GB DDR3 | GTX 970 | 500GB SSD
ASUS N56VV | i7-3630QM | 12GB DDR3 | GT 750M | 256GB SSD
Back to top
View user's profile Send private message
mvlabat
Tux's lil' helper
Tux's lil' helper


Joined: 19 Jan 2014
Posts: 82

PostPosted: Tue Feb 03, 2015 10:26 am    Post subject: Reply with quote

The problem is not about Optimus. I can't actually get my nvidia driver working. If I put into my xorg.conf only nvidia device specifying BusID, I get the same result - black screen. So I won't be able to use Bumblebee, becuse the problem lays in configuring nvidia initially.

My xorg.conf:
Code:
Section "ServerLayout"
    Identifier     "Default Layout"
    Screen         "Default Screen" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
EndSection

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

Section "InputDevice"
    # generated from data in "/etc/conf.d/gpm"
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol"
    Option         "Device" "/dev/input/mice"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

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

Section "Screen"
    Identifier     "Default Screen"
    Device         "nvidia"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
        Modes      "nvidia-auto-select"
    EndSubSection
EndSection


My xlog:
http://pastebin.com/LKdJc6DL

I have some lines in it I'm worried about:
Code:
[  1432.244] (--) NVIDIA(0): Valid display device(s) on GeForce GT 740M at PCI:7:0:0
[  1432.244] (--) NVIDIA(0):     none
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


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

PostPosted: Tue Feb 03, 2015 11:09 pm    Post subject: Reply with quote

See this: https://wiki.archlinux.org/index.php/NVIDIA_Optimus

Not sure but I believe you cannot get nVidia working without Intel. In other words, nVidia may need help from Intel to draw on the screen.
_________________
Please learn how to denote units correctly!
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