View previous topic :: View next topic |
Author |
Message |
The_Document Apprentice
Joined: 03 Feb 2018 Posts: 275
|
Posted: Thu Feb 08, 2018 1:46 am Post subject: Issue with laptop-mode-tools |
|
|
Im doing power managment on my laptop and using laptop-mode-tools per wiki guidelines I get the following error:
Code: | # rc-config restart laptop_mode
Restarting init script
laptop_mode | * Stopping laptop_mode ...
laptop_mode |Cannot find device "eth0"
laptop_mode |command failed: Operation not supported (-95)
laptop_mode |Failed to set power saving mode for wireless card [ ok ]
laptop_mode | * Starting laptop_mode ...
laptop_mode |Cannot find device "eth0"
laptop_mode |command failed: Operation not supported (-95)
laptop_mode |Failed to set power saving mode for wireless card [ ok ] |
apparently network adapter names aren't found and I tried to locate them in laptop-mode-tools configuration files in /etc/laptop-mode/conf.d/ but found nothing, I hope this can be fixed. |
|
Back to top |
|
|
kite14 Apprentice
Joined: 07 Nov 2006 Posts: 216 Location: Italy
|
Posted: Fri Feb 09, 2018 8:03 am Post subject: |
|
|
Hello,
the error about the network adapter not found is a known issue, the reason is that the device name is hard-coded in the default configuration file.
Just edit /etc/laptop-mode/conf.d/ethernet.conf file and set ETHERNET_DEVICES with the appropriate device name. It even accepts a list of devices, if needed.
For example
Code: | ETHERNET_DEVICES="enp5s0" |
You may want to take a look at the Arch Wiki page which is pretty good. |
|
Back to top |
|
|
kite14 Apprentice
Joined: 07 Nov 2006 Posts: 216 Location: Italy
|
Posted: Fri Feb 09, 2018 10:54 am Post subject: |
|
|
To get rid of the error about failing to set power saving mode for wireless card (since your card, like mine, doesn't support this operation), you can just disable this module.
Edit /etc/laptop-mode/conf.d/wireless-power.conf and set Code: | CONTROL_WIRELESS_POWER_SAVING="0" |
|
|
Back to top |
|
|
|