Welcome!
Important information
-- Spectre and Meltdown vulnerabilities
-- Change in MX sources

News
-- MX Linux on social media: here
-- Mepis support still here

Current releases
-- MX-17.1 Final release info here
-- antiX-17 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

Nvidia driver problems in new install

Message
Author
PPC
Forum Novice
Forum  Novice
Posts: 10
Joined: Tue Sep 11, 2018 8:22 am

Nvidia driver problems in new install

#1 Post by PPC » Tue Sep 11, 2018 8:34 am

Hi, long time antiX user here, brand new MX Linux user!

My situation:
I just installed MX on a "new" (used) desktop. It's my first time installing MX anywhere (some live USB experience). I installed nvidea drivers after finishing my mx installation. I used the provided way to install the drivers (typed nvidea on the menu search bar, and clicked through the install, did not search the alternative driver that the installer questioned me about. Finished the install, restarted.

Problem: I had only low resolution video output 640x480, even during the boot sequence...

What I did then: I googled how to uninstall the driver, did a "sudo ddm-mx -p nvidia", rebooted, and my resolution was ok once again (but using nouveau driver only).

my hardware:
inxi -G
Graphics: Device-1: NVIDIA GF108 [GeForce GT 730] driver: nouveau v: kernel
Display: x11 server: X.Org 1.19.2 driver: nouveau unloaded: fbdev,modesetting,vesa
resolution: 1024x768~60Hz
OpenGL: renderer: Gallium 0.4 on NVC1 v: 4.3 Mesa 13.0.6

Having the correct video driver is not essential (it's my office's PC) but can anyone help solve this problem?

Thanks in advance for any replies!

EDIT: before posting I gave a look at the forum, searching for "nvidia". I read this recent post "Nvidia pain once again", but it didn't seem like the problem I experienced. Now I read some new entries on that post that refer to "xorg.conf".
My "/etc/X11/xorg.conf.in" folder does not have that file, but it does have "xorg.conf.in", assuming the relevant part was the Section "Screen"... It's contents are:
"Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultColorDepth 16

SubSection "Display"
Depth 8
@@MODES@@
EndSubSection
SubSection "Display"
Depth 15
@@MODES@@
EndSubSection
SubSection "Display"
Depth 16
@@MODES@@
EndSubSection
SubSection "Display"
Depth 24
@@MODES@@
EndSubSection
SubSection "Display"
Depth 32
@@MODES@@
EndSubSection

# Only the official NVIDIA driver supports twinview
# these setting are an example
Option "TwinView" "false"
Option "SecondMonitorVendorName" "unknown"
Option "SecondMonitorModelName" "unknown"
Option "SecondMonitorHorizSync" "30-75"
Option "SecondMonitorVertRefresh" "55-70"
#Option "MetaModes" "1024x768, 1024x768"
Option "TwinViewOrientation" "RightOf"
Option "ConnectedMonitor" "dfp,dfp"
EndSection"

I noticed the "#Option "MetaModes" "1024x768, 1024x768" line. Is there any chance that line being commented out was what caused the situation? I don't want to reinstall the nvidea drivers just to test that, it's a bit silly but I'm afraid of ruining my instalation if I just start messing with stuff I don't really understand...

P.
Last edited by PPC on Fri Sep 14, 2018 5:16 am, edited 1 time in total.

User avatar
c4os
Forum Novice
Forum  Novice
Posts: 47
Joined: Tue Jun 19, 2018 12:28 pm

Re: Nvida driver problems in new install

#2 Post by c4os » Fri Sep 14, 2018 3:08 am

Hi PPC,

currently I got no NVIDIA card to test, but your xorg look like a sample file and without NVIDIA driver you don't need it.

What shows xrandr at the console?

xrandr should show something like this:

Code: Select all

$ xrandr
Screen 0: minimum 320 x 200, current 1280 x 800, maximum 8192 x 8192
LVDS1 connected primary 1280x800+0+0 (normal left inverted right x axis y axis) 287mm x 180mm
   1280x800      59.99*+  39.99  
   1024x768      60.00  
   800x600       60.32    56.25  
   640x480       59.94
Or did you try make-xorg-conf? It generates a default xorg.conf.

Code: Select all

$ make-xorg-conf --output=/tmp/xorg.conf nouveau
Or the xorg wrapper:

Code: Select all

$ sudo Xorg -configure
Powered on: MX 17 Horizon x86_64
Hardware: Dell Latitude E4300 - CPU: Intel Core 2 Duo P9600 (2) @ 2.535GHz - Memory: 4GB
Style: Resolution: 1280x800 - WM Theme: Balou - Theme: Blackbird [GTK2/3] - Icons: Papirus-Dark [GTK2]

PPC
Forum Novice
Forum  Novice
Posts: 10
Joined: Tue Sep 11, 2018 8:22 am

Re: Nvida driver problems in new install

#3 Post by PPC » Fri Sep 14, 2018 5:16 am

Thanks for your reply.

xrandr output using nouveau driver:

"Screen 0: minimum 320 x 200, current 1024 x 768, maximum 16384 x 16384
DVI-I-1 disconnected (normal left inverted right x axis y axis)
VGA-1 connected 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
1024x768 60.00*
800x600 60.32 56.25
848x480 60.00
640x480 59.94
HDMI-1 disconnected (normal left inverted right x axis y axis)"

----
I installed the nvidia drivers again and did:
"sudo Xorg -configure". The output was:

"(EE) Server is already active for display 0
If this server is no longer running, remove /tmp/.X0-lock
and start again.
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help."

I also tried "make-xorg-conf --output=/tmp/xorg.conf nouveau" and got no apparent reaction from the terminal.
I tried going to /tmp/xorg.conf and checking xorg.conf:

It's contents were:

"#-----------------------------------------------------------------------------
# xorg.conf file
#
# Generated by make-xorg-conf sometime around sex set 14 09:50:07 WEST 2018
#
# If you want to save customizations, delete the line above or this
# file will get automatically deleted on the next live boot.
#
# Command line parameters: --output=/tmp/xorg.conf nouveau
#-----------------------------------------------------------------------------

Section "Monitor"
Identifier "Monitor0"
Option "DPMS" "true"
EndSection

Section "Device"
Identifier "Device0"
Driver "nouveau"
EndSection

Section "Screen"
Identifier "Screen0"
Monitor "Monitor0"
Device "Device0"
EndSection"


What do you make of all this info? Note: the low resolution problem presisted so I uninstalled the nvidea driver again, I'm back to nouveau...

User avatar
c4os
Forum Novice
Forum  Novice
Posts: 47
Joined: Tue Jun 19, 2018 12:28 pm

Re: Nvida driver problems in new install

#4 Post by c4os » Fri Sep 14, 2018 5:36 am

PPC wrote:
Fri Sep 14, 2018 5:16 am
"Screen 0: minimum 320 x 200, current 1024 x 768, maximum 16384 x 16384
DVI-I-1 disconnected (normal left inverted right x axis y axis)
VGA-1 connected 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
1024x768 60.00*
800x600 60.32 56.25
848x480 60.00
640x480 59.94
HDMI-1 disconnected (normal left inverted right x axis y axis)"
Why you using VGA when you got DVI and HDMI?

Please try this command to test if 1080 is possible:

Code: Select all

$ xrandr --output VGA-1 --panning 1920x1080 --scale-from 1920x1080
Or try this xorg.conf to see if something changes at your Display settings:

Code: Select all

Section "Monitor"
Identifier "Monitor0"
Option "DPMS" "true"
EndSection

Section "Device"
Identifier "Device0"
Driver "nouveau"
EndSection

Section "Screen"
Identifier "Screen0"
Monitor "Monitor0"
Device "Device0"
    SubSection             "Display"
        Depth              24
        Modes              "1920x1080" "1280x1024" "1024x768" "800x600"
    EndSubSection
EndSection
Would be good to know your native screen resolution ...
Powered on: MX 17 Horizon x86_64
Hardware: Dell Latitude E4300 - CPU: Intel Core 2 Duo P9600 (2) @ 2.535GHz - Memory: 4GB
Style: Resolution: 1280x800 - WM Theme: Balou - Theme: Blackbird [GTK2/3] - Icons: Papirus-Dark [GTK2]

PPC
Forum Novice
Forum  Novice
Posts: 10
Joined: Tue Sep 11, 2018 8:22 am

Re: Nvidia driver problems in new install

#5 Post by PPC » Fri Sep 14, 2018 7:15 am

Thanks for the quick reply:
My monitor is a very old Fujitsu Siemens LCD with VGA only, it's maximum resolution is 1024X768 (60Mhz).
My system, using the nouveau driver detects that resolution and automatically uses it. But the nvidia driver only detects 640x480 and 320x240...
Considering this information I believe I should not try using resolutions above 1024x768 or trying other monitor connections, right?
Sorry if I sound a bit thick. I'm a long time linux user, used to the cli, but I'm not much into technical details...

I tried installing nvidia driver and adding the entry

Modes "1024x768" "800x600"

and rebooting. Still stuck in low resolution... so I uninstalled nvidia drivers again...

Once again, thanks for your efforts,
P.
Last edited by PPC on Fri Sep 14, 2018 7:42 am, edited 1 time in total.

User avatar
c4os
Forum Novice
Forum  Novice
Posts: 47
Joined: Tue Jun 19, 2018 12:28 pm

Re: Nvidia driver problems in new install

#6 Post by c4os » Fri Sep 14, 2018 7:25 am

Did you tried:

Code: Select all

$ xrandr --output VGA-1 --panning 1024x768 --scale-from 1024x768
Powered on: MX 17 Horizon x86_64
Hardware: Dell Latitude E4300 - CPU: Intel Core 2 Duo P9600 (2) @ 2.535GHz - Memory: 4GB
Style: Resolution: 1280x800 - WM Theme: Balou - Theme: Blackbird [GTK2/3] - Icons: Papirus-Dark [GTK2]

PPC
Forum Novice
Forum  Novice
Posts: 10
Joined: Tue Sep 11, 2018 8:22 am

Re: Nvidia driver problems in new install

#7 Post by PPC » Fri Sep 14, 2018 8:08 am

Sorry, I didn't. I reinstaled nvidia driver and tried...
It returned a error, so I tried xrandr:

"xrandr" outuput using nvidia driver was

Screen 0: minimum 8 x 8, current 1024 x 768, maximum 16384 x 16384
DVI-I-0 disconnected (normal left inverted right x axis y axis)
VGA-0 connected 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
640x480 59.94*+
320x240 60.05
DVI-I-1 disconnected (normal left inverted right x axis y axis)
HDMI-0 disconnected (normal left inverted right x axis y axis)


so I addapted your advice and tried:
xrandr --output VGA-0 --panning 1024x768 --scale-from 1024x768

I got a almost normal 1024x768 screen, but very, very fuzzy, the letters are almost impossible to read...

nvidia settings came up with this in X server Displuy configurations:
"Selection" = crt-1 (VGA-0)
Configuration= X screen 0
Resolution= Auto (the options still remain 640x480 and 320x240)

Also: I tried to test if using the nvidia driver my system was using it for video decoding... So I fired up Google Chrome (I configured it to force video acceleration, but I didn't want to mess with my main browser, Firefox). I tried a 720 dpi youtube video and it played a bit choopy like it does using nouveau driver (using the cpu do do the decoding). Conky said my cpu was at 100%, so, probably even running with nvidea driver, it's not being fully used by my OS?

Really strange... Another question Is there a way to choose using nouveau without uninstalling the nvidia driver? A way to switch between both drivers? It takes me over 10 minutes every time I install the driver...
Thanks, once again

PPC
Forum Novice
Forum  Novice
Posts: 10
Joined: Tue Sep 11, 2018 8:22 am

Re: Nvidia driver problems in new install

#8 Post by PPC » Fri Sep 14, 2018 2:54 pm

Things got even weirder here...
I tried installing nvidia driver one last time and check if I could mess up with the etc/x11 xorg.conf config file. Something went wrong during the install, I don't know what. It created a xorg.conf file I backed up to my home folder... It seemed to install ok, I rebooted and was presented with no graphical interface. I deleted xorg.conf from the terminal and run the unistall command. Rebooted back to a normal nouveau desktop...
Wait... there's more:
Before leaving for the weekend I noticed that the nvidia control panel was still on my menu, even after I uninstalled the nvidia driver (from the no graphical interface command line). I run the command to uninstall, it refused to run, comming up with a dpkg error (sorry didn't think it was relevant, didn't write it down). It told me to run "sudo dpkg --configure -a" so I did. It installed the nvidia driver. I rebooted and WTF? Full resolution was available from nvidia control panel !?! I turned it on and my nvidia driver was working ok now!

Now how can I replicate this in case of a future install and/or what config files should I back up to do this magic again?

P.

User avatar
fehlix
Forum Guide
Forum Guide
Posts: 1404
Joined: Wed Apr 11, 2018 5:09 pm

Re: Nvidia driver problems in new install

#9 Post by fehlix » Fri Sep 14, 2018 3:01 pm

Would have helped if you would have gone through the procedure described with the manual to install nvida driver.
At least I would have started first this way, before trying alternative routes.
EIDIT: just seen you tried ddm-mx already.

PPC
Forum Novice
Forum  Novice
Posts: 10
Joined: Tue Sep 11, 2018 8:22 am

Re: Nvidia driver problems in new install

#10 Post by PPC » Fri Sep 14, 2018 3:12 pm

I always tried instaling using the nvidia installer from the mx menu. Never tried it in any different way...

another problem: after reboot, I always have to go to nvidia control panel and change my resolution... do you folks think it's safe to click the "save to X config..." button? :confused:

P.
Last edited by PPC on Mon Sep 17, 2018 8:52 am, edited 1 time in total.

Post Reply

Return to “Hardware /Configuration”