Hi everyone, I am new to linux and I've tried out several distros. I finally have elementary os working well and I am enjoying it. However, My convertible laptop supports auto-rotation of the screen. it worked at one point in ubuntu or opensuse as I was playing through distros and trying them out. However, I really am enjoying elementary OS and I'd like to find an easy way to get auto screen rotation working again. if someone could provide the terminal commands for the necessary packages, that would be awesome. Alternatively, the directions to put a widget on the desktop that would allow me to tap the widget and have the screen cycle through the possible rotations, one after the other, with each tap, that would be a feasible option as well. inxi -Fxz yeilds the following: Lenovo-ideapad-FLEX-4-1480 Kernel: 4.13.0-38-generic x86_64 (64 bit gcc: 5.4.0) Desktop: Gnome (Gtk 3.18.9-1ubuntu3.3) Distro: elementary 0.4.1 loki Machine: System: LENOVO product: 80VD v: Lenovo ideapad FLEX 4-1480 Mobo: LENOVO model: Lenovo ideapad FLEX 4-1480 v: SDK0J40709 WIN Bios: LENOVO v: 2SCN14WW(V1.04) date: 07/25/2016 CPU: Dual core Intel Core i7-7500U (-HT-MCP-) cache: 4096 KB flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 11616 clock speeds: max: 3500 MHz 1: 900 MHz 2: 900 MHz 3: 900 MHz 4: 900 MHz Graphics: Card-1: Intel Device 5916 bus-ID: 00:02.0 Card-2: Advanced Micro Devices [AMD/ATI] Sun XT [Radeon HD 8670A/8670M/8690M / R5 M330] bus-ID: 01:00.0 Display Server: X.Org 1.19.5 drivers: ati,radeon (unloaded: fbdev,vesa) Resolution: 1920x1080@59.98hz GLX Renderer: Mesa DRI Intel HD Graphics 620 (Kaby Lake GT2) GLX Version: 3.0 Mesa 18.2.0-devel Direct Rendering: Yes Audio: Card Intel Device 9d71 driver: snd_hda_intel bus-ID: 00:1f.3 Sound: ALSA v: k4.13.0-38-generic Network: Card-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller driver: r8169 v: 2.3LK-NAPI port: 3000 bus-ID: 02:00.0 IF: enp2s0 state: down mac: <filter> Card-2: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter driver: ath10k_pci bus-ID: 03:00.0 IF: wlp3s0 state: up mac: <filter> Card-3: Atheros usb-ID: 001-004 IF: null-if-id state: N/A speed: N/A duplex: N/A mac: N/A Drives: HDD Total Size: 1000.2GB (5.2% used) ID-1: /dev/sda model: ST1000LM035 size: 1000.2GB Partition: ID-1: / size: 910G used: 42G (5%) fs: ext4 dev: /dev/sda1 ID-2: swap-1 size: 8.42GB used: 0.00GB (0%) fs: swap dev: /dev/sda5 RAID: No RAID devices: /proc/mdstat, md_mod kernel module present Sensors: System Temperatures: cpu: 40.0C mobo: N/A gpu: 40.0 Fan Speeds (in rpm): cpu: 257 Info: Processes: 204 Uptime: 40 min Memory: 1664.6/7820.7MB Init: systemd runlevel: 5 Gcc sys: 5.4.0 Client: Shell (bash 4.3.481) inxi: 2.2.35
I'm not sure about any widget but you could easily setup a custom keyboard shortcut for this and would only take a couple of minutes. I will assume you didn't consider this and it would work for you Firstly open your system settings and navigate to Keyboard > Shortcuts > Custom Shortcuts and then click "+" to add your new shortcut which will flip your screen as required. In the 'Command' box that appears type the custom command to run when the shortcut is activated. Once this is complete your new shortcut should be in your custom shortcut list. Now select its row and click on 'disabled' then enter the key combination you want to activate the shortcut. I would suggest you setup 2 shortcuts one can be to rotate your display and another to bring it back to an vertical position. Now for the commands you need. I suggest xrandr for this, the below command will flip your screen to the left. Code (Text): xrandr --output LVDS-1 --rotate left Then to return your screen to its original state you would use Code (Text): xrandr --output LVDS-1 --rotate normal The output parameter on both the above commands (LVDS-1) depends on your device or which port your monitor is plugged into. To see what you currently have just run the below command; Code (Text): xrandr -q My example output shows mine as LVDS-1 Below I took a quick screenshot to show the new custom shortcut setup correctly on CTRL + LEFT. Now you can have a try at both commands. Good luck!