QUOTE (consono @ Apr 4 2009, 02:40 PM)

Hi Druga!
I attached the files! (Even the compilled 915resolution.mod, you just have to replace the original .) Do you patched mode 34?
Consono
Click to view attachmentHi Consono,
Thank you so so much for your help. Now, I am able to get 1280x800 resolution. Actually, I did not patch mode 34. After looking at your grub.cfg, I changed mine. Then, I found a bug in my 915resolution.c (I gave the wrong device id there). After I fixed that, everything worked great.
Once again, Thank you so much for your awesome idea.
-- For others, who are trying this, I have written a 'step-by-step' guide below
- Installed Ubuntu on a different partition (got problems while installing Arch-linux, so I have chosen Ubuntu).
- I modified /boot/grub/menu.lst to add Mac partition and found it is able to load even Mac. (may be this step is unnecessary)
- taken grub2+915resolution source code from
http://aur.archlinux.org/packages.php?ID=22927.
- compiled it on a different 32 bit linux machine on my network (because gcc installed on my ubuntu does not support 32-bit compilation. i.e. it does not support -m32). SCPed compiled files onto my ubuntu machine.
- opened package manager in ubuntu and removed the grub package that is already installed on my machine
- installed new grub using "./grub-install /dev/sda" command. NOTE: in grub2, grub.cfg is used for reading the configuration file. Write your own /boot/grub/grub.cfg. NOTE: For loading Mac, I did not follow the method used by consono. I did not create any extra partition. My Mac has /boot file. So, I am just loading that. Mac part in my grub.cfg looks like below
set root=(hd0,2)
multiboot (hd0,2)/boot
- We have to make sure that grub is able to load all operating systems installed on the machine. If it is able to load, we have completed 75% of the whole process. Make sure to take the backup of grub.cfg after this step.
- Next step is to patch grub source with 915resolution. Compile the grub and install the new grub. use the same grub.cfg that you have saved in the previous stage.
- We have to add G45 chipset support to 915 resolution. To know what to add, simply follow the code given by 'consono'. OR you could try your luck by directly copying 915resolution.mod given by consono. ( I think copying 915resolution.mod works in most of the cases )
- Once we have replaced our old 915resolution.mod with the new one, we need to add certain commands to grub.cfg. To know what commands (i.e. insmod, 915resolution etc.) to add to grub.cfg, take a look at grub.cfg given by consono.
- Reboot now and choose Mac in grub. If we type '?video' in Mac bootloader, we should be able to see "1280x800x32".
- Boot Mac with "Graphics Mode"="1280x800x32" and enjoy the widescreen

Once again, many thanks to 'consono' for this great idea.