Screen rotation problem

Questions about Wine on Linux
Locked
evanhorn
Newbie
Newbie
Posts: 3
Joined: Sat Nov 11, 2017 3:21 pm

Screen rotation problem

Post by evanhorn »

I am trying to read some pdf documents in portrait mode using PDFXchangeViewer (rotating the screen 90 degrees); however this the bottom portion of the screen is not used. This is the case for all applications I have tried to run with Wine (see attached screenshot for notepad). None of the native Linux applications have this problem. Has anyone else seen this and is there a workaround?

I have an HP Envy x360 with an Intel running Ubuntu 16.04 with the distro Wine installation. If it helps, I am using

Code: Select all

xrandr --output eDP-1 --rotate left
for the screen rotation and

Code: Select all

xinput set-prop "Virtual core XTEST pointer" "Coordinate Transformation Matrix" -1 0 1 0 -1 1 0 0 1
to map the touchscreen inputs (as well as touchpad and digital pen inputs).
Cybermax
Level 4
Level 4
Posts: 218
Joined: Fri Dec 01, 2017 5:26 pm

Re: Screen rotation problem

Post by Cybermax »

Can't seem to find the "attached screenshot".

Absolutely no experience with rotating screen, but does it not just kinda change the resolution after rotation in xrandr? Ie a 1920x1080 display = 1080x1920? If so.. would a wine virtual desktop of 1080x1920 work? Or perhaps 2160x3840 in a 4K setting..

Just tossing out an idea :)
evanhorn
Newbie
Newbie
Posts: 3
Joined: Sat Nov 11, 2017 3:21 pm

Re: Screen rotation problem

Post by evanhorn »

Oops, original screenshot was too large.

Yes, I could probably manually set the resolution, but WINE is doing this automatically for the width. It just isn't doing it for the height. It seems that it would resize both the same way.
Attachments
Screen shot of Notepad full screen in portrait mode.
Screen shot of Notepad full screen in portrait mode.
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Screen rotation problem

Post by Bob Wya »

@evanhorn

What's the full output from:

Code: Select all

xrandr
??

Ta
Bob
evanhorn
Newbie
Newbie
Posts: 3
Joined: Sat Nov 11, 2017 3:21 pm

Re: Screen rotation problem

Post by evanhorn »

Output from xrandr:

Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 8192 x 8192
eDP-1 connected primary 1920x1080+0+0 (normal left inverted right x axis y axis) 344mm x 194mm
1920x1080 59.98*+ 59.93 39.98
1680x1050 59.95 59.88
1600x1024 60.17
1400x1050 59.98
1280x1024 60.02
1440x900 59.89
1280x960 60.00
1360x768 59.80 59.96
1152x864 60.00
1024x768 60.04 60.00
960x720 60.00
928x696 60.05
896x672 60.01
960x600 60.00
960x540 59.99
800x600 60.00 60.32 56.25
840x525 60.01 59.88
800x512 60.17
700x525 59.98
640x512 60.02
720x450 59.89
640x480 60.00 59.94
680x384 59.80 59.96
576x432 60.06
512x384 60.00
400x300 60.32 56.34
320x240 60.05
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
HDMI-1 disconnected (normal left inverted right x axis y axis)
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Screen rotation problem

Post by Bob Wya »

@evanhorn

Wine is being dumb and trying to draw a notepad Window 1920x1080 which is then being truncated to 1080x1080.
The xrandr handling code in Wine is not very sophisticated in my experience.

Bob
Locked