Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
problem with screen resolution after upgrade nvidia-drivers
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
waldauf
Tux's lil' helper
Tux's lil' helper


Joined: 20 Sep 2006
Posts: 129
Location: Czech Republic

PostPosted: Sat Oct 25, 2008 2:51 pm    Post subject: problem with screen resolution after upgrade nvidia-drivers Reply with quote

hi,

i upgraded kernel from linux-2.6.25-gentoo-r6 to linux-2.6.27-gentoo-r1. i found that i have to upgrade nvidia-driver because the old nvidia-drivers-169.12 doesn't work. so i installed last version nvidia-drivers-177.80.

but there have started my problems. after started X i see only black screen. so i tried modify xorg.conf and i found out if i comment lines with HorizSync and VertRefresh so X run. but i can't have screen resolutiion 1280x1024 like before but only 1024x768. and i'm not capable of reach old resolution.
i tried set up HorizSync and VertRefresh according monitor's parameters but no success.


my monitor is Compaq p910
http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&cc=us&objectID=c00418266&jumpid=reg_R1002_USEN

emerge --info
Code:

Portage 2.1.4.5 (default-linux/amd64/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.25-gentoo-r6 x86_64)
=================================================================
System uname: 2.6.25-gentoo-r6 x86_64 AMD Athlon(tm) 64 Processor 3000+
Timestamp of tree: Fri, 24 Oct 2008 21:15:02 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r13, 2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
dev-util/cmake:      2.4.6-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.5, 1.7.9-r1, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.ynet.sk/pub "
LC_ALL="cs_CZ.ISO8859-2"
LINGUAS="cs en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="7zip X aac acl alsa amd64 arts berkdb bzip2 canon cli cracklib crypt cups dbus directfb dri dvd dvdr dvdread fam ffmpeg fortran gdbm gif gimp gpm hal iconv isdnlog java jpeg kde midi mmx mp3 mudflap ncurses nls nptl nptlonly nsplugin nvidia opengl openmp pam pcre perl png pppd python qt3 readline reflection reiserfs session spl ssl tcpd unicode usb xine xorg xvid zlib" ALSA_CARDS="intel8X0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="cs en" USERLAND="GNU" VIDEO_CARDS="nv nvidia vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY



my old xorg.conf (which work only with old kernel and old nvidia-drivers)
Code:

# nvidia-xconfig: X configuration file generated by nvidia-xconfig

# nvidia-xconfig:  version 1.0  (buildmeister@builder26)  Fri Jan 11 14:26:48 PST 2008

# this section is for AIGLX
# this option is for XGL or AIGLX:

Section "ServerLayout"

# for AIGLX
    Identifier     "X.org Configured"
    Screen      0  "Screen0" 0 0
    InputDevice    "Mouse0" "CorePointer"
    InputDevice    "Keyboard0" "CoreKeyboard"
    Option         "AIGLX" "true"
EndSection

Section "Files"
    FontPath        "/usr/share/fonts/misc"
    FontPath        "/usr/share/fonts/75dpi"
    FontPath        "/usr/share/fonts/100dpi"
    FontPath        "/usr/share/fonts/TTF"
    FontPath        "/usr/share/fonts/Type1"
    FontPath        "tcp/newton.feld.cvut.cz:7000"
EndSection

Section "Module"
    Load           "glx"
    Load           "extmod"
    Load           "xtrap"
    Load           "record"
    Load           "dbe"
    Load           "freetype"
    Load           "type1"
EndSection

Section "InputDevice"

#       Option      "XkbModel"  "pc105"
#       Option      "XkbOption" "shifts_toggle"#,grp_led:scroll"
    Identifier     "Keyboard0"
    Driver         "kbd"
    Option         "XkbLayout" "us,cz_qwerty"
    Option         "XkbModel" "pc105"
    Option         "XkbOption" "grp:alt_shift_toggle"#,grp_led:scroll"
EndSection

Section "InputDevice"

#       Option      "Device" "/dev/mouse"
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
#       Option      "Protocol" "ImPS/2"
    Option         "Device" "/dev/psaux"
#       Option      "Device" "/dev/mcelog"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Monitor Vendor"
    ModelName      "Monitor Model"
    HorizSync       31.5 - 108.0
    VertRefresh     40.0 - 150.0
EndSection

Section "Device"

# this option is for AIXGL:
## FOR INCREASE POWER
    Identifier      "Card0"
    Driver          "nvidia"
    VendorName      "nVidia Corporation"
    BoardName       "GeForce 6100 TurboCache(TM)"
   
    # this option is for XGL:
    Option          "RenderAccel" "True"
    #   Option      "AddARGBGLXVisuals" "true"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Card0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "AddARGBGLXVisuals" "True"
    Option         "XAANoOffscreenPixmaps" "true"
    Option         "DRI" "true"
    Option         "RenderAccel" "True"
    Option         "AllowGLXWithComposite" "true"
    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
        Modes      "1280x1024" "1024x768" "800x600" "640x480"
    EndSubSection
EndSection

Section "Extensions"
    Option         "Composite" "enable"
EndSection



my new xorg.conf (which i wrote because the old isn't synoptical but doesn't work with 1280x1024)
Code:

Section "ServerLayout"
  Identifier          "X.org Configured"
  Screen        0   "Compaq"       0 0
  InputDevice         "Keyboard0"     "CoreKeyboard"
  InputDevice         "Mouse0"        "CorePointer"
  Option              "BlankTime"     "5"         # Blank the screen after 5 minutes (Fake)
  Option              "StandbyTime"   "10"          # Turn off screen after 10 minutes (DPMS)
  Option              "SuspendTime"   "20"          # Full suspend after 20 minutes
  Option              "OffTime"       "30"          # Turn off after half an hour
  Option              "AIGLX"         "true"        # Setting for COmposite

EndSection

#Section "ServerFlags"
#  #DontZap # disable <Crtl><Alt><BS> (server abort)
#  AllowMouseOpenFail # allows the server to start up even if the mouse does not work
#  #DontZoom # disable <Crtl><Alt><KP_+>/<KP_-> (resolution switching)

#  Option "DefaultServerLayout" "LFP_Clone" # otherwise use first serverlayout
#EndSection

Section "Files"
    FontPath    "/usr/share/fonts/misc"
    FontPath  "/usr/share/fonts/Type1"
    FontPath  "/usr/share/fonts/100dpi"
    FontPath  "/usr/share/fonts/75dpi"
    FontPath  "/usr/local/share/fonts"
EndSection


Section "Module"
  Load    "glx"
  Load    "extmod"
  Load    "xtrap"
  Load    "record"
  Load    "dbe"
  Load    "dri"
  Load    "freetype"
  Load    "type1"
EndSection



###############################################################################
## INPUT DEVICES ##############################################################
###############################################################################

Section "InputDevice"
  Identifier  "Keyboard0"
  Driver      "kbd"
  Option "XkbRules" "xorg"
  Option "XkbModel" "pc105"
  Option "XkbLayout"  "us"
  #Option "XkbVariant" "cz_qwerty"
  Option "XkbVariant" "cs"
  Option "XkbOptions" "grp:alt_shift_toggle"

EndSection


Section "InputDevice"
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
# Option      "Protocol" "ImPS/2"
    Option      "Device" "/dev/input/mice"#
# Option      "Device" "/dev/mcelog"
    Option         "ZAxisMapping" "4 5"
EndSection

###############################################################################
## MONITOR SECTION ############################################################
###############################################################################

Section "Monitor"
  #DisplaySize  260   160 # mm
  Identifier    "CRT"               # Local Flat Panel
  Option        "DPMS"  "true"    # pro vypnuti monitoru
  #  HorizSync       31.5-90             ###
  #  VertRefresh     60                  ###

  # generated http://www.sh.nu/nvidia/gtf.php
  # 1280x1024 @ 85.00 Hz (GTF) hsync: 91.38 kHz; pclk: 159.36 MHz
  Modeline "1280x1024_85.00"  159.36  1280 1376 1512 1744  1024 1025 1028 1075  -HSync +Vsync
EndSection



###############################################################################
## GRAPHICS DEVICE SECTION ####################################################
###############################################################################


Section "Device"
  Identifier  "NVIDIA"
  Driver      "nvidia"
  VendorName  "nVidia Corporation"
  BoardName   "GeForce 6100 TurcoCache"
  BusID       "PCI:0:5:0"
  #VideoRam    32768
  Option      "DRI"     "true"
  Option      "DPMS"
# Options for setting composite
#  Option      "XAANoOffscreenPixmaps" "true"
# To suspend
EndSection




###############################################################################
## SCREEN SECTION #############################################################
###############################################################################

Section "Screen"
  Identifier      "Compaq"
  Device          "NVIDIA"
  Monitor         "CRT"
  DefaultDepth  24

# 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"
    #Virtual     1280 1024
    #Modes       "38"
    #Viewport   0 0
    Depth       24
    Modes      "1280x1024" "1024x768"
        #Modes      "1280x800_60" "1280x1024" "1024x768"
        #Modes      "640x480"
  EndSubSection
EndSection



#Section "ServerLayout"
#    Identifier  "Compaq"
#    InputDevice "Keyboard0" "CoreKeyboard"
##    InputDevice "Mouse0"    "CoreKeyboard"
#    InputDevice "Mouse0"    "AlwaysCore"
##    InputDevice "Mouse1"    "CoreKeyboard"
#   InputDevice "TouchPad" "CorePointer"
##    InputDevice "TouchPad" "AlwaysCore"
#    Screen      "LFP"
#EndSection




###############################################################################
## EXTENSIONS SECTION #########################################################
###############################################################################

# For composite (transparency)
Section "Extensions"
  Option  "Composite" "Enable"
EndSection


Section "DRI"
  Mode        0666
EndSection


can somebody tell my what i do wrong or help me?

thank you
Back to top
View user's profile Send private message
notHerbert
Advocate
Advocate


Joined: 11 Mar 2008
Posts: 2228
Location: 45N 73W

PostPosted: Sat Oct 25, 2008 10:56 pm    Post subject: Reply with quote

You can try 2 things
Code:
#    Load "dri"    <----comment out




  SubSection "Display"
    #Virtual     1280 1024
    #Modes       "38"
    #Viewport   0 0
    Depth       24
    Modes      "1280x1024_85"      <----change this




Or you can try more Modelines in the Section "Monitor"
Code:
#    Load "dri"    <----comment out



Modeline "1280x1024" 80 1280 1296 1512 1568 1024 1025 1037 1165 Interlace
Modeline "1280x1024" 110 1280 1328 1512 1712 1024 1025 1028 1054
Modeline "1280x1024" 126.5 1280 1312 1472 1696 1024 1032 1040 1068 -HSync -VSync
Modeline "1280x1024" 135 1280 1312 1456 1712 1024 1027 1030 1064
Modeline "1280x1024" 135 1280 1312 1416 1664 1024 1027 1030 1064
Modeline "1280x1024" 157.5 1280 1344 1504 1728 1024 1025 1028 1072 +HSync +VSync
Modeline "1280x1024" 18 1.75 1280 1312 1440 1696 1024 1031 1046 1072 -HSync -VSync




SubSection     "Display"
        Viewport    0 0
        Depth       24
        Modes "1280x1024"    <----------change it back


You can also generate Modelines here http://xtiming.sourceforge.net/cgi-bin/xtiming.pl
Back to top
View user's profile Send private message
waldauf
Tux's lil' helper
Tux's lil' helper


Joined: 20 Sep 2006
Posts: 129
Location: Czech Republic

PostPosted: Mon Oct 27, 2008 8:37 pm    Post subject: Reply with quote

notHerbert wrote:
You can try 2 things
Code:
#    Load "dri"    <----comment out




  SubSection "Display"
    #Virtual     1280 1024
    #Modes       "38"
    #Viewport   0 0
    Depth       24
    Modes      "1280x1024_85"      <----change this




Or you can try more Modelines in the Section "Monitor"
Code:
#    Load "dri"    <----comment out



Modeline "1280x1024" 80 1280 1296 1512 1568 1024 1025 1037 1165 Interlace
Modeline "1280x1024" 110 1280 1328 1512 1712 1024 1025 1028 1054
Modeline "1280x1024" 126.5 1280 1312 1472 1696 1024 1032 1040 1068 -HSync -VSync
Modeline "1280x1024" 135 1280 1312 1456 1712 1024 1027 1030 1064
Modeline "1280x1024" 135 1280 1312 1416 1664 1024 1027 1030 1064
Modeline "1280x1024" 157.5 1280 1344 1504 1728 1024 1025 1028 1072 +HSync +VSync
Modeline "1280x1024" 18 1.75 1280 1312 1440 1696 1024 1031 1046 1072 -HSync -VSync




SubSection     "Display"
        Viewport    0 0
        Depth       24
        Modes "1280x1024"    <----------change it back


You can also generate Modelines here http://xtiming.sourceforge.net/cgi-bin/xtiming.pl




nothing help :/.

i tried all possibilities but without success. big success was resolution 1280x1024 but behind screen (i have to move with screen so i didn't see all desktop).

i tried generetion new xorg.conf (automatically and halfautomatically) but doesn't work too. i tried generation by nvidia-xconfig but the same result.

now i haven't any idea to fix it. i would like to upgrade kernel but i can't work with 1024x768 screen resolutin.
Back to top
View user's profile Send private message
notHerbert
Advocate
Advocate


Joined: 11 Mar 2008
Posts: 2228
Location: 45N 73W

PostPosted: Mon Oct 27, 2008 8:43 pm    Post subject: Reply with quote

It is possible that your nvidia-drivers and kernel 2.6.27 are incompatible. The nvidia-drivers-96.x.x don't even compile with kernel 2.6.27.

This happens on occasion, and I usually wait until it just works normally without needing to "change everything". :)
Back to top
View user's profile Send private message
waldauf
Tux's lil' helper
Tux's lil' helper


Joined: 20 Sep 2006
Posts: 129
Location: Czech Republic

PostPosted: Mon Oct 27, 2008 9:14 pm    Post subject: Reply with quote

notHerbert wrote:
It is possible that your nvidia-drivers and kernel 2.6.27 are incompatible. The nvidia-drivers-96.x.x don't even compile with kernel 2.6.27.

This happens on occasion, and I usually wait until it just works normally without needing to "change everything". :)


i update media-video/nvidia-settings and in i can see all possible resolution.

now i found out interesting thing. if i set up bigger resolution than 1280x1024 it works. it works if i set up smaller resolution than 1280x1024. and if i set up 1280x1024 i see only first raw on screen (i see mouse too if i move with) and the rest is blank (black).
Back to top
View user's profile Send private message
notHerbert
Advocate
Advocate


Joined: 11 Mar 2008
Posts: 2228
Location: 45N 73W

PostPosted: Mon Oct 27, 2008 9:31 pm    Post subject: Reply with quote

Cool, the nvidia-settings is quite a nice little toy. I use it in my .xinitrc file nvidia-settings --load-config-only & :)
Back to top
View user's profile Send private message
strites
Tux's lil' helper
Tux's lil' helper


Joined: 28 Mar 2005
Posts: 85

PostPosted: Thu Jan 15, 2009 3:04 am    Post subject: Reply with quote

I submitted a howto at http://en.gentoo-wiki.com/wiki/Nvidia_6100
It works for me. Please see if it works for you
EDIT: added hibernate-ram workaround
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum