GuLinux / ScreenRotator

Automatic screen rotation daemon for X11
GNU General Public License v3.0
57 stars 18 forks source link

Screen doesn't rotate when using optimus GPU #1

Open nrdxp opened 6 years ago

nrdxp commented 6 years ago

So the program works beautifully except for one caveat. My laptop, Spectre x360 with i7-8550u, has a GTX MX150 and intel UHD 620. When I start X11 using the Intel graphics the program works perfectly, however when starting X11 using the GTX MX150 the screen doesn't actually rotate, although the touchscreen appears to rotate still. After looking at the output of both instances I was not able to find a difference and so can't really debug it on my own right now as I haven't much time. I do have a hunch that it has something to do with the optimus screen being renamed perhaps. To elaborate, when I start X11 with Intel, my laptop screen name according to xrandr is eDP-1, but when started with the GTX card the screen name changes to eDP-1-1 in xrandr. Perhaps this program is trying to rotate the wrong screen name. Sorry I can't be of more help. I will try to look into this in more detail later and will report any findings.

GuLinux commented 6 years ago

Hi, and thanks for your report. I think it's more an issue about display number,rather than name. Optimum starts a virtual x11 display, acting as a proxy. I guess in this situation you should rotate only the correct screen, or perhaps all of them.

I have an Optimus laptop home (although without Accel sensors, but that shouldn't matter), so I'll be able to properly investigate. Just hold on for now :-P

n4ndee commented 5 years ago

Hello, I have the same issue on a Lenovo Yoga 720 with GTX 1050 and Intel UHD 630, using KDE neon. Is there any progress on this? Let us know how we can help investigating. When on Intel, it works perfectly for me too, awesome work!