Docs fixes and updates, and the build version in the footer #6
No files matched your search
@@ -231,11 +231,15 @@ ip -br link
|
|||||||
|
|
||||||
You get something like `enp1s0 UP aa:bb:cc:dd:ee:ff`. Keep both: the interface name for the commands below, the MAC address for the machine that will send the packet.
|
You get something like `enp1s0 UP aa:bb:cc:dd:ee:ff`. Keep both: the interface name for the commands below, the MAC address for the machine that will send the packet.
|
||||||
|
|
||||||
|
::warning
|
||||||
|
The interface name `enp1s0` above is only an example. In the commands and the service file below, replace `<your-network-card-id>` with the name you got from `ip -br link` on your own machine, otherwise the setting will be applied to a card that doesn't exist.
|
||||||
|
::
|
||||||
|
|
||||||
#### Check the card supports it
|
#### Check the card supports it
|
||||||
|
|
||||||
```bash [Terminal]
|
```bash [Terminal]
|
||||||
sudo apt install ethtool
|
sudo apt install ethtool
|
||||||
sudo ethtool enp1s0 | grep -i wake
|
sudo ethtool <your-network-card-id> | grep -i wake
|
||||||
```
|
```
|
||||||
|
|
||||||
The answer looks like `Supports Wake-on: pumbg` then `Wake-on: d`. The letter that matters is **g**, for magic packet. If the *Supports* line doesn't have it, the card can't do it and there's nothing to configure. `Wake-on: d` simply means disabled, which the next step fixes.
|
The answer looks like `Supports Wake-on: pumbg` then `Wake-on: d`. The letter that matters is **g**, for magic packet. If the *Supports* line doesn't have it, the card can't do it and there's nothing to configure. `Wake-on: d` simply means disabled, which the next step fixes.
|
||||||
@@ -243,7 +247,7 @@ The answer looks like `Supports Wake-on: pumbg` then `Wake-on: d`. The letter th
|
|||||||
#### Turn it on
|
#### Turn it on
|
||||||
|
|
||||||
```bash [Terminal]
|
```bash [Terminal]
|
||||||
sudo ethtool -s enp1s0 wol g
|
sudo ethtool -s <your-network-card-id> wol g
|
||||||
```
|
```
|
||||||
|
|
||||||
Run the check again, `Wake-on` should now be `g`. This setting is reset at every boot, so it needs to be reapplied automatically.
|
Run the check again, `Wake-on` should now be `g`. This setting is reset at every boot, so it needs to be reapplied automatically.
|
||||||
@@ -261,7 +265,7 @@ After=network.target
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
ExecStart=/usr/sbin/ethtool -s enp1s0 wol g
|
ExecStart=/usr/sbin/ethtool -s <your-network-card-id> wol g
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=basic.target
|
WantedBy=basic.target
|
||||||
|
|||||||
@@ -232,11 +232,15 @@ ip -br link
|
|||||||
|
|
||||||
Vous obtenez quelque chose comme `enp1s0 UP aa:bb:cc:dd:ee:ff`. Gardez les deux : le nom de l'interface pour les commandes ci-dessous, l'adresse MAC pour la machine qui enverra le paquet.
|
Vous obtenez quelque chose comme `enp1s0 UP aa:bb:cc:dd:ee:ff`. Gardez les deux : le nom de l'interface pour les commandes ci-dessous, l'adresse MAC pour la machine qui enverra le paquet.
|
||||||
|
|
||||||
|
::warning
|
||||||
|
Le nom d'interface `enp1s0` ci-dessus n'est qu'un exemple. Dans les commandes et le fichier de service ci-dessous, remplacez `<your-network-card-id>` par le nom obtenu avec `ip -br link` sur votre propre machine, sinon le réglage sera appliqué à une carte qui n'existe pas.
|
||||||
|
::
|
||||||
|
|
||||||
#### Vérifier que la carte le gère
|
#### Vérifier que la carte le gère
|
||||||
|
|
||||||
```bash [Terminal]
|
```bash [Terminal]
|
||||||
sudo apt install ethtool
|
sudo apt install ethtool
|
||||||
sudo ethtool enp1s0 | grep -i wake
|
sudo ethtool <your-network-card-id> | grep -i wake
|
||||||
```
|
```
|
||||||
|
|
||||||
La réponse ressemble à `Supports Wake-on: pumbg` puis `Wake-on: d`. La lettre qui compte est **g**, pour magic packet. Si la ligne *Supports* ne la contient pas, la carte ne sait pas le faire et il n'y a rien à configurer. `Wake-on: d` signifie simplement désactivé, ce que l'étape suivante corrige.
|
La réponse ressemble à `Supports Wake-on: pumbg` puis `Wake-on: d`. La lettre qui compte est **g**, pour magic packet. Si la ligne *Supports* ne la contient pas, la carte ne sait pas le faire et il n'y a rien à configurer. `Wake-on: d` signifie simplement désactivé, ce que l'étape suivante corrige.
|
||||||
@@ -244,7 +248,7 @@ La réponse ressemble à `Supports Wake-on: pumbg` puis `Wake-on: d`. La lettre
|
|||||||
#### L'activer
|
#### L'activer
|
||||||
|
|
||||||
```bash [Terminal]
|
```bash [Terminal]
|
||||||
sudo ethtool -s enp1s0 wol g
|
sudo ethtool -s <your-network-card-id> wol g
|
||||||
```
|
```
|
||||||
|
|
||||||
Relancez la vérification, `Wake-on` devrait maintenant être à `g`. Ce réglage est réinitialisé à chaque démarrage, il faut donc le réappliquer automatiquement.
|
Relancez la vérification, `Wake-on` devrait maintenant être à `g`. Ce réglage est réinitialisé à chaque démarrage, il faut donc le réappliquer automatiquement.
|
||||||
@@ -262,7 +266,7 @@ After=network.target
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
ExecStart=/usr/sbin/ethtool -s enp1s0 wol g
|
ExecStart=/usr/sbin/ethtool -s <your-network-card-id> wol g
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=basic.target
|
WantedBy=basic.target
|
||||||
|
|||||||
Reference in new issue
Block a user