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
DisplayLink driver and module #18041
Conversation
@abbradar, thanks for your PR! By analyzing the annotation information on this pull request, we identified @edolstra, @bjornfor and @offlinehacker to be potential reviewers |
Tested by cherry-picking onto nixos-16.03. Gnome still isn't recognizing an external display. Journalctl output when connecting a monitor:
Then after unplugging:
|
Have you tried xrandr magic as described on ArchWiki? |
It doesn't seem that displaylink is being seen as a provider. The
|
Try it now. If it doesn't work, I'd be interested in this debug information:
|
Oh, and another possible fix: add |
Changed nixos config to
And from journald:
|
Fixed. |
Service is up now
There's a lot of output from strace; anything in particular to grep for? Here's some:
|
Let's do it like this:
Proprietary software can be difficult to debug D: BTW, have you tried adding |
I've add Nothing plugged in, no service running.
Plugged in device.
Stopped service. |
Hm, it looks trimmed (last string is |
It writes to The |
I fear that they encrypt their logfiles.... Yuck! OK, please do the same but this time upload full strace file somewhere. I'm not sure what else to try short of grepping it for random things... |
There's a support tool, though that itself will require some strace debugging to get it running. The docs for the support tool do mention that some logs are encrypted. I don't have an HDMI cable on me, will gather strace output when I get home later. |
I just realized in my last attempt I wasn't running It does seem to require the
Both log files are encrypted, but the good news is it seems to have at least detected the display (I do indeed have an LG television connected). Output from Full strace: gist. All of that output is from before the displaylink adapter is connected. There is no further strace output produced when it is connected or disconnected. |
Hm, I found this thread: http://displaylink.org/forum/showthread.php?t=64550 strace log shows that you do have |
Also, check that your USB device vendor id is |
I've tried two HDMI cables and displays and both USB ports. At this point I'd be surprised if I had a cabling issue.
I don't know, it doesn't mean anything to me.
Looks right. Kernel log when I plug the thing in:
|
Oh! I just ran Unfortunately I don't know exactly what the difference is between now and the last time I tried this. Possibilities are:
|
Awesome! It would be nice to have a cleanup now. First I'll add
and see if it works without one or both of them. |
I'm not sure what happened, but I can't build this anymore. output: https://gist.github.com/chris-martin/6a269a9f6e510cd711f852b671d1295f |
e896a19
to
0a7451a
Compare
Okay, I've found an open-source code drop from DisplayLink here: https://github.com/DisplayLink/evdi. This brings us closer to have no binary blobs and also fixes build on newer kernels. Give it a try now! |
0a7451a
to
bc493cc
Compare
Oops, small fix. |
Same result building bc493cc - |
Hm, are you sure? This is a path from old version of my package (it should have been |
Oh, whoops, I guess I don't know how to use |
Looks okay, though one time X crashed when I plugged in the device. kernel log: https://gist.github.com/chris-martin/7a700a77facc67fbddddee40fbdcc6ba |
I've removed |
Well, I'm not sure what to do with an X crash. Was it one-time event (i.e. can you unplug/plug the device now without crashes)? |
It seems to have been a one-time event. Unfortunately the performance of this thing seems to be pretty awful. It'll be nice to have for the one-off presentation, but it's pretty much unusable as a full-time display. A really low frame rate, artifacting everywhere on both screens, repositioning the displays sometimes ends in disaster... I'm guessing this is just the device/driver and not much we can do about most of this? |
Well, I'm not sure -- I think you can test it with e.g. Ubuntu and see if problems persist. We can investigate it more then. Either way, let's merge this then now that it more or less works! I'll cherry-pick it to 16.09 too. Thank you for your testing! |
Yeah, good thinking. Thanks so much for all the work you've put into this! |
|
||
powerManagement.powerDownCommands = '' | ||
#flush any bytes in pipe | ||
while read -n 1 -t 1 SUSPEND_RESULT < /tmp/PmMessagesPort_out; do : ; done; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line prevents my laptop from going into suspend when there are no DisplayLink devices connected.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See #151706. Unfortunately I can't reproduce this any more. Strange.
Motivation for this change
Fixes #18023
Things done
(nix.useChroot on NixOS,
or option
build-use-chroot
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)cc @chris-martin for testing. I don't have the necessary hardware so I've just packaged the driver and made a module closely following Arch's AUR package. To enable this: