Hi.

On Sat, 02 Nov 2019 21:40:04 -0400 "D. Hugh Redelmeier" wrote:
> | I bought a used notebook which came with an Nvidia GPU and I haven't 
> | managed to get it to work with Fedora.

> Sorry, that was a bad summary.  I have not been able to get it to work
> WELL with Fedora.  I'm still hopeful.

> - it hangs with the nouveau driver.  (Which it tries to use unless you 
>   suppress it with a kernel parameter.)

> - it hangs the way I set it up with the negativo17 repo's packaging of the 
>   proprietary nvidia driver.

> - both hangs are so hard that they destroys the evidence of why the system 
>   hung.

We have some XPS's and I managed to make them usable (only the suspend
is unreliable) by:

   - using the nvidia driver from rpmfusion

   - Offloading Graphics Display with RandR 1.4
     Ref: /usr/share/doc/xorg-x11-drv-nvidia/README.txt
          
   - using lightdm

   - customizing 3 files (the name nvidia-optimus is ... historical):

    /etc/X11/xorg.conf
    /etc/lightdm/lightdm.conf.d/nvidia-optimus.conf
    /etc/lightdm/nvidia-optimus-setup

Here are the templates I use for those files:

------------------------------ /etc/X11/xorg.conf --------------------
# $Id: xorg.conf,v 1.6 2014/09/29 06:42:12 root Exp $

# Install as: /etc/X11/xorg.conf
#   Adjust the BusID if needed (cf lspci)

# Cf: /usr/share/doc/xorg-x11-drv-nvidia/README.txt
#  Chapter 33. Offloading Graphics Display with RandR 1.4

# lspci|grep 3D
# 02:00.0 3D controller: NVIDIA Corporation GK107GLM [Quadro K1100M] (rev a1)
# # root@nsjura 2014-09-25 09:06:10 /
#   => PCI:2:0:0

Section "ServerFlags"
    Option "DontVTSwitch" "off"
EndSection

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

Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    BusID "PCI:2:0: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

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

---------------- /etc/lightdm/lightdm.conf.d/nvidia-optimus.conf -----
# $Id: nvidia-optimus.conf,v 1.3 2014/09/29 06:40:18 root Exp $

# Install as: /etc/lightdm/lightdm.conf.d/nvidia-optimus.conf

[SeatDefaults]
display-setup-script=/etc/lightdm/nvidia-optimus-setup

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

---------------- /etc/lightdm/nvidia-optimus-setup -------------------
#!/bin/bash -p

# $Id: nvidia-optimus-setup,v 1.5 2015/08/05 15:40:18 fm Exp $

# Install as:         /etc/lightdm/nvidia-optimus-setup
# Make it executable: chmod a+x /etc/lightdm/nvidia-optimus-setup
# Adjust the dpi below

xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto

# Specific Dell Precision M3800
#   3200x1800 pixels 
#   Image Size:  346 x 194 mm
xrandr --dpi 234

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

-- 
francis
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org

Reply via email to