N2L config.ini documentation / change console/display orientation

Post Reply
bernie.wieser
Posts: 64
Joined: Sat Mar 04, 2023 2:48 am
languages_spoken: english
ODROIDs: 2X, 2NL
Has thanked: 6 times
Been thanked: 5 times
Contact:

N2L config.ini documentation / change console/display orientation

Post by bernie.wieser »

Is there full documentation on permissible values for config.ini for the N2L?

Specifically I want to change my display orientation, used to do it via passing fbcon=rotate:1 as a kernel parameter.

viewtopic.php?t=44528 was not helpful

User avatar
odroid
Site Admin
Posts: 41548
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 3327 times
Been thanked: 1837 times
Contact:

Re: N2L config.ini documentation / change console/display orientation

Post by odroid »

Which OS image and kernel version do you run on your N2L?

If you are running Ubuntu Mate desktop with Kernel 4.9, this thread might be helpful.
viewtopic.php?p=364840#p364840

bernie.wieser
Posts: 64
Joined: Sat Mar 04, 2023 2:48 am
languages_spoken: english
ODROIDs: 2X, 2NL
Has thanked: 6 times
Been thanked: 5 times
Contact:

Re: N2L config.ini documentation / change console/display orientation

Post by bernie.wieser »

So yes I can do this and or run `xrandr --output hdmi-1 --rotate left` - after I startx or startxfce4 -but boot to console firs - so X isn't running -and I need to pass the fbcon paramaters to the kernel so the initial framebuffer is rotated. I will go find my kernel version etc.

User avatar
odroid
Site Admin
Posts: 41548
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 3327 times
Been thanked: 1837 times
Contact:

Re: N2L config.ini documentation / change console/display orientation

Post by odroid »

To check if your bootargs parameter went well to the kernel or not, you should look into dmesg output first.

bernie.wieser
Posts: 64
Joined: Sat Mar 04, 2023 2:48 am
languages_spoken: english
ODROIDs: 2X, 2NL
Has thanked: 6 times
Been thanked: 5 times
Contact:

Re: N2L config.ini documentation / change console/display orientation

Post by bernie.wieser »

I did add the fbcon parameter to /boot/config.ini, and I see it in /proc/cmdline - but the console isnt rotating - that said - i see other console= parameters in there that are not in the config.ini.

The boot console is against tty0 right? (s0 is serial output) so I have console=/dev/tty1,fbcon=rotate:3 but its still landscape :/

I am running the 5.15.0-odroid kernel
Last edited by bernie.wieser on Tue May 02, 2023 11:35 pm, edited 1 time in total.

User avatar
tobetter
Posts: 12343
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 876 times
Been thanked: 2084 times
Contact:

Re: N2L config.ini documentation / change console/display orientation

Post by tobetter »

bernie.wieser wrote:
Tue May 02, 2023 11:27 pm
I did add the fbcon parameter to /boot/config.ini, and I see it in /proc/cmdline - but the console isnt rotating - that said - i see other console= parameters in there that are not in the config.ini.

The boot console is against tty0 right? (s0 is serial output) so I have console=/dev/tty1,fbcon=rotate:3 but its still landscape :/
Please share the output of cat /proc/cmdline and uname -a without editing.

bernie.wieser
Posts: 64
Joined: Sat Mar 04, 2023 2:48 am
languages_spoken: english
ODROIDs: 2X, 2NL
Has thanked: 6 times
Been thanked: 5 times
Contact:

Re: N2L config.ini documentation / change console/display orientation

Post by bernie.wieser »

[ 0.000000] Kernel command line: root=UUID=34ff4dc5-0426-4401-b4ca-df549bde 0011 quiet splash plymouth.ignore-serial-consoles console=tty1 cma=800M clk_ignore_unused fsck.mode=force fsck.repair-yes net.ifnames=0 console=tty1,115200n8, fbcon=rotate:3

odroid@server:~$ uname -a
Linux server 5.15.0-odroid-arm64 #1 SMP PREEMPT Ubuntu 5.15.110-202305021634-jam my (2023-05-02) aarch64 aarch64 aarch64 GNU/Linux

odroid@server:-$ cat /proc/cmdline
root=UUID=34ff4dc5-0426-4401-b4ca-df549bde0011 quiet splash plymouth.ignore-serial-consoles console=tty1 cma=800M clk_ignore_unused fsck.mode=force fsck.repair=yes net.ifnames=0 console=tty1, 115200n8, fbcon=rotate:3
So, dmesg, cmdline, and uname -a; I confirmed that tty1 is the console output in dmesg - but I am worried wrt the first console (dunno where this comes from) is parsed and the second with the rotate is not.
Last edited by bernie.wieser on Wed May 03, 2023 12:21 am, edited 1 time in total.

bernie.wieser
Posts: 64
Joined: Sat Mar 04, 2023 2:48 am
languages_spoken: english
ODROIDs: 2X, 2NL
Has thanked: 6 times
Been thanked: 5 times
Contact:

Re: N2L config.ini documentation / change console/display orientation

Post by bernie.wieser »

oh, dmesg also says the parameter after splash is bad... but I doubt this is affects my issue

User avatar
tobetter
Posts: 12343
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 876 times
Been thanked: 2084 times
Contact:

Re: N2L config.ini documentation / change console/display orientation

Post by tobetter »

bernie.wieser wrote:
Wed May 03, 2023 12:21 am
oh, dmesg also says the parameter after splash is bad... but I doubt this is affects my issue
Let me check the kernel features and get back to you tomorrow (KST). Meantime, please forget the rotation issue. :)

bernie.wieser
Posts: 64
Joined: Sat Mar 04, 2023 2:48 am
languages_spoken: english
ODROIDs: 2X, 2NL
Has thanked: 6 times
Been thanked: 5 times
Contact:

Re: N2L config.ini documentation / change console/display orientation

Post by bernie.wieser »

I can live with it for a bit; but will continue to hunt down. My arcade cabinet project - the hardware - is done - so now its all software. Things like 1/ fix orientation, 2/ add splash, 3/ add auto launch of picker (so full kiosk mode)...

I had hoped the video controller card would let me swap orientation but it came with no documentation and menu is all simplified chinese (I don't read). So I am relying on software.

The odroid cpus are running about 108degF and fan doesn't seem to kick in - the amp draw from the wifi, wireless key/mouse, and 2x6 led button joysticks /w 4 port hub exceeds 2.5a... the amplifier and video also wanted 2-2.5a so I added a single 12v 10a power supply that seems to meet everyone's power needs.

I look forward to getting portrait working.

User avatar
tobetter
Posts: 12343
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 876 times
Been thanked: 2084 times
Contact:

Re: N2L config.ini documentation / change console/display orientation

Post by tobetter »

bernie.wieser wrote:
Wed May 03, 2023 2:04 am
I can live with it for a bit; but will continue to hunt down. My arcade cabinet project - the hardware - is done - so now its all software. Things like 1/ fix orientation, 2/ add splash, 3/ add auto launch of picker (so full kiosk mode)...

I had hoped the video controller card would let me swap orientation but it came with no documentation and menu is all simplified chinese (I don't read). So I am relying on software.

The odroid cpus are running about 108degF and fan doesn't seem to kick in - the amp draw from the wifi, wireless key/mouse, and 2x6 led button joysticks /w 4 port hub exceeds 2.5a... the amplifier and video also wanted 2-2.5a so I added a single 12v 10a power supply that seems to meet everyone's power needs.

I look forward to getting portrait working.
Interesting project...

I am wondering what software is running and it shows Chinese with your N2L?

bernie.wieser
Posts: 64
Joined: Sat Mar 04, 2023 2:48 am
languages_spoken: english
ODROIDs: 2X, 2NL
Has thanked: 6 times
Been thanked: 5 times
Contact:

Re: N2L config.ini documentation / change console/display orientation

Post by bernie.wieser »

Its not the N2L - its the hdmi video card for the LCD.

User avatar
tobetter
Posts: 12343
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 876 times
Been thanked: 2084 times
Contact:

Re: N2L config.ini documentation / change console/display orientation

Post by tobetter »

bernie.wieser wrote:
Wed May 03, 2023 2:20 am
Its not the N2L - its the hdmi video card for the LCD.
Ah...I see what you mean by, that's probably OSD in the LCD module, I guess, then you could change the language. But I believe it won't help you to rotate the screen with the display module itself anyway.

User avatar
tobetter
Posts: 12343
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 876 times
Been thanked: 2084 times
Contact:

Re: N2L config.ini documentation / change console/display orientation

Post by tobetter »

For the screen rotation, new kernel is uploaded. Unfortunately, the framebuffer rotation features is missed in the previous version so please do update the kernel package.

Code: Select all

sudo apt update
sudo apt upgrade
$ dpkg -l | grep linux-image
ii  linux-image-5.15.0-odroid-arm64            5.15.110-202305030140~jammy             arm64        Linux 5.15 for 64-bit ARMv8 machines
ii  linux-image-generic                        5:2022.04-1+202204252236~jammy          arm64        Generic Linux kernel image
Then change a file /usr/share/flash-kernel/ubootenv.d/upstream/10-console to add fbcon=rotate:3, instead of changing /boot/config.ini.

Code: Select all

$ cat /usr/share/flash-kernel/ubootenv.d/upstream/10-console 
# Default serial console
# setenv console "ttyAML0,115200n8"

# Default TTY console
setenv bootargs "${bootargs} console=tty1 fbcon=rotate:3"
In order to apply this change, run these commands...then your display will be rotated.

Code: Select all

sudo update-bootscript
sudo reboot
These users thanked the author tobetter for the post:
bernie.wieser (Wed May 03, 2023 12:30 pm)

bernie.wieser
Posts: 64
Joined: Sat Mar 04, 2023 2:48 am
languages_spoken: english
ODROIDs: 2X, 2NL
Has thanked: 6 times
Been thanked: 5 times
Contact:

Re: N2L config.ini documentation / change console/display orientation

Post by bernie.wieser »

Absolutely fabulous. Works.
These users thanked the author bernie.wieser for the post:
tobetter (Wed May 03, 2023 12:51 pm)

Post Reply

Return to “General Topics”

Who is online

Users browsing this forum: No registered users and 4 guests