To rotate display screen and set its resolution in Porteus text mode using commands

Technical issues/questions of an intermediate or advanced nature.
mudit.s
White ninja
White ninja
Posts: 15
Joined: 24 Jan 2020, 11:39
Distribution: Porteus 3.2.2 Xfce

To rotate display screen and set its resolution in Porteus text mode using commands

Post#1 by mudit.s » 24 Jan 2020, 12:09

Hi,

I am using Porteus 3.2.2 in text mode, while removing all desktop and GUI packages . I want to rotate the text mode terminal display screen as per the portrait and landscape mode.

I have tried the following command

Code: Select all

xrandr -o left &
But its not working in the case of text mode of Porteus while it is working fine with GUI mode.

Any suggestions would be appreciated.
Last edited by mudit.s on 31 Jan 2020, 18:37, edited 1 time in total.

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3924
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

To rotate display screen and set its resolution in Porteus text mode using commands

Post#2 by ncmprhnsbl » 24 Jan 2020, 12:53

hi, welcome to porteus forum :).
yeah, xrandr won't work outside of an X session..
don't know for sure, but you could try adding fbcon=rotate:1 (to rotate 90°) to the boot line(press TAB at the boot screen and add it, or add to the APPEND line of <media>/boot/syslinux/porteus.cfg)
assuming porteus' console is framebuffer and the kernel supports this..

EDIT: maybe this:

Code: Select all

# echo 1 > sys/class/graphics/fbcon/rotate 
(rotate clockwise)
and rotate all consoles:

Code: Select all

# echo 1 > sys/class/graphics/fbcon/rotate_all 
from:
https://askubuntu.com/questions/237963/ ... n-x-server
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

mudit.s
White ninja
White ninja
Posts: 15
Joined: 24 Jan 2020, 11:39
Distribution: Porteus 3.2.2 Xfce

To rotate display screen and set its resolution in Porteus text mode using commands

Post#3 by mudit.s » 27 Jan 2020, 08:50

Thank you ncmprhnsbl for your suggestions.

I tried with your solutions, but still I am unable to resolve it by applying changes in porteus.cfg file. To get the external card booted from the text mode, I had applied changes in refind.cfg file with path <media>/EFI/BOOT/refind.cfg .

I even tried to add fbcon=rotate:1 inside refind.cfg file, still I am unable to get the the console screen rotated. Please help if you can resolve this.

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3924
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

To rotate display screen and set its resolution in Porteus text mode using commands

Post#4 by ncmprhnsbl » 28 Jan 2020, 05:01

seems that support for this isn't enabled in the kernel afaics..
neko has posted one that has it : Porteus Kernel Builder (Post by neko #75583)
if you're willing to try out the 5.5 version kernel
just extract the tar and swap out the 000-kernel.xzm and the vmlinuz(in the /boot/syslinux folder)

just noticed this: https://unix.stackexchange.com/question ... tup-debian
using EFI , you may need to pass video=efifb on kernel line as well (assuming that firmware is present)..
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

mudit.s
White ninja
White ninja
Posts: 15
Joined: 24 Jan 2020, 11:39
Distribution: Porteus 3.2.2 Xfce

To rotate display screen and set its resolution in Porteus text mode using commands

Post#5 by mudit.s » 31 Jan 2020, 18:35

Thank you for your help . i am able to rotate screen now in the text mode after changing in kernel afaics :)

Post Reply