#1 Le 19/10/2013, à 09:18
- powerflower5
aide pour acpi_call
Bonjour,
Je voudrais utiliser acpi_call. Je dois faire ça :
chmod u+x test_off.sh
./test_off.sh
mais je ne sais pas le rendre exécutable (pas compris comment faire). D'où le retour de commande :
nath@nath-HP-G72-Notebook-PC ~ $ chmod u+x test_off.sh
chmod: cannot access `test_off.sh': No such file or directory
nath@nath-HP-G72-Notebook-PC ~ $ ./test_off.sh
Quelqu'un pourrait m'aider à le faire, svp?
Merci d'avance.
laptop: HP G72-a55SF /Ubuntu 18.04.1 64bit /Gnome 3.26.1 /Intel pentium P6000 CPU 1.87Ghz x2 /ram 4Go /dd 485Go /CG Intel corporation Core Processor Integrated graphic controller et Advanced Micro Devices, Inc. [AMD/ATI] Park [Mobility Radeon HD 5430/5450/5470]
Hors ligne
#2 Le 19/10/2013, à 19:01
- f.x0
Re : aide pour acpi_call
Bonjour powerflower5,
Il faut d'abord te situer dans le réperoire où se trouve le fichier test_off.sh.
ensuite essaies
sudo chmod u+x test_off.sh
SOPI
Hors ligne
#3 Le 19/10/2013, à 19:17
- powerflower5
Re : aide pour acpi_call
f.x0, voici le retour de commande :
nath@nath-HP-G72-Notebook-PC ~/acpi_call $ sudo chmod u+x test_off.sh
[sudo] password for nath:
Sorry, try again.
[sudo] password for nath:
chmod: cannot access `test_off.sh': No such file or directory
nath@nath-HP-G72-Notebook-PC ~/acpi_call $
Et juste avant, j'ai fait ceci :
nath@nath-HP-G72-Notebook-PC ~ $ sudo apt-get install git
[sudo] password for nath:
Sorry, try again.
[sudo] password for nath:
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
git est déjà la plus récente version disponible.
0 mis à jour, 0 nouvellement installés, 0 à enlever et 31 non mis à jour.
nath@nath-HP-G72-Notebook-PC ~ $ sudo apt-get install git
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
git est déjà la plus récente version disponible.
0 mis à jour, 0 nouvellement installés, 0 à enlever et 31 non mis à jour.
nath@nath-HP-G72-Notebook-PC ~ $ git clone http://github.com/mkottman/acpi_call.git
Cloning into 'acpi_call'...
remote: Counting objects: 246, done.
remote: Compressing objects: 100% (139/139), done.
remote: Total 246 (delta 122), reused 226 (delta 105)
Receiving objects: 100% (246/246), 40.48 KiB, done.
Resolving deltas: 100% (122/122), done.
nath@nath-HP-G72-Notebook-PC ~ $ cd acpi_call
nath@nath-HP-G72-Notebook-PC ~/acpi_call $ make
make -C /lib/modules/3.2.0-23-generic/build M=/home/nath/acpi_call modules
make[1]: Entering directory `/usr/src/linux-headers-3.2.0-23-generic'
CC [M] /home/nath/acpi_call/acpi_call.o
Building modules, stage 2.
MODPOST 1 modules
CC /home/nath/acpi_call/acpi_call.mod.o
LD [M] /home/nath/acpi_call/acpi_call.ko
make[1]: Leaving directory `/usr/src/linux-headers-3.2.0-23-generic'
nath@nath-HP-G72-Notebook-PC ~/acpi_call $ sudo insmod acpi_call.ko
nath@nath-HP-G72-Notebook-PC ~/acpi_call $ ./test_off.sh
bash: ./test_off.sh: No such file or directory
nath@nath-HP-G72-Notebook-PC ~/acpi_call $ chmod u+x test_off.sh
chmod: cannot access `test_off.sh': No such file or directory
nath@nath-HP-G72-Notebook-PC ~/acpi_call $ ls -test_off.sh
ls: invalid option -- 'e'
Try `ls --help' for more information.
nath@nath-HP-G72-Notebook-PC ~/acpi_call $ ls --test_off.sh
ls: unrecognized option '--test_off.sh'
Try `ls --help' for more information.
nath@nath-HP-G72-Notebook-PC ~/acpi_call $
nath@nath-HP-G72-Notebook-PC ~/acpi_call $ sudo insmod acpi_call.ko
insmod: error inserting 'acpi_call.ko': -1 File exists
nath@nath-HP-G72-Notebook-PC ~/acpi_call $ sudo sh ./test_off.sh
sh: 0: Can't open ./test_off.sh
nath@nath-HP-G72-Notebook-PC ~/acpi_call $ chmod u+x test_off.sh
chmod: cannot access `test_off.sh': No such file or directory
nath@nath-HP-G72-Notebook-PC ~/acpi_call $ ./test_off.sh
bash: ./test_off.sh: No such file or directory
nath@nath-HP-G72-Notebook-PC ~/acpi_call $
laptop: HP G72-a55SF /Ubuntu 18.04.1 64bit /Gnome 3.26.1 /Intel pentium P6000 CPU 1.87Ghz x2 /ram 4Go /dd 485Go /CG Intel corporation Core Processor Integrated graphic controller et Advanced Micro Devices, Inc. [AMD/ATI] Park [Mobility Radeon HD 5430/5450/5470]
Hors ligne
#4 Le 19/10/2013, à 19:23
- f.x0
Re : aide pour acpi_call
tapes
sudo updatedb
attends la fin de la commande (~ 1mn)
puis tapes
locate *test_off*
et postes le retour
SOPI
Hors ligne
#5 Le 19/10/2013, à 19:31
- powerflower5
Re : aide pour acpi_call
voilà :
nath@nath-HP-G72-Notebook-PC ~/acpi_call $ sudo updatedb
[sudo] password for nath:
nath@nath-HP-G72-Notebook-PC ~/acpi_call $ locate *test_off*
nath@nath-HP-G72-Notebook-PC ~/acpi_call $
laptop: HP G72-a55SF /Ubuntu 18.04.1 64bit /Gnome 3.26.1 /Intel pentium P6000 CPU 1.87Ghz x2 /ram 4Go /dd 485Go /CG Intel corporation Core Processor Integrated graphic controller et Advanced Micro Devices, Inc. [AMD/ATI] Park [Mobility Radeon HD 5430/5450/5470]
Hors ligne
#6 Le 19/10/2013, à 19:37
- f.x0
Re : aide pour acpi_call
ton fichier test_off.sh ne semble tout simplement pas exister, désolé.
postes le retour de
ls -la ~/acpi_call
SOPI
Hors ligne
#7 Le 19/10/2013, à 20:05
- powerflower5
Re : aide pour acpi_call
voilà :
nath@nath-HP-G72-Notebook-PC ~/acpi_call $ ls -la ~/acpi_call
total 144
drwxr-xr-x 6 nath nath 4096 oct. 19 18:55 .
drwxr-xr-x 34 nath nath 4096 oct. 19 18:55 ..
-rw-r--r-- 1 nath nath 11979 oct. 19 18:55 acpi_call.c
-rw-r--r-- 1 nath nath 11361 oct. 19 18:55 acpi_call.ko
-rw-r--r-- 1 nath nath 249 oct. 19 18:55 .acpi_call.ko.cmd
-rw-r--r-- 1 nath nath 1311 oct. 19 18:55 acpi_call.mod.c
-rw-r--r-- 1 nath nath 3720 oct. 19 18:55 acpi_call.mod.o
-rw-r--r-- 1 nath nath 25259 oct. 19 18:55 .acpi_call.mod.o.cmd
-rw-r--r-- 1 nath nath 9760 oct. 19 18:55 acpi_call.o
-rw-r--r-- 1 nath nath 32761 oct. 19 18:55 .acpi_call.o.cmd
drwxr-xr-x 2 nath nath 4096 oct. 19 18:55 examples
drwxr-xr-x 8 nath nath 4096 oct. 19 18:55 .git
-rw-r--r-- 1 nath nath 314 oct. 19 18:55 Makefile
-rw-r--r-- 1 nath nath 41 oct. 19 18:55 modules.order
-rw-r--r-- 1 nath nath 0 oct. 19 18:55 Module.symvers
-rw-r--r-- 1 nath nath 3094 oct. 19 18:55 README.md
drwxr-xr-x 3 nath nath 4096 oct. 19 18:55 support
drwxr-xr-x 2 nath nath 4096 oct. 19 18:55 .tmp_versions
nath@nath-HP-G72-Notebook-PC ~/acpi_call $
laptop: HP G72-a55SF /Ubuntu 18.04.1 64bit /Gnome 3.26.1 /Intel pentium P6000 CPU 1.87Ghz x2 /ram 4Go /dd 485Go /CG Intel corporation Core Processor Integrated graphic controller et Advanced Micro Devices, Inc. [AMD/ATI] Park [Mobility Radeon HD 5430/5450/5470]
Hors ligne
#8 Le 19/10/2013, à 20:13
- f.x0
Re : aide pour acpi_call
oui c'est bien ça, ton fichier test_off.sh n'existe pas.
tapes ceci
cd ~/acpi_call
gksudo gedit test_off.sh
et copies ces lignes dans le fichier vide
#!/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.P0P2.PEGP._OFF
\_SB.PCI0.MXR0.MXM0._OFF
\_SB.PCI0.PEG1.GFX0._OFF
\_SB.PCI0.PEG1.GFX0.DOFF
\_SB.PCI0.XVR0.Z01I.DGOF
\_SB.PCI0.PEGR.GFX0._OFF
\_SB.PCI0.PEG.VID._OFF
\_SB.PCI0.P0P2.DGPU._OFF
\_SB.PCI0.IXVE.IGPU.DGOF
\_SB.PCI0.RP00.VGA._PS3
\_SB.PCI0.RP00.VGA.P3MO
\_SB.PCI0.GFX0.DSM._T_0
"
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
enregistres le fichier
quitte gedit
puis tapes
sudo chmod u+x test_off.sh
et testes le lancement
./test_off.sh
SOPI
Hors ligne
#9 Le 19/10/2013, à 20:16
- powerflower5
Re : aide pour acpi_call
voilà :
nath@nath-HP-G72-Notebook-PC ~/acpi_call $ sudo chmod u+x test_off.sh
nath@nath-HP-G72-Notebook-PC ~/acpi_call $ ./test_off.sh
bash: ./test_off.sh: Permission denied
nath@nath-HP-G72-Notebook-PC ~/acpi_call $
laptop: HP G72-a55SF /Ubuntu 18.04.1 64bit /Gnome 3.26.1 /Intel pentium P6000 CPU 1.87Ghz x2 /ram 4Go /dd 485Go /CG Intel corporation Core Processor Integrated graphic controller et Advanced Micro Devices, Inc. [AMD/ATI] Park [Mobility Radeon HD 5430/5450/5470]
Hors ligne
#10 Le 19/10/2013, à 20:25
- f.x0
Re : aide pour acpi_call
tapes
chmod u+x test_off.sh
./test_off.sh
SOPI
Hors ligne
#11 Le 19/10/2013, à 21:17
- powerflower5
Re : aide pour acpi_call
voilà :
nath@nath-HP-G72-Notebook-PC ~/acpi_call $ chmod u+x test_off.sh
chmod: changing permissions of `test_off.sh': Operation not permitted
nath@nath-HP-G72-Notebook-PC ~/acpi_call $ ./test_off.sh
bash: ./test_off.sh: Permission denied
nath@nath-HP-G72-Notebook-PC ~/acpi_call $
Je quitte maintenant mon ordi... donc on poursuit demain si tu peux. Bonne soirée et merci encore.
Dernière modification par powerflower5 (Le 19/10/2013, à 21:29)
laptop: HP G72-a55SF /Ubuntu 18.04.1 64bit /Gnome 3.26.1 /Intel pentium P6000 CPU 1.87Ghz x2 /ram 4Go /dd 485Go /CG Intel corporation Core Processor Integrated graphic controller et Advanced Micro Devices, Inc. [AMD/ATI] Park [Mobility Radeon HD 5430/5450/5470]
Hors ligne
#12 Le 19/10/2013, à 23:02
- f.x0
Re : aide pour acpi_call
OK, quand tu le pourras,
postes le retour de
ls -la ~/acpi_call
SOPI
Hors ligne
#13 Le 20/10/2013, à 08:25
- powerflower5
Re : aide pour acpi_call
Bonjour,
nath@nath-HP-G72-Notebook-PC ~ $ ls -la ~/acpi_call
total 148
drwxr-xr-x 6 nath nath 4096 oct. 19 20:15 .
drwxr-xr-x 34 nath nath 4096 oct. 20 08:07 ..
-rw-r--r-- 1 nath nath 11979 oct. 19 18:55 acpi_call.c
-rw-r--r-- 1 nath nath 11361 oct. 19 18:55 acpi_call.ko
-rw-r--r-- 1 nath nath 249 oct. 19 18:55 .acpi_call.ko.cmd
-rw-r--r-- 1 nath nath 1311 oct. 19 18:55 acpi_call.mod.c
-rw-r--r-- 1 nath nath 3720 oct. 19 18:55 acpi_call.mod.o
-rw-r--r-- 1 nath nath 25259 oct. 19 18:55 .acpi_call.mod.o.cmd
-rw-r--r-- 1 nath nath 9760 oct. 19 18:55 acpi_call.o
-rw-r--r-- 1 nath nath 32761 oct. 19 18:55 .acpi_call.o.cmd
drwxr-xr-x 2 nath nath 4096 oct. 19 18:55 examples
drwxr-xr-x 8 nath nath 4096 oct. 19 18:55 .git
-rw-r--r-- 1 nath nath 314 oct. 19 18:55 Makefile
-rw-r--r-- 1 nath nath 41 oct. 19 18:55 modules.order
-rw-r--r-- 1 nath nath 0 oct. 19 18:55 Module.symvers
-rw-r--r-- 1 nath nath 3094 oct. 19 18:55 README.md
drwxr-xr-x 3 nath nath 4096 oct. 19 18:55 support
-rwxr--r-- 1 root root 878 oct. 19 20:15 test_off.sh
drwxr-xr-x 2 nath nath 4096 oct. 19 18:55 .tmp_versions
nath@nath-HP-G72-Notebook-PC ~ $
laptop: HP G72-a55SF /Ubuntu 18.04.1 64bit /Gnome 3.26.1 /Intel pentium P6000 CPU 1.87Ghz x2 /ram 4Go /dd 485Go /CG Intel corporation Core Processor Integrated graphic controller et Advanced Micro Devices, Inc. [AMD/ATI] Park [Mobility Radeon HD 5430/5450/5470]
Hors ligne
#14 Le 20/10/2013, à 12:36
- f.x0
Re : aide pour acpi_call
Tapes
cd ~/acpi_call
sudo chown nath:nath test_off.sh
chmod u+x test_off.sh
./test_off.sh
Ça donne quoi maintenant ???
SOPI
Hors ligne
#15 Le 20/10/2013, à 13:00
- powerflower5
Re : aide pour acpi_call
rien :
nath@nath-HP-G72-Notebook-PC ~ $ cd ~/acpi_call
nath@nath-HP-G72-Notebook-PC ~/acpi_call $ sudo chown nath:nath test_off.sh
[sudo] password for nath:
Sorry, try again.
[sudo] password for nath:
nath@nath-HP-G72-Notebook-PC ~/acpi_call $
laptop: HP G72-a55SF /Ubuntu 18.04.1 64bit /Gnome 3.26.1 /Intel pentium P6000 CPU 1.87Ghz x2 /ram 4Go /dd 485Go /CG Intel corporation Core Processor Integrated graphic controller et Advanced Micro Devices, Inc. [AMD/ATI] Park [Mobility Radeon HD 5430/5450/5470]
Hors ligne
#16 Le 20/10/2013, à 13:11
- f.x0
Re : aide pour acpi_call
tu as fait TOUTES les commandes ???
cd ~/acpi_call
sudo chown nath:nath test_off.sh
chmod u+x test_off.sh
./test_off.sh
Ça donne quoi maintenant ???
SOPI
Hors ligne
#17 Le 20/10/2013, à 13:47
- powerflower5
Re : aide pour acpi_call
J'ai rentré les commandes ligne par ligne maintenant et voici :
nath@nath-HP-G72-Notebook-PC ~ $ cd ~/acpi_call
nath@nath-HP-G72-Notebook-PC ~/acpi_call $ sudo chown nath:nath test_off.sh
[sudo] password for nath:
nath@nath-HP-G72-Notebook-PC ~/acpi_call $ chmod u+x test_off.sh
nath@nath-HP-G72-Notebook-PC ~/acpi_call $ ./test_off.sh
The acpi_call module is not loaded
nath@nath-HP-G72-Notebook-PC ~/acpi_call $
Dans mon message précédent, j'avais fait un copié/collé des commandes en "bloque".
laptop: HP G72-a55SF /Ubuntu 18.04.1 64bit /Gnome 3.26.1 /Intel pentium P6000 CPU 1.87Ghz x2 /ram 4Go /dd 485Go /CG Intel corporation Core Processor Integrated graphic controller et Advanced Micro Devices, Inc. [AMD/ATI] Park [Mobility Radeon HD 5430/5450/5470]
Hors ligne
#18 Le 20/10/2013, à 14:17
- f.x0
Re : aide pour acpi_call
Refais (ligne par ligne !!!)
sudo apt-get install --reinstall git
git clone http://github.com/mkottman/acpi_call.git
cd ~/acpi_call
make
sudo insmod acpi_call.ko
./test_off.sh
ça donne quoi ???
SOPI
Hors ligne
#19 Le 20/10/2013, à 14:49
- powerflower5
Re : aide pour acpi_call
voilà :
nath@nath-HP-G72-Notebook-PC ~ $ sudo apt-get install --reinstall git
[sudo] password for nath:
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances
Lecture des informations d'état... Fait
0 mis à jour, 0 nouvellement installés, 1 réinstallés, 0 à enlever et 31 non mis à jour.
Il est nécessaire de prendre 6 087 ko dans les archives.
Après cette opération, 0 o d'espace disque supplémentaires seront utilisés.
Réception de : 1 http://archive.ubuntu.com/ubuntu/ precise/main git amd64 1:1.7.9.5-1 [6 087 kB]
6 087 ko réceptionnés en 58s (103 ko/s)
(Lecture de la base de données... 156766 fichiers et répertoires déjà installés.)
Préparation du remplacement de git 1:1.7.9.5-1 (en utilisant .../git_1%3a1.7.9.5-1_amd64.deb) ...
Dépaquetage de la mise à jour de git ...
Paramétrage de git (1:1.7.9.5-1) ...
nath@nath-HP-G72-Notebook-PC ~ $ git clone http://github.com/mkottman/acpi_call.git
fatal: destination path 'acpi_call' already exists and is not an empty directory.
nath@nath-HP-G72-Notebook-PC ~ $ cd ~/acpi_call
nath@nath-HP-G72-Notebook-PC ~/acpi_call $ make
make -C /lib/modules/3.2.0-23-generic/build M=/home/nath/acpi_call modules
make[1]: Entering directory `/usr/src/linux-headers-3.2.0-23-generic'
Building modules, stage 2.
MODPOST 1 modules
make[1]: Leaving directory `/usr/src/linux-headers-3.2.0-23-generic'
nath@nath-HP-G72-Notebook-PC ~/acpi_call $ sudo insmod acpi_call.ko
nath@nath-HP-G72-Notebook-PC ~/acpi_call $ ./test_off.sh
Trying \_SB.PCI0.P0P1.VGA._OFF: ./test_off.sh: line 25: /proc/acpi/call: Permission denied
cat: /proc/acpi/call: Permission denied
works!
nath@nath-HP-G72-Notebook-PC ~/acpi_call $
laptop: HP G72-a55SF /Ubuntu 18.04.1 64bit /Gnome 3.26.1 /Intel pentium P6000 CPU 1.87Ghz x2 /ram 4Go /dd 485Go /CG Intel corporation Core Processor Integrated graphic controller et Advanced Micro Devices, Inc. [AMD/ATI] Park [Mobility Radeon HD 5430/5450/5470]
Hors ligne
#20 Le 20/10/2013, à 14:59
- f.x0
Re : aide pour acpi_call
essaies
cd ~/acpi_call
make
sudo insmod acpi_call.ko
sudo ./test_off.sh
SOPI
Hors ligne
#21 Le 20/10/2013, à 15:12
- powerflower5
Re : aide pour acpi_call
voilà :
nath@nath-HP-G72-Notebook-PC ~/acpi_call $ cd ~/acpi_call
nath@nath-HP-G72-Notebook-PC ~/acpi_call $ make
make -C /lib/modules/3.2.0-23-generic/build M=/home/nath/acpi_call modules
make[1]: Entering directory `/usr/src/linux-headers-3.2.0-23-generic'
Building modules, stage 2.
MODPOST 1 modules
make[1]: Leaving directory `/usr/src/linux-headers-3.2.0-23-generic'
nath@nath-HP-G72-Notebook-PC ~/acpi_call $ sudo insmod acpi_call.ko
[sudo] password for nath:
insmod: error inserting 'acpi_call.ko': -1 File exists
nath@nath-HP-G72-Notebook-PC ~/acpi_call $ sudo ./test_off.sh
Trying \_SB.PCI0.P0P1.VGA._OFF: failed
Trying \_SB.PCI0.P0P2.VGA._OFF: failed
Trying \_SB_.PCI0.OVGA.ATPX: failed
Trying \_SB_.PCI0.OVGA.XTPX: failed
Trying \_SB.PCI0.P0P2.PEGP._OFF: works!
nath@nath-HP-G72-Notebook-PC ~/acpi_call $
laptop: HP G72-a55SF /Ubuntu 18.04.1 64bit /Gnome 3.26.1 /Intel pentium P6000 CPU 1.87Ghz x2 /ram 4Go /dd 485Go /CG Intel corporation Core Processor Integrated graphic controller et Advanced Micro Devices, Inc. [AMD/ATI] Park [Mobility Radeon HD 5430/5450/5470]
Hors ligne
#22 Le 20/10/2013, à 15:31
- f.x0
Re : aide pour acpi_call
Hé bien cette fois, le script a fonctionné !!!
tapes
gksudo gedit /etc/rc.local
puis copies ces lignes à la fin du fichier, juste avant exit 0
insmod ~/acpi_call/acpi_call.ko
echo '\_SB.PCI0.P0P2.PEGP._OFF' > /proc/acpi/call
enregistres le fichier
quittes gedit
redémarres le PC
SOPI
Hors ligne
#23 Le 20/10/2013, à 15:39
- powerflower5
Re : aide pour acpi_call
voilà, je viens de redémarrer le pc. Je te précise quand même que je démarre systématiquement en mode recovery sinon j'ai un bel écran noir. Du coup, je n'ai pas essayé de démarrer nomarlement.
laptop: HP G72-a55SF /Ubuntu 18.04.1 64bit /Gnome 3.26.1 /Intel pentium P6000 CPU 1.87Ghz x2 /ram 4Go /dd 485Go /CG Intel corporation Core Processor Integrated graphic controller et Advanced Micro Devices, Inc. [AMD/ATI] Park [Mobility Radeon HD 5430/5450/5470]
Hors ligne
#24 Le 20/10/2013, à 16:20
- f.x0
Re : aide pour acpi_call
Essaies quand même de démarrer nomarlement.
SOPI
Hors ligne
#25 Le 20/10/2013, à 16:37
- powerflower5
Re : aide pour acpi_call
j'ai essayé mais j'ai toujours un écran noir.
Dernière modification par powerflower5 (Le 20/10/2013, à 16:37)
laptop: HP G72-a55SF /Ubuntu 18.04.1 64bit /Gnome 3.26.1 /Intel pentium P6000 CPU 1.87Ghz x2 /ram 4Go /dd 485Go /CG Intel corporation Core Processor Integrated graphic controller et Advanced Micro Devices, Inc. [AMD/ATI] Park [Mobility Radeon HD 5430/5450/5470]
Hors ligne