You are not logged in.

#1 2017-09-22 23:06:24

dlaube
Member
Registered: 2017-09-08
Posts: 12

Strange Behaviour on Wifi

Hi,

On my notebook i have a strange issue: When running on lan, everything is fine. As soon as i unplug the cable and get connected to wifi i get a strange behaviour when starting applications that require display access (gui applications). They are then failing with

No protocol specified
Unable to init server: Could not connect: Connection refused
Failed to parse options: Cannot open display:

If i replugg the cable or disconnect from wifi all applications start up nicely again.

Hope this is an easy fix.

Offline

#2 2017-09-22 23:25:03

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: Strange Behaviour on Wifi

What are you using to manage your networking?

If it's connman then read this...
https://wiki.archlinux.org/index.php/Co … e_hostname

There may be a similar option for other network managers.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2017-09-22 23:41:00

loqs
Member
Registered: 2014-03-06
Posts: 17,372

Re: Strange Behaviour on Wifi

If it is the lack of a valid hostname why not just set one? Installation_guide#Hostname / Network_configuration#Set_the_hostname

Offline

#4 2017-09-22 23:48:02

dlaube
Member
Registered: 2017-09-08
Posts: 12

Re: Strange Behaviour on Wifi

It was indeed the lack of a static hostname, which is kind of weird because the dhcp should issue a hostname update on ethernet and wifi?

thanks for the right direction smile

Offline

#5 2017-09-22 23:53:14

loqs
Member
Registered: 2014-03-06
Posts: 17,372

Re: Strange Behaviour on Wifi

dlaube wrote:

It was indeed the lack of a static hostname, which is kind of weird because the dhcp should issue a hostname update on ethernet and wifi?

Before the hostname is changed Xorg starts and by default uses hostname based authentication allowing access for the hostname localhost as it is unset.
DHCP changes the hostname.  Xorg rejects new connections to the server from a now different hostname.

Offline

#6 2017-09-23 00:11:57

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Strange Behaviour on Wifi

Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB