Go Back   DisplayLink Forum > DisplayLink Graphics Technology > Linux and Open Source
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 07-04-2016, 02:27 PM   #1
tricks.telex
Junior Member
 
Join Date: Jul 2016
Posts: 1
Default How can I use DisplaylinkMonitor by Single and Main monitor?

I use Ubuntu 16.04.

I could configure Displaylink monitor settings manually.
Code:
xrandr --newmode 1366x768_60 85.86  1368 1440 1584 1800  768 769 772 795  -HSync +Vsync
xrandr --addmode DVI-I-1 1366x768_60
xrandr --output DVI-I-1 --mode 1366x768_60
I want to config at startup. I writed above code at rc.local but this attempt is not success.
Next, I created my systemd service as thinkvision.service.

* thinkvision.service
Code:
[Unit]
Description=ThinkVision Settings
After=displaylink.service

[Service]
Type=oneshot
ExecStart=/opt/bin/thinkvision.sh
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target
*thinkvision.sh
Code:
#!/bin/bash

xrandr --newmode 1366x768_60 85.86  1368 1440 1584 1800  768 769 772 795  -HSync +Vsync
xrandr --addmode DVI-I-1 1366x768_60
xrandr --output DVI-I-1 --mode 1366x768_60

exit 0
this attempt is also failure..


Please tell me where to write above code.

Last edited by tricks.telex; 07-04-2016 at 02:37 PM.
tricks.telex is offline   Reply With Quote
Old 07-06-2016, 12:10 PM   #2
Vanadium
Junior Member
 
Join Date: May 2016
Posts: 5
Default

The x server must run when you issue the commands. If the command do not require root access, you could run them as a user startup program (Startup Applications in Unity Dash).
Here (http://askubuntu.com/questions/63791...rtup-in-ubuntu) I see a probably better suggestion, which involves placing the script under /etc/X11/Xsession.d/
Vanadium is offline   Reply With Quote
Reply


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 02:37 PM.


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