Rotating screen and Linux Mint

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Teoretik982
Level 1
Level 1
Posts: 7
Joined: Tue May 11, 2021 7:52 am

Rotating screen and Linux Mint

Post by Teoretik982 »

Hi, Linux/Linux Mint newbie here,

using online installation guides, I have installed Linux Mint 20.1 on a Lenovo Duet 3i hybrid tablet-laptop computer with a detachable keyboard. It is a dual boot setup, as I have kept the Windows 10 Pro installation that was preinstalled on the system too. My first impressions are good and the computer runs well with Linux Mint and is responsive.

The only issue I have encountered so far has to do with the screen and I have partially resolved that by searching for how to do so online. The problem was that the aspect ratio of the screen was in portrait mode, whereas I mostly intend to use it in landscape mode.

I have found this to resolve the issue: https://www.faqforge.com/linux/rotating ... inux-mint/

In my case, I have to type the following into the terminal: xrandr --output DSI-1 --rotate right

Doing so does change the screen to landscape mode and the hybrid computer is then usable as a laptop.

I do have several questions, though, in order to improve the experience further:

1) Is there a way to make the screen rotate/change aspect ratio automatically? It does so in Windows, so the sensors are surely there. Whereas I intend to use the hybrid computer more as a laptop than as a tablet, I do intend on both uses to some extent, so this functionality would be nice. I suppose I can always type xrandr --output DSI-1 --rotate left to turn it back to portrait mode, and then xrandr --output DSI-1 --rotate right to turn it to landscape mode again, but automatic screen rotation would be more convenient.

2) Although the display changes its aspect ratio with the command listed above, the input from the touchscreen does not. As such, the touchscreen is effectively unusable in landscape mode. Is there a way to make it rotate automatically (and failing that perhaps at least manually)?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
absque fenestris
Level 12
Level 12
Posts: 4110
Joined: Sat Nov 12, 2016 8:42 pm
Location: Confoederatio Helvetica

Re: Rotating screen and Linux Mint

Post by absque fenestris »

Please provide information about the desktop used - the easiest way to do this is to post the terminal output of inxi -Fxxxrz here.
Teoretik982
Level 1
Level 1
Posts: 7
Joined: Tue May 11, 2021 7:52 am

Re: Rotating screen and Linux Mint

Post by Teoretik982 »

I am using the Cinnamon desktop.

I will run inxi -Fxxxrz, when I get back to the hybrid tablet-notebook computer and post the output here, but that won't be until Monday.
User avatar
absque fenestris
Level 12
Level 12
Posts: 4110
Joined: Sat Nov 12, 2016 8:42 pm
Location: Confoederatio Helvetica

Re: Rotating screen and Linux Mint

Post by absque fenestris »

I also have Cinnamon in operation, the monitor is equipped with touchscreen function and accidentally - by display setting - I have rotated it - looked a bit stupid...
Your chances are good.
Teoretik982
Level 1
Level 1
Posts: 7
Joined: Tue May 11, 2021 7:52 am

Re: Rotating screen and Linux Mint

Post by Teoretik982 »

Hi, here is the output of running inxi -Fxxxrz in the terminal on my system:

"System:
Kernel: 5.4.0-73-generic x86_64 bits: 64 compiler: gcc v: 9.3.0
Desktop: Cinnamon 4.8.6 wm: muffin 4.8.1 dm: LightDM 1.30.0
Distro: Linux Mint 20.1 Ulyssa base: Ubuntu 20.04 focal
Machine:
Type: Detachable System: LENOVO product: 82AT v: IdeaPad Duet 3 10IGL5
serial: <filter> Chassis: type: 32 v: IdeaPad Duet 3 10IGL5
serial: <filter>
Mobo: LENOVO model: LNVNB161216 v: SDK0T31556 WIN serial: <filter>
UEFI: LENOVO v: EQCN22WW date: 08/24/2020
Battery:
ID-1: BAT0 charge: 30.0 Wh condition: 31.2/30.0 Wh (104%) volts: 8.7/7.7
model: SMP L19M2PD7 type: Li-ion serial: <filter> status: Charging
CPU:
Topology: Quad Core model: Intel Pentium Silver N5030 bits: 64 type: MCP
arch: Goldmont Plus rev: 8 L2 cache: 4096 KiB
flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 8755
Speed: 895 MHz min/max: 800/3100 MHz Core speeds (MHz): 1: 895 2: 896
3: 893 4: 895
Graphics:
Device-1: Intel UHD Graphics 605 vendor: Lenovo driver: i915 v: kernel
bus ID: 00:02.0 chip ID: 8086:3184
Display: x11 server: X.Org 1.20.9 driver: modesetting unloaded: fbdev,vesa
resolution: 1200x1920~60Hz
OpenGL: renderer: Mesa Intel UHD Graphics 605 (GLK 3) v: 4.6 Mesa 20.2.6
direct render: Yes
Audio:
Device-1: Intel vendor: Lenovo driver: snd_hda_intel v: kernel
bus ID: 00:0e.0 chip ID: 8086:3198
Sound Server: ALSA v: k5.4.0-73-generic
Network:
Device-1: Intel driver: iwlwifi v: kernel port: 1000 bus ID: 00:0c.0
chip ID: 8086:31dc
IF: wlp0s12f0 state: up mac: <filter>
Drives:
Local Storage: total: 116.48 GiB used: 61.30 GiB (52.6%)
ID-1: /dev/mmcblk0 model: DUTA42 size: 116.48 GiB serial: <filter>
rev: 0x8 scheme: GPT
Partition:
ID-1: / size: 55.24 GiB used: 25.32 GiB (45.8%) fs: ext4
dev: /dev/mmcblk0p6
ID-2: swap-1 size: 7.63 GiB used: 0 KiB (0.0%) fs: swap
dev: /dev/mmcblk0p5
Sensors:
System Temperatures: cpu: 44.0 C mobo: N/A
Fan Speeds (RPM): N/A
Repos:
No active apt repos in: /etc/apt/sources.list
Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
1: deb http://packages.linuxmint.com ulyssa main upstream import backport #id:linuxmint_main
2: deb http://archive.ubuntu.com/ubuntu focal main restricted universe multiverse
3: deb http://archive.ubuntu.com/ubuntu focal-updates main restricted universe multiverse
4: deb http://archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse
5: deb http://security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
6: deb http://archive.canonical.com/ubuntu/ focal partner
Info:
Processes: 196 Uptime: 6m Memory: 7.58 GiB used: 807.0 MiB (10.4%)
Init: systemd v: 245 runlevel: 5 Compilers: gcc: 9.3.0 alt: 9 Shell: bash
v: 5.0.17 running in: gnome-terminal inxi: 3.0.38
"
rickNS
Level 9
Level 9
Posts: 2972
Joined: Tue Jan 25, 2011 11:59 pm

Re: Rotating screen and Linux Mint

Post by rickNS »

Teoretik982 wrote: Sat May 15, 2021 8:59 am

1) Is there a way to make the screen rotate/change aspect ratio automatically? xrandr --output DSI-1 --rotate left to turn it back to portrait mode, and then xrandr --output DSI-1 --rotate right to turn it to landscape mode again, but automatic screen rotation would be more convenient.
Don't know, as don't own any such device, however to make it quicker, and easier to change back, and forth by adding your commands to custom keyboard shortcuts.
Menu > Keyboard > Shortcuts > Add custom shortcut
fill in the blanks of the box that pops up with your command.
Double click on the "unassigned" under keybindings > select a keybinding (perhaps CTRL + r/l as they don't seemed to be used in cinnamon)
Mint 20.0, and 21.0 MATE on Thinkpads, 3 X T420, T450, T470, and X200
User avatar
absque fenestris
Level 12
Level 12
Posts: 4110
Joined: Sat Nov 12, 2016 8:42 pm
Location: Confoederatio Helvetica

Re: Rotating screen and Linux Mint

Post by absque fenestris »

Mobo: LENOVO model: LNVNB161216 v: SDK0T31556 WIN serial: <filter>
UEFI: LENOVO v: EQCN22WW date: 08/24/2020

Graphics:
Device-1: Intel UHD Graphics 605 vendor: Lenovo driver: i915 v: kernel
bus ID: 00:02.0 chip ID: 8086:3184
Display: x11 server: X.Org 1.20.9 driver: modesetting unloaded: fbdev,vesa
resolution: 1200x1920~60Hz
OpenGL: renderer: Mesa Intel UHD Graphics 605 (GLK 3) v: 4.6 Mesa 20.2.6
direct render: Yes

Perhaps someone sees change options or errors in the graphics output, I don't notice anything special.
On my device with Intel 620 graphics and Mint 20.0 Cinnamon, rotation and touchscreen etc. are activated and accessible via the display settings.

If terminal commands for xrandr remain unavoidable, you could create two launchers for terminal/xrandr and possibly include the relevant one in the start programs.

Other (Ubuntu) users with Lenovo: https://www.reddit.com/r/SurfaceLinux/c ... 20041_lts/

Lenovo isn't exactly informative when looking up the latest BIOS...
Locked

Return to “Beginner Questions”