I'm now a full time user on Linux. Ubuntu did the job at the beginning but after several months of dealing with unity I thought of switching to KDE. After I got bored of KDE I switched to XFCE and then the problem arrived. If I boot up the PC and log in, internet is not available. eth0 is missing from lspci/ifconfig, only l0 appears. After a reboot, everything is ok. After searching and searching, I could not find any clue and thought that Ubuntu may be the fault, so I switched to Manjaro XFCE. Same thing is happening here, but the system is faster and it does not bother me to restart it before I log in.
I don't know if it is a hardware problem or a software bug regarding the network manager in Manjaro, but if I boot from a Live USB, everything is ok.
How can I solve this problem, so that my internet would work without rebooting?
I suspect three possibilities:
Things to try (You may need to adjust/change commands used):
ifconfig -a
ifconfig eth0 up
dhclient eth0
You can also try reloading driver module using rmmod
/ modprobe
.
EDIT:
Since previous attempts didn't help, I would suspect something hardware related (unreliable connection, fried component, etc). If reboot helps, problem may be related to power - You may try:
EDIT2:
From comments it is clear the problem is related to "TCS fast calibration failed" message during boot. A few things to try:
cat /sys/devices/system/clocksource/clocksource0/available_clocksource
- are contents different when internet is working and when it is not?clocksource=acpi_pm
or clocksource=hpet
(got idea fro this page)From my experience, I would bet the source is PSU (had seen enough weird problems on similar hardware).
EDIT4:
Seems it is not PSU... If other options above fail, try capturing:
dmesg > boot.log
And check for differencies when LAN is working, and when it is not. You should see at least TSC error which You decsribed before, but there may be other differencies too:
diff bott_ok.log boot_fail.log
EDIT5:
From the comments it seams problem is related to PCI enumaration during cold-reset and hot-reset, identified using lspci
while in GRUB loader (before Linux kernel loads). Things to try:
reset_devices
, nobios
, conf1
, conf2
(just a few which got my attention, You can find many more in Documentation/kernel-parameters.txt
, look for BIOS or PCI related options first);EDIT6:
Clear BIOS settings (reset, clear using jumper on MB, upgrade/rewrite). Try playing with "Reset configuration data", "PnP OS installed", PCI timings or similar BIOS sertings.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments