GithubHelp home page GithubHelp logo

ssdttime's Introduction

SSDTTime

A simple tool designed to make creating SSDTs simple. Supports macOS, Linux and Windows

Supported SSDTs:

  • SSDT-HPET
    • Patches out IRQ conflicts
  • SSDT-EC
    • OS-aware fake EC (laptop and desktop variants)
  • SSDT-USBX
    • Provides generic USB power properties
  • SSDT-PLUG
    • Sets plugin-type = 1 on CPU0/PR00
  • SSDT-PMC
    • Adds missing PMCR device for native 300-series NVRAM
  • SSDT-AWAC
    • Disables AWAC clock, and enables (or fakes) RTC as needed
  • SSDT-USB-Reset
    • Returns a zero status for detected root hubs to allow hardware querying
  • SSDT-Bridge
    • Create missing PCI bridges for passed device path
  • SSDT-PNLF
    • Sets up a PNLF device for laptop backlight control
  • SSDT-XOSI
    • _OSI rename and patch to return true for a range of Windows versions - also checks for OSID
  • DMAR
    • Remove Reserved Memory Regions from the DMAR table

Additionally on Linux and Windows the tool can be used to dump the system DSDT.

Instructions:

Linux:

  • Launch SSDTTime.py with any somewhat recent version of Python from either a terminal window or by running the file normally.

macOS:

  • Launch SSDTTime.command from either a terminal window or by double clicking the file.

Windows:

  • Launch SSDTTime.bat from either a terminal window or by double clicking the file.

Credits:

  • CorpNewt - Writing the script and libraries used
  • NoOne - Some small improvements to the script
  • Rehabman/Intel - iasl

ssdttime's People

Contributors

corpnewt avatar ioiiio avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ssdttime's Issues

Return value for fake EC

Using the SSDTTime script, I extracted DSDT on Windows and generated FakeEC tables for my Chinese x79 motherboard

Some time later, while studying the instructions, I looked in detail at the source code of ST EC Desktop, which lies in the OpenCore repository
https://github.com/dortania/Getting-Started-With-ACPI/blob/master/extra-files/decompiled/SSDT-EC-DESKTOP.dsl
and I saw that the returned values in the file from the repository and in the generated file are oppositely different

In the dsl file generated by SSDTTIme, here is a condition with return values:

image

If (_OSI ("Darwin"))
{
Return (0x0F)
}
Else
{
Return (Zero)
}

And in the dsl file from the OpenCore repository , this is:

https://github.com/dortania/Getting-Started-With-ACPI/blob/master/extra-files/decompiled/SSDT-EC-DESKTOP.dsl#L560

If (_OSI ("Darwin"))
{
Return (Zero)
}
Else
{
Return (0x0F)
}

Actual questions:

  1. Is there a difference between such return values?
  2. Which option is correct in this case?

Missing "Dump DSDT" feature in macOS

I tried running it .bat file in Windows 10 and there was an item allowing you to get / extract DSDT from the system.

After installing hackintosh, I decided to work with DSDT and used this script. I tried running the. command file and .py file in macOS Mojave 10.14.6, but there was no "Dump DSDT"option in the list of options.
Why?

.py file:
image

.command file:
image

iasl error?

The command doesn't work always giving an iasl error?

Screen Shot 2020-01-24 at 23 42 57

Warning "failed to decompile DSDT.aml"

On my target machine:

   git clone [email protected]:corpnewt/SSDTTime.git
   sudo SSDTTime/SSDTTime.py

Select dump

    #######################################################
    #                    Dumping DSDT                     #
    #######################################################

    Checking if DSDT exists
    Copying DSDT to safe location.
    You have to enter your password to copy the file:
    Changing file ownership
    Success!
    Failed to decompile DSDT.aml
    Loading file failed!
    Press [enter] to return to main menu...

Is this warning something I should care about? Or can I use the aml anyways?

[macOS Catalina 10.15.6] Can't download iasl

Hi @corpnewt and many thanks for your new update (AWAC and PMC are really useful).
I've updated SSDTTime by recloning your repo and when I launch SSDTTime.command an error is displayed:

Downloading iasl.zip
- Extracting
An error occurred :(
- [Errno 2] No such file or directory: '/var/folders/j_/5cg1hs7j2rl4srlr9c5pjm4h0000gn/T/tmpnioflwtm/tmpush7dk76/iasl.zip'
Something went wrong :( - Aborting!
- Could not locate or download iasl!

I've fixed by manually copying my iasl to Scripts folder.
What can you do to fix this? Can't you attach iasl latest version to the Scripts folder?
Thanks

ModuleNotFoundError: No module named 'Scripts'

No matter I did install the "Scripts" module - even as su, still complaints that can't find them, unless I am missing something there, is it only python2 compatible?

Traceback (most recent call last):
  File "/home/chris/Desktop/mac/./SSDTTime.py", line 1, in <module>
    from Scripts import *
ModuleNotFoundError: No module named 'Scripts'

system info : Debian Sid / Python 3.9.7

thanks in advance

SSDTTime.py closes right away

Hello guys,
When i try to open SSDTTime.py or SSDTTime.bat the cmd window opens, but closes right away. The only thing i can see on the cmd windows is "Downloading iasl-win-20180105.zip" then it closes. I tried re-installing python 3 and also tried to install python 2 but none helped. Is there anyone who can help me ? Thank you.

AttributeError: module 'run' has no attribute 'Run'

Traceback (most recent call last):
File "D:\raison\Documents\Projects\SSDTTime\SSDTTime.py", line 714, in
s = SSDT()
File "D:\raison\Documents\Projects\SSDTTime\SSDTTime.py", line 11, in init
self.re = reveal.Reveal()
File "D:\raison\Documents\Projects\SSDTTime\Scripts\reveal.py", line 8, in init
self.r = run.Run()
AttributeError: module 'run' has no attribute 'Run'

No need to generate the _CRS to XCRS patch for OpenCore

OpenCore applies ACPI replacement/renaming patches after an attempt to implement SSDT in DSDT. In order for this patch to benefit, it needs to be applied before attempting to implement SSDT in DSDT. I wrote about it here - acidanthera/bugtracker#2174

Together (or together with) the generation of this patch, it is better to output a message to the user that he must manually rename _CRS to XCRS in the "Device HPET" area in DSDT. Or display a dialog for the user with a suggestion to change DSDT so that SSDTTime itself replaces _CRS with XCRS in the DSDT file

P.S.
Perhaps the OpenCore developers will satisfy my request and make sure that ACPI patches are applied before the introduction of SSDT, then you can forget about this issue

Determining CPU name scheme... - Could not locate Processor object! Aborting!

When running option 4 Plugin Type I get this error message:

Determining CPU name scheme...

  • Could not locate Processor object! Aborting!

I am running the code on Linux Mint 20 Live

The computer is an H61 SandyBridge Chipset Running Intel Core i7-2600 @ 3.4GHZ quad core

What kind of Data can i provide to help with this issue?

unable to download or extract iasl.zip

Downloading iasl.zip

  • Extracting
    An error occurred :(
  • [Errno 2] No such file or directory: '/var/folders/2t/bf6qym613ws6rltfgz9106v00000gn/T/tmpsjw9okvn/tmphqtr463g/iasl.zip'
    Something went wrong :( - Aborting!
  • Could not locate or download iasl!

running Catalina on a hackintosh

HPET could not be located

When I try to use option 1 "FixHPET" I can select it, and then I select an option and it says "HPET could not be located" even though I pointed it to the folder with DSDT and HPET, what am I doing wrong?

EDIT: I am using the Mac version, I tested the Windows version and it works fine

Could not locate LPC(B)! Aborting

Hi there, I get the following error when running FakeEC. #######################################################

Fake EC

#######################################################

Locating PNP0C09 devices...

  • Got 1
  • Validating...
    --> EC
    ----> Valid EC Device
    ----> EC called EC. Renaming
    Locating LPC(B)/SBRG...
  • Could not locate LPC(B)! Aborting!

Any ideas how to fix it?
Thanks

AN ERROR OCCURRED

After I ran the python file and ran into an error

`Press [enter] to continue...
An error occurred: 'SSDT' object has no attribute 'w'
Press [enter] to continue...^CTraceback (most recent call last):
File "/home/kiriya/Downloads/SSDTTime-master/SSDTTime.py", line 1238, in
s.main()
File "/home/kiriya/Downloads/SSDTTime-master/SSDTTime.py", line 1182, in main
self.u.resize(self.w,self.h)
AttributeError: 'SSDT' object has no attribute 'w'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/kiriya/Downloads/SSDTTime-master/SSDTTime.py", line 1241, in
input("Press [enter] to continue...")
KeyboardInterrupt
`

Fix-HPET Error (Could not locate HPET's _CRS! Aborting!)

I was following the dortania OpenCore guide and it told me to make a Fix-HPET SSDT because of my CPU generation but when i chose option 1 it gives me back with the error:

Locating HPET's _CRS Method...

  • Could not locate HPET's _CRS! Aborting!

Press [enter] to return to main menu...

My specs are:
Model: Sony VPCEG111T (Laptop)
CPU: Intel TM Core i5 2520M @2.4GHz @2.4GHz
RAM: 6GB DDR3
Graphics: NVDIA GEFORCE 410M

Please help.

SSDT Plug, power management may be incomplete or unsupported

Hi,
I apologize if this is teh wrong place to ask but, is it normal that we get the following warning when using a I7-4770k with mojave and the generated ssdt-plug ?

2020-04-02 05:12:55.108092+0200 0x2b0 Default 0x0 0 0 kernel: (IOPlatformPluginFamily) WARNING: IOPlatformPluginUtil : getCPUIDInfo: this is an unknown CPU model 0x3c -- power management may be incomplete or unsupported

Error 9009 on Windows

Running Windows 10 1909 and i get:

Script exited with error code: 9009

upon opening SSDTTime.bat with Python 3.8.3. Runs fine on a VM but that's useless.
Any idea ?

Script exited with error core: 1

Get the error as follows. Tried to execute the file from py 2 enviroment with the same result. Please advice

Downloading iasl-win-20200528.zip

  • Extracting
    An error occurred :(
  • [Errno 2] No such file or directory: 'C:\Users\gpere\AppData\Local\Temp\tmpob6k45qp\tmpocawz513\iasl-win-20200528.zip'
    Something went wrong :( - Aborting!
  • Could not locate or download iasl!

Script exited with error code: 1

I downloaded iasl from acpica but it fails to decompile DSDT.aml

Fails to decompile DSDT.aml im on linux Ubuntu if that helps

#######################################################

Dumping DSDT

#######################################################

Checking if DSDT exists
Copying DSDT to safe location.
You have to enter your password to copy the file:
Changing file ownership
Success!
Failed to decompile DSDT.aml
Loading file failed!
Press [enter] to return to main menu...

NO Dumping DSDT option found

Hello there,
First of all ...... Thank you sooo much for sharing this script.. I really mean it, man....

I'm currently running Hackintosh Catalina 10.15.7 (Clover bootloader).
I want to change my boot loader to OpenCore.
So,I downloaded SSDTTime script (on 28Sep,2020) and when I executed SSDTTime.command there was no DSDT dumping option available. so, I tried by running SSDTTime.py but the result was same....

So, I don't understand what to do...
Please help me.

I'm attaching both the screenshots for your reference.
NO DSDT 1
NO DSDT 2

Add "Disable for Windows"-option

I think it would be smart to add an option to SSDTTime to wrap the SSDTs with

If (_OSI ("Darwin"))
{
    Return (Zero)
}
Else
{
    Return (0x0F)
}

in the cases where Windows is dualbooted.

ERRORS WITH PYTHON 3.8.2

run ssdttime.bat got errors with python 3.8.2 and windows 10.
one error was : could not download iasl-win.zip
after I downloaded it manually, and execute Dump DSDT, I ran into another error,
it said: could not found dsdt.bat in d:\ssdtime\script

but when i downgrade the python to python 3.4.0, everything works fine.

SSDT-HPET: HPET _CRS (Needs _CSR. to XCRS Rename)

Apologize for my ignorance of basic SSDT modding renames but this comment "HPET _CRS (Needs _CSR. to XCRS Rename)" showed up on Opencore configurator. Not sure what it means or what I should do? Decompile the SSDT and do the rename and recompile??

Thank you

Dump DSDT - Error name 'getpass' is not defined

Error occurs as root, as normal user and via sudo
Select option 4

Changing file ownership
Dump DSDT - Error name 'getpass' is not defined

On Debian linux testing (GRML 2018-12)
Python 2.7.17
Using password-less sudo
SSDTime updated from Github today

Error: ModuleNotFoundError: No module named 'Scripts'

I ran SSDTTime.bat with administrator on windows 11, there is an error:

Traceback (most recent call last):
  File "C:\Users\admin\Desktop\macos_black\EFI\OC\ACPI\SSDTTime\SSDTTime.py", line 1, in <module>
    from Scripts import downloader, dsdt, plist, reveal, run, utils
ModuleNotFoundError: No module named 'Scripts'

Script exited with error code: 1

Press [enter] to exit...

[Suggestion] Better Download Link for iasl for Windows

I noticed that if SSDTTime can't download .iasl, a promt with a downladlink for .ias is provided:

Please manually download and extract iasl.exe and acpidump.exe from:
 - https://www.intel.com/content/www/us/en/developer/topic-technology/open/acpica/download.html

And place in:
 - C:\Users\steezo\Desktop\SSDTTime-master\Scripts

But that link leads to the source code for compiling .iasl etc. yourself which is not very convinient for a regular Windows user.

So instead, I would like to suggest this link for downloading precompiled builds of .iasl and acpidump from intel instead:

https://www.intel.com/content/www/us/en/download/774881/acpi-component-architecture-downloads-windows-binary-tools.html

Greetings

Could not locate CPU0 parent! Aborting!

Hi,
I can not generate PluginType by ssdttime.bat.
My laptop is thinkpad t460s i5-6200u. I don't know what's mean to the error message.

best regards.

#######################################################

Plugin Type

#######################################################

Determining CPU name scheme...

  • Found CPU0
    Determining CPU parent name scheme...
  • Could not locate CPU0 parent! Aborting!

Press [enter] to return to main menu...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.