no X screen after kernel upgrades

Use this forum for questions related to graphics, sound or desktop environments.

no X screen after kernel upgrades

Postby leaveone » July 28th, 2016, 10:16 pm

just recently upgraded to kernel 4.6.0-1-686-pae and was using the nvidia-legacy-304xx drivers on my previous kernel. I tried reinstalling the nvidia stuff i needed from apt and reboot but that doesnt appear to work. my screen just sits there blank, occasionally blinking for a brief moment. I checked the /var/log/Xorg.0.log file and there are no (EE) just a few (WW). I do see the following though.. could this be the cause?

[ 495.677] (**) NVIDIA(0): Using HorizSync/VertRefresh ranges from the EDID for display
[ 495.677] (**) NVIDIA(0): device Ancor Communications Inc VK246 (DFP-0) (Using EDID
[ 495.677] (**) NVIDIA(0): frequencies has been enabled on all display devices.)
[ 495.677] (==) NVIDIA(0):
[ 495.677] (==) NVIDIA(0): No modes were requested; the default mode "nvidia-auto-select"
[ 495.677] (==) NVIDIA(0): will be used as the requested mode.
[ 495.677] (==) NVIDIA(0):
[ 495.677] (II) NVIDIA(0): Validated MetaModes:
[ 495.677] (II) NVIDIA(0): "DFP-0:nvidia-auto-select"
[ 495.677] (II) NVIDIA(0): Virtual screen size determined to be 1920 x 1080
[ 495.677] (WW) NVIDIA(0): Unable to support custom viewPortOut 1920 x 1080 +0 +0
[ 495.677] (--) NVIDIA(0): DPI set to (92, 91); computed from "UseEdidDpi" X config
[ 495.677] (--) NVIDIA(0): option
[ 495.677] (--) Depth 24 pixmap format is 32 bpp
[ 495.689] (II) NVIDIA(0): Setting mode "DFP-0:nvidia-auto-select"
[ 495.869] (==) NVIDIA(0): Disabling shared memory pixmaps
[ 495.869] (==) NVIDIA(0): Backing store enabled
[ 495.869] (==) NVIDIA(0): Silken mouse enabled
[ 495.869] (**) NVIDIA(0): DPMS enabled


here's my graphics card: lspci | grep VGA
02:00.0 VGA compatible controller: NVIDIA Corporation G72 [GeForce 7200 GS / 7300 SE] (rev a1)


and finally, xorg.conf file:

Section "ServerLayout"
Identifier "X.org Configured"
# Screen 0 "Screen0" 0 0
Screen "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
ModulePath "/usr/lib/xorg/modules"
FontPath "/usr/share/fonts/X11/misc"
# FontPath "/usr/share/fonts/X11/cyrillic"
FontPath "/usr/share/fonts/X11/100dpi/:unscaled"
FontPath "/usr/share/fonts/X11/75dpi/:unscaled"
FontPath "/usr/share/fonts/X11/Type1"
FontPath "/usr/share/fonts/X11/100dpi"
FontPath "/usr/share/fonts/X11/75dpi"
FontPath "built-ins"
EndSection

Section "Module"
Load "glx"
EndSection

Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
DisplaySize 1920 1080
HorizSync 28.0 - 33.0
VertRefresh 43.0 - 72.0
Option "DPMS"
EndSection

Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
### <percent>: "<f>%"
### [arg]: arg optional
#Option "SWcursor" # [<bool>]
#Option "HWcursor" # [<bool>]
#Option "NoAccel" # [<bool>]
#Option "ShadowFB" # [<bool>]
#Option "VideoKey" # <i>
#Option "WrappedFB" # [<bool>]
#Option "GLXVBlank" # [<bool>]
#Option "ZaphodHeads" # <str>
#Option "PageFlip" # [<bool>]
#Option "SwapLimit" # <i>
#Option "AsyncUTSDFS" # [<bool>]
#Option "AccelMethod" # <str>
#Option "DRI" # <i>
Identifier "Card0"
Driver "nvidia"
BusID "PCI:2:0:0"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultDepth 24
# SubSection "Display"
# Viewport 0 0
# Depth 1
# EndSubSection
# SubSection "Display"
# Viewport 0 0
# Depth 4
# EndSubSection
# SubSection "Display"
# Viewport 0 0
# Depth 8
# EndSubSection
# SubSection "Display"
# Viewport 0 0
# Depth 15
# EndSubSection
# SubSection "Display"
# Viewport 0 0
# Depth 16
# EndSubSection
# SubSection "Display"
# Viewport 0 0
# Depth 24
# EndSubSection
EndSection

any ideas???
leaveone
 
Posts: 13
Joined: July 28th, 2016, 9:34 pm

Re: no X screen after kernel upgrades

Postby cynwulf » July 29th, 2016, 10:57 am

I'm sure that the latest Debian release is not using the Linux 4.6 kernel as standard? So the question is: Are you running testing or unstable...?
"What, are you... uh... undercover or something?"
"No, I'm underpaid."
User avatar
cynwulf
 
Posts: 2381
Joined: April 26th, 2011, 2:46 pm

Re: no X screen after kernel upgrades

Postby leaveone » July 30th, 2016, 11:38 am

I am running testing
leaveone
 
Posts: 13
Joined: July 28th, 2016, 9:34 pm

Re: no X screen after kernel upgrades

Postby Monsie » July 31st, 2016, 8:31 am

Hi leavone,

Just to clarify, according to this page right here there is support for your hardware in the latest kernel up to and including 4.7 so, you should be able to resolve this issue.

Since you want the proprietary driver for your graphics card, did you build the kernel module for the nVidia package?

Monsie
My username is pronounced: "Munsee" and is based on my nick name in High School.
Monsie
 
Posts: 70
Joined: January 17th, 2016, 11:11 pm

Re: no X screen after kernel upgrades

Postby leaveone » July 31st, 2016, 5:10 pm

I did download and try to install the legacy drivers from the Nvidia site as well but i receive an error during the build process stating that it can't find some header file it is looking for. I believe its version.h that it can't find. I've also tried to install the nvidia-legacy-304xx package on both the 4.6 and my old 4.2 kernel but X still won't come up, but also doesn't throw any errors, according to my Xorg.0.log
leaveone
 
Posts: 13
Joined: July 28th, 2016, 9:34 pm

Re: no X screen after kernel upgrades

Postby Monsie » July 31st, 2016, 6:11 pm

Hi,

You are best off if you do not try to install drivers from the OEM because even if you do succeed, the next time there is a kernel update you will have to re-install the driver again. You are better off if you stick to the "debian way" as outlined here: https://wiki.debian.org/NvidiaGraphicsDrivers Obviously, you will adjust these steps for testing, but the method is essentially the same.

Hope this helps,
Monsie
My username is pronounced: "Munsee" and is based on my nick name in High School.
Monsie
 
Posts: 70
Joined: January 17th, 2016, 11:11 pm

Re: no X screen after kernel upgrades

Postby leaveone » July 31st, 2016, 8:47 pm

I have followed those steps, and everything installs just fine. the nvidia module gets built and then added to dkms. i reboot and my screen flickers but i never get to the X windows. when i check my xorg log after boot up, there are no errors just a few warnings. the nvidia module gets loaded just fine. nothing makes sense, i should see some sort of errors somewhere..
leaveone
 
Posts: 13
Joined: July 28th, 2016, 9:34 pm

Re: no X screen after kernel upgrades

Postby Monsie » August 1st, 2016, 6:54 am

Hi leaveone,

Since your nVidia driver appears to have installed okay, try installing the nvidia-xconfig package. After installing the package, log in as root at the terminal:

Code: Select all
nvidia-xconfig

This should allow for X to use the proprietary driver. Reboot your system and you should be good to go...

If all is successful, you will want to install nvidia-settings package to allow you to tweak your display configuration further.

Hope this helps,
Monsie
My username is pronounced: "Munsee" and is based on my nick name in High School.
Monsie
 
Posts: 70
Joined: January 17th, 2016, 11:11 pm

Re: no X screen after kernel upgrades

Postby cynwulf » August 1st, 2016, 7:43 am

The testing branch breaks, hence the name 'testing'. It's entirely possible something is broken at the moment.

Whether you install from the vendor installer script or from the Debian non-free repository, unless you install with dkms, the kernel module won't be automatically rebuilt when the kernel is upgraded. In testing, an X.org or kernel upgrade can break proprietary drivers - it's all too common. The solution to this is to run the stable release - or switch to using the in tree nouveau driver.

If there are no errors in the log files, then try deleting your xorg.conf and replace with the following:
Code: Select all
Section "Device"
        Identifier  "Card0"
   Driver      "nvidia"
   BusID       "PCI:2:0:0"
EndSection

This is all you need to configure the driver and X.org on modern systems. The other lines are superfluous, including your monitor configuration and refresh rates - these should be autoconfigured.
"What, are you... uh... undercover or something?"
"No, I'm underpaid."
User avatar
cynwulf
 
Posts: 2381
Joined: April 26th, 2011, 2:46 pm

Re: no X screen after kernel upgrades

Postby leaveone » August 1st, 2016, 2:36 pm

I will try the minimalist Xorg config file approach when I get home later. The nvidia module is registered with dkms and when a kernel is upgraded it does auto rebuild. My question is this.. why did it stop working for my older 4.2 kernel when I upgrade to 4.6? As of now, I can't login to an X session on either kernel.

If i want to try the nouveau driver, what package(s) do I need to install? Then just configure Xorg to load nouveau driver instead of nvidia?
leaveone
 
Posts: 13
Joined: July 28th, 2016, 9:34 pm

Next

Return to Desktop & Multimedia

Who is online

Users browsing this forum: No registered users and 1 guest

x