![]() |
|
|
|
|
#1 |
|
Junior Member
Join Date: Jan 2017
Posts: 3
|
Hi.
Great work. Do you use xf86-video-intel? Should I uninstall the AUR evdi and displaylink manager for rotation? Please help me. |
|
|
|
|
|
#2 |
|
Junior Member
Join Date: Feb 2017
Posts: 6
|
Works with intel and modesetting, I tried both. xf86-video-intel is deprecated, but it works fine for me.
evdi and displaylink need both be installed from AUR. I found out that sometimes the USB takes a while to register, so when that happens and the devices are recognized after X starts, X will not set the "PageFlip" option. So in /opt/displaylink/udev.sh I replaced Code:
systemctl start displaylink.service Code:
systemctl start displaylink.service systemctl restart display-manager.service |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Feb 2017
Posts: 6
|
I recently got a StarTech USB3.0 Dock with DVI, HDMI and VGA outputs and the above method still works when using modesetting for the primary GPU and having PageFlip off on all driver definitions. Using evdi 1.3.43 and DLM 1.3.52.
So I have both external screens connected to the dock and both rotate ok. This doesn't seem to honour VSync, so glxgears reports about 290fps. I have named the Driver Identifiers Card0, Card1 and Card2 and that seems to convince X to pick up the PageFlip off Option correctly every time, so no need to restart display-manager.service. Stefan |
|
|
|
|
|
#4 |
|
Junior Member
Join Date: Jan 2017
Posts: 3
|
Thanks to your reply.
I made the 99-evdi.conf in xorg.conf.d like following: Code:
Section "Device" Identifier "intel" Driver "modesetting" Option "kmsdev" "/dev/dri/card0" Option "SWCursor" "on" Option "PageFlip" "off" Option "ShadowFB" "true" Option "RandRRotation" "True" EndSection Section "Device" Identifier "USB3" BusID "USB" Driver "modesetting" Option "kmsdev" "/dev/dri/card1" Option "ReportDamage" "on" Option "SWCursor" "on" Option "ShadowFB" "on" Option "RandRRotation" "True" Option "rotate" "CCW" EndSection There are the xrandr outputs. Code:
Screen 0: minimum 8 x 8, current 4102 x 1824, maximum 32767 x 32767 eDP1 connected primary 2736x1824+0+0 (normal left inverted right x axis y axis) 260mm x 173mm 2736x1824 60.0*+ DP1 disconnected (normal left inverted right x axis y axis) DP2 disconnected (normal left inverted right x axis y axis) HDMI1 disconnected (normal left inverted right x axis y axis) HDMI2 disconnected (normal left inverted right x axis y axis) VIRTUAL1 disconnected (normal left inverted right x axis y axis) DVI-I-1 connected 1366x768+2736+0 344mm x 194mm 1366x768 60.0*+ 1024x768 75.1 70.1 60.0 800x600 72.2 75.0 60.3 56.2 848x480 60.0 640x480 75.0 72.8 60.0 59.9 |
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Mar 2017
Posts: 3
|
Stefan, awesome, thanks for this. Rotation works fine on my Intel HD4000.
I have reduced your xorg config to this: Code:
Section "Device" Identifier "intel" Option "kmsdev" "/dev/dri/card0" Option "PageFlip" "off" EndSection Section "Device" Identifier "USB3" BusID "USB" Driver "modesetting" Option "kmsdev" "/dev/dri/card1" Option "PageFlip" "off" EndSection compton --glx-use-copysubbuffermesa --glx-no-rebind-pixmap (I'm using compton with openbox) My only complain is CPU usage. With glxgears running I get 40% usage on one core... is this normal? taiki - try removing the RandRRotation and rotate options. It rotates fine for me without those. Last edited by Conassa; 03-06-2017 at 12:45 PM. |
|
|
|
|
|
#6 |
|
Junior Member
Join Date: Mar 2017
Posts: 1
|
Thanks for the information and research, rotation works like a charm here as well, after some fiddling! (Gnome Shell on Antergos/Arch Linux)
I have an Asus MB169B+ that I bought without properly researching whether screen rotation would work on Linux, and was quite shocked to find that it didn't out of the box. I tried a number of variations, based on the experience of the other people in this thread, and found that it didn't really work properly without having all the lines: Code:
Section "Device" Identifier "intel" Driver "modesetting" Option "kmsdev" "/dev/dri/card0" Option "PageFlip" "off" Option "SWCursor" "on" Option "ShadowFB" "true" EndSection Section "Device" Identifier "USB3" BusID "USB" Driver "modesetting" Option "kmsdev" "/dev/dri/card1" Option "PageFlip" "off" Option "SWCursor" "on" Option "ShadowFB" "true" EndSection Also really hope Wayland will be supported soon and screen rotation will just work out of the box there. :-) |
|
|
|
|
|
#7 |
|
Junior Member
Join Date: Jan 2021
Posts: 1
|
It took me a while to get rotation to work with my Asus MB16A display, so I figured I’d post something in case it helps other users.
The solution posted by Eevey (almost 4 years ago!) for their Asus MB169B+ also works with the MB16A on Arch Linux. |
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|