![]() |
|
|
|
|
#1 |
|
Junior Member
Join Date: May 2019
Posts: 2
|
Hi everyone,
when I tried the new evdi release (1.6.2) today I played around with different resolutions and worked out a workaround for the distortion problem. My solution is to run the USB monitor at a slightly lower resolution than intended by the specification. I use 1360x768 instead of 1366x768. On my device, this does not lead to a blurred image, the screen works just fine then. I wrote the following shell script to set up the custom resolution (1360x768). Please adjust the variables in ll. 5-7 to match the correct RandR output (run xrandr without any parameters to find it) and the desired resoultion. Code:
#!/bin/bash
# Adjust these parameters to your needs.
# These worked for me (AOC E1659Fwu)
OUTPUT="DVI-I-1-1"
HORIZONTAL_RES="1360"
VERTICAL_RES="768"
MODELINE="$(cvt ${HORIZONTAL_RES} ${VERTICAL_RES} | tail -n 1 | awk '{for (i=3; i<=NF; i++) print $i}')"
MODELINE_NAME=$(echo ${MODELINE} | awk '{print $1}' | sed -e 's/^"//' -e 's/"$//')
echo "Modeline:"
echo ${MODELINE_NAME} ${MODELINE}
echo
echo "[*] xrandr --newmode"
xrandr -d :0 --newmode ${MODELINE_NAME} ${MODELINE}
echo "[*] xrandr --addmode (${OUTPUT})"
xrandr -d :0 --addmode "${OUTPUT}" ${MODELINE_NAME}
echo "[*] Set new resolution"
xrandr -d :0 --output "${OUTPUT}" --mode ${MODELINE_NAME}
— Jan Last edited by jei; 07-09-2019 at 06:46 PM. |
|
|
|
|
|
#2 | |
|
Junior Member
Join Date: Aug 2019
Location: Birmingham, AL
Posts: 3
|
Hi Jan or jei,
Thank you, Thank you, Thank you, for this workaround script! I am now able to use my AOC e1659Fwu at 1360x768. Before I could only get 1024x768 to work. I am able to get my TOSHIBA PA3923U-2LC3 to work at this resolution as well. (I am going to return the AOC because it was part of my troubleshooting.) I had tried every combination you can imagine with *.conf files in /etc/X11/xorg.conf.d/ to get 1366x768 working. I had tried on Xubuntu 18.04 and Debian 10 with no luck and on multiple computers, with both Intel and AMD graphics. The best resolution I could achieve was 1024x768. Otherwise, 1366x768 looked something like the pictures on this thread. I have had the exact same issue on both monitors I currently have in my possession. I am guessing that this is just a bug that Displaylink needs to resolve. As for the mouse flickering issue, it is very minimal on my system right now. I have an old Acer laptop (2010 model) with Intel(R) Core(TM) i3 CPU M 350 @ 2.27GHz, with Intel integrated graphics. I am running Debian 10 with Xfce, vanilla install i.e. default kernel etc. I used the AdnanHodzic script to install on Debian. Here is my /etc/X11/xorg.conf.d/ directory. It has two files, 20-displaylink.conf and 20-evdidevice.conf. Perhaps this can help. Contents of 20-displaylink.conf : Section "Device" Identifier "DisplayLink" Driver "modesetting" Option "PageFlip" "false" EndSection Contents of 20-evdidevice.conf: Section "OutputClass" Identifier "DisplayLink" MatchDriver "evdi" Driver "modesetting" Option "AccelMethod" "none" EndSection Update: Just a warning that after running the script and arranging my screens, without thinking much, I decided to "Save" my layout in the Xfce Display application. This for some reason broke X when I rebooted. I also did not even have access to a tty. Fortunately though I fixed it via chroot. (If you want this setup every time, add the script to your autostart items for your desktop environment.) Quote:
Last edited by jbrock; 08-15-2019 at 04:28 AM. Reason: Added a followup about an issue |
|
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Jan 2018
Posts: 11
|
Just thought I'd say the generic: "I'm having the same problem." I've had my USB AOC monitor at 1024x768 instead of 1366x768 for a while now.
Once anyone finds a workaround to get me a few pixels back I'd really like that. That extra resolution really helps. |
|
|
|
|
|
#4 | |
|
Junior Member
Join Date: Aug 2019
Location: Birmingham, AL
Posts: 3
|
The workaround is the script above posted by jei. It will give you 1360x768. Please post if you need help in running it.
Quote:
|
|
|
|
|
|
|
#5 | |
|
Junior Member
Join Date: Oct 2019
Posts: 2
|
The bash script worked very well for me and solved my problem, thank you! I wanted to add a few more details for others like me that might not be familiar with running bash scripts.
Step one - take the code below and copy paste it into a text editor, for example, gedit. Then save the file with any name you want, or something like fixresolution.sh. Save it in a folder that is easy to find or navigate to. Quote:
Step three - in the terminal, type: Code:
chmod +x fixresolution.sh ./fixresolution.sh Last edited by edge-case; 10-18-2019 at 10:19 AM. |
|
|
|
|
![]() |
| Tags |
| distorted, image, problem, rotated, skewed |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|