Debian 7 Gnome [GeForce 210] stuck resolution 640 x 480

I have a
0f:00.0 VGA compatible controller: NVIDIA Corporation GT218 [GeForce 210] (rev a2)

apt-get install build-essential linux-headers-uname -r

nano /etc/modprobe.d/blacklist-nouveau.conf
blacklist nouveau
blacklist lbm-nouveau
options nouveau modeset=0
alias nouveau off
alias lbm-nouveau off

apt-get purge nvidia*

./NVIDIA-Linux-x86_64-340.76.run

i rebooted

it loads into gdm3 and i login

now i am in gnome but the screen is huge… i try the screen settings and it only gives me 640 x 480

so i open a terminal and run

xrandr

Screen 0: minimum 8 x 8, current 640 x 480, maximum 8192 x 8192
DVI-I-0 connected 640x480+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
640x480 59.9*+
320x240 120.1
VGA-0 disconnected (normal left inverted right x axis y axis)
DVI-I-1 disconnected (normal left inverted right x axis y axis)
HDMI-0 disconnected (normal left inverted right x axis y axis)

# lsmod |grep "nvid"
nvidia 10492459 38
i2c_core 23876 1 nvidi

# lspci -nnk
0f:00.0 VGA compatible controller [0300]: NVIDIA Corporation GT218 [GeForce 210] [10de:0a65] (rev a2)
Subsystem: Giga-byte Technology Device [1458:3525]
Kernel driver in use: nvidia

You shouldn’t have used the .run installer, this might have broken your system. Please uninstall using the --uninstall option, then use the debian package for the driver:
[url]NvidiaGraphicsDrivers - Debian Wiki
In case of problems, please run nvidia-bug-report.sh as root and attach the resulting tar.gz file to your post. Hovering the mouse over an existing post will reveal a paperclip icon.

So i did that I uninstalled and it went well…

# ./NVIDIA-Linux-x86_64-340.76.run --uninstall
rm /etc/X11/xorg.conf
apt-get purge nvidia*

nano /etc/apt/sources.list
# wheezy-backports
deb http://httpredir.debian.org/debian/ wheezy-backports main contrib non-free

apt-get update

aptitude install linux-headers-$(uname -r|sed 's/[^-]*-[^-]*-//')
aptitude -t wheezy-backports -r install nvidia-driver

apt-get install nvidia-xconfig
nvidia-xconfig

$ dmesg|grep -i "nvidia" |tail
[ 6.660939] nvidia: module license 'NVIDIA' taints kernel.
[ 7.436953] input: HDA NVidia HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:03.0/0000:0f:00.1/sound/card1/input8
[ 7.437125] input: HDA NVidia HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:03.0/0000:0f:00.1/sound/card1/input9
[ 7.437255] input: HDA NVidia HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:03.0/0000:0f:00.1/sound/card1/input10
[ 7.437379] input: HDA NVidia HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:03.0/0000:0f:00.1/sound/card1/input11
[ 7.438396] nvidia 0000:0f:00.0: setting latency timer to 64
[ 7.439076] NVRM: loading NVIDIA UNIX x86_64 Kernel Module 340.102 Mon Jan 16 13:06:29 PST 2017
[ 17.332344] nvidia 0000:0f:00.0: irq 69 for MSI/MSI-X

now I still had a small screen not able to change it

$ xrandr
Screen 0: minimum 8 x 8, current 640 x 480, maximum 8192 x 8192
DVI-I-0 connected 640x480+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
640x480 59.9*+
320x240 120.1
VGA-0 disconnected (normal left inverted right x axis y axis)
DVI-I-1 disconnected (normal left inverted right x axis y axis)
HDMI-0 disconnected (normal left inverted right x axis y axis)

I assumed that all I needed was nvidia-settings so I installed that

This changed the driver I had From 340 to 308 for the driver and now i have a decent screen resolution. 1024 x 768 but I am stuck on that now is there a way to make this bigger

# apt-get install nvidia-settings
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libxnvctrl0
The following packages will be REMOVED:
libegl1-nvidia libgl1-nvidia-glx libgles1-nvidia libgles2-nvidia
libnvidia-ml1 nvidia-alternative nvidia-driver nvidia-driver-bin
nvidia-kernel-dkms nvidia-vdpau-driver xserver-xorg-video-nvidia
The following NEW packages will be installed:
libxnvctrl0 nvidia-settings
0 upgraded, 2 newly installed, 11 to remove and 10 not upgraded.
Need to get 0 B/848 kB of archives.
After this operation, 90.0 MB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 145115 files and directories currently installed.)
Removing nvidia-driver ...
Removing libegl1-nvidia:amd64 ...
Removing xserver-xorg-video-nvidia ...
Removing libgl1-nvidia-glx:amd64 ...
Removing libgles1-nvidia:amd64 ...
Removing libgles2-nvidia:amd64 ...
Removing nvidia-driver-bin ...
Removing libnvidia-ml1:amd64 ...
Removing nvidia-vdpau-driver:amd64 ...
Removing nvidia-kernel-dkms ...

-------- Uninstall Beginning --------
Module: nvidia-current
Version: 340.102
Kernel: 3.2.0-5-amd64 (x86_64)
-------------------------------------

Status: Before uninstall, this module version was ACTIVE on this kernel.

nvidia-current.ko:
- Uninstallation
- Deleting from: /lib/modules/3.2.0-5-amd64/updates/dkms/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.


nvidia-uvm.ko:
- Uninstallation
- Deleting from: /lib/modules/3.2.0-5-amd64/updates/dkms/
- Original module
- No original module was found for this module on this kernel.
- Use the dkms install command to reinstall any previous module version.

depmod......

DKMS: uninstall completed.

------------------------------
Deleting module version: 340.102
completely from the DKMS tree.
------------------------------
Done.
Removing nvidia-alternative ...
Processing triggers for glx-alternative-nvidia ...
update-alternatives: using /usr/lib/mesa-diverted to provide /usr/lib/glx (glx) in auto mode
update-initramfs: deferring update (trigger activated)
Processing triggers for desktop-file-utils ...
Processing triggers for gnome-menus ...
Processing triggers for man-db ...
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-3.2.0-5-amd64
W: Possible missing firmware /lib/firmware/tigon/tg3_tso5.bin for module tg3
W: Possible missing firmware /lib/firmware/tigon/tg3_tso.bin for module tg3
W: Possible missing firmware /lib/firmware/tigon/tg3.bin for module tg3
Selecting previously unselected package libxnvctrl0.
(Reading database ... 144847 files and directories currently installed.)
Unpacking libxnvctrl0 (from .../libxnvctrl0_304.88-1_amd64.deb) ...
Selecting previously unselected package nvidia-settings.
Unpacking nvidia-settings (from .../nvidia-settings_304.88-1_amd64.deb) ...
Processing triggers for menu ...
Processing triggers for man-db ...
Processing triggers for desktop-file-utils ...
Processing triggers for gnome-menus ...
Setting up libxnvctrl0 (304.88-1) ...
Setting up nvidia-settings (304.88-1) ...
Processing triggers for menu ...

When I tried to run nvidia-xconfig just killed my configuration and I was unable to get any X11 so just console… so I deleted

rm /etc/X11/xorg.conf

and everything has worked again… but now I am stuck on a decent resolution but would like to go up a bit more how do I do this??

i need bigger screen to see more

cat Xorg.0.log

https://pastebin.com/B2zR38fr

Please reinstall the 340 driver from wheezy backports and use the following xorg.conf:

Section "Files"
    ModulePath      "/usr/lib/nvidia/current"
    ModulePath      "/usr/lib/xorg/modules"
EndSection

Section "Device"
    Identifier     "nvidia"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BusID          "PCI:15:0:0"
    Option         "AllowEmptyInitialConfiguration"
EndSection

Make sure the kernel module loads in dmesg afterwards and attach your Xorg.0.log.

i added nomodeset in the grub … not sure if its important but it was mentioned on linuxquestions.org but this xorg.conf did the trick I now have many resolutions to choose from.

Thank you!

Just FYI. Same problem happened to me early today after installing MX-17 32-bit with stock kernel, using an Asus P5KPL-CM board (don’t know if BIOS was ever flashed), with 4GB good ram, an older Planar PL1700M monitor, and NVS300 card. I used MX-17’s nvidia installer, which installed 340.107 from backports. Install ran fine and quick. However, I could only get 640x480 or 320x240. I tried a lot of things I found online, including some suggestions here, but nothing fixed it. Finally, I tried what the O.P. mentioned about running with no xorg.conf. Voila! I could get all the resolutions! The only thing I couldn’t do was save the resolution setting in nvidia-settings, because there was no config file to save to. To make the change permanent I adjust resolution in xfce4-display-settings. Not sure how it can run without xorg.conf, but so it does for me.
NOTE: On my first install on this board a couple of months ago, using an 8400GS (with 2 vga outs), same thing happened. At that time, I then deleted everything NVIDIA through Synaptic, along with xorg.conf. Then I installed using sgfxi. That worked. However, I didn’t want to repeat that this time, since I wanted to try to get the MX-17 nvidia install working properly.