View previous topic :: View next topic |
Author |
Message |
Princess Nell l33t
Joined: 15 Apr 2005 Posts: 914
|
Posted: Sun Sep 18, 2016 9:19 am Post subject: What's up with xorg-server 1.18 and Optimus? |
|
|
I was expecting the upgrade from 1.17 to 1.18 to "just work", but alas, no.
Code: |
[ 25.038] (II) Module "ramdac" already built-in
[ 25.040] (II) modeset(1): using drv /dev/dri/card0
[ 25.040] (EE) Screen 1 deleted because of no matching config section.
[ 25.040] (II) UnloadModule: "modesetting"
|
Based on this I changed Screen 0 to Screen 1 in xorg.conf,
Code: |
Section "ServerLayout"
Identifier "layout"
Screen 1 "nvidia"
Inactive "intel"
EndSection
|
and it started working again, but I don't really understand why.
nvidia driver version 361.28. |
|
Back to top |
|
|
Xywa Veteran
Joined: 23 Jul 2005 Posts: 1631 Location: /mnt/Gentoo/Europe
|
Posted: Sun Sep 18, 2016 10:01 am Post subject: |
|
|
I was trying everything from 1.18.0 to 1.18.4 - anything doesn't work with my optimus.
The last xorg-server compatible with my Nvidia Optimus is 1.17.4. With this one Optimus works (no infamous black screen) with any Nvidia driver (I use 370.2. Movies, games works smoothly, anything => 1.18 I could not run in any way. |
|
Back to top |
|
|
Princess Nell l33t
Joined: 15 Apr 2005 Posts: 914
|
Posted: Sun Sep 18, 2016 9:38 pm Post subject: |
|
|
Have you modified xorg.conf recently? The wiki has been updated. Check out the NVIDIA/Optimus section. The xorg.conf example under "xorg server 1.17.2 or higher" is nearly all you need. The nvidia Screen section from the NVIDIA/Optimus/xorg.conf link example just above makes it complete.
I've ditched everything else, including the ServerLayout section. |
|
Back to top |
|
|
cyberjun Apprentice
Joined: 06 Nov 2005 Posts: 293
|
|
Back to top |
|
|
Fitzcarraldo Advocate
Joined: 30 Aug 2008 Posts: 2034 Location: United Kingdom
|
Posted: Sat Sep 24, 2016 8:38 pm Post subject: |
|
|
Thanks for the 'heads up', Princess Nell. I upgraded from xorg-server-1.17.4 to xorg-server-1.18.4 today and your post saved me a lot of grief. _________________ Clevo W230SS: amd64, VIDEO_CARDS="intel modesetting nvidia".
Compal NBLB2: ~amd64, xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC udev elogind & KDE on both.
Fitzcarraldo's blog |
|
Back to top |
|
|
Princess Nell l33t
Joined: 15 Apr 2005 Posts: 914
|
Posted: Sun Sep 25, 2016 10:05 pm Post subject: |
|
|
You are very welcome, Sir! |
|
Back to top |
|
|
Xywa Veteran
Joined: 23 Jul 2005 Posts: 1631 Location: /mnt/Gentoo/Europe
|
Posted: Tue Sep 27, 2016 8:27 pm Post subject: |
|
|
So what should I do with my xorg file to get over 17.4?
Code: | Section "Module"
Load "modesetting"
EndSection
Section "Device"
Option "ConstrainCursor" "no"
Identifier "nvidia"
Driver "nvidia"
BusID "PCI:1:0:0"
Option "AllowEmptyInitialConfiguration"
Option "ConnectedMonitor" "CRT-0"
Option "CustomEDID" "CRT-0:/lib/firmware/edid/MyLaptop.bin"
Option "UseEDID" "True"
EndSection
|
|
|
Back to top |
|
|
Princess Nell l33t
Joined: 15 Apr 2005 Posts: 914
|
Posted: Tue Sep 27, 2016 11:09 pm Post subject: |
|
|
Here's mine:
Code: |
/etc/X11 $ egrep -v '^(#|$)' xorg.conf
/etc/X11 $ ll xorg.conf.d
total 12
-rw-r--r-- 1 root root 246 Sep 18 22:18 20nvidia.conf
-rw-r--r-- 1 root root 104 Sep 17 21:53 20opengl.conf
-rw-r--r-- 1 root root 193 Sep 18 22:25 30screen.conf
/etc/X11 $ cat xorg.conf.d/20nvidia.conf
Section "Module"
Load "modesetting"
EndSection
Section "Device"
Identifier "nvidia"
Driver "nvidia"
BusID "PCI:1:0:0"
Option "RegistryDwords" "EnableBrightnessControl=1"
# Option "AllowGLXWithComposite" "true"
EndSection
/etc/X11 $ cat xorg.conf.d/30screen.conf
Section "Screen"
Identifier "nvidia"
Device "nvidia"
Option "AllowEmptyInitialConfiguration"
# Option "UseDisplayDevice" "none"
# Option "AddARGBGLXVisuals" "true"
EndSection
/etc/X11 $
|
The remaining file wasn't put there by me, judging by the time stamp it was created when installing/updating the nvidia driver. |
|
Back to top |
|
|
Xywa Veteran
Joined: 23 Jul 2005 Posts: 1631 Location: /mnt/Gentoo/Europe
|
Posted: Wed Sep 28, 2016 5:47 am Post subject: |
|
|
So yours looks the same like mine, so what is the reason my xorg-server > 17.4 dosen't work? |
|
Back to top |
|
|
Princess Nell l33t
Joined: 15 Apr 2005 Posts: 914
|
Posted: Wed Sep 28, 2016 10:21 pm Post subject: |
|
|
I'm still on 361.28. |
|
Back to top |
|
|
catellan n00b
Joined: 03 Oct 2016 Posts: 1
|
Posted: Mon Oct 03, 2016 12:55 pm Post subject: |
|
|
I had the same issue
Just upgraded from
x11-base/xorg-server-1.17.4 >>> x11-base/xorg-server-1.18.4
and go a wonderful black screen, both while starting lightdm or xfce directly.
xorg.log reported:
Code: |
(EE) modeset(G0): failed to set mode: No space left on device
|
i searched a lot and finally I found this bug report:
https://bugs.freedesktop.org/show_bug.cgi?id=94577#c5
and in comment 5-6, i read about a conflict with glamor, and the possible workaround.
I rebuilt xorg-server with glamor useflag and everything worked
packegs
Code: |
x11-base/xorg-server-1.18.4 ((glamor ipv6 suid udev xorg)
x11-drivers/nvidia-drivers-361.28 (X acpi driver gtk3 kms multilib tools uvm)
x11-apps/xrandr-1.5.0
|
xorg.conf
Code: |
Section "Module"
Load "modesetting"
EndSection
Section "Device"
Identifier "nvidia"
Driver "nvidia"
BusID "PCI:01:0:0"
EndSection
Section "Screen"
Identifier "nvidia"
Device "nvidia"
#Option "AllowEmptyInitialConfiguration"
Option "UseDisplayDevice" "none" #optional
Option "AllowEmptyInitialConfiguration"
EndSection
|
|
|
Back to top |
|
|
Xywa Veteran
Joined: 23 Jul 2005 Posts: 1631 Location: /mnt/Gentoo/Europe
|
Posted: Mon Oct 03, 2016 5:08 pm Post subject: |
|
|
I could confirm, USE glamor just for x11-base/xorg-server fiixed the black screen issue (I globally switched off glamor).
Code: | # cat /etc/portage/package.use/optimus
x11-base/xorg-server glamor |
After long, long time xorg-server > 17.4 works with my Optimus
Many THANKS catellan!!
BTW: Do you think glamor USE flag on xorg-server will decrease performance? |
|
Back to top |
|
|
Xywa Veteran
Joined: 23 Jul 2005 Posts: 1631 Location: /mnt/Gentoo/Europe
|
Posted: Tue Oct 04, 2016 5:34 am Post subject: |
|
|
There are few issues I found, but I am not sure they are related to xorg-server with glamor flag (as Nvidia advise is to do not use it) or to one related package bellow:
Code: | $ cat /etc/portage/package.mask/optimus
>x11-base/xorg-drivers-1.17
>x11-base/xorg-server-1.17.4
>x11-drivers/xf86-video-intel-2.99.917-r2
>x11-drivers/xf86-input-evdev-2.9.1 |
[1] In steam games, this updated fixed not working keys (few of them) in Starbound, but suddenly in Star Conflict, few basic keys do not work any more, and mouse scrolling is much slower than used to be, which makes this game unplayable for me. Going back to above set (17.4) and Star Conflict works fine, problem in Starbound with few keys again.
[2] Changing [Rendering Backend] in KDE Settings from OpenGL 3.1 into XRender for new xorg-server makes desktop unstable with strange effects every 10-20 seconds. In 17.4 everything was fine. As for the 3D demanding games switching into XRender for the desktop is as advise (few fps more), at the moment I switch back to 17.4 server, and will wait for xorg-server developers, to find an explanation why Optimus has a black screen when xorg-server is compiled with glamor flag. |
|
Back to top |
|
|
mrbassie l33t
Joined: 31 May 2013 Posts: 770 Location: over here
|
Posted: Wed Oct 05, 2016 11:09 am Post subject: |
|
|
Xywa wrote: | will wait for xorg-server developers, to find an explanation why Optimus has a black screen when xorg-server is compiled with glamor flag. |
I have an optimus laptop and I have not experienced that (I use plasma 5.6.5). The only glitch I have seen since updating to xorg-server-1.18.4 is some flickering in the search field in firefox when the dialogue drops down.
Code: | Installed versions: 1.18.4(11:24:17 28/09/16)(glamor udev xorg -dmx -doc -ipv6 -kdrive -libressl -minimal -selinux -static-libs -suid -systemd -tslib -unwind -wayland -xephyr -xnest -xvfb) |
|
|
Back to top |
|
|
virtguru Tux's lil' helper
Joined: 14 Aug 2010 Posts: 148 Location: The Greatest Country in the World
|
Posted: Wed Oct 05, 2016 11:50 am Post subject: |
|
|
mrbassie wrote: | Xywa wrote: | will wait for xorg-server developers, to find an explanation why Optimus has a black screen when xorg-server is compiled with glamor flag. |
I have an optimus laptop and I have not experienced that (I use plasma 5.6.5). The only glitch I have seen since updating to xorg-server-1.18.4 is some flickering in the search field in firefox when the dialogue drops down.
Code: | Installed versions: 1.18.4(11:24:17 28/09/16)(glamor udev xorg -dmx -doc -ipv6 -kdrive -libressl -minimal -selinux -static-libs -suid -systemd -tslib -unwind -wayland -xephyr -xnest -xvfb) |
|
Whats your rendering backend set to in plasma compositor and what opengl you using on the system ? |
|
Back to top |
|
|
mrbassie l33t
Joined: 31 May 2013 Posts: 770 Location: over here
|
Posted: Wed Oct 05, 2016 12:13 pm Post subject: |
|
|
opengl 3.1 and xorg-x11 respectively.
EDIT: All permutations of the above work for me, recompiling xorg-server without glamor flag causes some aliasing with e.g the cpu load monitor widget. No black screen or similar. |
|
Back to top |
|
|
mrbassie l33t
Joined: 31 May 2013 Posts: 770 Location: over here
|
Posted: Fri Oct 07, 2016 7:37 am Post subject: |
|
|
After reading this I remembered something: https://forums.gentoo.org/viewtopic-t-1052224.html
This is in mt xorg.conf Code: | Section "Monitor"
Identifier "eDP-1"
Modeline "1368x768_60.00" 85.25 1368 1440 1576 1784 768 771 781 798 -hsync +vsync
Option "PreferredMode" "1368x768" |
1.18.4 decided that my screen is named eDP-1 whereas previously it was eDP-0. |
|
Back to top |
|
|
|