Bug 247414 - x11-servers/xorg-server: hang on update from 1.20.8_1,1 to 1.20.8_2,1
Summary: x11-servers/xorg-server: hang on update from 1.20.8_1,1 to 1.20.8_2,1
Status: Closed Not A Bug
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-x11 (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-19 12:30 UTC by Erik Inge Bolsø
Modified: 2020-06-22 08:37 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (x11)


Attachments
xorg log from bad version (25.14 KB, text/plain)
2020-06-19 12:30 UTC, Erik Inge Bolsø
no flags Details
xorg log from good version (39.64 KB, text/plain)
2020-06-19 12:31 UTC, Erik Inge Bolsø
no flags Details
/usr/local/etc/X11/xorg.conf.d/synaptics.conf (221 bytes, text/plain)
2020-06-19 13:17 UTC, Erik Inge Bolsø
no flags Details
xinput, working (1.05 KB, text/plain)
2020-06-19 14:22 UTC, Erik Inge Bolsø
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Erik Inge Bolsø 2020-06-19 12:30:40 UTC
Created attachment 215775 [details]
xorg log from bad version

Xorg hangs pre sddm login screen after update to 1.20.8_2,1 from mirrors, have mouse pointer and blank screen but cannoot move pointer. Possibly synpatics related, since that is the next thing missing compared to a good boot.

Downgrading xorg-server to 1.20.8_1,1 with no other changes fixes the problem.
Recompiling drm-devel-kmod makes no difference.

Running on 13.0-current.
Comment 1 Erik Inge Bolsø 2020-06-19 12:31:56 UTC
Created attachment 215776 [details]
xorg log from good version
Comment 2 Erik Inge Bolsø 2020-06-19 13:17:32 UTC
Created attachment 215780 [details]
/usr/local/etc/X11/xorg.conf.d/synaptics.conf

the only bit of custom config in my xorg
Comment 3 Michael Gmelin freebsd_committer freebsd_triage 2020-06-19 13:28:45 UTC
Any specific reason you're not using libinput for your synapctics touchpad?

As a quick workaround, could you try setting:

sysctl kern.evdev.rcpt_mask=3
Comment 4 Erik Inge Bolsø 2020-06-19 14:01:43 UTC
Tried the sysctl workaround, made no difference.

Tried removing the synaptics.conf file, made no difference.

Possibly something else entirely then.
Comment 5 Niclas Zeising freebsd_committer freebsd_triage 2020-06-19 14:11:48 UTC
Can you give a list of installed xorg drivers in the system?
pkg info -x xf86- should be OK.
Can you also give the output of xinput from a working and a non-working system?
Comment 6 Michael Gmelin freebsd_committer freebsd_triage 2020-06-19 14:21:30 UTC
(In reply to Erik Inge Bolsø from comment #4)

In theory the only change between those revisions was
"xserver: default to libinput if no driver is found"[0]

So it sounds like it might be input related, but based on your "bad log" and your description I have to agree that this could also be a red herring.

What happens if you start X directly using startx, e.g. with a minimal config like the one below?

cat >~/.xinitrc <<EOF
setxkbmap -model pc105 -layout us
dwm
EOF

pkg install dwm dmenu
startx

Are you making it to the window manager?
If so, you should be able to launch xterm by pressing
Mod1+p and typing xterm+enter.

[0]https://svnweb.freebsd.org/ports/head/x11-servers/xorg-server/Makefile?r1=536383&r2=538048
Comment 7 Erik Inge Bolsø 2020-06-19 14:22:36 UTC
Created attachment 215786 [details]
xinput, working
Comment 8 Erik Inge Bolsø 2020-06-19 14:25:01 UTC
[knan@cut ~]$ pkg info -x xf86-
xf86-input-evdev-2.10.6_5
xf86-input-keyboard-1.9.0_4
xf86-input-libinput-0.30.0
xf86-input-mouse-1.9.3_3
xf86-input-synaptics-1.9.1_6
xf86-video-scfb-0.0.5_2
xf86-video-vesa-2.4.0_3
Comment 9 Erik Inge Bolsø 2020-06-19 14:36:15 UTC
(In reply to Michael Gmelin from comment #6)

I don't make it to the window manager.
Comment 10 Niclas Zeising freebsd_committer freebsd_triage 2020-06-19 14:47:41 UTC
(In reply to Erik Inge Bolsø from comment #9)

This seems to indicate that it's not related to input.  I wonder if a change in base makes xorg-server-1.20.8_2,1 behave strange, where 1.20.8_1,1, which presumably is compiled earlier, doesn't.
When did you update CURRENT?  When is xorg-server-1.20.8_2,1 from?
I'm running xorg-server 1.20.8_2,1, installed June 13, on CURRENT r362147 without any issues.  This version is compiled on FreeBSD_version 1300097.
Comment 11 Michael Gmelin freebsd_committer freebsd_triage 2020-06-19 14:59:59 UTC
(In reply to Erik Inge Bolsø from comment #9)

I would suggest you rebuild xorg components from the ports tree, just to make sure that it's not related to some builder version mismatch (like Niclas described).

If this doesn't help, you could still try the following (as the "bad" log stops exactly where usually the pointer would show up as an synaptics device in the log):

Does running

  libinput debug-events

on the console (outside of X) show you any events when using the touchpad?

Could you run

  pkg autoremove

to get rid of old drives/dependencies of xorg-server?

Then:
Make sure that hw.psm.synaptics_support is set to 1 in loader.conf

Remove the synaptics driver (temporarily):
  pkg delete xf86-input-synaptics

Move synaptics.conf out of the way (like you did before).

Make sure kern.evdev.rcpt_mask is 6 or 12.

And then try startx again (maybe also reboot if necessary)?
Comment 12 Erik Inge Bolsø 2020-06-19 15:21:04 UTC
(In reply to Niclas Zeising from comment #10)
Eureka!

The downloaded xorg-server package was abi 1300098, my userland was 1300097. A rebuild of xorg-server fixed it.

Time to do a make world. Thanks a lot for the support.
Comment 13 Michael Gmelin freebsd_committer freebsd_triage 2020-06-19 15:24:14 UTC
(In reply to Erik Inge Bolsø from comment #12)

Nice & thanks for the feedback.

While you're there you might still look into going libinput-only (might prevent future hardship).