You are not logged in.

#1 2011-05-16 20:51:56

Cdh
Member
Registered: 2009-02-03
Posts: 1,098

Solved: kernel spams log with "link down" on laptop mode

Hi,

Today I installed laptop-mode-tools and started the daemon. Power consumption really is lower, so I rather keep it running.

Everything is fine when on AC but when unplugging it from the power the kernel starts spamming the syslog:

2011-05-16T22:43:06.137119+02:00 localhost kernel: [11472.137548] tg3 0000:03:00.0: eth0: Link is down
2011-05-16T22:43:07.140457+02:00 localhost kernel: [11473.140969] tg3 0000:03:00.0: eth0: Link is down
2011-05-16T22:43:08.143784+02:00 localhost kernel: [11474.144418] tg3 0000:03:00.0: eth0: Link is down
2011-05-16T22:43:09.147118+02:00 localhost kernel: [11475.147850] tg3 0000:03:00.0: eth0: Link is down
2011-05-16T22:43:10.150459+02:00 localhost kernel: [11476.151266] tg3 0000:03:00.0: eth0: Link is down
2011-05-16T22:43:11.153784+02:00 localhost kernel: [11477.154701] Trying 10/HALF
2011-05-16T22:43:11.153804+02:00 localhost kernel: [11477.154709] tg3 0000:03:00.0: eth0: Link is down
2011-05-16T22:43:12.157117+02:00 localhost kernel: [11478.158138] tg3 0000:03:00.0: eth0: Link is down
2011-05-16T22:43:13.160457+02:00 localhost kernel: [11479.161564] tg3 0000:03:00.0: eth0: Link is down
2011-05-16T22:43:14.163784+02:00 localhost kernel: [11480.164996] tg3 0000:03:00.0: eth0: Link is down
2011-05-16T22:43:15.167117+02:00 localhost kernel: [11481.168435] tg3 0000:03:00.0: eth0: Link is down
2011-05-16T22:43:16.170459+02:00 localhost kernel: [11482.171860] tg3 0000:03:00.0: eth0: Link is down
2011-05-16T22:43:17.173784+02:00 localhost kernel: [11483.175293] tg3 0000:03:00.0: eth0: Link is down
2011-05-16T22:43:18.177117+02:00 localhost kernel: [11484.178730] tg3 0000:03:00.0: eth0: Link is down
2011-05-16T22:43:19.180479+02:00 localhost kernel: [11485.182191] tg3 0000:03:00.0: eth0: Link is down
2011-05-16T22:43:20.183783+02:00 localhost kernel: [11486.185587] tg3 0000:03:00.0: eth0: Link is down
2011-05-16T22:43:21.187116+02:00 localhost kernel: [11487.189031] tg3 0000:03:00.0: eth0: Link is down
2011-05-16T22:43:22.190459+02:00 localhost kernel: [11488.192443] Trying 10/HALF
2011-05-16T22:43:22.190479+02:00 localhost kernel: [11488.192450] tg3 0000:03:00.0: eth0: Link is down
2011-05-16T22:43:23.193783+02:00 localhost kernel: [11489.195886] tg3 0000:03:00.0: eth0: Link is down
2011-05-16T22:43:24.197116+02:00 localhost kernel: [11490.199319] tg3 0000:03:00.0: eth0: Link is down
2011-05-16T22:43:25.200478+02:00 localhost kernel: [11491.202781] tg3 0000:03:00.0: eth0: Link is down
2011-05-16T22:43:26.203783+02:00 localhost kernel: [11492.206177] tg3 0000:03:00.0: eth0: Link is down
2011-05-16T22:43:27.207115+02:00 localhost kernel: [11493.209621] tg3 0000:03:00.0: eth0: Link is down
2011-05-16T22:43:28.210458+02:00 localhost kernel: [11494.213036] tg3 0000:03:00.0: eth0: Link is down
2011-05-16T22:43:29.213782+02:00 localhost kernel: [11495.216478] tg3 0000:03:00.0: eth0: Link is down
2011-05-16T22:43:30.217115+02:00 localhost kernel: [11496.219906] tg3 0000:03:00.0: eth0: Link is down
2011-05-16T22:43:31.220456+02:00 localhost kernel: [11497.223332] tg3 0000:03:00.0: eth0: Link is down
2011-05-16T22:43:32.223782+02:00 localhost kernel: [11498.226773] tg3 0000:03:00.0: eth0: Link is down
2011-05-16T22:43:33.227116+02:00 localhost kernel: [11499.230206] Trying 10/HALF
2011-05-16T22:43:33.227136+02:00 localhost kernel: [11499.230213] tg3 0000:03:00.0: eth0: Link is down
2011-05-16T22:43:34.230457+02:00 localhost kernel: [11500.233631] tg3 0000:03:00.0: eth0: Link is down
2011-05-16T22:43:35.233781+02:00 localhost kernel: [11501.237064] tg3 0000:03:00.0: eth0: Link is down
2011-05-16T22:43:36.237115+02:00 localhost kernel: [11502.240499] tg3 0000:03:00.0: eth0: Link is down
2011-05-16T22:43:37.240487+02:00 localhost kernel: [11503.243952] tg3 0000:03:00.0: eth0: Link is down

Yes, it is rsyslog instead of syslog-ng because I use systemd. But I don't think systemd should interfere with laptop-mode-tools. I also laptop-mode-tools through the rc-script since I didn't see a systemd service file but I don't see any chance of being the cause there either.

When I plug it in again laptop mode tools goes into AC mode and the stream of "Link is down"-messages stops.

Unloading the tg3 module also helps stopping that messages but that is obviously not a solution since I don't want to manually load the module every time I want to use a lan cable.

Is this "Trying 10/HALF" the cause? Is this 10 mbit with half duplex and somehow the card doesn't like this?

edit: Yes, the throttling is the problem.
In /etc/laptop-mode/conf.d/ethernet.conf I set BATT_THROTTLE_ETHERNET=0 and the problem is gone.

Last edited by Cdh (2011-05-17 07:26:59)


฿ 18PRsqbZCrwPUrVnJe1BZvza7bwSDbpxZz

Offline

Board footer

Powered by FluxBB