You are not logged in.
So, I've been having a heck of a time trying to get my display resolution correct after upgrading my GPU to the EVGA Nvidia GT 640.
My prefered resolution is 1680x1050. Originally, this wasn't even an option under nvidia-settings or xrandr. After some tweaking I got the mode added, but my display is still loading up at 1024x768.
I've tried creating a script:
#! /bin/bash
xrandr --output DVI-I-0 --mode 1680x1050 &&
nitrogen --restore &&
exitIt works perfectly if run manually. I tried adding it to xfce's startup applications and nothing happens, it doesn't work.
I tried tweaking my xorg.conf, then finally creating a new one with nvidia-xconfig. Here's the relevant section:
Section "Monitor"
# HorizSync source: xconfig, VertRefresh source: xconfig
Identifier "Monitor0"
VendorName "Lenovo"
ModelName "6622-HB1"
HorizSync 30.0 - 83.0
VertRefresh 50.0 - 76.0
ModeLine "nvidia-auto-select" 146.250 1680 1784 1960 2240 1050 1053 1059 1089 -hsync +vsync
ModeLine "1680x1050" 146.250 1680 1784 1960 2240 1050 1053 1059 1089 -hsync +vsync
Option "DPMS"
EndSectionIt still loads up in the lower resolution though.
I can set the resolution through the nvidia-settings utility however.
I've tried adding the xrandr line to my ~/.xinitrc:
#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
if [ -d /etc/X11/xinit/xinitrc.d ]; then
for f in /etc/X11/xinit/xinitrc.d/*; do
[ -x "$f" ] && . "$f"
done
unset f
fi
##############################
# Switch Input With Keyboard #
##############################
setxkbmap -layout "us, el" -option "grp:sclk_toggle"
###############################
# Set Resolution at 1680x1050 #
###############################
xrandr --output DVI-I-0 --mode 1680x1050
##############################
# Choose Desktop Environment #
##############################
exec startxfce4 Still nothing. Occasionally as soon as xstarts it'll be in the correct resolution, but less than a second letter the screen flashes black for a couple of seconds, and comes back at 1024x768
This is starting to drive me a little crazy, so does anyone have any suggestions?
Relevant Info:
Kernel 3.12.5-1-ARCH
Window Manager: Openbox
Desktop Environment: (a gutted) XFCE
Nvidia driver: 331.20
Login Managers: SLiM
Last edited by Somnus (2013-12-23 23:10:01)
Offline
Looks like I'm having EDID issues in my xorg log:
[ 18.747] (WW) NVIDIA(0): Unable to read EDID for display device CRT-0[ 18.787] (WW) NVIDIA(0): Unable to get display device CRT-0's EDID; cannot compute DPI
[ 18.787] (WW) NVIDIA(0): from CRT-0's EDID.I'll look into this and see if it's relevant. Still looking for suggestions in the meantime!
Offline
Well, it mysteriously started working and I have no idea how. After trying numerous things, rebooting after each, with no progress, the last thing I did was try setting in xorg.conf my horizontal and vertical refresh rates as reported by my monitor exactly, rather than using the range of values that was in there previously. When I rebooted this limited my monitor to only 800x600. So, I changed it back to the range of values, reboot, and suddenly it's rebooting into 1680x1050. No idea how or why, but I guess this is resolved.
Offline