Home > Hackintosh > HowTo get 1366×768 resolution on Dell with Leopard

HowTo get 1366×768 resolution on Dell with Leopard

3 settembre 2009

!!This method is deprecated, use patched chameleon method instead. Click here!!

As requested by many users, I’ll try to write a more detailed step-by-step guide, aimed to get the native resolution on Dell Inspiron 1545.

(For the installation of Leopard see the previous post)

The method relies on a working Linux installation, and uses a modified grub2 with video bios patch. In particular, these instructions are tested with Ubuntu 9.04 and Arch Linux, but are valid for any other recent distribution.
So, open a terminal and begin:

– Install the necessary packages to compile the code:

$ sudo apt-get install autoconf automake bison bzip2 make

– Download the already patched grub2 source from here:
http://www.divshare.com/download/7985719-5b6
– Extract the content from the archive and configure:

$ tar xjvf path/to/grub2-1_96_20081229patched_tar.bz2
$ cd grub2-1.96_20081229
$ ./configure –prefix=/usr

– If configure gives no error, you can compile with:

$ make

– Then install the package with:

$ sudo make install

– Now you have to install the new version of grub into the mbr of your hard disk, specifying your hd string (usually /dev/sda):

$ sudo grub-install /dev/sda

– The final step (on linux) is to edit the provided configuration file:

$ leafpad grub.cfg (use your favorite editor)

Go near the end of file, and change the boot entries accordingly to your installed operating systems.
You can help using the old /boot/grub/menu.lst, but keep in mind that in new grub the partition mapping starts with 1 instead of 0. For example (hd0,0) must be replaced with (hd0,1), and so on.
– Here’s an example of menu entries needed for Ubuntu 9.04, supposing it’s installed on the first partition:

menuentry “Ubuntu 9.04, kernel 2.6.28-15” {
set root=(hd0,1)
linux /boot/vmlinuz-2.6.28-15-generic root=/dev/sda1 ro vga=792
initrd /boot/initrd.img-2.6.28-15-generic
}
menuentry “Ubuntu 9.04, kernel 2.6.28-15 (recovery)” {
set root=(hd0,1)
linux /boot/vmlinuz-2.6.28-15-generic root=/dev/sda1 ro single
initrd /boot/initrd.img-2.6.28-15-generic
}

– These lines are related to Leopard, supposing it’s installed on the third partition of the first hd:

menuentry “Leopard” {
set root=(hd0,3)
multiboot (hd0,3)/boot
}

– When you finish and are sure that is all correct, save and copy grub.cfg to /boot/grub:

$ sudo cp grub.cfg /boot/grub/

– Now reboot in Leopard and edit com.apple.Boot.plist, opening a terminal and giving the command:

$ sudo /Applications/TextEdit.app/Contents/MacOS/TextEdit /Library/Preferences/SystemConfiguration/com.apple.Boot.plist

At the end of file, before </dict></plist> tags, add this lines:

<key>Graphics Mode</key>
<string>1366x768x32</string>

– Then reboot again in Leopard and cross your fingers..

  1. SH&E
    3 settembre 2009 alle 8:36 pm

    Thank you so much for this =].
    Really grateful, got it working perfectly =].

  2. jrm0628
    4 settembre 2009 alle 1:36 am

    Thank You Deviato😀
    i will try this when i get home

  3. jrm0628
    4 settembre 2009 alle 7:52 am

    Deviato,

    Should i have Ubuntu in a separate partition or is it okay to have in same partition as windows vista?

    i am getting:
    Welcome to Grub!
    error: file not found.
    i think possibly i have not set my grub file correctly

    i have vista and ubuntu on partition 3. leopard on 5.

    Thanks in advance for your help!

  4. jrm0628
    5 settembre 2009 alle 4:11 am

    finally got it. i did a clean setup with hd0,1 ubuntu – hd0,2 leopard – hd0,3 vista and hd0,5 as storage.

    there is one error on the grub boot menu, beneath the 1366 x 768 success message it says error line 21,21 – but still boots and works.

    thanks Deviato for your tutorials

  5. deviato
    5 settembre 2009 alle 12:09 pm

    You’re welcome..
    For the error, you can comment that line with # in grub.cfg

  6. cj3
    8 settembre 2009 alle 6:21 pm

    Im using Iaktos 7 w/ bootv9 I have followed the above instructions carefully but cant seem to make it work (still getting 1024 res) … Any ideas?

  7. cj3
    8 settembre 2009 alle 6:46 pm

    Im getting ….configure: error: cannot compile for the target after root@chris-laptop:/boot/grub2-1.96_20081229# ./configure –prefix=/usr

    • deviato
      8 settembre 2009 alle 6:54 pm

      Post some lines above to see the error.
      What’s your distribution?

  8. cj3
    8 settembre 2009 alle 7:09 pm

    Im using Iaktotos 10.5.7 & Ubuntu 9.04 (dual boot working with v9)

    root@chris-laptop:~/Desktop/grub2-1.96_20081229# ./configure –prefix=/usr
    checking build system type… x86_64-unknown-linux-gnu
    checking host system type… x86_64-unknown-linux-gnu
    checking target system type… x86_64-unknown-linux-gnu
    checking for cmp… cmp
    checking for bison… bison
    checking for a BSD-compatible install… /usr/bin/install -c
    checking for gawk… no
    checking for mawk… mawk
    checking whether make sets $(MAKE)… yes
    checking for ruby… no
    checking for help2man… no
    checking for gcc… gcc
    checking for C compiler default output file name… a.out
    checking whether the C compiler works… yes
    checking whether we are cross compiling… no
    checking for suffix of executables…
    checking for suffix of object files… o
    checking whether we are using the GNU C compiler… yes
    checking whether gcc accepts -g… yes
    checking for gcc option to accept ISO C89… none needed
    checking how to run the C preprocessor… gcc -E
    checking for grep that handles long lines and -e… /bin/grep
    checking for egrep… /bin/grep -E
    checking for ANSI C header files… yes
    checking for sys/types.h… yes
    checking for sys/stat.h… yes
    checking for stdlib.h… yes
    checking for string.h… yes
    checking for memory.h… yes
    checking for strings.h… yes
    checking for inttypes.h… yes
    checking for stdint.h… yes
    checking for unistd.h… yes
    checking minix/config.h usability… no
    checking minix/config.h presence… no
    checking for minix/config.h… no
    checking whether it is safe to define __EXTENSIONS__… yes
    checking for special C compiler options needed for large files… no
    checking for _FILE_OFFSET_BITS value needed for large files… no
    checking whether byte ordering is bigendian… no
    checking size of void *… 8
    checking size of long… 8
    checking for posix_memalign… yes
    checking for memalign… yes
    checking for asprintf… yes
    checking for option to link raw image… -Wl,-N
    checking for command to convert module to ELF format…
    checking for objcopy… objcopy
    checking for strip… strip
    checking for nm… nm
    checking whether optimization for size works… yes
    checking whether -falign-loops works… yes
    checking whether `gcc’ generates calls to `__enable_execute_stack()’… no
    checking whether `gcc’ accepts `-fstack-protector’… yes
    checking whether `gcc’ accepts `-mstack-arg-probe’… no
    checking whether target compiler is working… no
    configure: error: cannot compile for the target

    • deviato
      8 settembre 2009 alle 8:35 pm

      Seems to be related to your linux version..
      Did you install the 64bit version of Ubuntu?
      That snapshot of grub2 can be compiled only on 32bit systems, I don’t know if other versions can..
      If you have problems, compile it on a 32bit system, or install the 32bit version of Ubuntu.

  9. cj3
    8 settembre 2009 alle 8:38 pm

    Yes I did install the 64 bit version of Ubuntu… Thanks for writing back and great work w/ this project!

    Ill try again😉

  10. cj3
    9 settembre 2009 alle 7:54 pm

    Its working great, thanks again for your efforts. Ill be keeping my eyes open for a QE fix.

  11. drbrando007
    9 settembre 2009 alle 10:35 pm

    @deviato –

    I would like to patch the grub2 myself with the 915 resolution patch. Can you send me somewhere that I could learn how to do that?

    How do I patch grub2 myself?

    Thanks >:)

  12. cj3
    13 settembre 2009 alle 3:54 am

    Thought i should add that I got QuartzGL enabled using osx86 tools. Also there’s been some progress with the x4500 driver here.. http://www.insanelymac.com/forum/index.php?showtopic=185600&st=0

  13. JR
    11 ottobre 2009 alle 11:25 am

    Awesome guide! Got it working with only one hangup – Ubuntu, by default, doesn’t use Grub2. So you have to update to Grub2 first, then follow these instructions. Thanks so much!!

  14. Harish
    14 novembre 2009 alle 11:38 pm

    I installed the same way. When I installed everything was successful. But now I am not able to boot to linux. Its says not valid initrd. Moreover I did not get the 1366×768 pixel resolution. Its still in 1024 resolution

    Can any one help me out ?

  15. 18 novembre 2009 alle 12:52 am

    Thank you thank you thank you! Got a tripple boot (win7, OSX, Ubuntu 9.10). Now I can write iPhone apps on my dell when on the go. I got the resolution. Let’s hope someone writes kext for this graphic card.
    I have 3 macs, but I tend to use my dell OSX more than others😉

  16. Adityo
    30 novembre 2009 alle 2:58 pm

    Hey Deviato, can you please point me to some links as to howto get this working under Ubuntu 9.04 64 bit, rest all is working cool with the OSX install, thanks a lot for your posts.

  17. Shikhi Super
    18 dicembre 2009 alle 9:26 pm

    Can i use ubuntu 9.10 live for this purpose?

  18. Shikhi
    20 dicembre 2009 alle 12:21 am

    Is there any way to install only 915 resolution patch?I mean my chamelion BL is working fine(have nice graphics:-) )

  19. Edem
    20 dicembre 2009 alle 3:09 am

    hey Dice, very detailed and useful guide. appreciate all the hard work but i kinda stumbled upon a Dsdt of the Inspiron 1545 with the intel graphics. i think this one has been edited along with one other intel GMA kext. that enables the Resolution on our native chameleon boot loader which i liked very much and didn’t want to give up to something else i wasn’t familiar with. anyway your guides have helped me a lot just wanted to share this maybe you could write another one for chameleon users with the already patched dsdt.

    All credits are in order
    lavender.t, jasim and ahhkolaa from insanely mac who edited and patched the dsdt and myska for posting it up to help some others. hope this helps

    patched dsdt and kext and other files to make a functioning SL install see myska’s comment
    http://www.insanelymac.com/forum/index.php?showtopic=184634

    reference or source
    http://www.insanelymac.com/forum/index.php?showtopic=188279

    hope this helps and maybe you could make a new easier post for chameleon users.

  20. Stan
    20 dicembre 2009 alle 5:50 am

    None of this GRUB stuff is needed anymore, folks. About a month or a little over ago, a framebuffer driver has been made public. It literally takes 30 seconds to install and have native 1366×768 resolution on Dell 1545 OSX! All u do is replace the video kext, replace DSDT file, and boom, works LIKE A CHARM. No Quartz, though, yet. Google it well!

    • Reggie
      21 dicembre 2009 alle 1:27 pm

      Cannot find it, can you give more information please?🙂

    • Joe
      23 marzo 2010 alle 2:11 am

      Please Stan can you give us the link please. Please help

  21. Amit Barman
    20 febbraio 2011 alle 9:34 am

    Looks Great. Now if I can only get my HackBook to sleep.

  22. najam
    24 aprile 2011 alle 5:11 pm

    Could somone please let me know what to patch grub2 with ?
    I want to use grub2 and dual boot with SL with ubuntu 10.10 ..

    Thanks everyone.

  1. No trackbacks yet.
I commenti sono chiusi.
%d blogger cliccano Mi Piace per questo: