PDA

View Full Version : [ubuntu] Natty - "Monitor: unknown" - Can't set display resolution



yug_matt
May 27th, 2011, 07:37 PM
Hi,

I have done a scratch install of Ubuntu 11.04 (Natty) successfully today. I am facing problem while adjusting my monitor resolution.

My motherboard is pretty old, Kobian 845GLNDSMx. When I tried to adjust the resolution from Preferences -> Monitors, the resolution is shown as 800x600 (4:3), Refresh Rate - 0Hz and Rotaion as normal. "Monitor Unknown" is highlighted on the window. Moreover, "Detect Monitors" doesn't work.


Could you help resolve this issue.

Regards
Yug
PS: I faced similar issue with fiesty too.

yug_matt
May 29th, 2011, 09:51 AM
While searching Ubutu forum for the solution, I have found the below link which gives the .rpm driver from Intel for 845G/GL and steps to install it.

http://ubuntuforums.org/showthread.php?t=324379&highlight=installing+intel+extreme+graphics+on+lin ux

However, I am stuck at the step "sudo alien <filename.rpm>" due to following errors.

yug@yug-M903LR:~/Downloads$ sudo alien dri-I915-v1.1-20041217.i386.rpm
[sudo] password for yug:
Warning: Skipping conversion of scripts in package dri-I915: postinst prerm
Warning: Use the --scripts parameter to include the scripts.
Package build failed. Here's the log:
dh_testdir
dh_testdir
dh_testroot
dh_prep
dh_installdirs
dh_installdocs
dh_installchangelogs
find . -maxdepth 1 -mindepth 1 -not -name debian -print0 | \
xargs -0 -r -i cp -a {} debian/dri-i915
dh_compress
dh_makeshlibs
dh_installdeb
dh_shlibdeps
dh_gencontrol
dpkg-gencontrol: warning: Depends field of package dri-i915: unknown substitution variable ${shlibs:Depends}
dh_md5sums
dh_builddeb
dpkg-deb: error: parsing file 'debian/dri-i915/DEBIAN/control' near line 2 package 'dri-i915':
error in Version string 'v1.1-20041218': version number does not start with digit
dh_builddeb: dpkg-deb --build debian/dri-i915 .. returned exit code 2
make: *** [binary-arch] Error 9
yug@yug-M903LR:~/Downloads$


Could anyone know the solution to bypass this error " version number does not start with digit"

Thanks in advance.

Regards
Yug

wildmanne39
May 29th, 2011, 02:47 PM
While searching Ubutu forum for the solution, I have found the below link which gives the .rpm driver from Intel for 845G/GL and steps to install it.

http://ubuntuforums.org/showthread.php?t=324379&highlight=installing+intel+extreme+graphics+on+lin ux

However, I am stuck at the step "sudo alien <filename.rpm>" due to following errors.

yug@yug-M903LR:~/Downloads$ sudo alien dri-I915-v1.1-20041217.i386.rpm
[sudo] password for yug:
Warning: Skipping conversion of scripts in package dri-I915: postinst prerm
Warning: Use the --scripts parameter to include the scripts.
Package build failed. Here's the log:
dh_testdir
dh_testdir
dh_testroot
dh_prep
dh_installdirs
dh_installdocs
dh_installchangelogs
find . -maxdepth 1 -mindepth 1 -not -name debian -print0 | \
xargs -0 -r -i cp -a {} debian/dri-i915
dh_compress
dh_makeshlibs
dh_installdeb
dh_shlibdeps
dh_gencontrol
dpkg-gencontrol: warning: Depends field of package dri-i915: unknown substitution variable ${shlibs:Depends}
dh_md5sums
dh_builddeb
dpkg-deb: error: parsing file 'debian/dri-i915/DEBIAN/control' near line 2 package 'dri-i915':
error in Version string 'v1.1-20041218': version number does not start with digit
dh_builddeb: dpkg-deb --build debian/dri-i915 .. returned exit code 2
make: *** [binary-arch] Error 9
yug@yug-M903LR:~/Downloads$


Could anyone know the solution to bypass this error " version number does not start with digit"

Thanks in advance.

Regards
Yug
Hi, you can not install an rpm file in ubuntu, it uses .debs. Have you went into additional drivers to see if there is a driver for your video card there?

yug_matt
June 2nd, 2011, 08:05 AM
Hi,
sudo alien command is used to convert .rpm to .deb. But this conversion is failing due to the error related to version number. Morever, I am not able to find latest .rpm on the intel download page.

Actually, my motherboard manufacturer is kobian (Mercury). There is no linux graphic driver supported for the motherboad. Hence I raised a support ticket to Mercury with no response from them as yet.

I am giving try if intel driver would work as the chipset is same 845GL.

Will configuring xorg.conf work in this situation. Any thoughts on this.

Thanks
Yug

dino99
June 2nd, 2011, 08:10 AM
please dont add mess to a clean installation: your driver is part of kernel, so let it do its job itself

sudo rm /etc/X11/xorg.conf

sudo apt-get update
sudo apt-get install -f
sudo dpkg --configure -a

yug_matt
June 9th, 2011, 04:54 AM
There is no /etc/X11/xorg.conf in my system. However, I did the steps you mentioned with no success. I still find that "Display" setttings show "Monitor Unknown".

joey787
June 9th, 2011, 05:48 AM
i'm having the same exact problem, i've been trying to update my graphics drivers and i get the same exact message. any help would be appreciated

zivley
June 11th, 2011, 09:47 PM
I have a solution for you, but you must be sure you know what you're doing before you try this. You need to know for sure the mode you're choosing is supported by your monitor!
All this is done via command line, so fire up a terminal.

I'll give my case as example, I wanted to display a mode that wasn't listed (1280X960) which is a mode I'm sure my monitor used in the past.
To know which output we want to use and how exactly it's called, run a query to xrandr

xrandr -q
The output is something like this

Screen 0: minimum 320 x 200, current 1024 x 768, maximum 4096 x 4096
VGA1 connected 1024x768+0+0 (normal left inverted right x axis y axis) 306mm x 230mm
1280x1024 60.0
1024x768 85.0* 75.1 70.1 60.0 43.5
832x624 74.6
800x600 85.1 72.2 75.0 60.3 56.2
640x480 85.0 72.8 75.0 66.7 60.0
720x400 87.8 70.1
As you can see, the mode I want isn't listed, but we know now how is my monitor output called
We start by creating a new mode using a tool called cvt

cvt 1280 960
The syntax is "cvt width height", use your desired settings
The output is something like the following

# 1280x960 59.94 Hz (CVT 1.23M3) hsync: 59.70 kHz; pclk: 101.25 MHz
Modeline "1280x960_60.00" 101.25 1280 1360 1488 1696 960 963 967 996 -hsync +vsync
Now select and copy everything after Modeline (all the red text)
Now we need to add this new mode to xrandr to be able to use it later
Instead of using the weird name given by default, I preferred to call it "CUSTOM"

xrandr --newmode "CUSTOM" 101.25 1280 1360 1488 1696 960 963 967 996 -hsync +vsync
Then we add this new mode to our desired output

xrandr --addmode VGA1 "CUSTOM"

Now we're able to change the mode of our screen to the newly added mode

xrandr --output VGA1 --mode "CUSTOM"

To make it permanent we can add the last command to the gdm startup script

gksu gedit /etc/gdm/Init/Default &
Find the line
/sbin/initctl -q emit login-session-start DISPLAY_MANAGER=gdm
and add all the previous xrandr commands right before it


xrandr --newmode "CUSTOM" 101.25 1280 1360 1488 1696 960 963 967 996 -hsync +vsync
xrandr --addmode VGA1 "CUSTOM"
xrandr --output VGA1 --mode "CUSTOM"
[/code]

Save, exit and restart
If for some reason the computer doesn't start with the newly added settings, don't worry, at least it will be now available for you to chose it via the "System Settings>Monitors"
(Check the screenshot below)
194873

I hope this helps

If someone knows a better way, please let me know.

Ziv

bkratz
June 12th, 2011, 01:16 PM
@zivley--thanks for the step by step description. I had tried xrandr before (apparently poorly), but your method made it work this time--still not sure why--you know what was different. Anyway, thanks again.

zivley
June 12th, 2011, 06:44 PM
U R welcome!
I'm glad I could help someone with it

bkratz
June 12th, 2011, 08:56 PM
Are you sure the & symbol should be there in

gksu gedit /etc/gdm/Init/Default &

I had to leave it off

Also, since I had switched to Xubuntu with the new version ( Ubuntu seems bloated) I did have to use nano instead of gedit. Just learning Xubutu though ( I am sure everyone else knows this though!)

mister_playboy
June 14th, 2011, 04:54 AM
The & symbol just allows further terminal input while the chosen program is running. Leaving it off the quoted command just means you would have to close the gedit/mousepad window before typing in the terminal.

zivley
June 14th, 2011, 10:45 AM
The & symbol just allows further terminal input while the chosen program is running. Leaving it off the quoted command just means you would have to close the gedit/mousepad window before typing in the terminal.

Exactly!
that is just a way I'm used to run commands on terminal, so I can release it for further input while the program is still running.
It's only useful for me when I'm opening a GUI program from terminal, for command line processes I prefer to use "screen"

To your question, you don't have to use it, is not a must

yug_matt
June 25th, 2011, 05:34 PM
Hi ,

Thanks for the reply, I have tried the steps as below. But I couldn't proceed further because of the error "xrandr: Failed to get size of gamma for output default".


yug@yug-M903LR:~/myprograms$ xrandr -q
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 800 x 600, current 800 x 600, maximum 800 x 600
default connected 800x600+0+0 0mm x 0mm
800x600 0.0*
yug@yug-M903LR:~/myprograms$ cvt 1024 768
# 1024x768 59.92 Hz (CVT 0.79M3) hsync: 47.82 kHz; pclk: 63.50 MHz
Modeline "1024x768_60.00" 63.50 1024 1072 1176 1328 768 771 775 798 -hsync +vsync
yug@yug-M903LR:~/myprograms$ xrandr --newmode "CUSTOM" 63.50 1024 1072 1176 1328 768 771 775 798 -hsync +vsync
xrandr: Failed to get size of gamma for output default

zivley
June 25th, 2011, 08:38 PM
Please paste the output of the following command:

lspci -nn | grep VGA

michaelam
July 14th, 2011, 03:30 PM
I am also having a similar problem, my screen resolution should be 1366x768 and have tried all solutions to no avail. Below is my xrandr -q & lspci -nn | grep VGA output information

mich@mAM:~$ lspci -nn | grep VGA
00:02.0 VGA compatible controller [0300]: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller [8086:2a42] (rev 09)

mich@mAM:~$ xrandr -q
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 1024 x 768, current 1024 x 768, maximum 1024 x 768
default connected 1024x768+0+0 0mm x 0mm
1024x768 0.0*

hope you can give help. thanks

zivley
July 14th, 2011, 08:45 PM
first of all, make sure you have the intel display drivers installed

sudo apt-get install xserver-xorg-video-intel

Have you tried the steps I gave on my previous post here (http://ubuntuforums.org/showpost.php?p=10929081&postcount=8)?

yug_matt
July 16th, 2011, 03:29 PM
Here is the output

yug@yug-M903LR:~$ lspci -nn | grep VGA
00:02.0 VGA compatible controller [0300]: Intel Corporation 82845G/GL[Brookdale-G]/GE Chipset Integrated Graphics Device [8086:2562] (rev 01)

zivley
July 17th, 2011, 05:26 AM
Here is the output

yug@yug-M903LR:~$ lspci -nn | grep VGA
00:02.0 VGA compatible controller [0300]: Intel Corporation 82845G/GL[Brookdale-G]/GE Chipset Integrated Graphics Device [8086:2562] (rev 01)

My post above about installing the intel driver could help you too

moopere
July 17th, 2011, 09:36 AM
Unbelievable. Seriously. Its July 2011 and after all these years there still doesn't seem to be a simple tool for end users to set their monitor and display resolution.

Its just laughable.

Rodney9
July 17th, 2011, 09:16 PM
Unbelievable. Seriously. Its July 2011 and after all these years there still doesn't seem to be a simple tool for end users to set their monitor and display resolution.

Its just laughable.

I found lxrandr, works well so far.

UrBob
August 17th, 2011, 12:26 AM
Thanks for the excellent walkthrough. At least the commands worked for me, even if it didn't do the job.
I read a message elsewhere which was supposed to do the same thing, but the newmode and addmode lines failed. Here is what I did.

/etc/X11$ sudo xrandr -q
xrandr: Failed to get size of gamma for output default
Screen 0: minimum 320 x 240, current 640 x 480, maximum 640 x 480
default connected 640x480+0+0 0mm x 0mm
640x480 50.0*
320x240 51.0
/etc/X11$ cvt 800 600
# 800x600 59.86 Hz (CVT 0.48M3) hsync: 37.35 kHz; pclk: 38.25 MHz
Modeline "800x600_60.00" 38.25 800 832 912 1024 600 603 607 624 -hsync +vsync
/etc/X11$ sudo xrandr --newmode "CUSTOM800" 38.25 800 832 912 1024 600 603 607 624 -hsync +vsync
xrandr: Failed to get size of gamma for output default
/etc/X11$ sudo xrandr --addmode default "CUSTOM800"
xrandr: Failed to get size of gamma for output default
/etc/X11$ sudo xrand --output default --mode CUSTOM800
xrandr: Failed to get size of gamma for output default
xrandr: Configure crtc 0 failed
/etc/X11$
As you can see, I'm working at 640x480 (which messes up an awful lot of dialogs which expect at least 800x600.
Also, I was not able to select the newly added modes from the GUI interface as they were not listed, even though I tried to make them permenant as directed in the original walkthrough.
My problems started when I gave the go-ahead to update to the nVidia drivers, and it seems that they do not like my monitor at all.
lspci shows the following:
01:00.0 VGA compatible controller [0300]: nVidia Corporation NV36 [GeForce FX 5700LE] [10de:0343] (rev al)
Hope someone has some ideas, or knows how to go back to the default display drivers.

I managed to get back to the default drivers. I had the original problem on 10.10 and upgraded to 11.04 which does allow me to resise more of the dialogs and also had an option to get rid of the nVidia drivers. Unfortunately it also has a problem where sometimes the screen is broken into three areas which do not line up correctly. This sometimes sorts itself out after logging in, and sometimes needs me to change the resolution a couple of times, so not very handy. (1024x768 is available so an improvement).

thyraios
August 29th, 2011, 02:30 PM
just for the record:
system: dell inspiron 1420 + lg flatron via vga
de: gnome 3 via ppa on top of xubuntu 11.04
above xrandr settings work great for dual, but when I try to disable laptop monitor something goes wrong and it reverts to original dual screen settings after time expires

gordintoronto
August 29th, 2011, 06:04 PM
Unbelievable. Seriously. Its July 2011 and after all these years there still doesn't seem to be a simple tool for end users to set their monitor and display resolution.

Its just laughable.

There's a terrific simple tool if you have an Nvidia video card. And a different good one for people with ATI video cards. And another one which works in many other cases, but there are a handful of video adapters which are nasty and poorly supported.

mrdragon333
September 18th, 2011, 11:52 AM
user@OM-MS-6714:~$ lspci |grep VGA
00:02.0 VGA compatible controller: Intel Corporation 82845G/GL[Brookdale-G]/GE Chipset Integrated Graphics Device (rev 03)

can anyone please help me install the correct Intel driver for unbuntu 11.04
I am able to get resolution higher than 800*600 also unbuntu does not detect my monitor
I have checked my xconfig file it empty

bkratz
September 18th, 2011, 12:19 PM
user@OM-MS-6714:~$ lspci |grep VGA
00:02.0 VGA compatible controller: Intel Corporation 82845G/GL[Brookdale-G]/GE Chipset Integrated Graphics Device (rev 03)
can anyone please help me install the correct Intel driver for unbuntu 11.04
I am able to get resolution higher than 800*600 also unbuntu does not detect my monitor
I have checked my xconfig file it empty


since you have the Brookdale, many people experience problems. Here is a good starting place (esp. post 8 )

http://ubuntuforums.org/showthread.php?t=1748717

Then just googlubuntu.com and search for like experiences.

http://www.googlubuntu.com/results/?cx=006238239194895611142%3Au-ocqbntw_o&cof=FORID%3A9&ie=UTF-8&q=Brookdale&as_qdr=m6&sa=Google+Search&lang=en#866

mrdragon333
September 18th, 2011, 03:35 PM
WOW! it worked



gksudo gedit /etc/X11/xorg.conf

This creates an empty file; paste the following into the file and save:


Section "Device"
Identifier "Configured Video Device"
Driver "intel"
EndSection

Section "Monitor"
Identifier "Configured Monitor"
EndSection

Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
EndSection

bkratz
September 18th, 2011, 03:41 PM
WOW! it worked



gksudo gedit /etc/X11/xorg.confThis creates an empty file; paste the following into the file and save:


Section "Device"
Identifier "Configured Video Device"
Driver "intel"
EndSection

Section "Monitor"
Identifier "Configured Monitor"
EndSection

Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
EndSection




Sure glad it did! --( I had my doubts)

mrdragon333
September 19th, 2011, 12:18 PM
it worked... but now Ubutu keeps on freezing without any reason?
do you know why is it freezing ?