You are not logged in.

#1 2013-11-14 19:12:22

mukl
Member
From: Vienna, Austria
Registered: 2008-01-30
Posts: 52

Disabel Wake on Lan (WOL)

Hi,

I'm playing with pwersaving options of my Laptop.
Everything is working quite well, but i'm not able to disable WOL.

I tried this, which has no effect:
https://wiki.archlinux.org/index.php/Po … interfaces

Then i recognized, that NetworkManager is making changes to the card. So I made a dispatcher script, which works, when the enp5s0 is activated:

$ cat /etc/NetworkManager/dispatcher.d/90-wol 
#!/bin/bash

if [ "$2" = "up" -a "$1" = "enp5s0" ]; then
        /usr/bin/ethtool -s enp5s0 wol d
fi

For setting wol disabled after boot I made a systemd unit

$ cat /etc/systemd/system/enp5s0-wol-d.service 
[Unit]
Description=Disable wol on enp5s0
After=network.target

[Service]
Type=oneshot
ExecStart=/usr/bin/ethtool -s enp5s0 wol d

[Install]
WantedBy=multi-user.target

which also works, but after suspend wol is set to state "g" again! grrrrr.

Does anybody have some suggestions who else could be fiddling around with the wol-settings?
There have to be some simpler solutions to disable wol.

Any suggestions and ideas are welcome.

Thanks.

Offline

Board footer

Powered by FluxBB