Permalink
Browse files

Removed unused files

  • Loading branch information...
ArchangeGabriel committed Aug 28, 2011
1 parent 07a2e89 commit 7b70c3b2777e7d385a763bdca4a0dfb1ea02dc02
Showing with 0 additions and 559 deletions.
  1. +0 −48 asus1215n.sh
  2. +0 −27 m11xr2.sh
  3. +0 −67 query_dsdt.pl
  4. +0 −49 test_off.sh
  5. +0 −285 windump_hack/windump.c
  6. +0 −83 windump_hack/xorg.conf
View
@@ -1,48 +0,0 @@
-#!/bin/sh
-# Power control for Asus 1215N Optimus
-# by Pete Eberlein
-
-if ! lsmod | grep -q acpi_call; then
- echo "Error: acpi_call module not loaded"
- exit
-fi
-
-acpi_call () {
- echo "$*" > /proc/acpi/call
- cat /proc/acpi/call
-}
-
-
-case "$1" in
-off)
- echo _DSM $(acpi_call "\_SB.PCI0.P0P4.GFX0._DSM" \
- "{0xF8,0xD8,0x86,0xA4,0xDA,0x0B,0x1B,0x47," \
- "0xA7,0x2B,0x60,0x42,0xA6,0xB5,0xBE,0xE0}" \
- "0x100 0x1A {0x1,0x0,0x0,0x3}")
- # ok to turn off: Buffer {0x59 0x0 0x0 0x11}
- # is already off: Buffer {0x41 0x0 0x0 0x11}
- echo _PS3 $(acpi_call "\_SB.PCI0.P0P4.GFX0._PS3")
-;;
-on)
- echo _PS0 $(acpi_call "\_SB.PCI0.P0P4.GFX0._PS0")
-;;
-*)
- echo "Usage: $0 [on|off]"
-esac
-
-
-echo P3MO $(acpi_call "\_SB.PCI0.P0P4.GFX0.P3MO")
-echo DGPS $(acpi_call "\_SB.PCI0.P0P4.GFX0.DGPS")
-PSC=$(acpi_call "\_SB.PCI0.P0P4.GFX0._PSC")
-echo _PSC ${PSC}
-case "$PSC" in
-0x0)
- PSC="on"
-;;
-0x3)
- PSC="off"
-;;
-esac
-echo "Asus 1215N Optimus appears to be ${PSC}"
-
-
View
@@ -1,27 +0,0 @@
-#!/bin/sh
-# Based on m11xr2hack by George Shearer
-
-if ! lsmod | grep -q acpi_call; then
- echo "Error: acpi_call module not loaded"
- exit
-fi
-
-acpi_call () {
- echo "$*" > /proc/acpi/call
- cat /proc/acpi/call
-}
-
-
-case "$1" in
-off)
- echo NVOP $(acpi_call "\_SB.PCI0.P0P2.PEGP.NVOP 0 0x100 0x1A {255,255,255,255}")
- echo _PS3 $(acpi_call "\_SB.PCI0.P0P2.PEGP._PS3")
-;;
-on)
- echo _PS0 $(acpi_call "\_SB.PCI0.P0P2.PEGP._PS0")
-;;
-*)
- echo "Usage: $0 [on|off]"
-;;
-esac
-
View
@@ -1,67 +0,0 @@
-#!/usr/bin/perl
-use strict;
-use Getopt::Long;
-use Data::Dumper;
-
-my ($dir,$debug,$mytokens);
-$dir = '.';
-GetOptions(
- 'd|dir:s' => \$dir,
- 'debug:s' => \$debug,
- 't|tokens:s' => \$mytokens,
- );
-
-my $models;
-
-my @tokens = (
- 'MXMX','MXDS','_DSM',
- '0xA6, 0xFA, 0xDD, 0x3D, 0x1B, 0x36, 0xB4, 0x4E',
- '0xA4, 0x24, 0x8D, 0x10, 0x08, 0x9D, 0x16, 0x53');
-
-if (defined $mytokens) {
- @tokens = ();
- foreach my $mytoken (split(":",$mytokens)) {
- push @tokens, $mytoken;
- }
-}
-
-opendir DIR,$dir or die $!;
-my $file;
-my $count = 0;
-while (( defined($file = readdir(DIR)) )) {
- if ($file =~ /\.dsl$/) {
- analyse_file($dir,$file);
- }
- last if ($count++ > $debug && defined($debug));
-}
-
-foreach my $file (sort keys %$models) {
- my $num = scalar keys %{$models->{$file}}; $num = sprintf("%02d",$num);
- print "$num $file \{";
- foreach my $token (sort keys %{$models->{$file}}) {
- my $value = $models->{$file}{$token};
- print "\t$token => $value ";
- }
- print "\}\n";
-}
-$DB::single=1;1;
-print STDERR Dumper($models) if ($debug);
-
-########################################
-
-sub analyse_file {
- my $dir = shift;
- my $file = shift;
- my $param = shift;
-
- open FILE, "$dir/$file" or die $!;
- while (<FILE>) {
- foreach my $token (@tokens) {
- my $regexp = qr/${token}/;
- if ($_ =~ /$regexp/g) {
- $models->{$file}{$token}++;
- }
- }
- }
- close FILE;
-}
View
@@ -1,49 +0,0 @@
-#!/bin/bash
-
-if lsmod | grep -q acpi_call; then
-methods="
-\_SB.PCI0.P0P1.VGA._OFF
-\_SB.PCI0.P0P2.VGA._OFF
-\_SB_.PCI0.OVGA.ATPX
-\_SB_.PCI0.OVGA.XTPX
-\_SB.PCI0.P0P3.PEGP._OFF
-\_SB.PCI0.P0P2.PEGP._OFF
-\_SB.PCI0.P0P1.PEGP._OFF
-\_SB.PCI0.MXR0.MXM0._OFF
-\_SB.PCI0.PEG1.GFX0._OFF
-\_SB.PCI0.PEG0.GFX0.DOFF
-\_SB.PCI0.PEG1.GFX0.DOFF
-\_SB.PCI0.PEG0.PEGP._OFF
-\_SB.PCI0.XVR0.Z01I.DGOF
-\_SB.PCI0.PEGR.GFX0._OFF
-\_SB.PCI0.PEG.VID._OFF
-\_SB.PCI0.PEG0.VID._OFF
-\_SB.PCI0.P0P2.DGPU._OFF
-\_SB.PCI0.P0P4.DGPU.DOFF
-\_SB.PCI0.IXVE.IGPU.DGOF
-\_SB.PCI0.RP00.VGA._PS3
-\_SB.PCI0.RP00.VGA.P3MO
-\_SB.PCI0.GFX0.DSM._T_0
-\_SB.PCI0.LPC.EC.PUBS._OFF
-\_SB.PCI0.P0P2.NVID._OFF
-\_SB.PCI0.P0P2.VGA.PX02
-"
-
- for m in $methods; do
-echo -n "Trying $m: "
- echo $m > /proc/acpi/call
- result=$(cat /proc/acpi/call)
- case "$result" in
- Error*)
- echo "failed"
- ;;
- *)
- echo "works!"
- break
- ;;
- esac
-done
-else
-echo 'The acpi_call module is not loaded'
- exit 1
-fi
Oops, something went wrong.

0 comments on commit 7b70c3b

Please sign in to comment.