You are not logged in.

#1 2017-05-21 19:15:08

CrossFades
Member
Registered: 2017-05-20
Posts: 11

[Solved] Wayland / X11 boot problem

Hi,

I am pretty new to Arch and I have ran into a problem which I haven't been able to find any information about. When I shutdown my machine and press the power button to boot is back up my machine defaults to using X11 but when I reboot my machine it uses Wayland.

Clean shutdown + power on:

echo $XDG_SESSION_TYPE
X11

Reboot:

echo $XDG_SESSION_TYPE
wayland

I was thinking about disabling X on boot but I wasn't sure if this would cause any further problems, has any one experienced something like this before?

(Changing the session using the gear symbol on login doesn't make a difference)

Thanks,

Last edited by CrossFades (2017-05-21 22:26:42)

Offline

#2 2017-05-21 19:30:20

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

Re: [Solved] Wayland / X11 boot problem

Which DM and DE are you using?


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-05-21 19:52:43

CrossFades
Member
Registered: 2017-05-20
Posts: 11

Re: [Solved] Wayland / X11 boot problem

slithery wrote:

Which DM and DE are you using?


I am using GNOME 3.24.2 / GDM 3.24.2.

Thanks,

Offline

#4 2017-05-21 20:05:21

seth
Member
Registered: 2012-09-03
Posts: 50,933

Re: [Solved] Wayland / X11 boot problem

lspci?

Offline

#5 2017-05-21 20:17:08

CrossFades
Member
Registered: 2017-05-20
Posts: 11

Re: [Solved] Wayland / X11 boot problem

seth wrote:

lspci?

lspci:

00:00.0 Host bridge: Intel Corporation Device 5904 (rev 02)
00:02.0 VGA compatible controller: Intel Corporation Device 5916 (rev 02)
00:04.0 Signal processing controller: Intel Corporation Skylake Processor Thermal Subsystem (rev 02)
00:14.0 USB controller: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller (rev 21)
00:14.2 Signal processing controller: Intel Corporation Sunrise Point-LP Thermal subsystem (rev 21)
00:15.0 Signal processing controller: Intel Corporation Sunrise Point-LP Serial IO I2C Controller #0 (rev 21)
00:15.1 Signal processing controller: Intel Corporation Sunrise Point-LP Serial IO I2C Controller #1 (rev 21)
00:16.0 Communication controller: Intel Corporation Sunrise Point-LP CSME HECI #1 (rev 21)
00:17.0 SATA controller: Intel Corporation Sunrise Point-LP SATA Controller [AHCI mode] (rev 21)
00:1c.0 PCI bridge: Intel Corporation Device 9d10 (rev f1)
00:1c.4 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #5 (rev f1)
00:1c.5 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #6 (rev f1)
00:1f.0 ISA bridge: Intel Corporation Device 9d58 (rev 21)
00:1f.2 Memory controller: Intel Corporation Sunrise Point-LP PMC (rev 21)
00:1f.3 Audio device: Intel Corporation Device 9d71 (rev 21)
00:1f.4 SMBus: Intel Corporation Sunrise Point-LP SMBus (rev 21)
01:00.0 3D controller: NVIDIA Corporation GM108M [GeForce 940MX] (rev a2)
02:00.0 Network controller: Intel Corporation Wireless 3165 (rev 79)
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)

Offline

#6 2017-05-21 20:21:20

seth
Member
Registered: 2012-09-03
Posts: 50,933

Re: [Solved] Wayland / X11 boot problem

00:02.0 VGA compatible controller: Intel Corporation Device 5916 (rev 02)
01:00.0 3D controller: NVIDIA Corporation GM108M [GeForce 940MX] (rev a2)

Wayland and optimus... no idea why it would differ between a cold and a warm boot, but afaik you've to avoid the 3D controller and notably not be loading the nvidia module.
=> pacman -Qs nvidia; lsmod

Offline

#7 2017-05-21 20:38:33

CrossFades
Member
Registered: 2017-05-20
Posts: 11

Re: [Solved] Wayland / X11 boot problem

seth wrote:
00:02.0 VGA compatible controller: Intel Corporation Device 5916 (rev 02)
01:00.0 3D controller: NVIDIA Corporation GM108M [GeForce 940MX] (rev a2)

Wayland and optimus... no idea why it would differ between a cold and a warm boot, but afaik you've to avoid the 3D controller and notably not be loading the nvidia module.
=> pacman -Qs nvidia; lsmod

Module                  Size  Used by
fuse                   98304  3
ctr                    16384  4
ccm                    20480  2
snd_hda_codec_hdmi     45056  1
joydev                 20480  0
mousedev               20480  0
dell_led               16384  1
snd_hda_codec_realtek    73728  1
snd_hda_codec_generic    69632  1 snd_hda_codec_realtek
snd_soc_skl            61440  0
snd_soc_skl_ipc        36864  1 snd_soc_skl
snd_soc_sst_ipc        16384  1 snd_soc_skl_ipc
snd_soc_sst_dsp        20480  1 snd_soc_skl_ipc
snd_hda_ext_core       20480  1 snd_soc_skl
snd_soc_sst_match      16384  1 snd_soc_skl
snd_soc_core          188416  1 snd_soc_skl
snd_compress           20480  1 snd_soc_core
snd_pcm_dmaengine      16384  1 snd_soc_core
ac97_bus               16384  1 snd_soc_core
arc4                   16384  2
rtsx_usb_sdmmc         28672  0
rtsx_usb_ms            20480  0
mmc_core              122880  1 rtsx_usb_sdmmc
memstick               16384  1 rtsx_usb_ms
iTCO_wdt               16384  0
iTCO_vendor_support    16384  1 iTCO_wdt
btusb                  40960  0
btrtl                  16384  1 btusb
dell_wmi               16384  0
sparse_keymap          16384  1 dell_wmi
dell_smbios            16384  2 dell_wmi,dell_led
i2c_designware_platform    16384  0
i2c_designware_core    20480  1 i2c_designware_platform
intel_rapl             20480  0
nf_log_ipv6            16384  5
x86_pkg_temp_thermal    16384  0
intel_powerclamp       16384  0
coretemp               16384  0
kvm_intel             188416  0
dcdbas                 16384  1 dell_smbios
kvm                   520192  1 kvm_intel
xt_hl                  16384  22
ip6t_rt                16384  3
irqbypass              16384  1 kvm
iwlmvm                282624  0
crct10dif_pclmul       16384  0
crc32_pclmul           16384  0
crc32c_intel           24576  0
ghash_clmulni_intel    16384  0
mac80211              679936  1 iwlmvm
dell_smm_hwmon         16384  0
snd_hda_intel          32768  6
nouveau              1523712  0
snd_hda_codec         106496  4 snd_hda_intel,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek
aesni_intel           167936  4
nf_conntrack_ipv6      20480  8
nf_defrag_ipv6         36864  1 nf_conntrack_ipv6
aes_x86_64             20480  1 aesni_intel
uvcvideo               86016  0
lrw                    16384  1 aesni_intel
gf128mul               16384  1 lrw
iwlwifi               192512  1 iwlmvm
glue_helper            16384  1 aesni_intel
videobuf2_vmalloc      16384  1 uvcvideo
ablk_helper            16384  1 aesni_intel
videobuf2_memops       16384  1 videobuf2_vmalloc
cryptd                 20480  3 ablk_helper,ghash_clmulni_intel,aesni_intel
videobuf2_v4l2         20480  1 uvcvideo
snd_hda_core           65536  7 snd_hda_intel,snd_hda_codec,snd_hda_ext_core,snd_soc_skl,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek
videobuf2_core         36864  2 uvcvideo,videobuf2_v4l2
rtsx_usb               20480  2 rtsx_usb_sdmmc,rtsx_usb_ms
ip6t_REJECT            16384  3
nf_reject_ipv6         16384  1 ip6t_REJECT
snd_hwdep              16384  1 snd_hda_codec
mxm_wmi                16384  1 nouveau
cfg80211              507904  3 iwlmvm,iwlwifi,mac80211
psmouse               131072  0
videodev              151552  3 uvcvideo,videobuf2_core,videobuf2_v4l2
pcspkr                 16384  0
evdev                  24576  19
input_leds             16384  0
snd_pcm                90112  8 snd_hda_intel,snd_hda_codec,snd_pcm_dmaengine,snd_hda_ext_core,snd_hda_core,snd_soc_skl,snd_hda_codec_hdmi,snd_soc_core
led_class              16384  4 iwlmvm,rtsx_usb_sdmmc,input_leds,dell_led
mac_hid                16384  0
r8169                  77824  0
i2c_i801               24576  0
snd_timer              28672  1 snd_pcm
ttm                    86016  1 nouveau
media                  32768  2 uvcvideo,videodev
snd                    69632  22 snd_compress,snd_hda_intel,snd_hwdep,snd_hda_codec,snd_timer,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek,snd_soc_core,snd_pcm
hci_uart               86016  0
i2c_smbus              16384  1 i2c_i801
i915                 1200128  50
btbcm                  16384  2 hci_uart,btusb
btqca                  16384  1 hci_uart
nf_log_ipv4            16384  5
soundcore              16384  1 snd
mii                    16384  1 r8169
nf_log_common          16384  2 nf_log_ipv6,nf_log_ipv4
btintel                16384  2 hci_uart,btusb
xt_LOG                 16384  10
int3403_thermal        16384  0
shpchp                 32768  0
bluetooth             499712  7 btrtl,hci_uart,btintel,btqca,btbcm,btusb
drm_kms_helper        126976  2 nouveau,i915
xt_limit               16384  13
drm                   294912  34 nouveau,i915,ttm,drm_kms_helper
video                  36864  3 dell_wmi,nouveau,i915
wmi                    16384  4 dell_wmi,dell_led,mxm_wmi,nouveau
xt_tcpudp              16384  18
int3402_thermal        16384  0
intel_gtt              20480  1 i915
intel_lpss_acpi        16384  0
syscopyarea            16384  1 drm_kms_helper
mei_me                 36864  0
xt_addrtype            16384  4
sysfillrect            16384  1 drm_kms_helper
sysimgblt              16384  1 drm_kms_helper
fb_sys_fops            16384  1 drm_kms_helper
mei                    86016  1 mei_me
battery                20480  0
idma64                 20480  0
i2c_algo_bit           16384  2 nouveau,i915
dell_rbtn              16384  0
int3400_thermal        16384  0
acpi_thermal_rel       16384  1 int3400_thermal
acpi_pad               20480  0
ac                     16384  0
rfkill                 20480  7 bluetooth,dell_rbtn,cfg80211
processor_thermal_device    16384  0
int340x_thermal_zone    16384  3 int3402_thermal,int3403_thermal,processor_thermal_device
intel_lpss_pci         16384  0
intel_soc_dts_iosf     16384  1 processor_thermal_device
intel_lpss             16384  2 intel_lpss_pci,intel_lpss_acpi
intel_pch_thermal      16384  0
acpi_als               16384  0
button                 16384  2 nouveau,i915
kfifo_buf              16384  1 acpi_als
nf_conntrack_ipv4      16384  8
fjes                   28672  0
nf_defrag_ipv4         16384  1 nf_conntrack_ipv4
industrialio           53248  2 acpi_als,kfifo_buf
thermal                20480  0
tpm_tis                16384  0
tpm_tis_core           20480  1 tpm_tis
xt_conntrack           16384  16
tpm                    36864  2 tpm_tis,tpm_tis_core
ipt_REJECT             16384  3
nf_reject_ipv4         16384  1 ipt_REJECT
ip6table_filter        16384  1
ip6_tables             28672  1 ip6table_filter
nf_conntrack_netbios_ns    16384  0
nf_conntrack_broadcast    16384  1 nf_conntrack_netbios_ns
nf_nat_ftp             16384  0
nf_nat                 24576  1 nf_nat_ftp
nf_conntrack_ftp       20480  1 nf_nat_ftp
nf_conntrack           94208  8 nf_conntrack_ipv6,nf_conntrack_ftp,nf_conntrack_ipv4,nf_conntrack_broadcast,nf_nat_ftp,nf_conntrack_netbios_ns,xt_conntrack,nf_nat
iptable_filter         16384  1
sch_fq_codel           20480  6
sg                     36864  0
ip_tables              28672  1 iptable_filter
x_tables               28672  13 xt_LOG,ipt_REJECT,ip_tables,iptable_filter,xt_tcpudp,xt_limit,ip6t_REJECT,ip6table_filter,xt_addrtype,ip6t_rt,xt_conntrack,ip6_tables,xt_hl
ext4                  524288  1
crc16                  16384  2 bluetooth,ext4
jbd2                   90112  1 ext4
fscrypto               24576  1 ext4
mbcache                16384  2 ext4
sd_mod                 36864  2
serio_raw              16384  0
atkbd                  24576  0
libps2                 16384  2 atkbd,psmouse
ahci                   36864  1
libahci                28672  1 ahci
xhci_pci               16384  0
libata                208896  2 ahci,libahci
xhci_hcd              172032  1 xhci_pci
scsi_mod              155648  3 sd_mod,libata,sg
usbcore               208896  5 uvcvideo,xhci_pci,rtsx_usb,btusb,xhci_hcd
usb_common             16384  1 usbcore
i8042                  28672  0
serio                  20480  6 serio_raw,atkbd,psmouse,i8042

Just to confirm you think I should remove the 3D controller and install a 2D version instead?

Thanks for your help by the way!

Last edited by CrossFades (2017-05-21 20:58:29)

Offline

#8 2017-05-21 20:44:28

seth
Member
Registered: 2012-09-03
Posts: 50,933

Re: [Solved] Wayland / X11 boot problem

please edit your post and wrap that in code tags.

i'd try to blacklist nouveau.
https://wiki.archlinux.org/index.php/Ke … acklisting (use the kernel commandline for a test, in case things fail terribly you just have to reboot)

Offline

#9 2017-05-21 21:27:20

CrossFades
Member
Registered: 2017-05-20
Posts: 11

Re: [Solved] Wayland / X11 boot problem

seth wrote:

please edit your post and wrap that in code tags.

i'd try to blacklist nouveau.
https://wiki.archlinux.org/index.php/Ke … acklisting (use the kernel commandline for a test, in case things fail terribly you just have to reboot)

I tested it at command line and nothing messed up, so I added it to the grub config file and checked the command line again to make sure the parameters where being added correctly. Howerver, it seems like it hasn't made a difference it still acts differently on a warm reboot.

Offline

#10 2017-05-21 21:54:56

CrossFades
Member
Registered: 2017-05-20
Posts: 11

Re: [Solved] Wayland / X11 boot problem

seth wrote:

please edit your post and wrap that in code tags.

i'd try to blacklist nouveau.
https://wiki.archlinux.org/index.php/Ke … acklisting (use the kernel commandline for a test, in case things fail terribly you just have to reboot)

Thanks for your help Seth I took a look at the journal logs and found a problem that is related to Dell machines which I then googled and found a solution. I added pci=noaer to my kernel parameters and it seems to have fixed the issue for now.

Offline

#11 2017-05-22 13:47:04

seth
Member
Registered: 2012-09-03
Posts: 50,933

Re: [Solved] Wayland / X11 boot problem

You're aware that this only suppresses error reporting? Seems a timing related issue (explaining the cold ./. warm boot)
Some device doesn't come up fast enough or so.
You might want to compare dmesg of a cold and warm boot (w/o the flag) to figure which device that is and look out for an actual fix. Otherwise this might still occasionally hit you.

Offline

Board footer

Powered by FluxBB