Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[RESOLU]Réveil par click ou appui sur une touche
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
Anard
Apprentice
Apprentice


Joined: 01 Oct 2020
Posts: 216

PostPosted: Mon Jul 26, 2021 10:35 am    Post subject: [RESOLU]Réveil par click ou appui sur une touche Reply with quote

Bonjour,
Lorsque mon PC se met en veille, il demande à ce que j'appuie sur le bouton d'alimentation (assez inaccessible) pour le réveiller. J'aurais aimé pouvoir le réveiller depuis un clic souris ou un appui sur une touche du clavier.

J'ai trouvé ce tuto, ai identifié ma souris et mon clavier (en fait mon adaptateur BT) et en effet ça fonctionne parfaitement.

Code:
gentoo-imack / # echo enabled > /sys/bus/usb/devices/3-11/power/wakeup
gentoo-imack / # echo enabled > /sys/bus/usb/devices/3-12/power/wakeup


J'ai vérifié que le service local se lançait bien au démarrage et ai créé un fichier /etc/local.d :
Code:
anard@gentoo-imack ~ $ rc-service local status
 * status: started
anard@gentoo-imack ~ $ cat /etc/local.d/wakeup-by-input.start
#!/bin/bash
# wake up from mouse click
echo enabled > /sys/bus/usb/devices/3-11/power/wakeup
# wake up from keyboard key (BT call)
echo enabled > /sys/bus/usb/devices/3-12/power/wakeup


Malheureusement après redémarrage, tous mes USB sont désactivés pour le réveil du PC :
Code:
anard@gentoo-imack ~ $ grep . /sys/bus/usb/devices/*/power/wakeup
/sys/bus/usb/devices/1-1/power/wakeup:disabled
/sys/bus/usb/devices/2-1/power/wakeup:disabled
/sys/bus/usb/devices/3-11/power/wakeup:disabled
/sys/bus/usb/devices/3-12/power/wakeup:disabled
/sys/bus/usb/devices/3-1/power/wakeup:disabled
/sys/bus/usb/devices/4-1/power/wakeup:disabled
/sys/bus/usb/devices/usb1/power/wakeup:disabled
/sys/bus/usb/devices/usb2/power/wakeup:disabled
/sys/bus/usb/devices/usb3/power/wakeup:disabled
/sys/bus/usb/devices/usb4/power/wakeup:disabled


Qu'est ce qui ne va pas ?
Merci pour votre aide.
_________________
"iMack" : GA-H97M-D3H, Intel i5 4460, 16Go DDR3, Intel HD4600, 2x SSD 256Go, HDD 500Go+2To / Clover - macOS Mojave / Gentoo-Xfce
"Portable" : HP 350G3, HDD 500Go / rEFInd - Xubuntu 20.04 / Windows 10


Last edited by Anard on Mon Jul 26, 2021 3:15 pm; edited 1 time in total
Back to top
View user's profile Send private message
Anard
Apprentice
Apprentice


Joined: 01 Oct 2020
Posts: 216

PostPosted: Mon Jul 26, 2021 3:15 pm    Post subject: Reply with quote

:oops:
Simplement, mon /etc/local.d/wakeup-by-input.start n'était pas executable...
_________________
"iMack" : GA-H97M-D3H, Intel i5 4460, 16Go DDR3, Intel HD4600, 2x SSD 256Go, HDD 500Go+2To / Clover - macOS Mojave / Gentoo-Xfce
"Portable" : HP 350G3, HDD 500Go / rEFInd - Xubuntu 20.04 / Windows 10
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum