- 积分
- 117
- 最后登录
- 2023-10-3
- 精华
- 0
- 阅读权限
- 20
- 主题
- 12
- UID
- 4089158
- 帖子
- 217
- PB币
- 280
- 威望
- 5
- 贡献
- 0
- 技术
- 22
- 活跃
- 592
- UID
- 4089158
- 帖子
- 217
- PB币
- 280
- 贡献
- 0
- 技术
- 22
- 活跃
- 592
|
本帖最后由 iTouu 于 2014-12-9 10:40 编辑
对于有强迫症的可以往下看,写给新手的
对于安装好了黑果的,但是没有亮度调节的(小太阳),我也是爬了好多帖子才找到的,
首先下载下面两个文件并安装修复权限:
clover放到clover/kexe/10.10下面 变色龙放到e/e下面
ACPIDebug.kext.zip
(24.85 KB, 下载次数: 468)
放到s/l/e下面 记得修复权限
首先修改DSDT 在DSDT最后面添加 RMDT method,- Device (RMDT)
- {
- Name (_HID, "RMD0000")
- Name (RING, Package (0x0100) {})
- Mutex (RTMX, 0x00)
- Name (HEAD, Zero)
- Name (TAIL, Zero)
- Method (PUSH, 1, NotSerialized)
- {
- Acquire (RTMX, 0xFFFF)
- Add (HEAD, One, Local0)
- If (LGreaterEqual (Local0, SizeOf (RING)))
- {
- Store (Zero, Local0)
- }
- If (LNotEqual (Local0, TAIL))
- {
- Store (Arg0, Index (RING, HEAD))
- Store (Local0, HEAD)
- }
- Release (RTMX)
- }
- Method (FTCH, 0, NotSerialized)
- {
- Acquire (RTMX, 0xFFFF)
- Store (Zero, Local0)
- If (LNotEqual (HEAD, TAIL))
- {
- Store (DerefOf (Index (RING, TAIL)), Local0)
- Increment (TAIL)
- If (LGreaterEqual (TAIL, SizeOf (RING)))
- {
- Store (Zero, TAIL)
- }
- }
- Release (RTMX)
- Return (Local0)
- }
- Method (COUN, 0, NotSerialized)
- {
- Acquire (RTMX, 0xFFFF)
- Subtract (HEAD, TAIL, Local0)
- If (LLess (Local0, Zero))
- {
- Add (Local0, SizeOf (RING), Local0)
- }
- Release (RTMX)
- Return (Local0)
- }
- Method (P1, 1, NotSerialized)
- {
- PUSH (Arg0)
- }
- Method (P2, 2, Serialized)
- {
- Name (TEMP, Package (0x02) {})
- Store (Arg0, Index (TEMP, Zero))
- Store (Arg1, Index (TEMP, One))
- PUSH (TEMP)
- }
- Method (P3, 3, Serialized)
- {
- Name (TEMP, Package (0x03) {})
- Store (Arg0, Index (TEMP, Zero))
- Store (Arg1, Index (TEMP, One))
- Store (Arg2, Index (TEMP, 0x02))
- PUSH (TEMP)
- }
- Method (P4, 4, Serialized)
- {
- Name (TEMP, Package (0x04) {})
- Store (Arg0, Index (TEMP, Zero))
- Store (Arg1, Index (TEMP, One))
- Store (Arg2, Index (TEMP, 0x02))
- Store (Arg3, Index (TEMP, 0x03))
- PUSH (TEMP)
- }
- Method (P5, 5, Serialized)
- {
- Name (TEMP, Package (0x05) {})
- Store (Arg0, Index (TEMP, Zero))
- Store (Arg1, Index (TEMP, One))
- Store (Arg2, Index (TEMP, 0x02))
- Store (Arg3, Index (TEMP, 0x03))
- Store (Arg4, Index (TEMP, 0x04))
- PUSH (TEMP)
- }
- Method (P6, 6, Serialized)
- {
- Name (TEMP, Package (0x06) {})
- Store (Arg0, Index (TEMP, Zero))
- Store (Arg1, Index (TEMP, One))
- Store (Arg2, Index (TEMP, 0x02))
- Store (Arg3, Index (TEMP, 0x03))
- Store (Arg4, Index (TEMP, 0x04))
- Store (Arg5, Index (TEMP, 0x05))
- PUSH (TEMP)
- }
- Method (P7, 7, Serialized)
- {
- Name (TEMP, Package (0x07) {})
- Store (Arg0, Index (TEMP, Zero))
- Store (Arg1, Index (TEMP, One))
- Store (Arg2, Index (TEMP, 0x02))
- Store (Arg3, Index (TEMP, 0x03))
- Store (Arg4, Index (TEMP, 0x04))
- Store (Arg5, Index (TEMP, 0x05))
- Store (Arg6, Index (TEMP, 0x06))
- PUSH (TEMP)
- }
- }
复制代码
放到DSDT的最后就可以了
或者可以添加补丁源:http://raw.github.com/RehabMan/OS-X-ACPI-Debug/master 打补丁
选中补丁 点击应用!
在DSDT搜索 IGPU.DD02亮度函数 应该会看到两处- Method (_Q8E, 0, NotSerialized)
- {
- Store (0x70, P80H)
- If (LGreaterEqual (OSYS, 0x07D6))
- {
- Notify (^^^IGPU.DD02, 0x86)
- }
- }
- Method (_Q8F, 0, NotSerialized)
- {
- Store (0x71, P80H)
- If (LGreaterEqual (OSYS, 0x07D6))
- {
- Notify (^^^IGPU.DD02, 0x87)
- }
- }
复制代码 在_Q8E下面添加\rmdt.p1("EC0._Q8E enter") 和\rmdt.p1("EC0._Q8E exit") 注意红色字体,修改成你自己的!!!
代码变成:- Method (_Q8E, 0, NotSerialized)
- {
- \rmdt.p1("EC0._Q8E enter")
- Store (0x70, P80H)
- If (LGreaterEqual (OSYS, 0x07D6))
- {
- Notify (^^^IGPU.DD02, 0x86)
- }
- \rmdt.p1("EC0._Q8E exit")
- }
- Method (_Q8F, 0, NotSerialized)
- {
- \rmdt.p1("EC0._Q8F enter")
- Store (0x71, P80H)
- If (LGreaterEqual (OSYS, 0x07D6))
- {
- Notify (^^^IGPU.DD02, 0x87)
- }
- \rmdt.p1("EC0._Q8F exit”)
- }
复制代码 记得保存后退出!!重启系统!!!
打开Launchpad,找到控制台 打开
在右上角的输入框里面输入 : ACPIDebug
我这里显示一条信息:
不要关闭控制台 按FN键+F5(减亮度) 或者 FN键+F6(加亮度)
看控制台输出的信息 如果FN+F5输出的是 _Q8E 那就是Q8E是减暗度 FN+F6 如果不出错的话就是Q8F
再次打开MACIASL来修改DSDT,点击打补丁 输入下面内容(注意【】里面需要修改 包括【】)- # Make EC-based brightness up/down work with RehabMan VoodooPS2 ACPI keyboard mechanism
- into method label _Q【改成8E 这里是加亮度的键值】 parent_label EC0 replace_content
- begin
- // Dell code for brightness up\n
- Notify (PS2K, 0x0206)\n
- Notify (PS2K, 0x0286)\n
- end;
- into method label _Q【改成8F 这里是减亮度的键值】 parent_label EC0 replace_content
- begin
- // Dell code for brightness down\n
- Notify (PS2K, 0x0205)\n
- Notify (PS2K, 0x0285)\n
- end;
复制代码 修改好的代码:- # Make EC-based brightness up/down work with RehabMan VoodooPS2 ACPI keyboard mechanism
- into method label _Q8E parent_label EC0 replace_content
- begin
- // Dell code for brightness up\n
- Notify (PS2K, 0x0206)\n
- Notify (PS2K, 0x0286)\n
- end;
- into method label _Q8F parent_label EC0 replace_content
- begin
- // Dell code for brightness down\n
- Notify (PS2K, 0x0205)\n
- Notify (PS2K, 0x0285)\n
- end;
复制代码 点击应用!!!!!重启电脑 试试 FN+F5/F6 是不是有小太阳了呢???? |
-
1
查看全部评分
-
|