LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-06-2021, 04:26 PM   #1
ct7567
LQ Newbie
 
Registered: Oct 2020
Distribution: Arch
Posts: 26

Rep: Reputation: Disabled
Question Nvidia driver - xorg.conf | in Debian/kde


Hello. I am going to explain exactly what I've done and what is the problem.
so i used Ubuntu for some years and the reason was that drivers are easy to install in Ubuntu and you don't have to get involved especially for graphics cause i have a dual graphic lap top (Intel UHD & NVIDIA mx150).
so after some years i learned some things in Linux and decided to install Debian instead. My brother had Debian before and i loved it. the stability of it is remarkable.
Anyway i have installed a Debian 11 about 2 days ago and i configured my NVIDIA driver from https://wiki.debian.org/NvidiaGraphicsDrivers. It is the official page for this and i did every thing right and I was able to use the driver. Here i want to mention that if
Code:
lspci -nn | egrep -i "3d|display|vga"
command returns more than one line of output, you have an Optimus (hybrid) graphics chipset. After you install the necessary driver package, you'll still need to choose one of the methods on the NVIDIA Optimus page https://wiki.debian.org/NVIDIA%20Optimus in order to activate and make use of your NVIDIA card.

now here are some of my questions:
1- how can i run my NVIDIA driver with safe-boot on. cause it doesn't work with an On UEFI-safeboot. on the boot logs it sais failed to loan nvidia-persistenced.service. Im 100% sure its becuase of safe-boot cuase i turned it off and it worked.
2-I deleted /etc/X11/xorg.conf file cause i thought the problem in question 1 was because of that file. But now i want to load it again with previous configs. I tried to make the file again with nvidia-xconfig program. It made me the file but the file stoped my sddm and i left off with just a terminal. i deleted the file again and sddm came up again. should i load it again? it seems it doesn't do anything but breaking my system!
here is xorg.conf inside
Code:
# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 460.32.03

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"
    Option         "DPMS"
EndSection

Last edited by ct7567; 08-06-2021 at 04:31 PM.
 
Old 08-06-2021, 10:34 PM   #2
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, OS/2, others
Posts: 6,296
Blog Entries: 1

Rep: Reputation: 2190Reputation: 2190Reputation: 2190Reputation: 2190Reputation: 2190Reputation: 2190Reputation: 2190Reputation: 2190Reputation: 2190Reputation: 2190Reputation: 2190
That xorg.conf file is the smallest created by NVidia installation that I have encountered. I've often wondered why it creates input device sections. What yours contains is generic stuff that mirrors more or less what automagic generates, and so is unnecessary. A video driver should have no reason to care which drivers are used for keyboard or mouse.

One situation where an xorg.conf can be useful is when multiple displays are used simultaneously, and the default arrangement of them is not as desired. However, there are GUI tools for managing this that do not require an xorg.conf file, e.g. arandr.

I have no direct experience with use of Optimus. I suppose an xorg.conf file might be more useful than expected in such configurations, but I suspect it would not be ideal given how advanced automagic and GUI configuration tools have become.

Most users of FOSS drivers have no need of an xorg.conf file. That proprietary NVidia driver installation normally creates one is a bit of an anachronism. If yours can operate without one, be happy about it. Without is what the vast majority of Linux users do.
 
1 members found this post helpful.
Old 08-07-2021, 12:34 PM   #3
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486
Installing the nvidia drivers does not put the conf file in /etc/X11/xorg.conf.d

There is an nvidia.conf file at /usr/share/X11/xorg.conf.d/nvidia.conf that can be used if needed, but I don't use it on my desktop machine which only has an nvidia GPU.

On my laptop I placed it as /etc/X11/xorg.conf.d/nvidia.conf and edited the file to add

Option "Primary" "Yes"

to both parts of the file so the nvidia driver is always the one used. Without that option the IGP is used by default and the nvidia only when specifically told to do so when launching a program from the menu. Using the IGP saves a little bit of power but I don't travel a lot so I am not concerned with battery life. Even with the discrete nvidia card in use I still get ~3 hours battery life in normal usage.
 
1 members found this post helpful.
Old 08-09-2021, 07:22 AM   #4
ct7567
LQ Newbie
 
Registered: Oct 2020
Distribution: Arch
Posts: 26

Original Poster
Rep: Reputation: Disabled
Thumbs up

Quote:
Originally Posted by mrmazda View Post
That xorg.conf file is the smallest created by NVidia installation that I have encountered. I've often wondered why it creates input device sections. What yours contains is generic stuff that mirrors more or less what automagic generates, and so is unnecessary. A video driver should have no reason to care which drivers are used for keyboard or mouse.

One situation where an xorg.conf can be useful is when multiple displays are used simultaneously, and the default arrangement of them is not as desired. However, there are GUI tools for managing this that do not require an xorg.conf file, e.g. arandr.

I have no direct experience with use of Optimus. I suppose an xorg.conf file might be more useful than expected in such configurations, but I suspect it would not be ideal given how advanced automagic and GUI configuration tools have become.

Most users of FOSS drivers have no need of an xorg.conf file. That proprietary NVidia driver installation normally creates one is a bit of an anachronism. If yours can operate without one, be happy about it. Without is what the vast majority of Linux users do.
Actually i reinstalled my Debian & NVIDIA driver and it looks like nvidia doesn't make a xorg.conf in /etc/X11 and doesn't need such a thing.So first one solved but i still have the problem with UEFI secure boot.
 
Old 08-09-2021, 11:48 AM   #5
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486
I do not think you can use secure boot with the nvidia drivers since the kernel is considered 'tainted' by adding an unsigned module (nvidia). Without the nvidia drivers secure boot works.
 
Old 08-11-2021, 11:52 PM   #6
Brains
Senior Member
 
Registered: Apr 2009
Distribution: All OS except Apple
Posts: 1,591

Rep: Reputation: 389Reputation: 389Reputation: 389Reputation: 389
You can sign your nvidia module(s) to use in secure boot mode. Follow section 5 Debian Secure Boot wiki article.
Not sure which module(s) as there are 4 in my Debian Testing @ /lib/modules/5.10.0-8-amd64/updates/dkms/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
xorg.conf-fbdev or xorg.conf-vesa? stf92 Slackware 1 05-14-2014 03:08 AM
Missing xorg.conf file in /etc/X11/xorg.conf Altiris Linux - Newbie 2 08-24-2013 12:46 AM
X starts without xorg.conf, however with aticonfig, resultant xorg.conf hangs linuxbird Linux - Desktop 3 08-23-2012 06:28 AM
My xorg.conf is replaced with a default xorg.conf after reboot rrrssssss Linux - Hardware 9 04-11-2010 05:45 PM
nvidia xorg.conf OR X windows xorg.conf? machines Slackware 3 04-06-2008 03:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration