查看: 4882|回复: 16

[原创内容] 已经实现了USB内建,如何实现睡眠的一些补充说明!以及引导时卡驱动的补充说明!

[复制链接]
Ace懂懂 发表于 2012-1-14 21:24 | 显示全部楼层 |阅读模式
快御云安全
回来之后,发一篇伪教程帖子然后闪人,继续金盆洗手。原声明依然有效,请勿Pm。。我是很少回来的,即使回来也是马上就走的 = =不会回pm的。


好吧,进入主题。
实现睡眠的条件许多人都知道了,驱动什么电源管理啊,usb的处理啊等等,但是,有些机子仅仅凭借如此依然是无法睡眠的



不能睡眠可以分为两大类:
A,一直无法睡眠,一睡就死。一睡就重启
这种情况的出现一般来说是USB的处理不够完善造成的。
许多是由于摄像头,读卡器什么的处理usb端口不完善导致识别问题而无法进入睡眠,此种情况论坛也有人给出了解决方法:改端口id或者直接删除usb参数让内建usb成扩展槽。这种解决方法的缺点是唤醒后可能会出现xx设备未正常推出。。


此外,需要提醒大家的是:未必你的系统信息里面显示usb都是内建就说明你的usb端口处理完美了,应该能睡眠了。很多时候这是两码事。你需要的是继续完善下代码,如解决不断电端口等等。






或许你也可以通过代码来解决,这部分我就直接上两端usb内建的代码,你们自己比较吧。同样都是能成功显示USB内建的,前者无法睡眠,后者显示usb内建。正常睡眠。

评分

1

查看全部评分

Ace懂懂  楼主| 发表于 2012-1-14 21:24 | 显示全部楼层
1.
Device (USB0)
            {
                Name (_ADR, 0x001D0000)
                OperationRegion (U1CS, PCI_Config, 0xC4, 0x04)
                Field (U1CS, DWordAcc, NoLock, Preserve)
                {
                    U1EN,   2
                }
                Method (_PSW, 1, NotSerialized)
                {
                    If (Arg0)
                    {
                        Store (0x03, U1EN)
                    }
                    Else
                    {
                        Store (Zero, U1EN)
                    }
                }
                Method (_S3D, 0, NotSerialized)
                {
                    Return (0x02)
                }
                Method (_S4D, 0, NotSerialized)
                {
                    Return (0x02)
                }
                Name (_PRW, Package (0x02)
                {
                    0x03,
                    0x03
                })
                Method (_DSM, 4, NotSerialized)
                {
                    Store (Package (0x02)
                        {
                            "device-id",
                            Buffer (0x04)
                            {
                                0x34, 0x3A, 0x00, 0x00
                            }
                        }, Local0)
                    DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                    Return (Local0)
                }
            }
            Device (USB1)
            {
                Name (_ADR, 0x001D0001)
                OperationRegion (U1CS, PCI_Config, 0xC4, 0x04)
                Field (U1CS, DWordAcc, NoLock, Preserve)
                {
                    U1EN,   2
                }
                Method (_PSW, 1, NotSerialized)
                {
                    If (Arg0)
                    {
                        Store (0x03, U1EN)
                    }
                    Else
                    {
                        Store (Zero, U1EN)
                    }
                }
                Method (_S3D, 0, NotSerialized)
                {
                    Return (0x02)
                }
                Method (_S4D, 0, NotSerialized)
                {
                    Return (0x02)
                }
                Name (_PRW, Package (0x02)
                {
                    0x04,
                    0x03
                })
                Method (_DSM, 4, NotSerialized)
                {
                    Store (Package (0x02)
                        {
                            "device-id",
                            Buffer (0x04)
                            {
                                0x35, 0x3A, 0x00, 0x00
                            }
                        }, Local0)
                    DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                    Return (Local0)
                }
            }
            Device (USB2)
            {
                Name (_ADR, 0x001D0002)
                OperationRegion (U1CS, PCI_Config, 0xC4, 0x04)
                Field (U1CS, DWordAcc, NoLock, Preserve)
                {
                    U1EN,   2
                }
                Method (_PSW, 1, NotSerialized)
                {
                    If (Arg0)
                    {
                        Store (0x03, U1EN)
                    }
                    Else
                    {
                        Store (Zero, U1EN)
                    }
                }
                Method (_S3D, 0, NotSerialized)
                {
                    Return (0x02)
                }
                Method (_S4D, 0, NotSerialized)
                {
                    Return (0x02)
                }
                Name (_PRW, Package (0x02)
                {
                    0x0C,
                    0x03
                })
                Method (_DSM, 4, NotSerialized)
                {
                    Store (Package (0x02)
                        {
                            "device-id",
                            Buffer (0x04)
                            {
                                0x36, 0x3A, 0x00, 0x00
                            }
                        }, Local0)
                    DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                    Return (Local0)
                }
                Device (HUB0)
                {
                    Name (_ADR, Zero)
                    Device (BLTH)
                    {
                        Name (_ADR, One)
                        Name (_UPC, Package (0x04)
                        {
                            Zero,
                            0xFF,
                            Zero,
                            Zero
                        })
                    }
                }
            }
            Device (USBR)
            {
                Name (_ADR, 0x001D0003)
                OperationRegion (U1CS, PCI_Config, 0xC4, 0x04)
                Field (U1CS, DWordAcc, NoLock, Preserve)
                {
                    U1EN,   2
                }
                Method (_PSW, 1, NotSerialized)
                {
                    If (Arg0)
                    {
                        Store (0x03, U1EN)
                    }
                    Else
                    {
                        Store (Zero, U1EN)
                    }
                }
                Method (_S3D, 0, NotSerialized)
                {
                    Return (0x02)
                }
                Method (_S4D, 0, NotSerialized)
                {
                    Return (0x02)
                }
                Name (_PRW, Package (0x02)
                {
                    0x20,
                    0x03
                })
            }
            Device (EHC1)
            {
                Name (_ADR, 0x001D0007)
                Name (_PRW, Package (0x02)
                {
                    0x0D,
                    0x03
                })
                Method (_DSM, 4, NotSerialized)
                {
                    Store (Package (0x0B)
                        {
                            "AAPL,clock-id",
                            Buffer (One)
                            {
                                0x01
                            },
                            "device_type",
                            Buffer (0x05)
                            {
                                "EHCI"
                            },
                            "AAPL,current-available",
                            0x04B0,
                            "AAPL,current-extra",
                            0x02BC,
                            "AAPL,current-in-sleep",
                            0x03E8,
                            Buffer (One)
                            {
                                0x00
                            }
                        }, Local0)
                    DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                    Return (Local0)
                }
                Device (HUB0)
                {
                    Name (_ADR, Zero)
                    Device (WEBC)
                    {
                        Name (_ADR, 0x03)
                        Name (_UPC, Package (0x04)
                        {
                            Zero,
                            0xFF,
                            Zero,
                            Zero
                        })
                    }
                }
            }
            Device (USB3)
            {
                Name (_ADR, 0x001A0000)
                OperationRegion (U1CS, PCI_Config, 0xC4, 0x04)
                Field (U1CS, DWordAcc, NoLock, Preserve)
                {
                    U1EN,   2
                }
                Method (_PSW, 1, NotSerialized)
                {
                    If (Arg0)
                    {
                        Store (0x03, U1EN)
                    }
                    Else
                    {
                        Store (Zero, U1EN)
                    }
                }
                Method (_S3D, 0, NotSerialized)
                {
                    Return (0x02)
                }
                Method (_S4D, 0, NotSerialized)
                {
                    Return (0x02)
                }
                Name (_PRW, Package (0x02)
                {
                    0x0E,
                    0x03
                })
                Method (_DSM, 4, NotSerialized)
                {
                    Store (Package (0x02)
                        {
                            "device-id",
                            Buffer (0x04)
                            {
                                0x37, 0x3A, 0x00, 0x00
                            }
                        }, Local0)
                    DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                    Return (Local0)
                }
            }
            Device (USB4)
            {
                Name (_ADR, 0x001A0001)
                OperationRegion (U1CS, PCI_Config, 0xC4, 0x04)
                Field (U1CS, DWordAcc, NoLock, Preserve)
                {
                    U1EN,   2
                }
                Method (_PSW, 1, NotSerialized)
                {
                    If (Arg0)
                    {
                        Store (0x03, U1EN)
                    }
                    Else
                    {
                        Store (Zero, U1EN)
                    }
                }
                Method (_S3D, 0, NotSerialized)
                {
                    Return (0x02)
                }
                Method (_S4D, 0, NotSerialized)
                {
                    Return (0x02)
                }
                Name (_PRW, Package (0x02)
                {
                    0x05,
                    0x03
                })
                Method (_DSM, 4, NotSerialized)
                {
                    Store (Package (0x02)
                        {
                            "device-id",
                            Buffer (0x04)
                            {
                                0x38, 0x3A, 0x00, 0x00
                            }
                        }, Local0)
                    DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                    Return (Local0)
                }
            }
            Device (USB5)
            {
                Name (_ADR, 0x001A0002)
                OperationRegion (U1CS, PCI_Config, 0xC4, 0x04)
                Field (U1CS, DWordAcc, NoLock, Preserve)
                {
                    U1EN,   2
                }
                Method (_PSW, 1, NotSerialized)
                {
                    If (Arg0)
                    {
                        Store (0x03, U1EN)
                    }
                    Else
                    {
                        Store (Zero, U1EN)
                    }
                }
                Method (_S3D, 0, NotSerialized)
                {
                    Return (0x02)
                }
                Method (_S4D, 0, NotSerialized)
                {
                    Return (0x02)
                }
                Name (_PRW, Package (0x02)
                {
                    0x20,
                    0x03
                })
                Method (_DSM, 4, NotSerialized)
                {
                    Store (Package (0x02)
                        {
                            "device-id",
                            Buffer (0x04)
                            {
                                0x39, 0x3A, 0x00, 0x00
                            }
                        }, Local0)
                    DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                    Return (Local0)
                }
                Device (HUB0)
                {
                    Name (_ADR, Zero)
                    Device (UWAN)
                    {
                        Name (_ADR, One)
                        Name (_UPC, Package (0x04)
                        {
                            Zero,
                            0xFF,
                            Zero,
                            Zero
                        })
                    }
                    Device (ULAN)
                    {
                        Name (_ADR, 0x02)
                        Name (_UPC, Package (0x04)
                        {
                            Zero,
                            0xFF,
                            Zero,
                            Zero
                        })
                    }
                }
            }
            Device (EHC2)
            {
                Name (_ADR, 0x001A0007)
                Name (_PRW, Package (0x02)
                {
                    0x0D,
                    0x03
                })
                Method (_DSM, 4, NotSerialized)
                {
                    Store (Package (0x0B)
                        {
                            "AAPL,clock-id",
                            Buffer (One)
                            {
                                0x02
                            },
                            "device_type",
                            Buffer (0x05)
                            {
                                "EHCI"
                            },
                            "AAPL,current-available",
                            0x04B0,
                            "AAPL,current-extra",
                            0x02BC,
                            "AAPL,current-in-sleep",
                            0x03E8,
                            Buffer (One)
                            {
                                0x00
                            }
                        }, Local0)
                    DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                    Return (Local0)
                }
                Device (HUB0)
                {
                    Name (_ADR, Zero)
                    Device (EWAN)
                    {
                        Name (_ADR, 0x05)
                        Name (_UPC, Package (0x04)
                        {
                            Zero,
                            0xFF,
                            Zero,
                            Zero
                        })
                    }
                    Device (ELAN)
                    {
                        Name (_ADR, 0x06)
                        Name (_UPC, Package (0x04)
                        {
                            Zero,
                            0xFF,
                            Zero,
                            Zero
                        })
                    }
                }
            }
回复

使用道具 举报

Ace懂懂  楼主| 发表于 2012-1-14 21:25 | 显示全部楼层
1.
Device (USB0)
            {
                Name (_ADR, 0x001D0000)
                OperationRegion (U1CS, PCI_Config, 0xC4, 0x04)
                Field (U1CS, DWordAcc, NoLock, Preserve)
                {
                    U1EN,   2
                }
                Method (_PSW, 1, NotSerialized)
                {
                    If (Arg0)
                    {
                        Store (0x03, U1EN)
                    }
                    Else
                    {
                        Store (Zero, U1EN)
                    }
                }
                Method (_S3D, 0, NotSerialized)
                {
                    Return (0x02)
                }
                Method (_S4D, 0, NotSerialized)
                {
                    Return (0x02)
                }
                Name (_PRW, Package (0x02)
                {
                    0x03,
                    0x03
                })
                Method (_DSM, 4, NotSerialized)
                {
                    Store (Package (0x02)
                        {
                            "device-id",
                            Buffer (0x04)
                            {
                                0x34, 0x3A, 0x00, 0x00
                            }
                        }, Local0)
                    DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                    Return (Local0)
                }
            }
            Device (USB1)
            {
                Name (_ADR, 0x001D0001)
                OperationRegion (U1CS, PCI_Config, 0xC4, 0x04)
                Field (U1CS, DWordAcc, NoLock, Preserve)
                {
                    U1EN,   2
                }
                Method (_PSW, 1, NotSerialized)
                {
                    If (Arg0)
                    {
                        Store (0x03, U1EN)
                    }
                    Else
                    {
                        Store (Zero, U1EN)
                    }
                }
                Method (_S3D, 0, NotSerialized)
                {
                    Return (0x02)
                }
                Method (_S4D, 0, NotSerialized)
                {
                    Return (0x02)
                }
                Name (_PRW, Package (0x02)
                {
                    0x04,
                    0x03
                })
                Method (_DSM, 4, NotSerialized)
                {
                    Store (Package (0x02)
                        {
                            "device-id",
                            Buffer (0x04)
                            {
                                0x35, 0x3A, 0x00, 0x00
                            }
                        }, Local0)
                    DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                    Return (Local0)
                }
            }
            Device (USB2)
            {
                Name (_ADR, 0x001D0002)
                OperationRegion (U1CS, PCI_Config, 0xC4, 0x04)
                Field (U1CS, DWordAcc, NoLock, Preserve)
                {
                    U1EN,   2
                }
                Method (_PSW, 1, NotSerialized)
                {
                    If (Arg0)
                    {
                        Store (0x03, U1EN)
                    }
                    Else
                    {
                        Store (Zero, U1EN)
                    }
                }
                Method (_S3D, 0, NotSerialized)
                {
                    Return (0x02)
                }
                Method (_S4D, 0, NotSerialized)
                {
                    Return (0x02)
                }
                Name (_PRW, Package (0x02)
                {
                    0x0C,
                    0x03
                })
                Method (_DSM, 4, NotSerialized)
                {
                    Store (Package (0x02)
                        {
                            "device-id",
                            Buffer (0x04)
                            {
                                0x36, 0x3A, 0x00, 0x00
                            }
                        }, Local0)
                    DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                    Return (Local0)
                }
                Device (HUB0)
                {
                    Name (_ADR, Zero)
                    Device (BLTH)
                    {
                        Name (_ADR, One)
                        Name (_UPC, Package (0x04)
                        {
                            Zero,
                            0xFF,
                            Zero,
                            Zero
                        })
                    }
                }
            }
            Device (USBR)
            {
                Name (_ADR, 0x001D0003)
                OperationRegion (U1CS, PCI_Config, 0xC4, 0x04)
                Field (U1CS, DWordAcc, NoLock, Preserve)
                {
                    U1EN,   2
                }
                Method (_PSW, 1, NotSerialized)
                {
                    If (Arg0)
                    {
                        Store (0x03, U1EN)
                    }
                    Else
                    {
                        Store (Zero, U1EN)
                    }
                }
                Method (_S3D, 0, NotSerialized)
                {
                    Return (0x02)
                }
                Method (_S4D, 0, NotSerialized)
                {
                    Return (0x02)
                }
                Name (_PRW, Package (0x02)
                {
                    0x20,
                    0x03
                })
            }
            Device (EHC1)
            {
                Name (_ADR, 0x001D0007)
                Name (_PRW, Package (0x02)
                {
                    0x0D,
                    0x03
                })
                Method (_DSM, 4, NotSerialized)
                {
                    Store (Package (0x0B)
                        {
                            "AAPL,clock-id",
                            Buffer (One)
                            {
                                0x01
                            },
                            "device_type",
                            Buffer (0x05)
                            {
                                "EHCI"
                            },
                            "AAPL,current-available",
                            0x04B0,
                            "AAPL,current-extra",
                            0x02BC,
                            "AAPL,current-in-sleep",
                            0x03E8,
                            Buffer (One)
                            {
                                0x00
                            }
                        }, Local0)
                    DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                    Return (Local0)
                }
                Device (HUB0)
                {
                    Name (_ADR, Zero)
                    Device (WEBC)
                    {
                        Name (_ADR, 0x03)
                        Name (_UPC, Package (0x04)
                        {
                            Zero,
                            0xFF,
                            Zero,
                            Zero
                        })
                    }
                }
            }
            Device (USB3)
            {
                Name (_ADR, 0x001A0000)
                OperationRegion (U1CS, PCI_Config, 0xC4, 0x04)
                Field (U1CS, DWordAcc, NoLock, Preserve)
                {
                    U1EN,   2
                }
                Method (_PSW, 1, NotSerialized)
                {
                    If (Arg0)
                    {
                        Store (0x03, U1EN)
                    }
                    Else
                    {
                        Store (Zero, U1EN)
                    }
                }
                Method (_S3D, 0, NotSerialized)
                {
                    Return (0x02)
                }
                Method (_S4D, 0, NotSerialized)
                {
                    Return (0x02)
                }
                Name (_PRW, Package (0x02)
                {
                    0x0E,
                    0x03
                })
                Method (_DSM, 4, NotSerialized)
                {
                    Store (Package (0x02)
                        {
                            "device-id",
                            Buffer (0x04)
                            {
                                0x37, 0x3A, 0x00, 0x00
                            }
                        }, Local0)
                    DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                    Return (Local0)
                }
            }
            Device (USB4)
            {
                Name (_ADR, 0x001A0001)
                OperationRegion (U1CS, PCI_Config, 0xC4, 0x04)
                Field (U1CS, DWordAcc, NoLock, Preserve)
                {
                    U1EN,   2
                }
                Method (_PSW, 1, NotSerialized)
                {
                    If (Arg0)
                    {
                        Store (0x03, U1EN)
                    }
                    Else
                    {
                        Store (Zero, U1EN)
                    }
                }
                Method (_S3D, 0, NotSerialized)
                {
                    Return (0x02)
                }
                Method (_S4D, 0, NotSerialized)
                {
                    Return (0x02)
                }
                Name (_PRW, Package (0x02)
                {
                    0x05,
                    0x03
                })
                Method (_DSM, 4, NotSerialized)
                {
                    Store (Package (0x02)
                        {
                            "device-id",
                            Buffer (0x04)
                            {
                                0x38, 0x3A, 0x00, 0x00
                            }
                        }, Local0)
                    DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                    Return (Local0)
                }
            }
            Device (USB5)
            {
                Name (_ADR, 0x001A0002)
                OperationRegion (U1CS, PCI_Config, 0xC4, 0x04)
                Field (U1CS, DWordAcc, NoLock, Preserve)
                {
                    U1EN,   2
                }
                Method (_PSW, 1, NotSerialized)
                {
                    If (Arg0)
                    {
                        Store (0x03, U1EN)
                    }
                    Else
                    {
                        Store (Zero, U1EN)
                    }
                }
                Method (_S3D, 0, NotSerialized)
                {
                    Return (0x02)
                }
                Method (_S4D, 0, NotSerialized)
                {
                    Return (0x02)
                }
                Name (_PRW, Package (0x02)
                {
                    0x20,
                    0x03
                })
                Method (_DSM, 4, NotSerialized)
                {
                    Store (Package (0x02)
                        {
                            "device-id",
                            Buffer (0x04)
                            {
                                0x39, 0x3A, 0x00, 0x00
                            }
                        }, Local0)
                    DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                    Return (Local0)
                }
                Device (HUB0)
                {
                    Name (_ADR, Zero)
                    Device (UWAN)
                    {
                        Name (_ADR, One)
                        Name (_UPC, Package (0x04)
                        {
                            Zero,
                            0xFF,
                            Zero,
                            Zero
                        })
                    }
                    Device (ULAN)
                    {
                        Name (_ADR, 0x02)
                        Name (_UPC, Package (0x04)
                        {
                            Zero,
                            0xFF,
                            Zero,
                            Zero
                        })
                    }
                }
            }
            Device (EHC2)
            {
                Name (_ADR, 0x001A0007)
                Name (_PRW, Package (0x02)
                {
                    0x0D,
                    0x03
                })
                Method (_DSM, 4, NotSerialized)
                {
                    Store (Package (0x0B)
                        {
                            "AAPL,clock-id",
                            Buffer (One)
                            {
                                0x02
                            },
                            "device_type",
                            Buffer (0x05)
                            {
                                "EHCI"
                            },
                            "AAPL,current-available",
                            0x04B0,
                            "AAPL,current-extra",
                            0x02BC,
                            "AAPL,current-in-sleep",
                            0x03E8,
                            Buffer (One)
                            {
                                0x00
                            }
                        }, Local0)
                    DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                    Return (Local0)
                }
                Device (HUB0)
                {
                    Name (_ADR, Zero)
                    Device (EWAN)
                    {
                        Name (_ADR, 0x05)
                        Name (_UPC, Package (0x04)
                        {
                            Zero,
                            0xFF,
                            Zero,
                            Zero
                        })
                    }
                    Device (ELAN)
                    {
                        Name (_ADR, 0x06)
                        Name (_UPC, Package (0x04)
                        {
                            Zero,
                            0xFF,
                            Zero,
                            Zero
                        })
                    }
                }
            }

点评

代码这一段贴错了,请看14楼 原id木有了  发表于 2012-1-18 18:46
回复

使用道具 举报

Ace懂懂  楼主| 发表于 2012-1-14 21:26 | 显示全部楼层
本帖最后由 Ace懂懂 于 2012-1-14 21:31 编辑

以上为针对Y450的usb处理,两者都显示USB内建,但是前者不睡。
别把目光只注意到大的地方,注意下 Name (_PRW, Package (0x02) 里面的参数,以及下方某名的修改。。
其他机型请自行对照尝试,懒得尝试的又想睡眠的请让mac os自行管理usb端口,这样只需要删除代码,方便。
另外友情提示,键盘和鼠标是不会提示未正常推出的 ,请放心使用,顶多是注意下移动硬盘别插着睡眠了。。

总结下:
1,有时间折腾的,自己比对改代码
2,多少有点时间的,自己逐个删除usb端口代码 看看是那一个导致的不能睡眠,然后干掉他
3,没时间又急切需要睡眠的可以试下全干掉。。
回复

使用道具 举报

Ace懂懂  楼主| 发表于 2012-1-14 21:28 | 显示全部楼层
本帖最后由 Ace懂懂 于 2012-1-14 21:40 编辑

B,以前正常自动睡眠,现在不能正常睡眠了的


这种情况一般是在你修改测试dsdt过程中造成的后遗症
如果你测试的时候一直-v启动的话,你就会发现,有时候会出现报错,然后出现一行英文提示,翻译过来就是什么移除睡眠特性之类的。
这种情况下,你需要做的很简单,重置下睡眠镜像(sudo rm -f /private/var/vm/sleepimage),然后-f重启(保险起见),然后手动睡眠一次,唤醒,搞定,收工。
当时我出现这个问题的时候,搜遍了论坛都没找到个答复,一直以为是系统设置的问题,于是反复单变量测试,做了许多无用功= =






点评

我的以前能自动睡眠,现在不能了,屏幕一直亮着不睡眠,试试是不是这个原因。  发表于 2012-1-14 22:24

评分

1

查看全部评分

回复

使用道具 举报

Ace懂懂  楼主| 发表于 2012-1-14 21:29 | 显示全部楼层
本帖最后由 Ace懂懂 于 2012-1-14 21:50 编辑

引导时候卡驱动问题。这个问题也困扰了我好久了,表现为变色龙引导卡在加载驱动上,一半是卡在xx处

此功能对服务器压力过大暂时关闭
需要查看发帖、回帖等信息,请使用搜索引擎,给您带来不便敬请谅解。
MB的查自己的帖子都查不到了,要死么= =

不-v启动的话表现为启动卡在苹果logo处,无菊花,无法进入系统。

原因不明,解决方法原理不明
自从我装上了windows 卡驱动就再也没出现过。。。 以前为mac os 单系统 efi引导 guid分区表

看到有少数人也出现了此情况,要么,您也装个win试试= =?




最后,关于关机有时候关不掉偶尔滴滴响的一些题外话。
有朋友pm我说是applehda的原因,换成voodoohda就不出现了。。。



废话一句:费时1天半重写了下自己Y450的dsdt,发现自己许多地方自己琢磨的很辛苦,但是这种辛苦是值得的。。
目前机器除了内置摄像头彻底无解必须camtwist,mic必须外置外,一切终于完美了,跑的很high~
回复

使用道具 举报

zshwq5 发表于 2012-1-14 22:08 | 显示全部楼层
这两段代码要用时间慢慢看才能对比得到结果。
我的似乎USB要想下办法。正好学习了。
回复

使用道具 举报

ldflmh 发表于 2012-1-14 22:32 | 显示全部楼层
很好的资源,我的dsdt是大大们修改的,现在有点基础了,有时间要好好自己学习修改一下了。
我的睡眠也是一睡就醒,现在的处理方法也是删除了摄像头和读卡器(应该是这两个吧)的dsdt代码,正常睡眠了,硬盘这些不会有不正确推出的提示,因为其它usb还是内建的。
回复

使用道具 举报

Ace懂懂  楼主| 发表于 2012-1-14 22:38 | 显示全部楼层
ldflmh 发表于 2012-1-14 22:32
很好的资源,我的dsdt是大大们修改的,现在有点基础了,有时间要好好自己学习修改一下了。
我的睡眠也是一 ...

你的自动睡眠正常了吗?
回复

使用道具 举报

yourking 发表于 2012-1-14 22:55 | 显示全部楼层
我的X220睡眠和唤醒都正常但唤醒后有线网卡和蓝牙就挂了,是机器不加载了,只能重启。哎,也不知道啥原因。本来是睡眠时让这两个部件停止工作,唤醒后就继续激活,但在WIN下面可以正常激活,在MAC下唤醒后蓝牙指示灯亮一下然后熄灭就再也不会点亮了。奇怪!

点评

你Patch一下AppleRTC.kext试试看。  发表于 2012-1-19 02:10
回复

使用道具 举报

xuxulll 发表于 2012-1-14 23:12 | 显示全部楼层
你搞定了啊,,你懂得。。。。把dsdt传上来吧,,,我自己对比一下。。
回复

使用道具 举报

ldflmh 发表于 2012-1-14 23:14 | 显示全部楼层
Ace懂懂 发表于 2012-1-14 22:38
你的自动睡眠正常了吗?

正准备测试一下。
回复

使用道具 举报

ldflmh 发表于 2012-1-14 23:38 | 显示全部楼层
Ace懂懂 发表于 2012-1-14 22:38
你的自动睡眠正常了吗?

唉,不知道什么原因,慢慢找了,会不会是安装了什么软件也影响了,我设置成电脑进入睡眠、显示器进入睡眠都是一分钟,过了一分钟后:
1、显示器睡眠了(鼠标自动隐藏了,但不是黑屏,我就想问一下大大们,这个显示器睡眠的状态,是黑屏了还是只是像我的这样亮度降低了许多,然后鼠标也隐藏了不见了?)
2、电脑没有进入睡眠,我再等了一分钟,还是不见动静。好像不能自动睡眠的样子了。
3、合盖能正常睡眠。
4、鼠标键盘都能唤醒(键鼠的usb接口内建了鼠标也能唤醒)
回复

使用道具 举报

马甲是无辜的 发表于 2012-1-18 18:46 | 显示全部楼层
Device (USB0)
            {
                Name (_ADR, 0x001D0000)
                OperationRegion (U1CS, PCI_Config, 0xC4, 0x04)
                Field (U1CS, DWordAcc, NoLock, Preserve)
                {
                    U1EN,   2
                }
                Method (_PSW, 1, NotSerialized)
                {
                    If (Arg0)
                    {
                        Store (0x03, U1EN)
                    }
                    Else
                    {
                        Store (Zero, U1EN)
                    }
                }
                Method (_S3D, 0, NotSerialized)
                {
                    Return (0x02)
                }
                Method (_S4D, 0, NotSerialized)
                {
                    Return (0x02)
                }
                Name (_PRW, Package (0x02)
                {
                    0x03,
                    0x03
                })
                Method (_DSM, 4, NotSerialized)
                {
                    Store (Package (0x0F)
                        {
                            "device-id",
                            Buffer (0x04)
                            {
                                0x34, 0x3A, 0x00, 0x00
                            },
                            "AAPL,clock-id",
                            Buffer (One)
                            {
                                0x0A
                            },
                            "built-in",
                            Buffer (One)
                            {
                                0x00
                            },
                            "device_type",
                            Buffer (0x05)
                            {
                                "EHCI"
                            },
                            "AAPL,current-available",
                            0x04B0,
                            "AAPL,current-extra",
                            0x02BC,
                            "AAPL,current-in-sleep",
                            0x03E8,
                            Buffer (One)
                            {
                                0x00
                            }
                        }, Local0)
                    DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                    Return (Local0)
                }
            }
            Device (USB1)
            {
                Name (_ADR, 0x001D0001)
                OperationRegion (U1CS, PCI_Config, 0xC4, 0x04)
                Field (U1CS, DWordAcc, NoLock, Preserve)
                {
                    U1EN,   2
                }
                Method (_PSW, 1, NotSerialized)
                {
                    If (Arg0)
                    {
                        Store (0x03, U1EN)
                    }
                    Else
                    {
                        Store (Zero, U1EN)
                    }
                }
                Method (_S3D, 0, NotSerialized)
                {
                    Return (0x02)
                }
                Method (_S4D, 0, NotSerialized)
                {
                    Return (0x02)
                }
                Name (_PRW, Package (0x02)
                {
                    0x04,
                    0x03
                })
                Method (_DSM, 4, NotSerialized)
                {
                    Store (Package (0x0F)
                        {
                            "device-id",
                            Buffer (0x04)
                            {
                                0x35, 0x3A, 0x00, 0x00
                            },
                            "AAPL,clock-id",
                            Buffer (One)
                            {
                                0x0A
                            },
                            "built-in",
                            Buffer (One)
                            {
                                0x00
                            },
                            "device_type",
                            Buffer (0x05)
                            {
                                "EHCI"
                            },
                            "AAPL,current-available",
                            0x04B0,
                            "AAPL,current-extra",
                            0x02BC,
                            "AAPL,current-in-sleep",
                            0x03E8,
                            Buffer (One)
                            {
                                0x00
                            }
                        }, Local0)
                    DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                    Return (Local0)
                }
            }
            Device (USB2)
            {
                Name (_ADR, 0x001D0002)
                OperationRegion (U1CS, PCI_Config, 0xC4, 0x04)
                Field (U1CS, DWordAcc, NoLock, Preserve)
                {
                    U1EN,   2
                }
                Method (_PSW, 1, NotSerialized)
                {
                    If (Arg0)
                    {
                        Store (0x03, U1EN)
                    }
                    Else
                    {
                        Store (Zero, U1EN)
                    }
                }
                Method (_S3D, 0, NotSerialized)
                {
                    Return (0x02)
                }
                Method (_S4D, 0, NotSerialized)
                {
                    Return (0x02)
                }
                Name (_PRW, Package (0x02)
                {
                    0x0C,
                    One
                })
                Method (_DSM, 4, NotSerialized)
                {
                    Store (Package (0x0F)
                        {
                            "device-id",
                            Buffer (0x04)
                            {
                                0x36, 0x3A, 0x00, 0x00
                            },
                            "AAPL,clock-id",
                            Buffer (One)
                            {
                                0x0A
                            },
                            "built-in",
                            Buffer (One)
                            {
                                0x00
                            },
                            "device_type",
                            Buffer (0x05)
                            {
                                "EHCI"
                            },
                            "AAPL,current-available",
                            0x04B0,
                            "AAPL,current-extra",
                            0x02BC,
                            "AAPL,current-in-sleep",
                            0x03E8,
                            Buffer (One)
                            {
                                0x00
                            }
                        }, Local0)
                    DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                    Return (Local0)
                }
                Device (HUB0)
                {
                    Name (_ADR, Zero)
                    Device (WEBC)
                    {
                        Name (_ADR, 0x03)
                        Name (_UPC, Package (0x04)
                        {
                            Zero,
                            0xFF,
                            Zero,
                            Zero
                        })
                    }
                }
            }
            Device (USBR)
            {
                Name (_ADR, 0x001D0003)
                OperationRegion (U1CS, PCI_Config, 0xC4, 0x04)
                Field (U1CS, DWordAcc, NoLock, Preserve)
                {
                    U1EN,   2
                }
                Method (_PSW, 1, NotSerialized)
                {
                    If (Arg0)
                    {
                        Store (0x03, U1EN)
                    }
                    Else
                    {
                        Store (Zero, U1EN)
                    }
                }
                Method (_S3D, 0, NotSerialized)
                {
                    Return (0x02)
                }
                Method (_S4D, 0, NotSerialized)
                {
                    Return (0x02)
                }
                Name (_PRW, Package (0x02)
                {
                    0x20,
                    0x03
                })
            }
            Device (EHC1)
            {
                Name (_ADR, 0x001D0007)
                Name (_PRW, Package (0x02)
                {
                    0x0D,
                    One
                })
                Method (_DSM, 4, NotSerialized)
                {
                    Store (Package (0x0F)
                        {
                            "device-id",
                            Buffer (0x04)
                            {
                                0x3A, 0x3A, 0x00, 0x00
                            },
                            "AAPL,clock-id",
                            Buffer (One)
                            {
                                0x0A
                            },
                            "built-in",
                            Buffer (One)
                            {
                                0x00
                            },
                            "device_type",
                            Buffer (0x05)
                            {
                                "EHCI"
                            },
                            "AAPL,current-available",
                            0x04B0,
                            "AAPL,current-extra",
                            0x02BC,
                            "AAPL,current-in-sleep",
                            0x03E8,
                            Buffer (One)
                            {
                                0x00
                            }
                        }, Local0)
                    DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                    Return (Local0)
                }
                Device (HUB0)
                {
                    Name (_ADR, Zero)
                    Device (WEBC)
                    {
                        Name (_ADR, 0x03)
                        Name (_UPC, Package (0x04)
                        {
                            Zero,
                            0xFF,
                            Zero,
                            Zero
                        })
                    }
                }
            }
            Device (USB3)
            {
                Name (_ADR, 0x001A0000)
                OperationRegion (U1CS, PCI_Config, 0xC4, 0x04)
                Field (U1CS, DWordAcc, NoLock, Preserve)
                {
                    U1EN,   2
                }
                Method (_PSW, 1, NotSerialized)
                {
                    If (Arg0)
                    {
                        Store (0x03, U1EN)
                    }
                    Else
                    {
                        Store (Zero, U1EN)
                    }
                }
                Method (_S3D, 0, NotSerialized)
                {
                    Return (0x02)
                }
                Method (_S4D, 0, NotSerialized)
                {
                    Return (0x02)
                }
                Name (_PRW, Package (0x02)
                {
                    0x0E,
                    0x03
                })
                Method (_DSM, 4, NotSerialized)
                {
                    Store (Package (0x0F)
                        {
                            "device-id",
                            Buffer (0x04)
                            {
                                0x37, 0x3A, 0x00, 0x00
                            },
                            "AAPL,clock-id",
                            Buffer (One)
                            {
                                0x0A
                            },
                            "built-in",
                            Buffer (One)
                            {
                                0x00
                            },
                            "device_type",
                            Buffer (0x05)
                            {
                                "EHCI"
                            },
                            "AAPL,current-available",
                            0x04B0,
                            "AAPL,current-extra",
                            0x02BC,
                            "AAPL,current-in-sleep",
                            0x03E8,
                            Buffer (One)
                            {
                                0x00
                            }
                        }, Local0)
                    DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                    Return (Local0)
                }
            }
            Device (USB4)
            {
                Name (_ADR, 0x001A0001)
                OperationRegion (U1CS, PCI_Config, 0xC4, 0x04)
                Field (U1CS, DWordAcc, NoLock, Preserve)
                {
                    U1EN,   2
                }
                Method (_PSW, 1, NotSerialized)
                {
                    If (Arg0)
                    {
                        Store (0x03, U1EN)
                    }
                    Else
                    {
                        Store (Zero, U1EN)
                    }
                }
                Method (_S3D, 0, NotSerialized)
                {
                    Return (0x02)
                }
                Method (_S4D, 0, NotSerialized)
                {
                    Return (0x02)
                }
                Name (_PRW, Package (0x02)
                {
                    0x05,
                    0x03
                })
                Method (_DSM, 4, NotSerialized)
                {
                    Store (Package (0x0F)
                        {
                            "device-id",
                            Buffer (0x04)
                            {
                                0x38, 0x3A, 0x00, 0x00
                            },
                            "AAPL,clock-id",
                            Buffer (One)
                            {
                                0x0A
                            },
                            "built-in",
                            Buffer (One)
                            {
                                0x00
                            },
                            "device_type",
                            Buffer (0x05)
                            {
                                "EHCI"
                            },
                            "AAPL,current-available",
                            0x04B0,
                            "AAPL,current-extra",
                            0x02BC,
                            "AAPL,current-in-sleep",
                            0x03E8,
                            Buffer (One)
                            {
                                0x00
                            }
                        }, Local0)
                    DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                    Return (Local0)
                }
            }
            Device (USB5)
            {
                Name (_ADR, 0x001A0002)
                OperationRegion (U1CS, PCI_Config, 0xC4, 0x04)
                Field (U1CS, DWordAcc, NoLock, Preserve)
                {
                    U1EN,   2
                }
                Method (_PSW, 1, NotSerialized)
                {
                    If (Arg0)
                    {
                        Store (0x03, U1EN)
                    }
                    Else
                    {
                        Store (Zero, U1EN)
                    }
                }
                Method (_S3D, 0, NotSerialized)
                {
                    Return (0x02)
                }
                Method (_S4D, 0, NotSerialized)
                {
                    Return (0x02)
                }
                Name (_PRW, Package (0x02)
                {
                    0x20,
                    0x03
                })
                Method (_DSM, 4, NotSerialized)
                {
                    Store (Package (0x0F)
                        {
                            "device-id",
                            Buffer (0x04)
                            {
                                0x39, 0x3A, 0x00, 0x00
                            },
                            "AAPL,clock-id",
                            Buffer (One)
                            {
                                0x0A
                            },
                            "built-in",
                            Buffer (One)
                            {
                                0x00
                            },
                            "device_type",
                            Buffer (0x05)
                            {
                                "EHCI"
                            },
                            "AAPL,current-available",
                            0x04B0,
                            "AAPL,current-extra",
                            0x02BC,
                            "AAPL,current-in-sleep",
                            0x03E8,
                            Buffer (One)
                            {
                                0x00
                            }
                        }, Local0)
                    DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                    Return (Local0)
                }
                Device (HUB0)
                {
                    Name (_ADR, Zero)
                    Device (UWAN)
                    {
                        Name (_ADR, One)
                        Name (_UPC, Package (0x04)
                        {
                            Zero,
                            0xFF,
                            Zero,
                            Zero
                        })
                    }
                    Device (ULAN)
                    {
                        Name (_ADR, 0x02)
                        Name (_UPC, Package (0x04)
                        {
                            Zero,
                            0xFF,
                            Zero,
                            Zero
                        })
                    }
                }
            }
回复

使用道具 举报

马甲是无辜的 发表于 2012-1-18 18:47 | 显示全部楼层
           Device (EHC2)
            {
                Name (_ADR, 0x001A0007)
                Name (_PRW, Package (0x02)
                {
                    0x0D,
                    0x03
                })
                Method (_DSM, 4, NotSerialized)
                {
                    Store (Package (0x0F)
                        {
                            "device-id",
                            Buffer (0x04)
                            {
                                0x3C, 0x3A, 0x00, 0x00
                            },
                            "AAPL,clock-id",
                            Buffer (One)
                            {
                                0x0A
                            },
                            "built-in",
                            Buffer (One)
                            {
                                0x00
                            },
                            "device_type",
                            Buffer (0x05)
                            {
                                "EHCI"
                            },
                            "AAPL,current-available",
                            0x04B0,
                            "AAPL,current-extra",
                            0x02BC,
                            "AAPL,current-in-sleep",
                            0x03E8,
                            Buffer (One)
                            {
                                0x00
                            }
                        }, Local0)
                    DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))
                    Return (Local0)
                }
                Device (HUB0)
                {
                    Name (_ADR, Zero)
                    Device (EWAN)
                    {
                        Name (_ADR, 0x05)
                        Name (_UPC, Package (0x04)
                        {
                            Zero,
                            0xFF,
                            Zero,
                            Zero
                        })
                    }
                    Device (ELAN)
                    {
                        Name (_ADR, 0x06)
                        Name (_UPC, Package (0x04)
                        {
                            Zero,
                            0xFF,
                            Zero,
                            Zero
                        })
                    }
                }
            }
回复

使用道具 举报

fox0491 发表于 2012-1-23 16:22 | 显示全部楼层
xuxulll 发表于 2012-1-14 23:12
你搞定了啊,,你懂得。。。。把dsdt传上来吧,,,我自己对比一下。。

能不能帮忙弄下,我的dsdt 能睡眠,但是用鼠标唤醒不了,电源键也不能唤醒!
回复

使用道具 举报

sdqdaqs 发表于 2012-1-27 09:50 | 显示全部楼层
我的不插电源正常睡眠,插电源睡眠就重启,很奇怪

dsdt.zip

20.79 KB, 下载次数: 0, 下载积分: PB币 -1

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋手机版联系我们

Copyright © 2005-2025 PCBeta. All rights reserved.

Powered by Discuz!  CDN加速及安全服务由「快御」提供

请勿发布违反中华人民共和国法律法规的言论,会员观点不代表远景论坛官方立场。

远景在线 ( 苏ICP备17027154号 )|远景论坛 |Win11论坛 |Win10论坛 |Win8论坛 |Win7论坛 |WP论坛 |Office论坛

GMT+8, 2025-3-14 20:11

快速回复 返回顶部 返回列表