You are not logged in.

#1 2016-10-17 03:02:22

nachopro
Member
Registered: 2013-08-23
Posts: 78

Battery drain, I can't disable WoL

Hi, I have an HP 14-ac129la. The battery is slighty drain when the computer is OFF.

powertop and ethtool reports that WOL is active in my interface, but I'm trying to disable with this two udev's rules without success, after reboot the WOL is active again.
PS: I can't disable it via BIOS/UEFI, because this option is missing.

/etc/udev/rules.d/70-disable_wol.rules
ACTION=="add", SUBSYSTEM=="net", KERNEL=="eth*", RUN+="/usr/bin/ethtool -s %k wol d"
/etc/udev/rules.d/99-wol.rules
ACTION=="add", SUBSYSTEM=="net", NAME=="enp*", RUN+="/usr/bin/ethtool -s $name wol d"

Who is activating the WoL against the udev rules?

Thanks!

PS2: The WoL is disabled when I execute

sudo ethtool -s enp1s0 wol d

manually, but I can't achieve a persistent disable. If I don't disable it manually before the shutdown, it will enabled in the next boot :'(

Pictures:
http://imgur.com/nmhMNlc <-- Normal boot (with udev rules) and then a shutdown done = WoL enabled :'(
http://imgur.com/ED8TKTi <-- Normal boot (with udev rules), WoL disabled manually and then a shutdown done = WoL disabled big_smile

Last edited by nachopro (2016-10-17 03:21:42)

Offline

#2 2016-10-18 16:02:06

nachopro
Member
Registered: 2013-08-23
Posts: 78

Re: Battery drain, I can't disable WoL

Hi All, the NetworkManager is changing the WoL status in my NIC!!!

I solved it modifing manually the /etc/NetworkManager/system-connections/Wired1 adding

wake-on-lan=NM_SETTING_WIRED_WAKE_ON_LAN_IGNORE

in the

[ethernet]

section

This maybe reflected in the Wiki? Thanks!

Offline

#3 2016-10-18 17:02:53

nachopro
Member
Registered: 2013-08-23
Posts: 78

Re: Battery drain, I can't disable WoL

nachopro wrote:

Hi All, the NetworkManager is changing the WoL status in my NIC!!! .....

But I need to plug a UTP to ethernet in order to NM disables WoL or restart de deamon manually sad

Offline

#4 2016-10-18 18:10:54

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: Battery drain, I can't disable WoL

Read this wiki page[1], choose the method you want to use to change the WoL setting and adapt it to your needs.

[1] https://wiki.archlinux.org/index.php/Wake-on-LAN


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#5 2016-10-18 18:30:52

nachopro
Member
Registered: 2013-08-23
Posts: 78

Re: Battery drain, I can't disable WoL

Thanks, but I have not luck with that articles...

https://wiki.archlinux.org/index.php/Wake-on-LAN
https://wiki.archlinux.org/index.php/laptop
https://wiki.archlinux.org/index.php/Power_management

I want to disable WoL on my Laptop, and I can't. Some service or command are activating WoL after boot.
The workaround is execute etchtool before shutdown, but if I forget it... my battery is drained sad

Offline

#6 2016-10-19 13:03:45

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,920

Re: Battery drain, I can't disable WoL

Thanks, but I have not luck with that articles...

That article has a section dedicated to making WoL setting persistent for Network Manager

If that didn't work for you, what problems / errors did you encounter?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#7 2016-10-19 14:16:30

nachopro
Member
Registered: 2013-08-23
Posts: 78

Re: Battery drain, I can't disable WoL

Before boot:

$ uptime
 10:48:26 up 2 min,  1 user,  load average: 0,11, 0,14, 0,17

$ sudo ethtool enp1s0 | grep Wake-on
	Supports Wake-on: pumbg
	Wake-on: g

$ sudo nmcli c show "Wired connection 1" | grep wake
802-3-ethernet.wake-on-lan:             0 (none)
802-3-ethernet.wake-on-lan-password:    --

I need to plug an UTP to RJ45 in order to NetworkManager applies the WoL disable.

Do you need another command output? Thanks!

Offline

#8 2016-10-21 13:17:04

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,920

Re: Battery drain, I can't disable WoL

I'm not sure I understand the problem correctly, so let's try to get clear what happens.

Your laptop has a wired network connection  .
WoL is enabled for this connection and you can't disable it in firmware .
WoL monitoring  drains the battery unnecessary .

Does the battery drain also occur without a network cable plugged-in ?

If you disable WoL through ethtool, does it stay disabled until next (re)boot ?

Is your laptop performing an actual shutdown or are you using suspend/hibernate ?

Last edited by Lone_Wolf (2016-10-21 13:17:23)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#9 2016-10-21 14:06:42

nachopro
Member
Registered: 2013-08-23
Posts: 78

Re: Battery drain, I can't disable WoL

Sorry, I here go again..

Problem
I use my latop over WiFi and energized by wall socket.
At the end of day I turnoff the laptop (No suspended nor hibernated) and disconnects from wall socket.
In the next boot I see that the battery has dropped 10~20% of charge.

Causes
I noticed that WoL is enabled by default[1]. That was checked with a plugged UTP cable (my laptop has Link/Status leds on his RJ45 port).
This feature can't be modified from BIOS: WoL option are missing in their menu.

Solutions?
1- Manually disables [2]: Works OK... until the next boot (Kernel or service enables WoL).
2- Udev rules [3]: Fails, WoL still enabled.
3- NetworkManager[4]: Fails, except if I plug an UTP cable: NM applies the config and the WoL becomes disabled.

Goal
Permanently disable Wake On Lan smile

Thanks again for your time (and sorry for my ambigous English)


[1] Checked with ethtool: "Wake-on: g"
[2] sudo ethtool -s enp1s0 wol d
[3]

/etc/udev/rules.d/70-disable_wol.rules
ACTION=="add", SUBSYSTEM=="net", KERNEL=="eth*", RUN+="/usr/bin/ethtool -s %k wol d"

/etc/udev/rules.d/99-wol.rules
ACTION=="add", SUBSYSTEM=="net", NAME=="enp*", RUN+="/usr/bin/ethtool -s $name wol d"

[4]

/etc/NetworkManager/system-connections/Wired1
...
[ethernet]
wake-on-lan=NM_SETTING_WIRED_WAKE_ON_LAN_IGNORE
mac-address=XXXXX
...

Offline

#10 2016-10-22 15:44:05

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,920

Re: Battery drain, I can't disable WoL

Thanks,that's a clear and detailed description .

The HP devices that allow disabling / enabling WoL (not many it seems) tend to list the option under Power settings in the firmware.
Please doublecheck your laptop doesn't allow disabling.

I know very littlle about udev rules, can't help with figuring out what may be wrong with them.

There is however another way to execute a command/script every boot :
write your own systemd service, see https://wiki.archlinux.org/index.php/Sy … process.3F .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#11 2016-10-25 21:12:02

nachopro
Member
Registered: 2013-08-23
Posts: 78

Re: Battery drain, I can't disable WoL

Lone_Wolf wrote:

There is however another way to execute a command/script every boot :
write your own systemd service, see https://wiki.archlinux.org/index.php/Sy … process.3F .

Nop hmm after a reboot...

$ sudo ethtool enp1s0 | grep Wake-on
	Supports Wake-on: pumbg
	Wake-on: g

$ sudo systemctl restart disable-wol.service
$ sudo ethtool enp1s0 | grep Wake-on
	Supports Wake-on: pumbg
	Wake-on: d

I can't understand who is enabling WoL. Maybe KDE/Plasma or NetworkManager?

Offline

#12 2016-10-26 11:23:06

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,920

Re: Battery drain, I can't disable WoL

I doubt any part of AL enables WoL (atleast in default config) , but your laptop firmware may very well do it .
Easiest way to test : boot AL live iso, and check WoL status .

Afaik the only network related service autostarted on live iso is dhcpcd , and i'd be very surprised if that can change WoL status.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

Board footer

Powered by FluxBB