You are not logged in.

#1 2014-07-05 11:33:45

manuelschneid3r
Member
From: Germany
Registered: 2013-04-14
Posts: 152

Qt Applications hang via display port. Implies minifreezes after login

Hi recently something changed. When I log in to KDE the system (X) freezes for a few seconds. I cant move the cursor. I have no clue where to begin to look. What is the way to debug this?

This is the journal since I logged in

Jul 05 14:58:28 b85i kernel: [drm:intel_dp_start_link_train] *ERROR* failed to enable link training
Jul 05 14:58:34 b85i kdm[345]: :0[345]: pam_unix(kde:session): session opened for user manuel by (uid=0)
Jul 05 14:58:34 b85i systemd[4889]: pam_unix(systemd-user:session): session opened for user manuel by (uid=0)
Jul 05 14:58:36 b85i dbus[242]: [system] Activating via systemd: service name='org.freedesktop.UPower' unit='upower.service'
Jul 05 14:58:36 b85i dbus[242]: [system] Successfully activated service 'org.freedesktop.UPower'
Jul 05 14:58:36 b85i dbus[242]: [system] Activating via systemd: service name='org.freedesktop.PolicyKit1' unit='polkit.service'
Jul 05 14:58:36 b85i polkitd[4962]: Started polkitd version 0.112
Jul 05 14:58:36 b85i polkitd[4962]: Loading rules from directory /etc/polkit-1/rules.d
Jul 05 14:58:36 b85i polkitd[4962]: Loading rules from directory /usr/share/polkit-1/rules.d
Jul 05 14:58:36 b85i polkitd[4962]: Finished loading, compiling and executing 1 rules
Jul 05 14:58:36 b85i dbus[242]: [system] Successfully activated service 'org.freedesktop.PolicyKit1'
Jul 05 14:58:36 b85i polkitd[4962]: Acquired the name org.freedesktop.PolicyKit1 on the system bus
Jul 05 14:58:37 b85i dbus[242]: [system] Activating via systemd: service name='org.freedesktop.UDisks2' unit='udisks2.service'
Jul 05 14:58:37 b85i udisksd[4994]: udisks daemon version 2.1.3 starting
Jul 05 14:58:37 b85i dbus[242]: [system] Successfully activated service 'org.freedesktop.UDisks2'
Jul 05 14:58:37 b85i udisksd[4994]: Acquired the name org.freedesktop.UDisks2 on the system message bus
Jul 05 14:58:40 b85i kactivitymanagerd[5007]: org.kde.kactivities.activities: Starting the KDE Activity Manager daemon QDateTime("2014-07-05 14:58:40.030 CEST Qt::LocalTime")
Jul 05 14:58:40 b85i kactivitymanagerd[5007]: org.kde.kactivities.application: [   OK   ] loaded:   "kactivitymanagerd_plugin_activitytemplates.so"
Jul 05 14:58:40 b85i kactivitymanagerd[5007]: org.kde.kactivities.application: [   OK   ] loaded:   "kactivitymanagerd_plugin_slc.so"
Jul 05 14:58:40 b85i kactivitymanagerd[5007]: org.kde.kactivities.application: [   OK   ] loaded:   "kactivitymanagerd_plugin_sqlite.so"
Jul 05 14:58:42 b85i org.kde.kuiserver[4904]: QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
Jul 05 14:58:42 b85i org.kde.kuiserver[4904]: QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
Jul 05 14:58:43 b85i kernel: traps: kmix[5067] general protection ip:7f753288feb8 sp:7fffb6f29b38 error:0 in libpthread-2.19.so[7f753287f000+18000]
Jul 05 14:58:44 b85i polkitd[4962]: Registered Authentication Agent for unix-session:c1 (system bus name :1.15 [/usr/lib/kde4/libexec/polkit-kde-authentication-agent-1], object path /org/kde/PolicyKit1/AuthenticationAgent, locale de_DE.UTF

Last edited by manuelschneid3r (2014-07-07 13:58:26)


Please feel free to correct my english.

Offline

#2 2014-07-07 11:35:34

manuelschneid3r
Member
From: Germany
Registered: 2013-04-14
Posts: 152

Re: Qt Applications hang via display port. Implies minifreezes after login

Today my system freezed completely. I had to poweroff manually. An indicator for graphics probles were the missing tranparency in conky and the missing KDE compositor (No glow around windows).

Edit:
Another peculiarity is that my own Qt app, containing only a QLineEdit freezes the mouse curser for about a second. Another simple xcb window application does not. Hence I think its a Qt problem. In addition qtCreator crashed with a segfault.

Where shall I start? The journal does not give much hints about qt. Nothing but this DBus thingy.

_EDIT2:_
I still gets funnier. When I have a monitor connected via DVI instead of DP this problem is gone.

Last edited by manuelschneid3r (2014-07-07 13:51:50)


Please feel free to correct my english.

Offline

#3 2014-07-07 13:55:15

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: Qt Applications hang via display port. Implies minifreezes after login

manuelschneid3r wrote:

recently something changed.

What changed?

Did you do a system update? Did you install new hardware or software? Did you change a configuration file?

I don't have much information, but maybe it's a graphics problem. What video card are you using? What video driver are you using? What "window manager" or "desktop environment" are you using? Are you using a compositor?

Offline

#4 2014-07-07 13:58:02

manuelschneid3r
Member
From: Germany
Registered: 2013-04-14
Posts: 152

Re: Qt Applications hang via display port. Implies minifreezes after login

Yes I just recognized that its my new monitor which is causing the problems. I first tried it with HDMI, which worked fine, now using Displayport I am getting this problems. I use KDE, i5-4590 with internal HD4600. The system is up to date.

;) .:[ manuel@b85i ]:. ~ $ lsmod
Module                  Size  Used by
joydev                 10367  0 
mousedev               10912  0 
hid_generic             1217  0 
usbhid                 41250  0 
hid                    93052  2 hid_generic,usbhid
snd_hda_codec_hdmi     40396  1 
nls_iso8859_1           4485  1 
nls_cp437               6017  1 
vfat                   10631  1 
fat                    53688  1 vfat
coretemp                6388  0 
hwmon                   3346  1 coretemp
x86_pkg_temp_thermal     7311  0 
intel_powerclamp        9442  0 
kvm_intel             135528  0 
kvm                   408583  1 kvm_intel
crct10dif_pclmul        4714  0 
crc32_pclmul            2955  0 
crc32c_intel           14217  0 
iTCO_wdt                5663  0 
evdev                  11784  9 
iTCO_vendor_support     1929  1 iTCO_wdt
mac_hid                 3273  0 
ghash_clmulni_intel     4362  0 
mxm_wmi                 1595  0 
aesni_intel           144871  0 
aes_x86_64              7463  1 aesni_intel
lrw                     3821  1 aesni_intel
gf128mul                6018  1 lrw
snd_hda_codec_realtek    54803  1 
snd_hda_codec_generic    56366  1 snd_hda_codec_realtek
r8169                  59191  0 
glue_helper             4737  1 aesni_intel
ablk_helper             2100  1 aesni_intel
cryptd                  8537  3 ghash_clmulni_intel,aesni_intel,ablk_helper
microcode              17157  0 
psmouse                94790  0 
serio_raw               5073  0 
pcspkr                  2059  0 
i915                  796061  6 
mii                     4251  1 r8169
i2c_i801               11364  0 
shpchp                 25706  0 
lpc_ich                14008  0 
snd_hda_intel          22270  4 
tpm_tis                 9310  0 
snd_hda_controller     22911  1 snd_hda_intel
thermal                 9103  0 
fan                     2913  0 
snd_hda_codec         104665  5 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_intel,snd_hda_controller
button                  4765  1 i915
snd_hwdep               6652  1 snd_hda_codec
drm_kms_helper         39643  1 i915
snd_pcm                83207  4 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel,snd_hda_controller
drm                   244782  6 i915,drm_kms_helper
snd_timer              19294  1 snd_pcm
tpm                    23363  1 tpm_tis
snd                    61276  16 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel
soundcore               5551  2 snd,snd_hda_codec
intel_gtt              12856  1 i915
battery                 7885  0 
i2c_algo_bit            5480  1 i915
i2c_core               41648  5 drm,i915,i2c_i801,drm_kms_helper,i2c_algo_bit
mei_me                 10096  0 
mei                    66784  1 mei_me
wmi                     8539  1 mxm_wmi
video                  12057  1 i915
processor              25153  0 
ext4                  494292  2 
crc16                   1359  1 ext4
mbcache                 9155  1 ext4
jbd2                   82948  1 ext4
sd_mod                 37426  5 
crc_t10dif              1135  1 sd_mod
crct10dif_common        1436  2 crct10dif_pclmul,crc_t10dif
atkbd                  17006  0 
libps2                  4571  2 atkbd,psmouse
ahci                   24299  3 
libahci                21772  1 ahci
ehci_pci                4152  0 
libata                174089  2 ahci,libahci
xhci_hcd              149286  0 
ehci_hcd               64619  1 ehci_pci
scsi_mod              138333  2 libata,sd_mod
usbcore               188381  4 ehci_hcd,ehci_pci,usbhid,xhci_hcd
usb_common              1712  1 usbcore
i8042                  13666  1 libps2
serio                  11018  6 serio_raw,atkbd,i8042,psmouse

This is dmesg with drm.debug=0xe comandline. I cut about a million "[drm:drm_dp_i2c_do_msg] native defer" lines to make it cleaner
http://pastebin.com/H4Zh9Dny

Last edited by manuelschneid3r (2014-07-08 14:27:17)


Please feel free to correct my english.

Offline

#5 2014-07-07 16:10:36

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 4,092
Website

Re: Qt Applications hang via display port. Implies minifreezes after login

manuelschneid3r wrote:

I first tried it with HDMI, which worked fine

Then you should use HDMI! wink

Is there a benefit to using DisplayPort?

Offline

#6 2014-07-07 17:15:09

manuelschneid3r
Member
From: Germany
Registered: 2013-04-14
Posts: 152

Re: Qt Applications hang via display port. Implies minifreezes after login

Yes, with DP 1.2 the monitors are daisy chainable. This is one of the reasons why I bought this monitor,


Please feel free to correct my english.

Offline

#7 2014-07-08 10:30:18

manuelschneid3r
Member
From: Germany
Registered: 2013-04-14
Posts: 152

Re: Qt Applications hang via display port. Implies minifreezes after login

Just updated to the new kernel and intel driver. Problem persists. Tried

 Option "VSync" "false" 
 Option "PageFlip" "false"

in xorg.conf, as mentioned in man intel. Diabled RC6 sleepstates with "options i915 enable_rc6=0" in modprobe.d.
Nothing helps.

Last edited by manuelschneid3r (2014-07-08 14:28:22)


Please feel free to correct my english.

Offline

Board footer

Powered by FluxBB