the machine in the lab is weird. though the cpu is core due 2.8Ghz, the lab members use 2x256m memory, also one of the 256m memory is broken, the left memory only 248m. = =b i used this machine as a web server using some heavy j2ee servers. in the last few months, always experiencing out of memory exception. the good news is they gave me 1g memory today. sounds great. after i plug in the memory, something weird happended. the screen resolution is not correct. after checking xorg.conf and refer to several articles in the web, i realized that ubunt failed to recognize the monitor. so the resolution at most is 1280x1024, however, the monitor i used is a standard monitor, which means the highest resolution for the 17 inch screen would be 1024x768.
the way to change the resolution is like this, modify the x configuration file, xorg.conf
1. sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.backup
the reason the backup the xorg.conf is because X is famous for bad temper, when the configuration file is incorrect, we can not enter the gui. however, afterwards, we need to change this configuration file, we'd better backup it.
2. sudo vim /etc/X11/xorg.conf
found the Monitor section, change the monitor section according to the monitor model, the horizSync and vertRefresh should be contained somewhere in the monitor manual. if there's no manual or instruction, search the web using model number, it should be easy to find them. to define more resolution, change the Screen Section, Display sub section, add more resolution in the sub section. save the modifcation. restart X (ctrl + alt + backspace)
Section "Monitor"
Identifier "782LE"
Option "DPMS"
HorizSync 30-80
VertRefresh 56-75
EndSection
Section "Screen"
Identifier "Default Screen"
Device "Intel Corporation 82915G/GV/910GL Integrated Graphics Controller"
Monitor "782LE"
DefaultDepth 24
SubSection "Display"
Modes "1600x1200" "1280x960" "1280x1024" "1024x768" "800x600" "720x400" "640x480"
EndSubSection
EndSection
3. change the resolution, from System --> Preferences --> Screen Resolution, there'll be more resolution to choose from.
* If in the second step, the file fomrat is wrong, or the identifier is not right, the x will not be started properly, there'll be some configuration window pop out at low resolution, accept it temporaly. and copy the backup file to modified file, and restart x again, we'll back to the original state.
the way to change the resolution is like this, modify the x configuration file, xorg.conf
1. sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.backup
the reason the backup the xorg.conf is because X is famous for bad temper, when the configuration file is incorrect, we can not enter the gui. however, afterwards, we need to change this configuration file, we'd better backup it.
2. sudo vim /etc/X11/xorg.conf
found the Monitor section, change the monitor section according to the monitor model, the horizSync and vertRefresh should be contained somewhere in the monitor manual. if there's no manual or instruction, search the web using model number, it should be easy to find them. to define more resolution, change the Screen Section, Display sub section, add more resolution in the sub section. save the modifcation. restart X (ctrl + alt + backspace)
Section "Monitor"
Identifier "782LE"
Option "DPMS"
HorizSync 30-80
VertRefresh 56-75
EndSection
Section "Screen"
Identifier "Default Screen"
Device "Intel Corporation 82915G/GV/910GL Integrated Graphics Controller"
Monitor "782LE"
DefaultDepth 24
SubSection "Display"
Modes "1600x1200" "1280x960" "1280x1024" "1024x768" "800x600" "720x400" "640x480"
EndSubSection
EndSection
3. change the resolution, from System --> Preferences --> Screen Resolution, there'll be more resolution to choose from.
* If in the second step, the file fomrat is wrong, or the identifier is not right, the x will not be started properly, there'll be some configuration window pop out at low resolution, accept it temporaly. and copy the backup file to modified file, and restart x again, we'll back to the original state.
No comments:
Post a Comment