Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No console when external HDMI monitor connected #14

Closed
lwhsu opened this issue Jul 15, 2020 · 11 comments
Closed

No console when external HDMI monitor connected #14

lwhsu opened this issue Jul 15, 2020 · 11 comments
Labels
i915 i915 related problems

Comments

@lwhsu
Copy link
Member

lwhsu commented Jul 15, 2020

I'm not sure if this is due to the system or drm-kmod, but now after I kldload i915kms.ko in console, the main monitor on my laptop hangs if there is an external HDMI monitor connected, all the following updates only display on the external monitor. If I disconnect the external monitor, the main monitor on the laptop will catch up all the updates. Under X, both monitors work fine.

Is this an intentional behavior? This is different than before and is a bit inconvenient if you want to do presentation.

System information:
FreeBSD x1c.lwhsu.org 13.0-CURRENT FreeBSD 13.0-CURRENT #19 r363121M: Mon Jul 13 18:41:40 CST 2020 [email protected]:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG amd64

I've tested this with 5.3.g20200708 and 5.3.g20200710, both have this situation.

Wanted to revert to 5.3.g20200612 but it cannot compile on 13.0-CURRENT r363121 currently.

@evadot evadot added the i915 i915 related problems label Jul 24, 2020
@evadot
Copy link
Contributor

evadot commented Jul 24, 2020

I don't have this problem on my skylake system.
I'll test the other ones.
What generation is it ?

@lwhsu
Copy link
Member Author

lwhsu commented Jul 24, 2020

It's x1 carbon 6th, Intel Kaby Lake.

@lwhsu
Copy link
Member Author

lwhsu commented Jul 24, 2020

After seeing #17, I tried booting with hw.i915kms.enable_psr=0 in /boot/loader.conf. It restores previous behavior. But manually toggling hw.i915kms.enable_psr=0 after loading i915kms.ko doesn't work.
Also, after entering and exiting X, the behavior is the same as previous, no matter the value of hw.i915kms.enable_psr is.

@evadot
Copy link
Contributor

evadot commented Jul 24, 2020

hw.i915kms.enable_psr is a tunable so you can't change it after booting with sysctl, kenv should work.

@lwhsu
Copy link
Member Author

lwhsu commented Aug 8, 2020

BTW, tt is surprisingly that setting hw.i915kms.enable_psr=0 seems to fix my suspend/resume issue starting from the end of last year.

@lwhsu
Copy link
Member Author

lwhsu commented Aug 8, 2020

Should we have that setting by default (at least for Kaby Lake?), or was the setting changed around end of last year?

@evadot
Copy link
Contributor

evadot commented Sep 14, 2020

I've made the setting default for us because I don't have hardware to reproduce the problem.
Does the latest update to drm-current-kmod or drm-devel-kmod fixes the issue for you ?

@lwhsu
Copy link
Member Author

lwhsu commented Sep 14, 2020

Haven't updated to that version. I'll test and report here.

@evadot
Copy link
Contributor

evadot commented Jan 19, 2021

@lwhsu ping ? Do you still have this issue with latest 13.0-ALPHA1 and latest drm-kmod ?
Thanks

@lwhsu
Copy link
Member Author

lwhsu commented Jan 22, 2021

@lwhsu ping ? Do you still have this issue with latest 13.0-ALPHA1 and latest drm-kmod ?
Thanks

Sorry that I still cannot update to newer -current because am busy at other projects. Will try out in the weekend.

@lwhsu
Copy link
Member Author

lwhsu commented Jan 29, 2021

Tested again with 14.0-CURRENT c256325-g4f009328a247 and drm-devel-kmod-5.4.62.g20210118, looks good to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
i915 i915 related problems
Projects
None yet
Development

No branches or pull requests

2 participants