Category Archives: Uncategorized

Fixing External Monitor Resolution/Mode in Ubuntu

I have an LG 22″ display capable of running 1920×1080 resolution. If I plug the monitor before booting Ubuntu 10.04, all will go well, the monitor brand is shown properly in Monitor Preferences dialog and I can use the monitor in its highest resolution.

The problem is if I attached it after Ubuntu is started, Monitor Preferences will show it as “Unknown” monitor, and I will only get much lower resolution. And restarting X (with Ctrl-Alt-Backspace), or running “xrandr -q” don’t help, somehow the bad resolution stucks. The only way to fix this is to reboot the whole system, which is annoying.

If that sounds like the problem you have, this post may help you.

Step 1.

Find the so called X mode line for your desired resolution/mode. The best way is to look it in /var/log/Xorg.0.log file when the system is booting with the correct resolution. The whole line will look something like:

(II) intel(0): Modeline "1920x1080"x0.0  148.50  1920 2008 2052 2200  1080 1084 1089 1125 +hsync -vsync (67.5 kHz)

but the needed part is:

"1920x1080"x0.0  148.50  1920 2008 2052 2200  1080 1084 1089 1125 +hsync -vsync

If your system can’t boot with the desired resolution, you will have to find the mode line for your resolution elsewhere, or use mode line calculators for this. You can use gtf or cvt tool:

~$ gtf 1920 1080 60
# 1920x1080 @ 60.00 Hz (GTF) hsync: 67.08 kHz; pclk: 172.80 MHz  Modeline "1920x1080_60.00"  172.80  1920 2040 2248 2576  1080 1081 1084 1118  -HSync +Vsync

$ cvt 1920 1080 60
# 1920x1080 59.96 Hz (CVT 2.07M9) hsync: 67.16 kHz; pclk: 173.00 MHz
Modeline "1920x1080_60.00"  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync

In my experience, gtf or cvt may not get the correct numbers for you (in my case, the display is shifted up by few pixels), YMMV.

 

Step 2.

Add new mode with xrandr:

$ xrandr --newmode "1920x1080_60.00"  148.50  1920 2008 2052 2200  1080 1084 1089 1125 +hsync -vsync

 

Step 3.

Register the mode with you monitor:

$ xrandr --addmode VGA1 "1920x1080_60.00"

Replace VGA1 with the identifier for your monitor (just run xrandr without any argument to view detected monitors).

The last argument of –-addmode is the mode name, it must match the mode name added with –newmode command previously. Also, cAPiTalizAtion matters.

 

Step 4.

Now the mode is ready to be used:

$ xrandr --output VGA1 --mode "1920x1080_60.00"


I’m not expert on this, I only got this after hours of searching, but hopefully this helps. Good luck!

 

 

16 Comments

Filed under Uncategorized

FIFA Please Sort Out Indonesian Football

Nurdin Halid Yes I Can

Nurdin Halid: Yes I Can

Leave a comment

Filed under Uncategorized

Installing Mac OS X Snow Leopard 10.6.6 on VirtualBox

First of all, I’m running VirtualBox 4.0.4 on Ubuntu Linux 10.04 on Core2 Duo laptop. If you’re running an AMD machine, the installation here may not work for you because the SL distro is marked as for Intel only.

For the steps, please refer to “Install OS X Snow Leopard in VirtualBox..” guide. I will only show the difference from that guide here.

Step 1. You will also need “Snow Leopard 10.6.6 SSE2/SSE3 Intel Only by Hazard” DVD ISO. Don’t ask me where to get it from!

Step 3. Set Operating System Version to “Mac OS X Server (64 bit)

Step 4. I give my VM 1024 MB only.

Step 5. I set my hard disk maximum size to 40 GB (20 GB would be too small for iPhone development)

Step 6. Additional steps:

  • System -> Processor:  I assign two virtual processors.

Step 7.  Storage:

  • add SATA controller and move the virtual hard disk from the IDE controller to the SATA controller
  • check the “use host I/O cache” tickbox for the SATA controller.
  • mount “SL_10.6.6i_by_Hazard.iso” to the IDE CDROM drive.

Step 10. Different customization than the guide:

  • Check the latest Chameleon bootloader
  • Check Legacy Kernel
  • There is no upgrade nor EFF bootloader

 

 

 

10 Comments

Filed under Uncategorized