Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Ethernet cable/tethering breaks Xorg [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Calemipe
n00b
n00b


Joined: 21 Nov 2017
Posts: 11

PostPosted: Tue Mar 06, 2018 5:43 pm    Post subject: Ethernet cable/tethering breaks Xorg [SOLVED] Reply with quote

Hi,

I'm having some problems with my internet, with which I would very much appreciate some help. I am not sure if this is one problem or several, but to not leave out any details which might be helpful to diagnose the problem, I will include it all here.

When I try to connect to the wifi, nmtui-connect tells me that
Code:

Passwords or encryption keys are required to access the wireless network 'NETWORKNAME'.

However, the password is already filled out. Opening nmtui-edit, and pressing "Show password", I can see that the password is the correct one (I have tried opening nm-applet to see if I can get additional information, however it doesn't start -- the terminal doesn't return any error, and the program doesn't crash, but no gui application appears).

For this reason, I have been using a mobile phone connected to the local network and connected via USB for internet. However, after starting tethering (connecting an ethernet cable has the same effect) Xorg stops being able to open new windows. Trying to do so gives the error
Code:

Invalid MIT-MAGIC-COOKIE-1 keyxterm: Xt error: Can't open display: :0

If I log out of my desktop session, the dm restarts and Xorg works again, as does the tethering (or ethernet). However, I still can not use the internal wifi (see above).

dmesg gives
Code:

[    8.843054] Intel(R) Wireless WiFi driver for Linux
[    8.843054] Copyright(c) 2003- 2015 Intel Corporation
[    8.843275] iwlwifi 0000:05:00.0: enabling device (0000 -> 0002)
[    8.843302] input: Integrated_Webcam_HD as /devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4:1.0/input/input10
[    8.843347] usbcore: registered new interface driver uvcvideo
[    8.843348] USB Video Class driver (1.1.1)
[    8.847253] iwlwifi 0000:05:00.0: Direct firmware load for iwlwifi-7265D-26.ucode failed with error -2
[    8.847264] iwlwifi 0000:05:00.0: Direct firmware load for iwlwifi-7265D-25.ucode failed with error -2
[    8.847948] iwlwifi 0000:05:00.0: Direct firmware load for iwlwifi-7265D-24.ucode failed with error -2
[    8.847961] iwlwifi 0000:05:00.0: Direct firmware load for iwlwifi-7265D-23.ucode failed with error -2
[    8.857086] iwlwifi 0000:05:00.0: loaded firmware version 22.391740.0 op_mode iwlmvm
[    9.074706] nvidiafb: Unable to detect display type...
[    9.074707] ...Using default of CRT
[    9.074708] nvidiafb: Unable to detect which CRTCNumber...
[    9.074709] ...Defaulting to CRTCNumber 0
[    9.074710] nvidiafb: Using CRT on CRTC 0
[    9.076018] nvidiafb: PCI nVidia NV39 framebuffer (64MB @ 0xC0000000)
[    9.084047] [drm] Memory usable by graphics device = 4096M
[    9.084049] checking generic (b0000000 300000) vs hw (b0000000 10000000)
[    9.084049] fb: switching to inteldrmfb from EFI VGA
[    9.084071] Console: switching to colour dummy device 80x25
[    9.084157] [drm] Replacing VGA console driver
[    9.089746] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    9.089746] [drm] Driver supports precise vblank timestamp query.
[    9.096056] vgaarb: device changed decodes: PCI:0000:00:02.0,olddecodes=io+mem,decodes=io+mem:owns=io+mem
[    9.100630] [drm] Finished loading i915/skl_dmc_ver1_26.bin (v1.26)
[    9.109834] [drm] GuC firmware load skipped
[    9.115314] Bluetooth: hci0: Intel Bluetooth firmware patch completed and activated
[    9.175847] iwlwifi 0000:05:00.0: Detected Intel(R) Dual Band Wireless AC 3165, REV=0x210
[    9.176824] ACPI: Video Device [GFX0] (multi-head: yes  rom: no  post: no)
[    9.177112] input: Video Bus as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input11
[    9.177226] ACPI: Video Device [PEGP] (multi-head: no  rom: yes  post: no)
[    9.177255] input: Video Bus as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:3f/LNXVIDEO:01/input/input12
[    9.177347] snd_hda_intel 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[    9.177351] [drm] Initialized i915 1.6.0 20160919 for 0000:00:02.0 on minor 0
[    9.177875] iwlwifi 0000:05:00.0: L1 Enabled - LTR Enabled
[    9.178318] iwlwifi 0000:05:00.0: L1 Enabled - LTR Enabled
[    9.213948] fbcon: inteldrmfb (fb0) is primary device
[    9.254487] ieee80211 phy0: Selected rate control algorithm 'iwl-mvm-rs'
[    9.256521] iwlwifi 0000:05:00.0 wlp5s0: renamed from wlan0
[    9.321238] snd_hda_codec_realtek hdaudioC0D0: autoconfig for ALC3246: line_outs=2 (0x14/0x1b/0x0/0x0/0x0) type:speaker
[    9.321240] snd_hda_codec_realtek hdaudioC0D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[    9.321241] snd_hda_codec_realtek hdaudioC0D0:    hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
[    9.321241] snd_hda_codec_realtek hdaudioC0D0:    mono: mono_out=0x0
[    9.321242] snd_hda_codec_realtek hdaudioC0D0:    inputs:
[    9.321243] snd_hda_codec_realtek hdaudioC0D0:      Headset Mic=0x19
[    9.321244] snd_hda_codec_realtek hdaudioC0D0:      Headphone Mic=0x1a
[    9.321245] snd_hda_codec_realtek hdaudioC0D0:      Internal Mic=0x12
[    9.340344] input: HDA Digital PCBeep as /devices/pci0000:00/0000:00:1f.3/sound/card0/input13
[    9.341246] input: HDA Intel PCH Headphone Mic as /devices/pci0000:00/0000:00:1f.3/sound/card0/input14
[    9.341308] input: HDA Intel PCH HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input15
[    9.341364] input: HDA Intel PCH HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input16
[    9.341418] input: HDA Intel PCH HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input17
[    9.843610] MXM: GUID detected in BIOS
[    9.843645] ACPI Warning: \_SB.PCI0.GFX0._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20160831/nsarguments-95)
[    9.843701] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20160831/nsarguments-95)
[    9.843748] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20160831/nsarguments-95)
[    9.843911] nvidiafb 0000:02:00.0: optimus capabilities: enabled, status dynamic power, hda bios codec supported
[    9.843913] VGA switcheroo: detected Optimus DSM method \_SB_.PCI0.PEG0.PEGP handle
[    9.843913] nouveau: detected PR support, will not use DSM
[   10.578403] Console: switching to colour frame buffer device 240x67
[   10.598765] i915 0000:00:02.0: fb0: inteldrmfb frame buffer device
[   10.751010] [drm] RC6 on
[   19.646933] EXT4-fs (sda6): re-mounted. Opts: (null)
[   19.721798] Adding 1048572k swap on /dev/mapper/swap.  Priority:-1 extents:1 across:1048572k SS
[   19.758940] EXT4-fs (sda4): mounted filesystem with ordered data mode. Opts: (null)
[   19.763393] EXT4-fs (sda5): mounted filesystem with ordered data mode. Opts: (null)
[   19.807550] EXT4-fs (dm-1): mounted filesystem with ordered data mode. Opts: (null)
[   20.340858] iwlwifi 0000:05:00.0: L1 Enabled - LTR Enabled
[   20.341291] iwlwifi 0000:05:00.0: L1 Enabled - LTR Enabled
[   20.405837] iwlwifi 0000:05:00.0: L1 Enabled - LTR Enabled
[   20.406267] iwlwifi 0000:05:00.0: L1 Enabled - LTR Enabled
[   20.439752] IPv6: ADDRCONF(NETDEV_UP): wlp5s0: link is not ready
[   20.500600] IPv6: ADDRCONF(NETDEV_UP): enp4s0: link is not ready
[   20.511787] r8169 0000:04:00.0 enp4s0: link down
[   20.511835] IPv6: ADDRCONF(NETDEV_UP): enp4s0: link is not ready
[   20.514687] IPv6: ADDRCONF(NETDEV_UP): wlp5s0: link is not ready
[   20.523799] iwlwifi 0000:05:00.0: L1 Enabled - LTR Enabled
[   20.524230] iwlwifi 0000:05:00.0: L1 Enabled - LTR Enabled
[   20.589934] iwlwifi 0000:05:00.0: L1 Enabled - LTR Enabled
[   20.590360] iwlwifi 0000:05:00.0: L1 Enabled - LTR Enabled
[   20.611125] IPv6: ADDRCONF(NETDEV_UP): wlp5s0: link is not ready
[   20.634860] IPv6: ADDRCONF(NETDEV_UP): wlp5s0: link is not ready
[   54.215721] usb 1-1: USB disconnect, device number 2
[   54.588620] usb 1-1: new high-speed USB device number 7 using xhci_hcd
[   54.758138] usb 1-1: New USB device found, idVendor=0e8d, idProduct=2004
[   54.758140] usb 1-1: New USB device strings: Mfr=2, Product=3, SerialNumber=4
[   54.758141] usb 1-1: Product: Avenzo
[   54.758142] usb 1-1: Manufacturer: MediaTek
[   54.758143] usb 1-1: SerialNumber: AV115NG002206
[   54.772254] usbcore: registered new interface driver cdc_ether
[   54.777705] rndis_host 1-1:1.0 usb0: register 'rndis_host' at usb-0000:00:14.0-1, RNDIS device, d2:b7:aa:ab:69:e1
[   54.777721] usbcore: registered new interface driver rndis_host
[   54.778649] rndis_host 1-1:1.0 enp0s20f0u1: renamed from usb0
[   54.794264] IPv6: ADDRCONF(NETDEV_UP): enp0s20f0u1: link is not ready


This problem does not appear to be kernel-specific, since it has persisted kernel upgrades.

Thank you in advance for any help you can provide!

Edit: Apparently my dmesg output was too long, so the post was cut off. I've nor removed the beginning of it, so that it starts at the point where wifi-errors are first mentioned.


Last edited by Calemipe on Fri Mar 09, 2018 5:44 pm; edited 1 time in total
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Thu Mar 08, 2018 12:08 am    Post subject: Reply with quote

Sounds too weird to be a single problem, but does adding "-nolisten tcp" to Xorg's command line help?
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21619

PostPosted: Thu Mar 08, 2018 2:20 am    Post subject: Reply with quote

What is the output of hostname -f, both when X applications work and when they fail?
Back to top
View user's profile Send private message
Calemipe
n00b
n00b


Joined: 21 Nov 2017
Posts: 11

PostPosted: Thu Mar 08, 2018 6:00 pm    Post subject: Reply with quote

Ant P. and Hu, thank you both for your replies!

Ant P., I have never passed arguments to Xorg before (that I remember). However, the file /etc/X11/xinit/xserverrc already contains -nolisten tcp:
Code:

#!/bin/sh
if [ -z "$XDG_VTNR" ]; then
  exec /usr/bin/X -nolisten tcp "$@"
else
  exec /usr/bin/X -nolisten tcp "$@" vt$XDG_VTNR
fi

So I assume the answer is that it didn't help, unless I am misunderstanding something.


Hu,

Before X stops working, hostname -f returns localhost. However, both when X doesn't work and when it works again, it curiously returns hostname: Unknown host.


Best Regards,
Calemipe
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21619

PostPosted: Fri Mar 09, 2018 3:15 am    Post subject: Reply with quote

Changing the hostname after the X11 authentication cookies have been generated is usually a bad idea. You should fix the initial name of your machine not to be localhost, and reconfigure your DHCP client not to change your hostname. If you need help with the latter, tell us which DHCP client you use.
Back to top
View user's profile Send private message
Calemipe
n00b
n00b


Joined: 21 Nov 2017
Posts: 11

PostPosted: Fri Mar 09, 2018 5:44 pm    Post subject: Reply with quote

Hu,

Thank you very much for the help! After updating my hostname following the instructions in this thread, Xorg no longer breaks. I will mark this topic as solved.

Best Regards,
Calemipe
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum