Hi
I’ve been struggling with nvidia driver for a long time. Because after upgrading kernel, it crashes and I didn’t know how to fix it.
Recently, I’ve bought a new graphic card, Asus Poseidon Nvidia 980Ti. It’s connected to my monitor using a DVI-I cable. I tried HDMI, but its resolution doesn’t go above 1024x768.
I have some problems with it. My home folder is encrypted, so during boot it asks me to enter the password for LUKS, but I can’t see anything on the screen. I know when it requires to enter password, so I try to type blindly. After that, the gdm appears. I enter my password and when it logs in, the screen crashes. I see something like when are watching a dvd movie and the dvd has scratches,so how the movie will be shown, my screen is same as that.
At first, please guide me what should I do to be able to see the console, so I could enter password during boot. And then crashing the screen is related to driver? and how I can install Nvidia driver and it works properly after upgrading kernel?
It is not recommended to use the ‘1-Click Install’ from the openSUSE community page as this requires to know which GPU is used. Instead,
add the NVIDIA repos in YaST (YaST->Software->Software Repositories->Add->Community Repositories->NVIDIA Graphics Drivers)
run an online update (or zypper inr
in a shell as root). (things are more complicated on openSUSE Leap 42.1, see below) > 1. After installation is done restart computer.
The packages contain the correct ‘supplements:’ so Zypper will find the correct modules for your card. Unfortunately on openSUSE Leap 42.1 these ‘supplemements’ are being ignored by default by YaST (boo#953522). Therefore you need to select ‘Extras/Install All Matching Recommended Packages’ in ‘Software Management’ for autoselection and installation of the appropriate NVIDIA driver packages. When using ‘zypper inr’ you’re not affected by this issue on openSUSE Leap 42.1.
Only if you plan to replace your card with a more recent one you should uninstall the driver before upgrading your hardware and run zypper inr once it is installed.
But I there’s no resolution more than 1024x768. Either in KDE Display settings, or in Nvidia settings.
I tried these commands :
$ cvt 1920 1080 60
# 1920x1080 59.96 Hz (CVT 2.07M9) hsync: 67.16 kHz; pclk: 173.00 MHz
Modeline "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
$ xrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync
$ xrandr --addmode DVI-I-1 "1920x1080_60.00"
**X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 140 (RANDR)
Minor opcode of failed request: 18 (RRAddOutputMode)
Serial number of failed request: 45
Current serial number in output stream: 46**
Contents of /var/log/Xorg.0.log file, while I executing xrandr commands :
Note it is possible that the nvidia drive failed and a fall back driver is still being used which would explain things also. But nvidia-settings should tell you
I mentioned to something new. New mode added to some other output instead of what I mentioned
$ xrandr --addmode **HDMI-0** 1920x1080_60.00
X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 140 (RANDR)
Minor opcode of failed request: 18 (RRAddOutputMode)
Serial number of failed request: 45
Current serial number in output stream: 46
$ xrandr -q
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)
DVI-I-1 disconnected (normal left inverted right x axis y axis)
HDMI-0 connected primary 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
1024x768 60.0*+
800x600 72.2 60.3 56.2
640x480 59.9
512x384 60.0
400x300 72.2
320x240 60.1
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 disconnected (normal left inverted right x axis y axis)
DP-4 disconnected (normal left inverted right x axis y axis)
**DP-5 disconnected (normal left inverted right x axis y axis)
1920x1080_60.00 (0x1ee) 173.0MHz
h: width 1920 start 2048 end 2248 total 2576 skew 0 clock 67.2KHz
v: height 1080 start 1083 end 1088 total 1120 clock 60.0Hz**
Then it returns to 1400x1050. Before modifyin 50-monitor.conf and 50-screen.conf , maximum available resolution was 1024x768 and worked, and now maximum resolution which works is 1400x1050.
I also tried xrandr --fb 1920x1080, the resolution doesn’t change, but is seem the screen becomes wider. When I move cursor of mouse to right or down-right screen moves and there’s some space.
I really confused and frustrated.
linux:/home/gogalthorp # xrandr -q
Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 16384 x 16384
VGA-0 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 477mm x 268mm
1920x1080 60.00*+
1680x1050 59.95
1440x900 59.89
1280x1024 75.02 60.02
1280x960 60.00
1280x800 59.81
1280x720 60.00
1152x864 75.00
1024x768 75.03 70.07 60.00
800x600 75.00 72.19 60.32 56.25
640x480 75.00 72.81 59.94
DVI-D-0 disconnected (normal left inverted right x axis y axis)
HDMI-0 disconnected (normal left inverted right x axis y axis)
I really don’t think the driver is running and a fall back is used
xrandr -q
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)
DVI-I-1 connected primary 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
1024x768 75.0*+ 70.1 60.0
1920x1080 60.0
1792x1344 60.0
1600x1200 65.0 60.0
1400x1050 74.8 60.0
1280x1024 75.0 60.0
1280x960 60.0
1152x864 75.0
832x624 74.6
800x600 75.0 72.2 60.3 56.2
700x525 74.8 60.0
640x480 75.0 72.8 59.9
512x384 70.1 60.0
400x300 72.2
320x240 72.8 60.1
HDMI-0 disconnected (normal left inverted right x axis y axis)
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 disconnected (normal left inverted right x axis y axis)
DP-4 disconnected (normal left inverted right x axis y axis)
DP-5 disconnected (normal left inverted right x axis y axis)
but when I add a new mode(Now I’m trying using DVI-I, though I tested with both output and they work perfectly on windows.
xrandr -q
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)
DVI-I-1 connected primary 1024x768+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
1024x768 75.0*+ 70.1 60.0
1920x1080 60.0
1792x1344 60.0
1600x1200 65.0 60.0
1400x1050 74.8 60.0
1280x1024 75.0 60.0
1280x960 60.0
1152x864 75.0
832x624 74.6
800x600 75.0 72.2 60.3 56.2
700x525 74.8 60.0
640x480 75.0 72.8 59.9
512x384 70.1 60.0
400x300 72.2
320x240 72.8 60.1
HDMI-0 disconnected (normal left inverted right x axis y axis)
DP-0 disconnected (normal left inverted right x axis y axis)
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 disconnected (normal left inverted right x axis y axis)
DP-4 disconnected (normal left inverted right x axis y axis)
**DP-5 disconnected (normal left inverted right x axis y axis)
1920x1080_60.00 (0x1fb) 173.0MHz
h: width 1920 start 2048 end 2248 total 2576 skew 0 clock 67.2KHz
v: height 1080 start 1083 end 1088 total 1120 clock 60.0Hz**
I never use xrandr I always just put the settings in xorg. is you run nvidia-settings as root it can change the xorg.conf file. Xrander is not persistent to is has to run each boot.
If nvivdia-settings runs and does not allow the change then you would have to manually add as I indicated. If it does not run it is a whole different ballgame.
I added the resolution manually, But when I change to it, the scale of screen corrupted.
I think there’s something is wrong with nvidia driver on opensuse. I connect this pc to a TV, and then I could set resolution to 1920x1080. Also when I switch to windows, I can set resolution to 1920x1080 on my monitor, but in opensuse I can’t.
I don’t know what is the problem. Actually I tried with other distros, but I have the same problem on them too. It’s a confusing situation. I can set resolution to 1920x1080 on windows. But in Linux I can’t. On the other hand, I connected this PC to a 46" TV, and its resolution changed to 1920x1080 on linux.