summaryrefslogtreecommitdiff
path: root/x11-drivers/displaylink-driver/files
diff options
context:
space:
mode:
Diffstat (limited to 'x11-drivers/displaylink-driver/files')
-rw-r--r--x11-drivers/displaylink-driver/files/99-displaylink.rules6
-rw-r--r--x11-drivers/displaylink-driver/files/displaylink.service13
-rw-r--r--x11-drivers/displaylink-driver/files/dlm.service14
-rw-r--r--x11-drivers/displaylink-driver/files/pm-displaylink37
-rw-r--r--x11-drivers/displaylink-driver/files/pm-systemd-displaylink31
-rw-r--r--x11-drivers/displaylink-driver/files/rc-displaylink18
-rw-r--r--x11-drivers/displaylink-driver/files/rc-displaylink-1.219
-rw-r--r--x11-drivers/displaylink-driver/files/rc-displaylink-1.319
-rw-r--r--x11-drivers/displaylink-driver/files/udev.sh77
9 files changed, 0 insertions, 234 deletions
diff --git a/x11-drivers/displaylink-driver/files/99-displaylink.rules b/x11-drivers/displaylink-driver/files/99-displaylink.rules
deleted file mode 100644
index 8c5b033..0000000
--- a/x11-drivers/displaylink-driver/files/99-displaylink.rules
+++ /dev/null
@@ -1,6 +0,0 @@
-# Copyright (c) 2016 DisplayLink (UK) Ltd.
-# File autogenerated by udev-installer.sh script
-
-ACTION=="add", SUBSYSTEM=="usb", DRIVERS=="usb", ATTRS{idVendor}=="17e9", ATTR{bInterfaceClass}=="ff", ATTR{bInterfaceProtocol}=="03", ENV{ID_DISPLAYLINK_DEVICE}="1", RUN+="/opt/displaylink/udev.sh START"
-ACTION=="remove", ENV{ID_DISPLAYLINK_DEVICE}=="1", RUN+="/opt/displaylink/udev.sh STOP $env{DEVPATH}"
-ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="179", ATTR{bNumInterfaces}=="*5", GROUP="plugdev", MODE="0660" \ No newline at end of file
diff --git a/x11-drivers/displaylink-driver/files/displaylink.service b/x11-drivers/displaylink-driver/files/displaylink.service
deleted file mode 100644
index 2ede6c2..0000000
--- a/x11-drivers/displaylink-driver/files/displaylink.service
+++ /dev/null
@@ -1,13 +0,0 @@
-[Unit]
-Description=DisplayLink Manager Service
-After=display-manager.service
-Conflicts=getty@tty7.service
-
-[Service]
-ExecStart=/usr/lib/displaylink/DisplayLinkManager
-Restart=always
-WorkingDirectory=/usr/lib/displaylink
-RestartSec=5
-
-[Install]
-WantedBy=graphical.target
diff --git a/x11-drivers/displaylink-driver/files/dlm.service b/x11-drivers/displaylink-driver/files/dlm.service
deleted file mode 100644
index 62d7b94..0000000
--- a/x11-drivers/displaylink-driver/files/dlm.service
+++ /dev/null
@@ -1,14 +0,0 @@
-[Unit]
-Description=DisplayLink Manager Service
-After=display-manager.service
-Conflicts=getty@tty7.service
-
-[Service]
-ExecStartPre=/sbin/modprobe evdi
-ExecStart=/opt/displaylink/DisplayLinkManager
-Restart=always
-WorkingDirectory=/opt/displaylink
-RestartSec=5
-
-[Install]
-WantedBy=graphical.target
diff --git a/x11-drivers/displaylink-driver/files/pm-displaylink b/x11-drivers/displaylink-driver/files/pm-displaylink
deleted file mode 100644
index a31bfc0..0000000
--- a/x11-drivers/displaylink-driver/files/pm-displaylink
+++ /dev/null
@@ -1,37 +0,0 @@
-#!/bin/bash
-# Copyright (c) 2015 - 2016 DisplayLink (UK) Ltd.
-
-suspend_dlm()
-{
- #flush any bytes in pipe
- while read -n 1 -t 1 SUSPEND_RESULT < /tmp/PmMessagesPort_out; do : ; done;
-
- #suspend DisplayLinkManager
- echo "S" > /tmp/PmMessagesPort_in
-
- if [ -f /tmp/PmMessagesPort_out ]; then
- #wait until suspend of DisplayLinkManager finish
- read -n 1 -t 10 SUSPEND_RESULT < /tmp/PmMessagesPort_out
- fi
-}
-
-resume_dlm()
-{
- #resume DisplayLinkManager
- echo "R" > /tmp/PmMessagesPort_in
-}
-
-case "$1" in
- thaw)
- resume_dlm
- ;;
- hibernate)
- suspend_dlm
- ;;
- suspend)
- suspend_dlm
- ;;
- resume)
- resume_dlm
- ;;
-esac
diff --git a/x11-drivers/displaylink-driver/files/pm-systemd-displaylink b/x11-drivers/displaylink-driver/files/pm-systemd-displaylink
deleted file mode 100644
index 4705b7f..0000000
--- a/x11-drivers/displaylink-driver/files/pm-systemd-displaylink
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/bin/bash
-# Copyright (c) 2015 - 2016 DisplayLink (UK) Ltd.
-
-suspend_dlm()
-{
- #flush any bytes in pipe
- while read -n 1 -t 1 SUSPEND_RESULT < /tmp/PmMessagesPort_out; do : ; done;
-
- #suspend DisplayLinkManager
- echo "S" > /tmp/PmMessagesPort_in
-
- if [ -f /tmp/PmMessagesPort_out ]; then
- #wait until suspend of DisplayLinkManager finish
- read -n 1 -t 10 SUSPEND_RESULT < /tmp/PmMessagesPort_out
- fi
-}
-
-resume_dlm()
-{
- #resume DisplayLinkManager
- echo "R" > /tmp/PmMessagesPort_in
-}
-
-case "$1/$2" in
- pre/*)
- suspend_dlm
- ;;
- post/*)
- resume_dlm
- ;;
-esac
diff --git a/x11-drivers/displaylink-driver/files/rc-displaylink b/x11-drivers/displaylink-driver/files/rc-displaylink
deleted file mode 100644
index ee541d4..0000000
--- a/x11-drivers/displaylink-driver/files/rc-displaylink
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-depend() {
- after xdm
-}
-
-start() {
- start-stop-daemon --start --background --chdir /usr/lib/displaylink --make-pidfile --pidfile /run/displaylink.pid --exec /usr/lib/displaylink/DisplayLinkManager
- eend $?
-}
-
-stop() {
- start-stop-daemon --stop --pidfile /run/displaylink.pid
- eend $?
-}
diff --git a/x11-drivers/displaylink-driver/files/rc-displaylink-1.2 b/x11-drivers/displaylink-driver/files/rc-displaylink-1.2
deleted file mode 100644
index fd5c0b6..0000000
--- a/x11-drivers/displaylink-driver/files/rc-displaylink-1.2
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/sbin/runscript
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-depend() {
- after xdm
-}
-
-start() {
- modprobe -q evdi
- start-stop-daemon --start --background --chdir /opt/displaylink --make-pidfile --pidfile /run/displaylink.pid --exec /opt/displaylink/DisplayLinkManager
- eend $?
-}
-
-stop() {
- start-stop-daemon --stop --pidfile /run/displaylink.pid
- eend $?
-}
diff --git a/x11-drivers/displaylink-driver/files/rc-displaylink-1.3 b/x11-drivers/displaylink-driver/files/rc-displaylink-1.3
deleted file mode 100644
index 1db2def..0000000
--- a/x11-drivers/displaylink-driver/files/rc-displaylink-1.3
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-depend() {
- after xdm
-}
-
-start() {
- modprobe -q evdi
- start-stop-daemon --start --background --chdir /opt/displaylink --make-pidfile --pidfile /run/displaylink.pid --exec /opt/displaylink/DisplayLinkManager
- eend $?
-}
-
-stop() {
- start-stop-daemon --stop --pidfile /run/displaylink.pid
- eend $?
-}
diff --git a/x11-drivers/displaylink-driver/files/udev.sh b/x11-drivers/displaylink-driver/files/udev.sh
deleted file mode 100644
index 8570bd1..0000000
--- a/x11-drivers/displaylink-driver/files/udev.sh
+++ /dev/null
@@ -1,77 +0,0 @@
-#!/bin/sh
-# Copyright (c) 2016 DisplayLink (UK) Ltd.
-# File autogenerated by udev-installer.sh script
-# modified by dakkar
-
-get_evdi_dev_count()
-{
- if [ "$(ls -ld /sys/devices/platform/* | grep -c evdi)" = "0" ]; then
- echo "0"
- return
- fi
-
- cat /sys/devices/platform/evdi.*/drm/card*/card*/status | grep "^connected$" | wc -l
-}
-
-get_displaylink_dev_count()
-{
- cat /sys/bus/usb/devices/*/idVendor | grep 17e9 | wc -l
-}
-
-start_displaylink()
-{
- if [ "$(get_displaylink_dev_count)" != "0" ]; then
- start_service
- fi
-}
-
-try_stop_displaylink()
-{
- if [ "$(get_evdi_dev_count)" = "0" ]; then
- parent_dev_path="$1"
- if [ -d "$parent_dev_path" ]; then
- echo "1"
- return
- fi
-
- if [ "$(get_displaylink_dev_count)" = "0" ]; then
- stop_service
- echo "0"
- return
- fi
- fi
- echo "1"
-}
-
-stop_displaylink()
-{
- parent_devpath="$(dirname "/sys$1")"
- retry_num="50" # 5s
- while [ "$(try_stop_displaylink "$parent_devpath")" != "0" ] && [ "$retry_num" != "0" ];
- do
- sleep 0.1
- retry_num=$((retry_num-1))
- done
-}
-
-main()
-{
- op=$1
- devpath=$2
- if [ "$op" = "START" ]; then
- start_displaylink
- elif [ "$op" = "STOP" ]; then
- stop_displaylink "$devpath"
- fi
-}
-
-start_service()
-{
- rc-service dlm start
-}
-
-stop_service()
-{
- rc-service dlm stop
-}
-main "$1" "$2"