Go Back   DisplayLink Forum > DisplayLink Graphics Technology > Linux and Open Source

Reply
 
Thread Tools Search this Thread Display Modes
Old 11-17-2018, 10:19 AM   #1
R.E.L
Junior Member
 
Join Date: May 2016
Posts: 5
Default Ubutu does not Hibernate with DL driver installed

I have Ubuntu 18.04 DL driver 4.4.24.
No DL adpater is coonected to the system and I do sudo pm-hibernate. The hibernate command does not end, no hibernate occurs and Ubuntu is running.
The pm-suspend.log shows as last line:
"Running hook /etc/pm/sleep.d/displaylink.sh hibernate hibernate:"
My displaylink.sh looks:
#!/bin/bash
# Copyright (c) 2015 DisplayLink (UK) Ltd.

suspend_dlm()
{
#flush any bytes in pipe
while read -n 1 -t 1 SUSPEND_RESULT < /usr/lib/displaylink/PmMessagesPort_out; do : ; done;

#suspend DisplayLinkManager
echo "S" > /usr/lib/displaylink/PmMessagesPort_in

#wait until suspend of DisplayLinkManager finish
read -n 1 -t 10 SUSPEND_RESULT < /usr/lib/displaylink/PmMessagesPort_out
}

resume_dlm()
{
#resume DisplayLinkManager
echo "R" > /usr/lib/displaylink/PmMessagesPort_in
}

case "$1" in
thaw)
resume_dlm
;;
hibernate)
suspend_dlm
;;
suspend)
suspend_dlm
;;
resume)
resume_dlm
;;
esac
It seems to me that the displaylink.sh is waiting for an DL driver status change, but DL driver is not aktiv because I has it not connected.
I expect there is a missing check for DL driver active!!!!
R.E.L is offline   Reply With Quote
Reply

Tags
hibernate, ubuntu 18.04

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:40 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.