laptop-mode-tools interferes with my VPN connection

34 views
Skip to first unread message

Viktor Goryainov

unread,
Aug 3, 2016, 3:43:17 AM8/3/16
to laptop-m...@googlegroups.com
Hello!

The other day I found that after installation of laptop-mode-tools
1.68-3ubuntu1 from Ubuntu repos and the reboot following, I was unable
to use the VPN connection provided by my ISP.

The wired connection began taking unusually long time to start, and when
I tried to activate the VPN connection (all this using Network Manager),
I immediately got an error about the VPN service being disabled. I
enclose a log of my laptop booting with the LAN cable plugged in.

Setting CONTROL_ETHERNET="disabled" in ethernet.conf made no difference.
The only ways to get the connection working are either disabling
laptop-mode-tools via laptop-mode.conf or removing the package altogether.

So, what am I doing wrong? I'm currently using Ubuntu Xenial and Xfce
4.12. The Ethernet controller on my laptop is listed by lspci as a
Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit
Ethernet Controller (rev 06).

Best regards,
Viktor

log.txt

Ritesh Raj Sarraf

unread,
Aug 3, 2016, 1:02:20 PM8/3/16
to Viktor Goryainov, laptop-m...@googlegroups.com
Hello Viktor,

On Wed, 2016-08-03 at 18:40 +1100, 'Viktor Goryainov' via Laptop Mode Tools wrote:
The other day I found that after installation of laptop-mode-tools 
1.68-3ubuntu1 from Ubuntu repos and the reboot following, I was unable 
to use the VPN connection provided by my ISP.


Was your setup working proper, prior to the installation of Laptop Mode Tools ?

I ask, because from your logs, it looks like LMT never touched your ethernet config. That's because, by default, we presume eth0 to be the system device.

In your logs, it shows:

аАаВаГ 02 09:36:30 al-exquemelin-laptop avahi-daemon[2321]: No service file found in /etc/avahi/services.
аАаВаГ 02 09:36:30 al-exquemelin-laptop laptop_mode[2333]: Device "eth0" does not exist.
аАаВаГ 02 09:36:30 al-exquemelin-laptop laptop_mode[2333]: sh: echo: I/O error
аАаВаГ 02 09:36:30 al-exquemelin-laptop laptop_mode[2333]: SETTING OF KERNEL PARAMETER FAILED: echo 1 \> /sys/devices/system/cpu/intel_pstate/no_turbo
аАаВаГ 02 09:36:30 al-exquemelin-laptop kernel: intel_pstate: Turbo disabled by BIOS or unavailable on processor
аАаВаГ 02 09:36:30 al-exquemelin-laptop avahi-daemon[2321]: Network interface enumeration completed.
аАаВаГ 02 09:36:30 al-exquemelin-laptop avahi-daemon[2321]: Server startup complete. Host name is al-exquemelin-laptop.local. Local service cookie is 1134956960.
аАаВаГ 02 09:36:30 al-exquemelin-laptop dbus[2268]: [system] Activating via systemd: service name='org.freedesktop.PolicyKit1' unit='polkitd.service'
аАаВаГ 02 09:36:30 al-exquemelin-laptop systemd[1]: Starting Authenticate and Authorize Users to Run Privileged Tasks...
аАаВаГ 02 09:36:30 al-exquemelin-laptop laptop_mode[2333]: Error for wireless request "Set Power Management" (8B2C) :
аАаВаГ 02 09:36:30 al-exquemelin-laptop laptop_mode[2333]:     SET failed on device wlp2s0 ; Operation not supported.
аАаВаГ 02 09:36:30 al-exquemelin-laptop laptop-mode[3087]: Failed.
аАаВаГ 02 09:36:30 al-exquemelin-laptop laptop_mode[2333]: Failed.
аАаВаГ 02 09:36:30 al-exquemelin-laptop kernel: EXT4-fs (sda3): re-mounted. Opts: errors=remount-ro,data=ordered,commit=600
аАаВаГ 02 09:36:30 al-exquemelin-laptop kernel: EXT4-fs (sda4): re-mounted. Opts: data=ordered,commit=600
аАаВаГ 02 09:36:30 al-exquemelin-laptop systemd[1]: Started LSB: Record successful boot for GRUB.
аАаВаГ 02 09:36:30 al-exquemelin-laptop systemd[1]: Received SIGRTMIN+21 from PID 1180 (plymouthd).
аАаВаГ 02 09:36:30 al-exquemelin-laptop systemd[1]: Started Light Display Manager.


The wired connection began taking unusually long time to start, and when 
I tried to activate the VPN connection (all this using Network Manager), 
I immediately got an error about the VPN service being disabled. I 
enclose a log of my laptop booting with the LAN cable plugged in.


Again, in your logs further, it shows that no DHCP lease was offered. Given the network card you have, it could be a known problem. RALink and Realtek cards have been problematic in my experience.

аАаВаГ 02 09:37:09 al-exquemelin-laptop dhclient[3488]: XMT: Solicit on enp3s0, interval 33090ms.
аАаВаГ 02 09:37:11 al-exquemelin-laptop dhclient[3466]: DHCPDISCOVER on enp3s0 to 255.255.255.255 port 67 interval 15 (xid=0x57e3f4f)
аАаВаГ 02 09:37:20 al-exquemelin-laptop NetworkManager[2279]: <warn>  [1470091040.3381] dhcp4 (enp3s0): request timed out
аАаВаГ 02 09:37:20 al-exquemelin-laptop NetworkManager[2279]: <info>  [1470091040.3382] dhcp4 (enp3s0): state changed unknown -> timeout
аАаВаГ 02 09:37:20 al-exquemelin-laptop NetworkManager[2279]: <info>  [1470091040.3548] dhcp4 (enp3s0): canceled DHCP transaction, DHCP client pid 3466
аАаВаГ 02 09:37:20 al-exquemelin-laptop NetworkManager[2279]: <info>  [1470091040.3549] dhcp4 (enp3s0): state changed timeout -> done

and 

аАаВаГ 02 09:37:23 al-exquemelin-laptop NetworkManager[2279]: <warn>  [1470091043.3378] dhcp6 (enp3s0): request timed out
аАаВаГ 02 09:37:23 al-exquemelin-laptop NetworkManager[2279]: <info>  [1470091043.3379] dhcp6 (enp3s0): state changed unknown -> timeout
аАаВаГ 02 09:37:23 al-exquemelin-laptop NetworkManager[2279]: <info>  [1470091043.3389] dhcp6 (enp3s0): canceled DHCP transaction, DHCP client pid 3488
аАаВаГ 02 09:37:23 al-exquemelin-laptop NetworkManager[2279]: <info>  [1470091043.3390] dhcp6 (enp3s0): state changed timeout -> done
аАаВаГ 02 09:37:23 al-exquemelin-laptop NetworkManager[2279]: <info>  [1470091043.3405] device (enp3s0): state change: ip-config -> ip-check (reason 'none') [70 80 0]
аАаВаГ 02 09:37:23 al-exquemelin-laptop NetworkManager[2279]: <info>  [1470091043.3443] device (enp3s0): state change: ip-check -> secondaries (reason 'none') [80 90 0]
аАаВаГ 02 09:37:23 al-exquemelin-laptop NetworkManager[2279]: <info>  [1470091043.3457] device (enp3s0): state change: secondaries -> activated (reason 'none') [90 100 0]
аАаВаГ 02 09:37:23 al-exquemelin-laptop NetworkManager[2279]: <info>  [1470091043.3476] manager: NetworkManager state is now CONNECTED_LOCAL
аАаВаГ 02 09:37:23 al-exquemelin-laptop NetworkManager[2279]: <info>  [1470091043.4133] manager: NetworkManager state is now CONNECTED_GLOBAL
аАаВаГ 02 09:37:23 al-exquemelin-laptop NetworkManager[2279]: <info>  [1470091043.4136] policy: set 'Wired connection 1' (enp3s0) as default for IPv6 routing and DNS
аАаВаГ 02 09:37:23 al-exquemelin-laptop NetworkManager[2279]: <info>  [1470091043.4137] device (enp3s0): Activation: successful, device activated.
аАаВаГ 02 09:37:23 al-exquemelin-laptop NetworkManager[2279]: <info>  [1470091043.4146] manager: startup complete


Setting CONTROL_ETHERNET="disabled" in ethernet.conf made no difference. 
The only ways to get the connection working are either disabling 
laptop-mode-tools via laptop-mode.conf or removing the package altogether.

Please set it to 0 to disable the ethernet module.


So, what am I doing wrong? I'm currently using Ubuntu Xenial and Xfce 
4.12. The Ethernet controller on my laptop is listed by lspci as a 
Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit 
Ethernet Controller (rev 06).

This device family is known to have issues. But I'm curious if the issues showed up only after installation of Laptop Mode Tools. Can you please confirm that ?


-- 
Ritesh Raj Sarraf RESEARCHUT - http://www.researchut.com "Necessity is the mother of invention."
signature.asc

Viktor Goryainov

unread,
Aug 3, 2016, 7:44:33 PM8/3/16
to laptop-m...@googlegroups.com


03.08.2016 20:00, Ritesh Raj Sarraf пишет:

> Was your setup working proper, prior to the installation of Laptop Mode
> Tools ?
>
> I ask, because from your logs, it looks like LMT never touched your
> ethernet config. That's because, by default, we presume eth0 to be the
> system device.

Yes, I'm quite sure it is the installation of LMT that made difference.
Can't remember if I used it on this particular laptop before, but the
connection works fine right now as I've set ENABLE_LAPTOP_MODE_TOOLS=0
in laptop-mode.conf.

I also changed ETHERNET_DEVICES="eth0" to ETHERNET_DEVICES="enp3s0" in
my ethernet.conf, yet both CONTROL_ETHERNET=1 and 0 leaves me with no
VPN access. Network Manager notifies me that the wired connection is up,
but in fact I end up without an IP address:

$ sudo ip address
...
2: enp3s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
state UP group default qlen 1000
link/ether 00:e2:2c:ab:08:70 brd ff:ff:ff:ff:ff:ff
inet6 fe80::c45a:b152:ce3e:8486/64 scope link
valid_lft forever preferred_lft forever

I am also curious about this kind of lines in my startup log, as they
appear only with LMT activated:

авг 02 09:36:34 al-exquemelin-laptop kernel: r8169 0000:03:00.0 enp3s0:
rtl_counters_cond == 1 (loop: 1000, delay: 10).
авг 02 09:36:34 al-exquemelin-laptop kernel: r8169 0000:03:00.0 enp3s0:
rtl_counters_cond == 1 (loop: 1000, delay: 10).

Best regards,
Viktor

Ritesh Raj Sarraf

unread,
Aug 4, 2016, 5:00:44 AM8/4/16
to Viktor Goryainov, laptop-m...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On Thu, 2016-08-04 at 10:44 +1100, 'Viktor Goryainov' via Laptop Mode Tools
wrote:
> > Was your setup working proper, prior to the installation of Laptop Mode
> > Tools ?
> >
> > I ask, because from your logs, it looks like LMT never touched your
> > ethernet config. That's because, by default, we presume eth0 to be the
> > system device.
>
> Yes, I'm quite sure it is the installation of LMT that made difference. 
> Can't remember if I used it on this particular laptop before, but the 
> connection works fine right now as I've set ENABLE_LAPTOP_MODE_TOOLS=0 
> in laptop-mode.conf.
>
> I also changed ETHERNET_DEVICES="eth0" to ETHERNET_DEVICES="enp3s0" in 
> my ethernet.conf, yet both CONTROL_ETHERNET=1 and 0 leaves me with no 
> VPN access. Network Manager notifies me that the wired connection is up, 
> but in fact I end up without an IP address:

Hmmmm... In that case, it could very well be a bug in the kernel, which is
uncovered when running in power saving mode. Your best bet is to enable/disable
modules are narrow down on which one may be causing the problem.

To start with, I'd suggest you try to disable runtime-pm.conf and see if that
helps.


- --
Ritesh Raj Sarraf
RESEARCHUT - http://www.researchut.com
"Necessity is the mother of invention."
-----BEGIN PGP SIGNATURE-----

iQIcBAEBCgAGBQJXowQ2AAoJEKY6WKPy4XVpej4QALpXctSm84jmE+0f5eReLPqr
ldNmfn0Gcv1Jns0Rjw7W3Y6u9zllJFGb1UPFG+RlKaQX+Jy9Z45/JZ3RrsHPu65B
c9UM0sqlvCBND+kIyWye8bMqv97qRM20YUw/9EOLn45U3/wll/wxhIX16jCjQ6Wn
YL8mt6+tbPzYRMpQB58FS0sdzl8LkaQPsocOVPGMYQGTGkwuOp1/SY/V1BRZQ6DX
d3p27x7/ClSMI4Ims/MyUiyjEt7UsqU98kwZaIzcM+hGG8+lKS2A8ef0jLSsJ9M7
uwQFN4nnfFNt8kY7mhwhcRv0dAS0qt9MhwfwWRK/1KPzxonXN5AHun71wQEzIp0P
pUPsFGicDjawINyUAgxe3hp8him8nl1WhHjCcvROuSqJMaFpxpr/NKS5I8iPaUvw
b1/B747h+86qUHCw4snPhYlOwCJS7+vEgQ48ffdTeO4eYachy44NLuPpMfl7uf9t
Fp4RYevKmtFHIC0fbcrMzNtO8mVJMSqlOBCPhMHaQiltjev9hLjNAZgrUy76Vsz1
sFLjZ2dNrWqXBY7dYIE1PqS6veuI1DoRg87hZcuUB8ncPRnZn+K+1knBwgbjPJNG
GLw745Yw+25Rti31XKfgIUA+yf8KM7kmpay8klR87r4oh45rQMUgk9R6CvsU/U9v
h3ExyIxKRFuTtAILBVjY
=YYn0
-----END PGP SIGNATURE-----

Viktor Goryainov

unread,
Aug 5, 2016, 5:34:37 PM8/5/16
to laptop-m...@googlegroups.com


04.08.2016 20:00, Ritesh Raj Sarraf пишет:

> To start with, I'd suggest you try to disable runtime-pm.conf and see if that
> helps.

Yes, it did help. Thanks a lot! It also prevented my USB mouse from
being powered off at startup sometimes.

Best regards,
Viktor

Ritesh Raj Sarraf

unread,
Aug 6, 2016, 8:35:53 AM8/6/16
to Viktor Goryainov, laptop-m...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On Sat, 2016-08-06 at 08:32 +1100, 'Viktor Goryainov' via Laptop Mode Tools
wrote:
THe USB issue is known, and fixed in the latest changes, pending release 1.70.
We've just gotten lesser aggressive in the power saving measures because many
devices tend to break.
https://github.com/rickysarraf/laptop-mode-tools/commit/96e4508d5bd71bf36cefc25d
e297030038b39501


As for your actual problem, by disabling Runtime PM, lot of power saving
features are disabled. You may want to report this behavior to the network
driver maintainer for your card, on the Linux kernel project.


- --
Ritesh Raj Sarraf
RESEARCHUT - http://www.researchut.com
"Necessity is the mother of invention."
-----BEGIN PGP SIGNATURE-----

iQIcBAEBCgAGBQJXpdmlAAoJEKY6WKPy4XVpUEgQALY/n+DTeMDPIqGC+tUfrsov
qFd4QEqPxOQDygSk/N+U71jHodMwT5LjwZevaA2HlgIS9YviQVAjew4g/nE8gN3A
CJSKlxbUs455VQCWgtuuqpB0jelgWWwhDG2gj1GdZJs808EmpHoREyY6j5DpCA09
VdujkwPjE0ERSq7BRUEKCxJt7Qp1hWkXdApj5xP3WBOeGWNgJzPfZIgAFMVZN9QM
phwNfxqH43QKkSp8O8mXtFiXyTX6JgAwNWMuIkZmQcS9rYWqIrJeoAxKDuC6fXyU
si2YuZyvkXTna5Q+VGDYJBky5WQkKxH/O1NysXfxt384xM+NQ3ujUpy6MkpMdERi
QGFEgsrmXNi8Fm2hvRc9WH6WJLzpQzyhXQtsb6wJY7D7HKs7D2cnZ9k5I47iigys
IO2G/2PwLB3apQvPIbdaXM3R9LQppoiQwSv34cYqr68IGGyDTigr0VMq1LmiVx5O
+KVljBUNJFdrxbB5IvDB7ZgMePC2FbG53XKDen3Rxj/VpCGzZdtwj3wUHV+y/1bD
CKk7vqmJew/rpxj3DwnyrtC8r4ceP4rZ0jhh+D6H+DWQlIbvC9OQTon74/EFjnS/
LtGryFpq8Zf1DJ2wDWwXvENUzK0hSwAbjQD5Y7PxRwprq6b1rA8RVgqDsOYq6yWu
hrZ43Xvt0g5aSBwghJrh
=EvcV
-----END PGP SIGNATURE-----

Reply all
Reply to author
Forward
0 new messages