You are not logged in.

#1 2011-01-19 09:32:51

fizk-jnk
Member
Registered: 2010-09-03
Posts: 22

[SOLVED] Laptop mode problems. need some help...

I have some strange issues with laptop mode tools.

It cant switch off Ethernet connection sad

Also it doesn't execute any of the commands from exec-commands.conf, whilst all of the commands work if issued manually, including ifconfig lan0 down....

When I execute laptop_mode force I get the following output:

 Laptop mode 
enabled, active
4888
/usr/share/laptop-mode-tools/modules/ethernet: line 47: echo: write error: Input/output error
Error for wireless request "Set Power Management" (8B2D) :
    GET failed on device lan0 ; Operation not supported.
Failed.


Here are some details about hardware and config files:

lspci (relevant parts) :

 03:00.0 Ethernet controller: Atheros Communications AR8151 v1.0 Gigabit Ethernet (rev c0)
05:00.0 Network controller: Broadcom Corporation BCM43225 802.11b/g/n (rev 01)

ethernet.conf

# Enable debug mode for this module
# Set to 1 if you want to debug this module
DEBUG=0

# Control Ethernet settings?
CONTROL_ETHERNET=1

# Handle throttling of the ethernet deivce under specific circumstances
BATT_THROTTLE_ETHERNET=1
LM_AC_THROTTLE_ETHERNET=0
NOLM_AC_THROTTLE_ETHERNET=0

# THROTTLE_SPEED=100
THROTTLE_SPEED="slowest"

DISABLE_WAKEUP_ON_LAN=1

# A list of the ethernet devices that should be controlled.
ETHERNET_DEVICES="lan0"

DISABLE_ETHERNET_ON_BATTERY=1

Don't know if it is of any relevance, but I also have defined the names of the interfaces as udev rules.
/etc/udev/rules.d/10-network-rules.conf

SUBSYSTEM=="net", ATTR{address}=="00:26:2d:ab:14:e2", NAME="lan0"
SUBSYSTEM=="net", ATTR{address}=="90:4c:e5:72:51:89", NAME="wlan0"

I have looked over the arch wiki, and various other guides/forums, but I can't seem to find a solution to the problem...
So any help in figuring out what is wrong is greatly appreciated smile

Last edited by fizk-jnk (2011-01-20 06:00:54)

Offline

#2 2011-01-20 06:00:22

fizk-jnk
Member
Registered: 2010-09-03
Posts: 22

Re: [SOLVED] Laptop mode problems. need some help...

well... I kind of solved the problem myself... so long story short :

After editing the main config file and adding Verbose=1. I ran laptop_mode force again & took a look at the scripts it was running...

For some reason while testing the network interfaces for wireless ones, atleast with me lan0, lo and wlan0 return true.... so I just added an if statement in the script to check if it is wlan0...

Quick and dirty method, but it works tongue

Offline

Board footer

Powered by FluxBB