Help - Search - Members - Calendar
Full Version: Slice's Bootloader
Project OS X Forums > Snow Leopard Guides & Tutorials > New Users Discussion
yushir1
I'd like to thank Slice for making such an awesome bootloader, it keeps my comp away from some kp i got before.

But there's a feature that i'm missing from Prasys' bootloader, the max resolution auto-detection. With prasys bootloader i get my screen in a perfect 1280x800 on booting (not the system but the boot images). With slice's i get 1024x768.

Could you apply that patch to your next version of your bootloader? Thanks in advance.

-------------------------------

I'm using a HP 6720s laptop with an Intel GMA x3100 version 0x2a02, revision 0x000c (Extended mode works but duplicade mode won't; brightness control half dims screen but i have sleep&&full brightness after sleep smile.gif).
Slice
Dunno why blink.gif
I have Dell Inspiron 1525 with the same IntelX3100 rev c. Screen 1440x900 without problems. But I have patched DSDT for it.
CODE
Device (GFX0)
{
Name (_ADR, 0x00020000)
Method (_DOS, 1, NotSerialized)
{
Store (Arg0, MIS4)
SMI (0x9E, MIS4)
}

Method (_DOD, 0, NotSerialized)
{
Return (Package (0x04)
{
0x00010100,
0x00010200,
0x00010400,
0x00010300
})
}

Method (_DSM, 4, NotSerialized)
{
Store (Package ()
{
"AAPL01,Inverter",
Buffer (0x04)
{
0x00, 0x00, 0x00, 0x00
},

"AAPL01,InverterCurrent",
Buffer (0x04)
{
0x00, 0x00, 0x00, 0x00
},

"AAPL01,InverterFrequency",
Buffer (0x04)
{
0xc8, 0x95, 0x01, 0x00
},

"AAPL01,BacklightIntensity",
Buffer (0x04)
{
0x56, 0x00, 0x00, 0x00
},

"AAPL,BacklightRestore",
Buffer (0x04)
{
0x01, 0x00, 0x00, 0x00
},

"DisplayProductID",
Buffer (0x04)
{
0x5F, 0x9C, 0x00, 0x00
},

"DisplayVendorID",
Buffer (0x04)
{
0x10, 0x06, 0x00, 0x00
},

"AAPL,HasPanel",
Buffer (0x04)
{
0x01, 0x00, 0x00, 0x00
},

"AAPL,backlight-control",
Buffer (0x04)
{
0xEE, 0x01, 0x00, 0x00
},

"AAPL,NumDisplays",
Buffer (0x04)
{
0x02, 0x00, 0x00, 0x00
},

"AAPL,DisplayConfig",
Buffer (0x20)
{
/* 0000 */ 0x13, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01,
/* 0008 */ 0x21, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
/* 0010 */ 0x41, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
/* 0018 */ 0x81, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
},

"AAPL,NumFramebuffers",
Buffer (0x04)
{
0x02, 0x00, 0x00, 0x00
},

"AAPL,SelfRefreshSupported",
Buffer (0x04)
{
0x01, 0x00, 0x00, 0x00
},

"AAPL,aux-power-connected",
Buffer (0x04)
{
0x01, 0x00, 0x00, 0x00
},
/*
"AAPL,backlight-control",
Buffer (0x04)
{
0x01, 0x00, 0x00, 0x00
},
*/
"AAPL00,blackscreen-preferences",
Buffer (0x04)
{
0x00, 0x00, 0x00, 0x08
},

"AAPL01,blackscreen-preferences",
Buffer (0x04)
{
0x00, 0x00, 0x00, 0x08
},

"AAPL01,DataJustify",
Buffer (0x04)
{
0x01, 0x00, 0x00, 0x00
},

"AAPL01,Depth",
// Unicode (" "),
Buffer ()
{
0x20, 0x00, 0x00, 0x00
},

"AAPL01,Pipe",
Buffer (0x04)
{
0x01, 0x00, 0x00, 0x00
},

"AAPL01,DualLink",
Buffer (0x04)
{
0x01, 0x00, 0x00, 0x00
},

"AAPL01,T0",
Buffer (0x04)
{
0x00, 0x00, 0x00, 0x00
},

"AAPL01,T1",
Buffer (0x04)
{
0x01, 0x00, 0x00, 0x00
},

"AAPL01,T2",
Buffer (0x04)
{
0xC8, 0x00, 0x00, 0x00
},

"AAPL01,T3",
Buffer (0x04)
{
0xC8, 0x00, 0x00, 0x00
},

"AAPL01,T4",
Buffer (0x04)
{
0x01, 0x00, 0x00, 0x00
},

"AAPL01,T5",
Buffer (0x04)
{
0x00, 0x00, 0x00, 0x00
},

"AAPL01,T6",
Buffer (0x04)
{
0x90, 0x01, 0x00, 0x00
},

"hda-gfx",
Buffer ()
{
"onboard-1"
},

"subsystem-vendor-id",
Buffer (0x04)
{
0x6B, 0x10, 0x00, 0x00
},

"subsystem-id",
Buffer (0x04)
{
0xA2, 0x00, 0x00, 0x00
},

"model",
Buffer ()
{
"GMA X3100"
},

"device_type",
Buffer ()
{
"display"
},

"built-in",
Buffer (One)
{
0x00
}
}, Local0)
DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
Return (Local0)
}

Device (LCD)
{
Method (_ADR, 0, NotSerialized)
{
Return (0x0400)
}

Method (_DCS, 0, NotSerialized) //return status of output
{
Store (SMI (0x8E, One), Local0)
Return (Local0)
}

Method (_DGS, 0, NotSerialized) // active or inactive
{
Store (SMI (0x99, One), Local0)
Return (Local0)
}

Method (_DSS, 1, NotSerialized) //device set state
{
DSS (One, Arg0)
}

Name (BTVL, 0x64)
Name (DBCL, Package (0x0A) {})
Method (_BCL, 0, NotSerialized) //list of supported brightness
{
SX10 ()
SX30 (0x19)
SX30 (Zero)
SX11 ()
Store (SX40 (), Index (DBCL, Zero))
Store (SX40 (), Index (DBCL, One))
Store (SX40 (), Index (DBCL, 0x02))
Store (SX40 (), Index (DBCL, 0x03))
Store (SX40 (), Index (DBCL, 0x04))
Store (SX40 (), Index (DBCL, 0x05))
Store (SX40 (), Index (DBCL, 0x06))
Store (SX40 (), Index (DBCL, 0x07))
Store (SX40 (), Index (DBCL, 0x08))
Store (SX40 (), Index (DBCL, 0x09))
SX12 ()
Return (DBCL)
}

Method (_BCM, 1, NotSerialized) //set brightness
{
SX10 ()
SX30 (0x19)
SX30 (One)
SX30 (Arg0)
Store (Arg0, BTVL)
SX11 ()
SX12 ()
}

Method (_BQC, 0, NotSerialized) //brightness level
{
SX10 ()
SX30 (0x19)
SX30 (0x02)
SX11 ()
Store (SX40 (), Local0)
Store (Local0, BTVL)
SX12 ()
Return (Local0)
}
}

Device (TV)
{
Method (_ADR, 0, NotSerialized)
{
Return (0x0200)
}

Method (_DCS, 0, NotSerialized)
{
Store (SMI (0x8E, 0x04), Local0)
Return (Local0)
}

Method (_DGS, 0, NotSerialized)
{
Store (SMI (0x99, 0x04), Local0)
Return (Local0)
}

Method (_DSS, 1, NotSerialized)
{
DSS (0x04, Arg0)
}
}
yushir1
Will try that, thanks for the advice smile.gif.
yushir1
I've tryied almost all your GFX0 code with no success. Other devices LCD and TV, i can't get them to work because i do not virtually have any of the methods you implement with them SX—. Still with that, i can't get a full 1280x800 screen at boot.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.