Moderatore: Gruppo Documentazione


carlo@BaddyAsus:~$ sudo apt-get install git
[sudo] password for carlo:
Lettura elenco dei pacchetti... Fatto
Generazione albero delle dipendenze
Lettura informazioni sullo stato... Fatto
git è già alla versione più recente.
0 aggiornati, 0 installati, 0 da rimuovere e 0 non aggiornati.
carlo@BaddyAsus:~$ git clone http://github.com/mkottman/acpi_call.git
fatal: destination path 'acpi_call' already exists and is not an empty directory.
carlo@BaddyAsus:~$ cd acpi_call
carlo@BaddyAsus:~/acpi_call$ make
make -C /lib/modules/3.0.0-16-generic/build M=/home/carlo/acpi_call modules
make[1]: ingresso nella directory "/usr/src/linux-headers-3.0.0-16-generic"
Building modules, stage 2.
MODPOST 1 modules
make[1]: uscita dalla directory "/usr/src/linux-headers-3.0.0-16-generic"
carlo@BaddyAsus:~/acpi_call$ sudo insmod acpi_call.ko
carlo@BaddyAsus:~/acpi_call$ lspci -vnnn | grep VGA
00:02.0 VGA compatible controller [0300]: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller [8086:0116] (rev 09) (prog-if 00 [VGA controller])
01:00.0 VGA compatible controller [0300]: nVidia Corporation Device [10de:1050] (rev a1) (prog-if 00 [VGA controller])
carlo@BaddyAsus:~/acpi_call$ ./test_off.sh
bash: ./test_off.sh: Permesso negato



carlo@BaddyAsus:~$ ls -l acpi_call
totale 80
drwxr-xr-x 5 carlo carlo 4096 2012-02-08 19:59 acpi_call
-rw-rw-r-- 1 carlo carlo 10543 2012-02-08 19:58 acpi_call.c
-rw-rw-r-- 1 carlo carlo 11833 2012-02-15 12:39 acpi_call.ko
-rw-rw-r-- 1 carlo carlo 1311 2012-02-08 19:58 acpi_call.mod.c
-rw-rw-r-- 1 carlo carlo 3720 2012-02-15 12:39 acpi_call.mod.o
-rw-rw-r-- 1 carlo carlo 10240 2012-02-15 12:39 acpi_call.o
-rwxrwxr-x 1 carlo carlo 964 2012-02-08 19:58 asus1215n.sh
-rwxrwxr-x 1 carlo carlo 485 2012-02-08 19:58 m11xr2.sh
-rw-rw-r-- 1 carlo carlo 438 2012-02-08 19:58 Makefile
-rw-rw-r-- 1 carlo carlo 42 2012-03-22 16:01 modules.order
-rw-rw-r-- 1 carlo carlo 0 2012-02-08 19:58 Module.symvers
-rw-rw-r-- 1 carlo carlo 1538 2012-02-08 19:58 query_dsdt.pl
-rw-rw-r-- 1 carlo carlo 2296 2012-02-08 19:58 README
-rw-rw-r-- 1 carlo carlo 1015 2012-02-08 19:58 test_off.sh
drwxrwxr-x 2 carlo carlo 4096 2012-02-08 19:58 windump_hack
carlo@BaddyAsus:~$

carlo@BaddyAsus:~$ cd ~/acpi_call
carlo@BaddyAsus:~/acpi_call$ make
make -C /lib/modules/3.0.0-16-generic/build M=/home/carlo/acpi_call modules
make[1]: ingresso nella directory "/usr/src/linux-headers-3.0.0-16-generic"
Building modules, stage 2.
MODPOST 1 modules
make[1]: uscita dalla directory "/usr/src/linux-headers-3.0.0-16-generic"
carlo@BaddyAsus:~/acpi_call$ sudo insmod acpi_call.ko
[sudo] password for carlo:
insmod: error inserting 'acpi_call.ko': -1 File exists
carlo@BaddyAsus:~/acpi_call$

carlo@BaddyAsus:~$ sudo insmod acpi_call.ko
[sudo] password for carlo:
insmod: can't read 'acpi_call.ko': No such file or directory
carlo@BaddyAsus:~$
carlo@BaddyAsus:~$ ./test_off.sh
bash: ./test_off.sh: File o directory non esistente
carlo@BaddyAsus:~$


carlo@BaddyAsus:~$ cd ~/acpi_call
carlo@BaddyAsus:~/acpi_call$ ./test_off.sh
bash: ./test_off.sh: Permesso negato
carlo@BaddyAsus:~/acpi_call$sonbello@sonbello-SR700:~/acpi_call$ ./test_off.sh
The acpi_call module is not loaded

carlo@BaddyAsus:~$ cd ~/acpi_call
carlo@BaddyAsus:~/acpi_call$ ./test_off.sh
Trying \_SB.PCI0.P0P1.VGA._OFF: ./test_off.sh: riga 34: /proc/acpi/call: Permesso negato
cat: /proc/acpi/call: Permesso negato
works!
carlo@BaddyAsus:~/acpi_call$ 

Visualizzano questa sezione: cristian_c e 1 ospite