Coder Social home page Coder Social logo

poz1 / acpi-stuff Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lekensteyn/acpi-stuff

0.0 2.0 0.0 1.49 MB

Tools for analysing ACPI DSDT/SSDT tables and notes

Makefile 2.42% Awk 1.92% Shell 5.60% C 26.42% Perl 8.52% PHP 4.62% Python 12.52% PowerShell 1.84% HTML 36.15%

acpi-stuff's Introduction

About

This repository contains ACPI related stuff for analysis of DSDT / SSDT tables which the goal to find calls to toggle nVidia (r) Optimus (tm) cards.

view.html

It's name is actually FoldedViewer (no trademark infrignment intended if any) and the JS/ HTML5 program is useful for speeding up analys of DSDT/ SSDT tables by providing folding capabilities. If you're using a recent browser, especially if it's open-source like Firefox or Chromium, you'll be able to select files through a file picker.

fieldsize.c

Compile with gcc -Wall fieldsize.c -o fieldsize.
Run ./fieldsize and paste the contents from Fields in it and it'll display the fields with the offset on the end of the line. Whitespace is ignored. Only lines starting with NAME, [numeric value],, AccessAs and Offset ([numeric/hex value]), are recognized, all other input will cause the program halt with a fatal error. Parsing stops on EOF (Ctrl + D)

Example input (stdin):

Offset (0x8C),
SVID, 16,
SSID, 16,

Example output (stdout):

Offset (0x8C), // byte 0x8C  bit 0
SVID,   16,    // byte 0x8C  bit 0
SSID,   16,    // byte 0x8E  bit 0

get_methods

Retrieve the ACPI methods from an AML file (e.g. from acpidump). Usage:

get_methods DSDT.dat SSDT.dat more.dat etc...

methods_tree

A PHP script for converting the output of get_methods to a HTML document.

Example usage:

./get_methods {DSDT,SSDT*}.dat | ./methods_tree > out.html

acer_ec.pl

Retrieved from http://aceracpi.googlecode.com/svn/trunk/acer_ec/acer_ec.pl Used for dumping the contents of an Embedded Controller which can be done with:

./acer_ec.pl regs

Getting the register value at a certain position:

./acer_ec.pl ?= [hexadecimal index of register]

bbswitch/bbswitch.c

bbswitch has been migrated to https://github.com/Bumblebee-Project/bbswitch

Clevo_B7130

Stuff related to my Clevo B7130 (BTO 17CL34) laptop.

acpi-stuff's People

Contributors

lekensteyn avatar

Watchers

 avatar  avatar

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.