Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > Hardware & Laptops
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.
Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

Hardware & Laptops
Problems with hardware & laptops not being detected or supported during or after install.

 
 
Thread Tools Display Modes
Old April 8th, 2005   #1
wildcard
5 Cups of Ubuntu
 
Join Date: Apr 2005
Beans: 19
Hoary 855resolution guide :)

This is the definitive 855resolution guide for Hoary/Ubuntu, written with the novice in mind...

Using a terminal window, type in the following:

cd /etc/X11
sudo gedit xorg.conf

Make sure that you have modelines and display subsections that show your target resolution. My Dell 700m, on a fresh install, had the 1280x800 resolution already set. Yours may vary-since you're in here, you can add your target resolution in the display subection...

Section "Screen"
Identifier "Default Screen"
Device "Generic Video Card"
Monitor "Generic Monitor"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1280x800" "1024x768" "800x600" "640x480"
EndSubSection

And for your modelines...

Section "Monitor"
Identifier "Generic Monitor"
HorizSync 30-90
VertRefresh 50-160
Option "DPMS"
Modeline "1280x800_60.00" 83.46 1280 1344 1480 1680 800 801 804 828
-HSync +Vsync

My theory is that X.org is a little smarter that XFree86, so you should have these already present and will not need to modify this xorg.conf file.

The 855resolution patch can be downloaded from here:
http://perso.wanadoo.fr/apoirier/

Save this file to your desktop, then extract it. I'd create a folder named 855rez in your /home/xxx directory (where xxx is the user account you're logged in as)

Go to synaptic package manager and install GCC-you'll need this for the install

Using a terminal window, go to the folder where you extracted the patch (/home/xxx/855rez if you're using my defaults). At the prompt, type in:

make

This will process the patch. At the next prompt type:

sudo make install

This will install the 855resolution files to the /home/xxx/855rez folder. At the next prompt, type:

sudo 855resolution -l

You will see a bunch of resolution modes. This is my output for reference:

VBIOS Version: 3104

Mode 30 : 640x480, 8 bits/pixel
Mode 32 : 800x600, 8 bits/pixel
Mode 34 : 1024x768, 8 bits/pixel
Mode 38 : 1280x1024, 8 bits/pixel
Mode 3a : 1600x1200, 8 bits/pixel
Mode 3c : 1280x800, 8 bits/pixel
Mode 41 : 640x480, 16 bits/pixel
Mode 43 : 800x600, 16 bits/pixel
Mode 45 : 1024x768, 16 bits/pixel
Mode 49 : 1280x1024, 16 bits/pixel
Mode 4b : 1600x1200, 16 bits/pixel
Mode 4d : 1280x800, 16 bits/pixel
Mode 50 : 640x480, 32 bits/pixel
Mode 52 : 800x600, 32 bits/pixel
Mode 54 : 1024x768, 32 bits/pixel
Mode 58 : 1280x1024, 32 bits/pixel
Mode 5a : 1600x1200, 32 bits/pixel
Mode 5c : 1280x800, 32 bits/pixel
Mode 7c : 1280x801, 8 bits/pixel
Mode 7d : 1280x801, 16 bits/pixel
Mode 7e : 1280x801, 32 bits/pixel

As you can see I already have 1280x800 resolutions enabled. Choose a Mode that you will never use for sure, like a ridiculously high resolution that your monitor can't support, and run the patch against it.
At your terminal prompt, type:

sudo 855resolution 5a 1280 800

What that will do is set mode 5a (the one I picked) to a resolution of 1280 800. If you need to set this to something different, use those values..for example, if your monitor is 1440x1000, your line should look like "sudo 855resolution 5a 1440 1000".

At your next prompt, rerun:

sudo 855resolution -l

Check to see that your new modeline is in place. If so, you can restart X windows by hitting the CTRL, ALT, and Backspace keys on your keyboard at the same time...your new resolution should now take effect.

You'll need to run this patch every time you boot, as the BIOS will forget it on reboot. Go to Applications/Text Editor and create a new document with the following line:

855resolution 5a 1280 800 (remember, my example is for the 1280x800 widescreen resolution)

Save this file as "startupscript" on your desktop.

Go into a terminal window again and type:

sudo cp /home/xxx/Desktop/startupscript /etc/init.d/startupscript

This will move the file to where it needs to be. At your next prompt, type in:

cd /etc/init.d

At your next prompt, type in:

sudo chmod a+x startupscript

This sets the script file with the correct permissions.

To have this run at boot, you'll need to use Synaptic Package manager to get rcconf (apt-get install rcconf). Once this is done, go back to a terminal and type:

sudo rcconf

You should see a window with a bunch of choices with * next to them. Scroll down, and you should see startupscript on that list. Use the spacebar to place * next to startupscript, then tab to OK and this should get you back to the terminal window.

Last (and this gets missed a LOT!),the applications in rcconf are loaded in alphanumerical order. Ubuntu's runlevel (used by rcconf) is 2, so at your terminal window, type:

cd /etc/rc2.d
dir

The dir command will give you a list of files, all with names like S00nameoffile. Take note of where the GDM line is. On Hoary 5.04 live, mine shows as S13gdm. Your startupscript file should be in here too, probably as S20startupscript. The issue is that your script needs to run BEFORE GDM starts! To do this, note where the Sxx gaps are...if you go from S05 to S10, you have a range to work with...At your terminal window, type in:

sudo cp /etc/rc2.d S20startupscript /etc/rc2.d S09startupscript

This will place a copy of your startupscript BEFORE GDM in the boot order. If you run:

dir

from the terminal prompt, you should now see your S09startupscript in the directory list.

At this point, restart Ubuntu. While all the verbose parts of your kernel are loading, you should see a line about 855resolution and patch applied to 1280 800 (or whatever target resolution you were gunning for...).

Enjoy!
wildcard is offline  
Old June 3rd, 2005   #2
desiboston
First Cup of Ubuntu
 
Join Date: May 2005
Beans: 8
Re: Hoary 855resolution guide :)

Everything worked like charm except the last part.

shiv@ubuntu:~$ sudo cp /etc/rc2.d S20startupscript /etc/rc2.d S09startupscript
cp: `S09startupscript': specified destination directory does not exist
Try `cp --help' for more information.
shiv@ubuntu:~$


please help....



I have to restartx after I log in and the resolution works fine
desiboston is offline  
Old June 5th, 2005   #3
Sav
A Carafe of Ubuntu
 
Join Date: May 2005
Beans: 105
Re: Hoary 855resolution guide :)

If you add in the repository list the universe and multiverse databases, you'll find the deb package of 855resolution.
It installs the script.
You have only to edit the configuration file to add the mode you want.
Sav is offline  
Old June 5th, 2005   #4
desiboston
First Cup of Ubuntu
 
Join Date: May 2005
Beans: 8
Re: Hoary 855resolution guide :)

This is my repository list: Kynaptic can't find it...
deb cdrom:[Kubuntu 5.04 _Hoary Hedgehog_ - Release i386 (20050407)]/ hoary main restricted


## Uncomment the following two lines to fetch updated software from the network
deb http://us.archive.ubuntu.com/ubuntu hoary main restricted
deb-src http://us.archive.ubuntu.com/ubuntu hoary main restricted

## Uncomment the following two lines to fetch major bug fix updates produced
## after the final release of the distribution.
deb http://us.archive.ubuntu.com/ubuntu hoary-updates main restricted
deb-src http://us.archive.ubuntu.com/ubuntu hoary-updates main restricted

## Uncomment the following two lines to add software from the 'universe'
## repository.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://us.archive.ubuntu.com/ubuntu hoary universe
deb-src http://us.archive.ubuntu.com/ubuntu hoary universe

deb http://security.ubuntu.com/ubuntu hoary-security main restricted
deb-src http://security.ubuntu.com/ubuntu hoary-security main restricted

deb http://security.ubuntu.com/ubuntu hoary-security universe
deb-src http://security.ubuntu.com/ubuntu hoary-security universe

deb http://archive.ubuntu.com/ubuntu hoary multiverse
deb-src http://archive.ubuntu.com/ubuntu hoary multiverse

## Backports
deb http://ubuntu-backports.mirrormax.net/ hoary-backports main universe multiverse restricted
deb http://ubuntu-backports.mirrormax.net/ hoary-extras main universe multiverse restricted
desiboston is offline  
Old June 5th, 2005   #5
desiboston
First Cup of Ubuntu
 
Join Date: May 2005
Beans: 8
Re: Hoary 855resolution guide :)

So finally it worked, I installed manually. Everything looks cool BUT the fonts are too big, I made them small but still if I open the Openoffice half the screen is occupied by toolbars...what to do now?
desiboston is offline  
Old June 21st, 2005   #6
YenningComity
First Cup of Ubuntu
 
Join Date: Jun 2005
Beans: 8
Re: Hoary 855resolution guide :)

Ok two things one when you go to copy the link in the final step should the resulting file S09startupscript be a link like the original was?

And two can someone with a dell 700m post their xconfig i broke mine so x no longer starts up.
YenningComity is offline  
Old August 15th, 2005   #7
ahh_dee
5 Cups of Ubuntu
 
Join Date: Aug 2005
Beans: 42
Re: Hoary 855resolution guide :)

I just installed a fresh dual boot system with Windows XP and ubuntu. I am new to ubuntu and i am having trouble with setting up my resolution.
i extracted the file into a different folder and and typed

$make b

then i get this error

/home/dennis/Desktop/855resolution # make
cc -s -Wall -DVERSION='"0.3"' -DPLUGINS='plugin1,plugin2' -DREF_PLUGINS='&plugin1,&plugin2' -c -o 855resolution.o 855resolution.c
make: cc: Command not found
make: *** [855resolution.o] Error 127


can someone help me? thanks
ahh_dee is offline  
Old August 30th, 2005   #8
nyheat
First Cup of Ubuntu
 
Join Date: Aug 2005
Beans: 4
Re: Hoary 855resolution guide :)

Quote:
Originally Posted by ahh_dee
I just installed a fresh dual boot system with Windows XP and ubuntu. I am new to ubuntu and i am having trouble with setting up my resolution.
i extracted the file into a different folder and and typed

$make b

then i get this error

/home/dennis/Desktop/855resolution # make
cc -s -Wall -DVERSION='"0.3"' -DPLUGINS='plugin1,plugin2' -DREF_PLUGINS='&plugin1,&plugin2' -c -o 855resolution.o 855resolution.c
make: cc: Command not found
make: *** [855resolution.o] Error 127


can someone help me? thanks
to fix that problem you need to install GCC
go to System>Synaptic Package Manager > GCC
right click and select Mark for installation


Thanks a lot for the guide, I am new to Linux myself but after some persistence I got it to work.

One thing that needs to be mentioned however is that I didn't find rcconf listed in Synaptic Package Manager, so I had to find th .deb package manually and install it myself
nyheat is offline  
Old January 15th, 2006   #9
sroets
First Cup of Ubuntu
 
Join Date: Jan 2006
Beans: 8
Re: Hoary 855resolution guide :)

Quote:
Originally Posted by nyheat
to fix that problem you need to install GCC
go to System>Synaptic Package Manager > GCC
right click and select Mark for installation


Thanks a lot for the guide, I am new to Linux myself but after some persistence I got it to work.

One thing that needs to be mentioned however is that I didn't find rcconf listed in Synaptic Package Manager, so I had to find th .deb package manually and install it myself
I did install GCC, but this is the error that I get when running the make comand:

cc -Wall -I`pwd` -DVERSION='"0.4"' -DPLUGINS='plugin1,plugin2,plugin3' -DREF_PLUGINS='&plugin1,&plugin2,&plugin3' -c -o 855resolution.o 855resolution.c
855resolution.c:14:19: stdio.h: Onbekend bestand of map
855resolution.c:15:20: stdlib.h: Onbekend bestand of map
855resolution.c:16:20: string.h: Onbekend bestand of map
855resolution.c:17:20: unistd.h: Onbekend bestand of map
855resolution.c:18:20: sys/io.h: Onbekend bestand of map
855resolution.c: In function `find_modes':
855resolution.c:31: error: `NULL' undeclared (first use in this function)
855resolution.c:31: error: (Each undeclared identifier is reported only once
855resolution.c:31: error: for each function it appears in.)
855resolution.c: In function `find_resolution':
855resolution.c:53: error: `NULL' undeclared (first use in this function)
855resolution.c: In function `list_modes':
855resolution.c:63: let op: implicit declaration of function `printf'
855resolution.c: In function `parse_args':
855resolution.c:79: error: `NULL' undeclared (first use in this function)
855resolution.c:81: let op: implicit declaration of function `strlen'
855resolution.c:99: let op: implicit declaration of function `atoi'
855resolution.c:101: let op: implicit declaration of function `fprintf'
855resolution.c:101: error: `stderr' undeclared (first use in this function)
855resolution.c:122: let op: implicit declaration of function `strtol'
855resolution.c: In function `main':
855resolution.c:140: error: `NULL' undeclared (first use in this function)
855resolution.c:160: let op: implicit declaration of function `iopl'
855resolution.c:161: let op: implicit declaration of function `perror'
855resolution.c:172: error: `stderr' undeclared (first use in this function)
855resolution.c:195: let op: implicit declaration of function `putchar'
make: *** [855resolution.o] Fout 1

can anyone help me out ???
thanks!
sroets is offline  
Old March 31st, 2006   #10
Xitanto
5 Cups of Ubuntu
 
Join Date: Mar 2006
Beans: 18
Re: Hoary 855resolution guide :)

I have followed all the instructions in this thread to the letter, but my Ubuntu still doesn't work with 1280x800 resolution.

It does all the way until I am logged in, and then it reverts to 1024x768.
Xitanto is offline  
 

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:20 AM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry