Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

[SOLVED] Optimus new nvidia drivers

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
68 posts
  • Previous
  • 1
  • 2
  • 3
  • Next
Author
Message
steveL
Watchman
Watchman
Posts: 5153
Joined: Wed Sep 13, 2006 1:18 pm
Location: The Peanut Gallery

  • Quote

Post by steveL » Tue Jun 04, 2013 9:55 pm

Great guide, GenBlack. Bookmarked for when I upgrade video-cards :-)

Can I ask, would you mind changing use of nano to nano -w as it's important to get newcomers who are wrestling with an install into using safe commands. It means nano won't truncate long lines.
Dr.Willy wrote:Which in turn means until you log in your screen is black.
That's a bit worrying. Is that a temporary issue, or does something need to happen in early init/initrd?

I know Nvidia warn about anything other than default console, which people with wider experience have said doesn't matter, but perhaps it might with newer stuff.
Top
jms.gentoo
Tux's lil' helper
Tux's lil' helper
Posts: 105
Joined: Thu May 07, 2009 5:29 am

  • Quote

Post by jms.gentoo » Thu Jun 06, 2013 3:28 am

dcd94 wrote: Hi got the same kernel as you I found out about my previously error and wrote wrong bus id and now I got the same error as you but I don't have VGA_SWITCHEROO built in
Well removing VGA_SWITCHEROO didn't have any impact (this would have been too easy).
Nevertheless from what I read I would advise removing it when using proprietary drivers.

Well I wonder if the following has anything to do with my problem and maybe yours my dear fellow dcd94.
from end of dmesg

Code: Select all

[   10.479141] vgaarb: this pci device is not a vga device
[   10.792870] vgaarb: this pci device is not a vga device
[   82.715413] vgaarb: this pci device is not a vga device
[   82.767100] vgaarb: this pci device is not a vga device
Indeed would this have anything to do with the fact that I have

Code: Select all

lspci | grep 'VGA\|NVIDIA'
00:02.0 VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller (rev 09)
01:00.0 3D controller: NVIDIA Corporation GF117M [GeForce 610M/710M / GT 620M/625M/630M/720M] (rev a1) 
NVIDIA appear has 3D controller and not something like VGA compatible controller:
?
I read something about a patch for vgaarb to allow it to recognize 3D controller. I don't know if this has been implemented in kernel.

I don't know if this is a good lead or not.

Maybe dcd94 if you can post the result of lspci | grep 'VGA\|NVIDIA' , check if your demsg got something like " vgaarb: this pci device is not a vga device".
Also
If someone with a NVIDIA card showing up as 3D controller in lspci result got it working using proprietary optimus config from NVIDIA I appreciate if you can do a quick post to let me know that this is not an issue.

thanks
Top
andrzejk
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 139
Joined: Sun Jan 08, 2006 1:22 am
Location: Warsaw, Poland
Contact:
Contact andrzejk
Website

  • Quote

Post by andrzejk » Tue Jun 11, 2013 2:26 am

jms.gentoo wrote:
If someone with a NVIDIA card showing up as 3D controller in lspci result got it working using proprietary optimus config from NVIDIA I appreciate if you can do a quick post to let me know that this is not an issue.

thanks
My lspci | grep VGA is looking like this:

Code: Select all

lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
01:00.0 VGA compatible controller: NVIDIA Corporation GF108M [GeForce GT 540M] (rev a1)
and my dmesg | grep vgaarb is looking like this:

Code: Select all

dmesg | grep vgaarb
[   12.218381] vgaarb: device changed decodes: PCI:0000:01:00.0,olddecodes=io+mem,decodes=none:owns=none
[  129.701637] vgaarb: device changed decodes: PCI:0000:01:00.0,olddecodes=none,decodes=none:owns=none

But I run into exactly same issue as you did, xorg is seagfoulting in the very same moment, my Xorg.0.log is looking almost the same as yours one.
Also on amd64 arch. If anyone know how to deal with this please let me know.
Dell XPS Gentoo 3.12.2 GCC 4.8.2 KDE 4.11
Top
Dr.Willy
Guru
Guru
Posts: 547
Joined: Sun Jul 15, 2007 5:13 pm
Location: NRW, Germany

  • Quote

Post by Dr.Willy » Tue Jun 11, 2013 12:12 pm

steveL wrote:
Dr.Willy wrote:Which in turn means until you log in your screen is black.
That's a bit worrying. Is that a temporary issue, or does something need to happen in early init/initrd?
What issue? You just need to run the xrandr commands. Until you do your screen is black.
Top
andrzejk
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 139
Joined: Sun Jan 08, 2006 1:22 am
Location: Warsaw, Poland
Contact:
Contact andrzejk
Website

  • Quote

Post by andrzejk » Tue Jun 11, 2013 3:03 pm

Dr.Willy wrote:What issue? You just need to run the xrandr commands. Until you do your screen is black.
I wrote clearly segfault, after startx, the X server is crushing in the very same moment that jms.gentoo reported earlier.
Dell XPS Gentoo 3.12.2 GCC 4.8.2 KDE 4.11
Top
Dr.Willy
Guru
Guru
Posts: 547
Joined: Sun Jul 15, 2007 5:13 pm
Location: NRW, Germany

  • Quote

Post by Dr.Willy » Tue Jun 11, 2013 3:18 pm

andrzejk wrote:
Dr.Willy wrote:What issue? You just need to run the xrandr commands. Until you do your screen is black.
I wrote clearly segfault, after startx, the X server is crushing in the very same moment that jms.gentoo reported earlier.
What exactly makes you think I was responding to you …?
Top
andrzejk
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 139
Joined: Sun Jan 08, 2006 1:22 am
Location: Warsaw, Poland
Contact:
Contact andrzejk
Website

  • Quote

Post by andrzejk » Tue Jun 11, 2013 4:10 pm

Dr.Willy wrote:What exactly makes you think I was responding to you …?
I wrote "same issue" just above your msg, and you asked What issue? :D :D. My mistake srry.
Dell XPS Gentoo 3.12.2 GCC 4.8.2 KDE 4.11
Top
jms.gentoo
Tux's lil' helper
Tux's lil' helper
Posts: 105
Joined: Thu May 07, 2009 5:29 am

  • Quote

Post by jms.gentoo » Wed Jun 12, 2013 9:13 pm

well I am not sure what could be the cause.
I don't think the 3D controller in showing in lspci has anything to do with that.

andrzejk you have a different nvidia card(GeForce GT 540M vsGT 620M ) than me and a different intel VGA contoller (second generation vs 3 generation).
but we both have the same X segfault
We should have something in common that make X segfault but what?

I think this should have to do with a config option somewhere (kernel?)or a wrong set-up from our part.

laptop is an asus u47vc
I use EFI

Code: Select all

[ebuild   R   ~] x11-base/xorg-server-1.14.1.901:0/1.14.1.901  USE="ipv6 nptl suid udev xorg -dmx -doc -kdrive -minimal (-selinux) -static-libs -tslib -xnest -xvfb" 0 kB
emerge -p @x11-module-rebuild
[ebuild   R   ~] x11-drivers/xf86-input-evdev-2.8.0
[ebuild   R   ~] x11-drivers/xf86-video-intel-2.21.9
[ebuild   R   ~] x11-drivers/xf86-input-synaptics-1.7.1 
[ebuild   R    ] x11-drivers/nvidia-drivers-319.23
[ebuild   R   ~] x11-drivers/xf86-video-modesetting-0.7.0
[ebuild   R   ~] x11-drivers/xf86-video-vesa-2.3.2-r1
/etc/X11/xorg.conf
/root/.xinitrc

/usr/src/linux/.config
emerge --info
I also have

Code: Select all

####ABI_X86
ABI_X86="64 32"
####for  X ##############
VIDEO_CARDS="intel vesa nvidia"
INPUT_DEVICES="evdev"
#INPUT_DEVICES=" evdev keyboard mouse synaptic"
Something to to with VGA?

Code: Select all

 grep VGA /usr/src/linux/.config
CONFIG_VGA_ARB=y
CONFIG_VGA_ARB_MAX_GPUS=6
# CONFIG_VGA_SWITCHEROO is not set
# CONFIG_VGASTATE is not set
# CONFIG_FB_SVGALIB is not set
# CONFIG_FB_VGA16 is not set
CONFIG_VGA_CONSOLE=y
CONFIG_VGACON_SOFT_SCROLLBACK=y
CONFIG_VGACON_SOFT_SCROLLBACK_SIZE=128
# CONFIG_LOGO_LINUX_VGA16 is not set
# CONFIG_USB_SISUSBVGA is not set
with Frambuffer(not using UVESA)?

Code: Select all

CONFIG_FB=y
# CONFIG_FB_DDC is not set
CONFIG_FB_BOOT_VESA_SUPPORT=y
CONFIG_FB_CFB_FILLRECT=y
CONFIG_FB_CFB_COPYAREA=y
CONFIG_FB_CFB_IMAGEBLIT=y
# CONFIG_FB_CFB_REV_PIXELS_IN_BYTE is not set
# CONFIG_FB_SYS_FILLRECT is not set
# CONFIG_FB_SYS_COPYAREA is not set
# CONFIG_FB_SYS_IMAGEBLIT is not set
# CONFIG_FB_FOREIGN_ENDIAN is not set
# CONFIG_FB_SYS_FOPS is not set
# CONFIG_FB_WMT_GE_ROPS is not set
# CONFIG_FB_SVGALIB is not set
# CONFIG_FB_MACMODES is not set
# CONFIG_FB_BACKLIGHT is not set
CONFIG_FB_MODE_HELPERS=y
CONFIG_FB_TILEBLITTING=y
# CONFIG_FB_VGA16 is not set
# CONFIG_FB_UVESA is not set
CONFIG_FB_VESA=y
CONFIG_FB_EFI=y

with EFI (I have CONFIG_FB_EFI)?

Code: Select all

CONFIG_EFI_PARTITION=y
CONFIG_EFI=y
CONFIG_EFI_STUB=y
CONFIG_FB_EFI=y
CONFIG_EFI_VARS=y
Top
andrzejk
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 139
Joined: Sun Jan 08, 2006 1:22 am
Location: Warsaw, Poland
Contact:
Contact andrzejk
Website

  • Quote

Post by andrzejk » Thu Jun 13, 2013 8:04 pm

Mine configuration is looking like this:
Xorg:
xorg.conf

Kernel:
.config

Emerge --info:
emerge --info

If someone with working configuration could paste his kernel config we could then diff it, to find the difference
Dell XPS Gentoo 3.12.2 GCC 4.8.2 KDE 4.11
Top
jms.gentoo
Tux's lil' helper
Tux's lil' helper
Posts: 105
Joined: Thu May 07, 2009 5:29 am

  • Quote

Post by jms.gentoo » Thu Jun 13, 2013 9:20 pm

andrzejk for your xorg you did try theses pci

Code: Select all

Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    BusID "PCI:1:0:0"
#    Option          "UseEDID"               "off"
EndSection

Code: Select all

Section "Device"
    Identifier "intel"
    Driver "modesetting"
    BusID       "PCI:00:02:00"
EndSection
Also are your sure you blacklisted nouveau nv, and other potentialy conflicting modules in your kernel as you have

Code: Select all

 VIDEO_CARDS="fbdev intel i915 i965 vesa nvidia nouveau nv modesetting"
As for me I didn't have modesetting in VIDEO_CARDS will give it a go.

Also andrzejk by the way what the your output of lspci?
Top
andrzejk
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 139
Joined: Sun Jan 08, 2006 1:22 am
Location: Warsaw, Poland
Contact:
Contact andrzejk
Website

  • Quote

Post by andrzejk » Fri Jun 14, 2013 3:12 am

jms.gentoo wrote:andrzejk for your xorg you did try theses pci

Also andrzejk by the way what the your output of lspci?
same result - same seagfoult with "need to create shared pixmap" at the end.

My lscpi:
lspci

Other nvidia drivers are blacklisted.
Dell XPS Gentoo 3.12.2 GCC 4.8.2 KDE 4.11
Top
steveL
Watchman
Watchman
Posts: 5153
Joined: Wed Sep 13, 2006 1:18 pm
Location: The Peanut Gallery

  • Quote

Post by steveL » Fri Jun 14, 2013 1:31 pm

Dr.Willy wrote:What issue? You just need to run the xrandr commands. Until you do your screen is black.
So your screen is black from startup til you run a command?

That issue, you numpty ;)
Top
joeklow
n00b
n00b
User avatar
Posts: 46
Joined: Sun Jan 23, 2011 11:58 am

  • Quote

Post by joeklow » Sun Jul 07, 2013 2:31 pm

Much to my disappointment, randr support thus multi-monitor support is awful in these drivers.

Running 3.9.1 kernel, 319.23 drivers, after selecting nvidia via .xinitrc, I can't switch back to intel:

Code: Select all

>> xrandr --listproviders
Providers: number : 2
Provider 0: id: 0x2b0 cap: 0x1, Source Output crtcs: 0 outputs: 0 associated providers: 1 name:NVIDIA-0
Provider 1: id: 0x45 cap: 0x2, Sink Output crtcs: 2 outputs: 4 associated providers: 1 name:modesetting

Code: Select all

>> xrandr --setprovideroutputsource modesetting modesetting
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  139 (RANDR)
  Minor opcode of failed request:  35 ()
  Value in failed request:  0x45
  Serial number of failed request:  16
  Current serial number in output stream:  17

Also, I can't enable external display. The following worked flawlessly with Intel, but doesn't work now:

Code: Select all

xrandr --output VGA-0 --right-of LVDS-0 --mode 1360x768 
TwinView is greyed in nvidia-settings (which attempts to generate a weird pre-optimus aged xorg.conf for static setups), so I have no options to connect the display, and I *suspect* that it still would require to restart X server to change display config with NVIDIA graphics -- so bad for the laptop mode.
Commit code back to ALSA, save your latency and CPU: rm /usr/bin/pulseaudio;touch /usr/bin/pulseaudio;chattr +i /usr/bin/pulseaudio
Top
legacy
Tux's lil' helper
Tux's lil' helper
Posts: 144
Joined: Mon Sep 10, 2012 10:29 am

  • Quote

Post by legacy » Mon Jul 15, 2013 10:43 pm

hi
also in my mac mini (linux3.8.13) i see this

# lspci

Code: Select all

00:00.0 Host bridge: NVIDIA Corporation MCP79 Host Bridge (rev b1)
00:00.1 RAM memory: NVIDIA Corporation MCP79 Memory Controller (rev b1)
00:03.0 ISA bridge: NVIDIA Corporation MCP79 LPC Bridge (rev b2)
00:03.1 RAM memory: NVIDIA Corporation MCP79 Memory Controller (rev b1)
00:03.2 SMBus: NVIDIA Corporation MCP79 SMBus (rev b1)
00:03.3 RAM memory: NVIDIA Corporation MCP79 Memory Controller (rev b1)
00:03.4 RAM memory: NVIDIA Corporation MCP79 Memory Controller (rev b1)
00:03.5 Co-processor: NVIDIA Corporation MCP79 Co-processor (rev b1)
00:04.0 USB controller: NVIDIA Corporation MCP79 OHCI USB 1.1 Controller (rev b1)
00:04.1 USB controller: NVIDIA Corporation MCP79 EHCI USB 2.0 Controller (rev b1)
00:06.0 USB controller: NVIDIA Corporation MCP79 OHCI USB 1.1 Controller (rev b1)
00:06.1 USB controller: NVIDIA Corporation MCP79 EHCI USB 2.0 Controller (rev b1)
00:08.0 Audio device: NVIDIA Corporation MCP79 High Definition Audio (rev b1)
00:09.0 PCI bridge: NVIDIA Corporation MCP79 PCI Bridge (rev b1)
00:0a.0 Ethernet controller: NVIDIA Corporation MCP79 Ethernet (rev b1)
00:0b.0 IDE interface: NVIDIA Corporation MCP79 SATA Controller (rev b1)
00:10.0 PCI bridge: NVIDIA Corporation MCP79 PCI Express Bridge (rev b1)
00:15.0 PCI bridge: NVIDIA Corporation MCP79 PCI Express Bridge (rev b1)
00:16.0 PCI bridge: NVIDIA Corporation MCP79 PCI Express Bridge (rev b1)
02:00.0 VGA compatible controller: NVIDIA Corporation C79 [GeForce 9400] (rev b1)
03:00.0 Network controller: Broadcom Corporation BCM4321 802.11a/b/g/n (rev 05)
04:00.0 FireWire (IEEE 1394): LSI Corporation FW643 [TrueFire] PCIe 1394b Controller (rev 07)
# lspci | grep VGA

Code: Select all

02:00.0 VGA compatible controller: NVIDIA Corporation C79 [GeForce 9400] (rev b1)
Top
Mac Tzu
n00b
n00b
User avatar
Posts: 44
Joined: Sun May 13, 2007 2:09 pm
Location: Melbourne, Australia

  • Quote

Post by Mac Tzu » Thu Aug 01, 2013 11:48 am

Hey Guys,

I need a quick hand trying to get this working.
I am running macbook pro retina with GT 650M

this is my xorg log

Code: Select all

        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    10.237] Initializing built-in extension MIT-SCREEN-SAVER
[    10.383] (EE) Screen 1 deleted because of no matching config section.
[    10.850] (EE) NVIDIA(0): Failed to assign any connected display devices to X screen 0
[    10.868] (EE) NVIDIA(0): Failing initialization of X screen 0
[    10.902] (EE) Screen(s) found, but none have a usable configuration.
[    10.902] (EE) 
[    10.902] (EE) no screens found(EE) 
[    10.902] (EE) 
[    10.902] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[    10.902] (EE) 
[    10.918] (EE) Server terminated with error (1). Closing log file.
This is the xorg.conf I used

Code: Select all

   Section "ServerLayout" 
     Identifier "layout" 
     Screen 0 "nvidia" 
     Inactive "intel" 

 EndSection 
 
 Section "Device" 
     Identifier "nvidia" 
     Driver "nvidia" 
     BusID "PCI:1:0:0" 
 EndSection 
 
 Section "Screen" 
     Identifier "nvidia" 
     Device "nvidia" 
     # Uncomment this line if your computer has no display devices connected to 
     # the NVIDIA GPU.  Leave it commented if you have display devices 
     # connected to the NVIDIA GPU that you would like to use. 
     #Option "UseDisplayDevice" "none"                                                                                                          
 EndSection                                                                                                                                     
                                                                                                                                                
 Section "Device"                                                                                                                               
     Identifier "intel"                                                                                                                         
     Driver "modesetting"                                                                                                                       
#     BusID "PCI:0:2:0"                                                                                                                         
 EndSection                                                                                                                                     
                                                                                                                                                
 Section "Screen"                                                                                                                               
     Identifier "intel"                                                                                                                         
     Device "intel"                                                                                                                             
 EndSection 
Top
Holysword
l33t
l33t
User avatar
Posts: 946
Joined: Sun Nov 19, 2006 10:03 pm
Location: Greece

  • Quote

Post by Holysword » Fri Aug 30, 2013 5:47 am

jms.gentoo wrote: If someone with a NVIDIA card showing up as 3D controller in lspci result got it working using proprietary optimus config from NVIDIA I appreciate if you can do a quick post to let me know that this is not an issue.

thanks
Here:

Code: Select all

jarvis holysword # lspci | grep 'VGA\|NVIDIA'                                                                                              
00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)
01:00.0 3D controller: NVIDIA Corporation GK208M [GeForce GT 740M] (rev a1)
jarvis holysword #             
Just got it working (even though you already know its not particular to the 3D controller thing).

Do you have this

Code: Select all

Device Drivers ---> 
  <*> /dev/agpgart (AGP Support) ---> 
    <*>  Intel 440LX/BX/GX, I8xx and E7x05 chipset support 
  <*> Intel 8xx/9xx/G3x/G4x/HD Graphics 
  [*]   Enable modesetting on intel by default 
in your kernel?
"Nolite arbitrari quia venerim mittere pacem in terram non veni pacem mittere sed gladium" (Yeshua Ha Mashiach)
Top
Witos
n00b
n00b
Posts: 12
Joined: Wed May 02, 2012 1:01 pm

  • Quote

Post by Witos » Wed Oct 02, 2013 8:54 am

andrzejk
jms.gentoo

Did you figure out how to get rid of segfault? I have exactly the same with the GF650M.
Top
Witos
n00b
n00b
Posts: 12
Joined: Wed May 02, 2012 1:01 pm

  • Quote

Post by Witos » Wed Oct 09, 2013 7:47 pm

I've managed to solve crash on my gentoo:
X: 1.14.3
kernel: 3.10.7-gentoo
xrandr: 1.4.1
nvidia-drivers: 331.13
xf86-video-modesetting: 0.8.0

Code: Select all

Section "ServerLayout" 
    Identifier "layout" 
    Screen 0 "nvidia" 
    Inactive "intel" 
EndSection 

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

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

Section "Device" 
    Identifier "intel" 
    Driver "modesetting"
    BusID "PCI:0:2:0"
EndSection 

Section "Screen" 
    Identifier "intel" 
    Device "intel" 
EndSection 
and ~/.xinitrc

Code: Select all

xrandr --setprovideroutputsource 0x46 0x2b4
xrandr --output LVDS-0 --off
xrandr --auto
exec startxfce4
Starting X using startx, not /etc/init.d/xdm[/code]
Top
joeklow
n00b
n00b
User avatar
Posts: 46
Joined: Sun Jan 23, 2011 11:58 am

  • Quote

Post by joeklow » Thu Oct 10, 2013 2:03 am

Black screen returned with =nvidia-drivers-331.13.

xorg.conf:

Code: Select all

Section "ServerLayout"
    Identifier "layout"
    Screen  0 "nvidia"
    Inactive "intel"
EndSection

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

Section "Screen"
    Identifier "nvidia"
    Device "nvidia"
    Option "UseDisplayDevice" "none"
    Option      "TwinView"  "on"
EndSection

Section "Device"
    Identifier "intel"
    Driver "modesetting"
    BusID "PCI:0:2:0"
EndSection

Section "Screen"
    Identifier "intel"
    Device "intel"
EndSection
.xinitrc

Code: Select all

...
xrandr --setprovideroutputsource modesetting NVIDIA-0
...
The configuration above worked for ~325.08.

X: 1.14.3-r1
libXext: 1.3.2
Commit code back to ALSA, save your latency and CPU: rm /usr/bin/pulseaudio;touch /usr/bin/pulseaudio;chattr +i /usr/bin/pulseaudio
Top
Witos
n00b
n00b
Posts: 12
Joined: Wed May 02, 2012 1:01 pm

  • Quote

Post by Witos » Thu Oct 10, 2013 8:56 am

joeklow

Try replacing Option "UseDisplayDevice" "none" with Option "AllowEmptyInitialConfiguration"
Top
joeklow
n00b
n00b
User avatar
Posts: 46
Joined: Sun Jan 23, 2011 11:58 am

  • Quote

Post by joeklow » Thu Oct 10, 2013 9:54 pm

Witos wrote:joeklow

Try replacing Option "UseDisplayDevice" "none" with Option "AllowEmptyInitialConfiguration"
Black screen.

Code: Select all

Section "Module"
    Load "fb"
    Load    "extmod"
    SubSection  "extmod"
       Option    "omit xfree86-dga"
    EndSubSection
    Load    "i2c"
    Load    "ddc"
    Load    "vbe"
    Load    "dri"
    Load    "glx"
    Load    "dbe"
    Load    "bitmap"
    Load    "freetype"
    Load    "synaptics"
    Load    "record"
EndSection


Section "ServerLayout"
    Identifier "layout"
    Screen  0 "nvidia"
    Inactive "intel"
EndSection

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

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

Section "Device"
    Identifier "intel"
    Driver "modesetting"
    BusID "PCI:0:2:0"
EndSection

Section "Screen"
    Identifier "intel"
    Device "intel"
EndSection 
Any suggestions?

(it's laptop, video @ LVDS-0)
Commit code back to ALSA, save your latency and CPU: rm /usr/bin/pulseaudio;touch /usr/bin/pulseaudio;chattr +i /usr/bin/pulseaudio
Top
Witos
n00b
n00b
Posts: 12
Joined: Wed May 02, 2012 1:01 pm

  • Quote

Post by Witos » Fri Oct 11, 2013 9:00 am

joeklow

Try in your .xinitrc:

xrandr --setprovideroutputsource 0x45 0x2b0
xrandr --output LVDS-0 --off
xrandr --auto
exec startxfce4 (or other desktop environment)
Top
joeklow
n00b
n00b
User avatar
Posts: 46
Joined: Sun Jan 23, 2011 11:58 am

  • Quote

Post by joeklow » Sat Oct 12, 2013 8:56 pm

Witos wrote:joeklow

Try in your .xinitrc:

xrandr --setprovideroutputsource 0x45 0x2b0
xrandr --output LVDS-0 --off
xrandr --auto
exec startxfce4 (or other desktop environment)
no effect (blackscreen).
Commit code back to ALSA, save your latency and CPU: rm /usr/bin/pulseaudio;touch /usr/bin/pulseaudio;chattr +i /usr/bin/pulseaudio
Top
Witos
n00b
n00b
Posts: 12
Joined: Wed May 02, 2012 1:01 pm

  • Quote

Post by Witos » Sun Oct 13, 2013 9:48 pm

Joeklow, please post your /var/log/X.0.log of your startx with NVIDIA enabled,maybe I'll figure out sth
Top
joeklow
n00b
n00b
User avatar
Posts: 46
Joined: Sun Jan 23, 2011 11:58 am

  • Quote

Post by joeklow » Tue Oct 15, 2013 2:51 pm

Witos wrote:Joeklow, please post your /var/log/X.0.log of your startx with NVIDIA enabled,maybe I'll figure out sth
Thanks, but I got it already solved.. took few emerge -uDn's, I guess.
nvidia-drivers-331.13,

xorg.conf - note, no modules section here!
Section "ServerLayout"
Identifier "layout"
Screen 0 "nvidia"
Inactive "intel"
EndSection

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

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

Section "Device"
Identifier "intel"
Driver "modesetting"
BusID "PCI:0:2:0"
EndSection

Section "Screen"
Identifier "intel"
Device "intel"
EndSection
.xinitrc:

Code: Select all

...
        xrandr --setprovideroutputsource modesetting NVIDIA-0
        xrandr --setprovideroutputsource 0x45 0x2b0
        xrandr --output LVDS-0 --on
        xrandr --auto
...
Commit code back to ALSA, save your latency and CPU: rm /usr/bin/pulseaudio;touch /usr/bin/pulseaudio;chattr +i /usr/bin/pulseaudio
Top
Post Reply

68 posts
  • Previous
  • 1
  • 2
  • 3
  • Next

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic