LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-21-2016, 07:56 AM   #1
tanguy123
LQ Newbie
 
Registered: Jan 2016
Distribution: Debian Wheezy 7.9
Posts: 8

Rep: Reputation: Disabled
non-mounted Debian wheezy 7.9 on partitioned Hard Drive - wrong screen resolution limited to 1024 x 768



PLEASE READ UNTIL THE END OF THE THREAD - BY PUTTING INTO ACTION SOME OF THESE BELOW INSTRUCTIONS, I ACTUALLY BROKE MY OS

Hi,

I'm new to Linux, know the learning curve will be a hard one, but am sure it will worth it at the end.

The main issue is that the screen is at a too much lower resolution (a bit blurred, which is tiring for the eyes).

My PC is partitionned in 2 systems : 1 in Linux Debian, and the other on Windows 10 (1 Hard disk). EDIT *** The Debian is apparently mounted (before edit not mounted) *** (I'm a bit puzzled of its exact meaning). So I wonder if I go for the exact impact of
Code:
xorg -configure
Thanks for your help...

Best,
Tanguy123

Hereunder are a few further info :

Code:
xrandr
xrandr:Failed to get size of gamma for output default
screen 0: minimum 640 x 480, current 1024 x 768, maximum 1024 x 768
default connected 1024x768+0+0 0mm x 0mm
    1024x768    61.0*
    800x600      61.0   
    640x480      60.0

xrandr -v
xrandr program version          1.3.5
Server reports RandR version 1.3

xrandr --output default --gamma 1:1:1 --mode 1280x1024		
    "xrandr: cannot find mode 1280x1024"

xrandr --newmode 1280x1024
     "usage: xrandr [options]
            where options are: ..." --> no real answers

dans var/log/ nano Xorg.0.log 
following lines might be of interest :
...
[   7.210]  (==)  No screen section available. Using defaults.
[   7.210]  (**)    | -->Screen "Default Screen Section" (0)
[   7.210]  (**)    |      |-->Monitor "<Default monitor>"
[   7.211]  (==)   No monitor spcified for screen "Default Screen Section".
    Using a default monitor configuration.
...
[   7.214]  (II)  Module ABI versions:
[   7.214]     x.Org ANSI C Emulation: 0.4
[   7.214]     x.Org Video Driver: 12.1
[   7.214]     x.Org Xinput driver: 16.0
[   7.214]     x.Org Server Extension: 6.0

Last edited by tanguy123; 01-23-2016 at 06:56 AM. Reason: info on the thread was apparently wrong - according to the person who partitionned the pc
 
Old 01-22-2016, 01:44 AM   #2
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
Hi and welcome to LQ!.
This could be a driver issue. Can you post the output of this command.
Code:
sudo lshw -C video
jdk
 
Old 01-22-2016, 03:49 AM   #3
tanguy123
LQ Newbie
 
Registered: Jan 2016
Distribution: Debian Wheezy 7.9
Posts: 8

Original Poster
Rep: Reputation: Disabled
Hi jdk,

Thanks for your kind reply.
It's very nice of you.

when typing
Code:
sudo lshw -C video
I get the following
Code:
bash: lshw: command not found
Does it mean I need to install this command ?

Please note - I tried to install nvidia drivers (not sure if these were installed). So I followed this thread : https://wiki.debian.org/NvidiaGraphicsDrivers where I added #
Code:
wheezy-backports
deb http://httpredir.debian.org/debian/ wheezy-backports main contrib non-free
I managed to go through all the requirements until the creation of xorg.conf in /etc/X11 and after reboot, I have now a black screen... (mmh Houston, there is a problem here...)

So I typed CTRL-ALT-F1 (luckily). Going through /etc/X11 and there is now a Xorg.conf (YES ? is this victory?) , I opened it up via nano.

nvidia-config: version 340.46 ... there are various sections "ServerLayout", "InputDevice" "InputDevice" "Monitor", "Device" "screen"

Still same reply when typing
Code:
sudo lshw -C video 
(bash: lshw: command not found)
BTW, I did not make any back-up of anything (it has been freshly installed)... mmh, not good I agree (too late though)

Last edited by tanguy123; 01-22-2016 at 09:53 AM. Reason: combing 2 reactions from my side - easier to read
 
Old 01-22-2016, 04:19 AM   #4
tanguy123
LQ Newbie
 
Registered: Jan 2016
Distribution: Debian Wheezy 7.9
Posts: 8

Original Poster
Rep: Reputation: Disabled
Exclamation

Ok, I went to this thread on linux forum (hope it still works - it is more than 12 years old) - and followed the below instructions : http://www.linuxquestions.org/questi...rivers-546388/ from farslayer - 04-16-07, 07:14 PM

1)
logged in as root
Code:
/etc/init.d/gdm stop
aptitude keep-all
aptitude update
aptitude install module-assistant gcc nvidia-kernel-source
m-a update
m-a prepare
m-a a-i nvidia
aptitude install nvidia-glx
edit your /etc/X11/xorg.conf

nano /etc/X11/xorg.conf
It failed at m-a a-i nvidia.
Code:
"Module-assistant, interactive mode. Build of the package nvidia-kernel-source failed! How do you wish to proceed? "
I tried to click on
Code:
"view Examine the build log file"
- but no success, so I clicked on
Code:
"STOP Stop processing the build commands".
and the follow screen appeared
Code:
Module-assistant, error message
Package nvidia-kernel-source was not built successfully, see /var/cache/modass/nvidia-kernel-source*buildlog* for details!

I checked
Code:
 cd /var/cache/modass/ nano nvidia-kernel-source*buildlog*
nvidia-kernel-source*buildlog* was actually empty


I tried then the following set of scripts (still from the same thread)
Code:
/etc/init.d/gdm stop
cp /etc/X11/xorg.conf /etc/X11/xorg.conf.chipchop
aptitude purge nvidia-glx
wget us.download.nvidia.com/XFree86/Linux-x86/1.0-9755/NVIDIA-Linux-x86-1.0-9755-pkg1.run
chmod +x NVIDIA-Linux-x86-1.0-9755-pkg1.run
./NVIDIA-Linux-x86-1.0-9755-pkg1.run
Quote:
Follow the prompts through the install script, you can let the script modify your xorg.conf (since we backed up your original in step 2)
Once the script completes successfully the driver should be installed and working.. I don't believe you need to reboot, so go ahead and try starting X again..

/etc/init.d/gdm start
[CODE]
us.download.nvidia.com/XFree86/Linux-x86/1.0-9755/NVIDIA-Linux-x86-1.0-9755-pkg1.run
When typing ./NVIDIA-Linux-x86-1.0-9755-pkg1.run , it sounds to be a wrong link -

Code:
"ERROR: this .run file is intended for the Linux-x86 platform, but you appear to be running on Linux-x86_64. Aborting installation."
just a bit worried that as a newbie I mess with the whole linux system I currently have in place in my computer, and add future bugs... this is getting a bit demotivating... Kind help appreciated.

Last edited by tanguy123; 01-22-2016 at 09:56 AM. Reason: I put my progress on time - using it as log... please jump in if any remarks
 
Old 01-22-2016, 04:48 AM   #5
tanguy123
LQ Newbie
 
Registered: Jan 2016
Distribution: Debian Wheezy 7.9
Posts: 8

Original Poster
Rep: Reputation: Disabled
I tried to go back to the GUI, by typing startx (but without any success).

Code:
xauth: file /home/tanguy/.Xauthority does not exist... (nice, fun..)

X.Org X Server 1.12.4
Release Date: 2012-08-27
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.16.0-4-amd64 x89_64 Debian
Current Operating System: Linux PC-TGB 3.2.0-4-amd64 #1 SMP Debian 3.2.73-2+deb7u2 x86_64
Kernel Command line: BOOT_IMAGE=/boot/vmlinuz-3.2.0-4-amd64 root=...
Build Date: 09 February 2013
xorg-server 2:1.12.4-6+deb4u6 (Julien...)
Current version of pixman: 0.26.0
   Before reporting problems, check http://wiki.x.org to make sure you have the latest version.
Markers: ... (==) default setting,
(==) Log file: "/var/log/Xorg.0.log", Time:Fri Jan 22 10:28:35
(==) Using config file: "/etc/x11/xorg.conf.d"
(==) Using system config directory "/usr/share/x11/xorg.conf.d"
ERROR: could not insert 'nvidia_current' : NO such device

Fatal server error:
no screens found

Please consult the The X.Org Foundation support at http://wiki.x.org for help.
Please also check the log file at "/var/log/Xorg.0.log" for additional information.
Server terminated with error (1). Closing log file.
xinit: giving up
xinit: unable to connect to x server: Connection refused
xinit: server error
 
Old 01-22-2016, 10:25 AM   #6
tanguy123
LQ Newbie
 
Registered: Jan 2016
Distribution: Debian Wheezy 7.9
Posts: 8

Original Poster
Rep: Reputation: Disabled
I went on this thread http://askubuntu.com/questions/41681...tricted-driver
and went through all these steps. Hopefully, I managed to clean everything I did. I wonder though how I could re-install Debian (since I beleive having really messed up with the OS structure - everything is documented here though).

Quote:
Remove everything to do with the Nvidia proprietary drivers.

sudo apt-get remove --purge nvidia-*

Start from scratch.

sudo apt-get remove --purge xserver-xorg-video-nouveau xserver-xorg-video-nv

Reinstall all the things!

sudo apt-get install nvidia-common
sudo apt-get install xserver-xorg-video-nouveau
sudo apt-get install --reinstall libgl1-mesa-glx libgl1-mesa-dri xserver-xorg-core

Reconfigure the X server.

sudo dpkg-reconfigure xserver-xorg
What mainly often came back up were the following :
E: Unable to locate package nvidia-common
I carried on all the steps though (without being really much convinced...)
 
Old 01-22-2016, 11:13 AM   #7
tanguy123
LQ Newbie
 
Registered: Jan 2016
Distribution: Debian Wheezy 7.9
Posts: 8

Original Poster
Rep: Reputation: Disabled
... and I believe Debian Linux is broken...! What a loss of time.
I can't start over it again (even in recovery mode, it is getting blocked at this line below)
Code:
[   4.612241] fb: conflicting fb hw usage nouveaufb vs EFI VGA - removing generic driver
I loved the linux experience on my raspberry pi, but here not.
ok, options ?
 
Old 01-22-2016, 03:51 PM   #8
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,464

Rep: Reputation: Disabled
Sorry for the delay.
1. Yes, you need to install the lshw package. Please do so, execute the command I suggested and let us know the results.
2. What makes you think you need a nvidia driver?
3. I think following instructions written 12 years ago is not a good idea.
4. Is there any reason why your are still using wheezy rather than the current Stable Debian release which is called "Jessie"?
5. Since the version on your computer is now broken, why not simplify your life and do a fresh install of the current Stable version (Jessie). Things may go a bit easier if you do.
jdk
 
Old 01-23-2016, 06:53 AM   #9
tanguy123
LQ Newbie
 
Registered: Jan 2016
Distribution: Debian Wheezy 7.9
Posts: 8

Original Poster
Rep: Reputation: Disabled
Hi jdkaye, no worry, thx for your reply

1. ok, will do when I manage to install jessie, I believe I could do so via
Code:
sudo apt-get install lshw
2. because the computer is with a nvidia GEFORCE GTX 970 GPU, and therefore I believe it should need a nvidia driver (but again maybe another solution could be fine here).

3. probably, but interestingly, there are not so many updated info on the web regarding that. Even the "official debian nvidia graphic card" site seems to have some late information (where I followed some of the steps). The reason why I intend to document as much as possible all my moves - who knows this thread could be helpful. I put a warning notice at the beginning of this thread BTW.

4. It's a good point. There is actually none. If Jessie is considered as more stable, definitely, I should go within that direction. Would be Ubuntu a better option ? My goal with linux is mainly to develop data science & VR (so lots of javascript) + configuring potential virtual environments & test.

5. I'll follow your advice (I need to find the way on how to do it though):
- is there a way - if IT mismanipulation - I could break my Windows OS + motherboard too ?
- Would you have any indications / directions on how to format out this wheezy, and replace it with a jessie (or Ubuntu, if better) ? It looks like the partition has been done on the motherboard itself (X99S SLI Krait edition). As you probably understood, I did not make the installation myself (which is more complex).

Basically, I'll need to :
a. format out Debian Wheezy while not impacting my Windows partition
b. install Debian Jessie while not impacting my Windows partition
mmmh, challenging for a newbie, I'll advance with extra-care this time.


Thanks for your direction,
Best,
Tanguy

Last edited by tanguy123; 01-23-2016 at 07:09 AM.
 
Old 01-23-2016, 08:14 AM   #10
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 2,321
Blog Entries: 1

Rep: Reputation: 447Reputation: 447Reputation: 447Reputation: 447Reputation: 447
As above you probably need to install lshw to run lshw.

# apt-get install pciutils

(where # implies as root or prefixed with sudo)

$ lspci -nnk | grep -i vga

If you're using the VGA driver, then you'll likely be limited to 1024x768 or lower resolutions. If you're on really old hardware the GPU might only be capable of certain resolutions. The VGA out on an older laptop of mine was only able to do 1280 something on a 1600x900 display. Basically make sure you're using an appropriate driver for your GPU.

# apt-get install xserver-xorg-video-all

You shouldn't need to run the proprietary driver for your desired resolution. Although may eventually want it for other features. Depending on hardware age and the support level of "other" options.
 
Old 01-23-2016, 10:01 AM   #11
tanguy123
LQ Newbie
 
Registered: Jan 2016
Distribution: Debian Wheezy 7.9
Posts: 8

Original Poster
Rep: Reputation: Disabled
Hi Shadow 7, thanks for your precisions.

I am actually on a new hardware (hopefully it would last 5 years+), more used to MS windows. The screen is a high-resolution one(4k), and well, I would like to try out various resolutions before fixing myself to 1. Furthermore, in order to increase performance, I'm thinking about using the GPU via nvidia cuda. There might be some interdependencies. Is it that risky to install drivers ?

I am now facing this issue on how to format out this wheezy, and how to put this jessie/ or Ubuntu... I want to be extra-careful now, having already "destroyed" an OS - currently hoping some feedback from the person who installed it.

Basically, I sense I'd need to put ubuntu / Jessie on a USB stick.
I'd need then to boot back the desktop,
then F11,
then on the motherboard, "Please select boot device :" click on "Enter setup"... but after then...

Last edited by tanguy123; 01-23-2016 at 10:07 AM.
 
Old 01-23-2016, 03:33 PM   #12
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 2,321
Blog Entries: 1

Rep: Reputation: 447Reputation: 447Reputation: 447Reputation: 447Reputation: 447
UEFI will likely get in the way for a first timer. If you're okay with disabling secure boot and enabling legacy mode / CSM, it'll simplify things. Most x86 things should allow you to do those changes. Although getting to the UEFI settings might be more difficult than installing linux. AFAIK, debian currently works with UEFI but does NOT work with secure boot enabled. I tend to turn them off, but I only run linux atm. Otherwise pressing power and spamming ESC at boot gets me to my UEFI boot options. From what I've heard, ubuntu and fedora are signed with microsoft keys so should work out of the box (in theory) without fiddling much if any with UEFI.

It's difficult to mix AMD and nVidia GPUs. The amd one replaces the libGL.so with it's version and the nVidia one requires an nvidia specific kernel. There are open drivers that might work "radeon" for amd and "nouveau" for nvidia. Which requires no monkey business if you haven't corrupted an installation with the proprietary drivers yet. Most of my systems these days have intel GPUs. Which are good enough.

# apt-get install xserver-xorg-video-all

Should grab all the open drivers and be auto detected when you start X afterwards. Do the install of that and reboot is the simple way to get that active. The fbdev and vesa drivers are the fallback drivers for when nothing else is detected or available.
 
Old 01-23-2016, 03:59 PM   #13
JeremyBoden
Member
 
Registered: Nov 2011
Posts: 938

Rep: Reputation: 174Reputation: 174
Quote:
Originally Posted by Shadow_7 View Post
If you're using the VGA driver, then you'll likely be limited to 1024x768 or lower resolutions. If you're on really old hardware the GPU might only be capable of certain resolutions. The VGA out on an older laptop of mine was only able to do 1280 something on a 1600x900 display. Basically make sure you're using an appropriate driver for your GPU.

You shouldn't need to run the proprietary driver for your desired resolution. Although may eventually want it for other features. Depending on hardware age and the support level of "other" options.
[rather off-topic]
At present I'm using a HDMI nvidia proprietary driver with a 1920 x 1080 screen.
Does this mean that my present graphics card can handle a higher resolution screen?
 
Old 01-23-2016, 06:14 PM   #14
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 2,321
Blog Entries: 1

Rep: Reputation: 447Reputation: 447Reputation: 447Reputation: 447Reputation: 447
It depends on the card. nVidia doesn't play nice with xrandr at last check. On my intel xrandr says it has an 8192x8192 video buffer. And I can make a virtual space of 4096x4096 for my HDMI out to a 1920x1080 screen, or even on the 1366x768 LCD (not bad for a $200 laptop). I would assume that mine would do a 4k screen, although I don't have any to verifiy. And caveats with doing 4k over HDMI. It really depends on what your GPU can do and the EDID capabilities of the display. Some of which is listed in the /var/log/Xorg.0.log file when you start X. And the less verbose output of xrandr with no parameters can help list your options.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
nvidia screen resolution limited to 1024 in suse11.1 and KDE4.1 with 3d enabled ianio SUSE / openSUSE 3 01-28-2009 04:11 AM
fbset -xres 1024 -yres 768 doesn't change my console screen resolution bucovaina78 Linux - Software 1 10-19-2008 11:46 PM
how to change the screen resolution to 1024*768 girishgld Linux - Newbie 4 08-19-2008 08:26 AM
screen resolution stuck at 1024 x 768 etechnophile SUSE / openSUSE 7 01-03-2007 03:16 AM
screen resolution went back to 1024*768 spacegypsy Linux - Software 8 04-22-2006 07:18 AM


All times are GMT -5. The time now is 10:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration