Ubuntu 22.04 for ODROID-N2/C4/HC4

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

Re: Ubuntu 22.04 for ODROID-N2/C4/HC4

Post by tobetter »

wowa wrote:
Fri Jun 03, 2022 8:54 pm
tobetter wrote:
Fri Jun 03, 2022 5:47 pm
I have another kernel update, so please try it again.
Great, it's finally working, thank you very much!!
Glad to hear it works for you. :D

Pud74
Posts: 15
Joined: Wed May 08, 2019 7:05 am
languages_spoken: english
ODROIDs: N2, C4
Has thanked: 2 times
Been thanked: 0
Contact:

Re: Ubuntu 22.04 for ODROID-N2/C4/HC4

Post by Pud74 »

I'm using from the 22.04 image via netboot on my N2+ and the colours are very odd. Everything is shades of purple and green. The colours are wrong in both terminal only and gnome desktop. I noticed the same thing on my C4 with the latest petitboot upgrade also, but there it is intermittent between green with light purple text or black with white text. 21.10 works normally, as does coreelec. This has been tested with multiple monitors/TV's and hdmi cables with always the same result.

I feel that this must be a boot configuration issue but I don't know what. Some help would be appreciated.

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

Re: Ubuntu 22.04 for ODROID-N2/C4/HC4

Post by tobetter »

Pud74 wrote:
Wed Jun 15, 2022 11:32 pm
I'm using from the 22.04 image via netboot on my N2+ and the colours are very odd. Everything is shades of purple and green. The colours are wrong in both terminal only and gnome desktop. I noticed the same thing on my C4 with the latest petitboot upgrade also, but there it is intermittent between green with light purple text or black with white text. 21.10 works normally, as does coreelec. This has been tested with multiple monitors/TV's and hdmi cables with always the same result.

I feel that this must be a boot configuration issue but I don't know what. Some help would be appreciated.
Please provide kernel version, output of uname -a and the version of Petitboot. Also would be nice if you share a photo how the color look like.

Pud74
Posts: 15
Joined: Wed May 08, 2019 7:05 am
languages_spoken: english
ODROIDs: N2, C4
Has thanked: 2 times
Been thanked: 0
Contact:

Re: Ubuntu 22.04 for ODROID-N2/C4/HC4

Post by Pud74 »

tobetter wrote:
Wed Jun 15, 2022 11:36 pm
Pud74 wrote:
Wed Jun 15, 2022 11:32 pm
I'm using from the 22.04 image via netboot on my N2+ and the colours are very odd. Everything is shades of purple and green. The colours are wrong in both terminal only and gnome desktop. I noticed the same thing on my C4 with the latest petitboot upgrade also, but there it is intermittent between green with light purple text or black with white text. 21.10 works normally, as does coreelec. This has been tested with multiple monitors/TV's and hdmi cables with always the same result.

I feel that this must be a boot configuration issue but I don't know what. Some help would be appreciated.
Please provide kernel version, output of uname -a and the version of Petitboot. Also would be nice if you share a photo how the color look like.
N2+ Ubuntu 22.04 = Kernel 5.15.0-odroid-arm64
C4 Petitboot = 20220315
petitbootC4.jpg
petitbootC4.jpg (75.46 KiB) Viewed 232 times
ubuntu2204-N2.jpg
ubuntu2204-N2.jpg (85.96 KiB) Viewed 232 times
colour-chart.png
colour-chart.png (217.49 KiB) Viewed 230 times
* added correct colour chart for comparison
Last edited by Pud74 on Thu Jun 16, 2022 1:01 am, edited 1 time in total.

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

Re: Ubuntu 22.04 for ODROID-N2/C4/HC4

Post by tobetter »

@Pud74, does the color problem happens after updating? What's the brand/model of your monitor?
Would you try 5.16 kernel?

Code: Select all

sudo apt update
sudo apt install linux-image-5.16.0-odroid-arm64
sudo reboot
These users thanked the author tobetter for the post:
Pud74 (Thu Jun 16, 2022 1:42 am)

Pud74
Posts: 15
Joined: Wed May 08, 2019 7:05 am
languages_spoken: english
ODROIDs: N2, C4
Has thanked: 2 times
Been thanked: 0
Contact:

Re: Ubuntu 22.04 for ODROID-N2/C4/HC4

Post by Pud74 »

tobetter wrote:
Thu Jun 16, 2022 1:00 am
@Pud74, does the color problem happens after updating? What's the brand/model of your monitor?
Would you try 5.16 kernel?

Code: Select all

sudo apt update
sudo apt install linux-image-5.16.0-odroid-arm64
sudo reboot
The updated kernel seems to correct the problem, although the colour depth is clearly limited. I'll install gnome desktop as per instructions in this thread and post the results for that later.

The display here is an old Panasonic Viera TV from 2008, but I have the same problem on a Viewsonic VX2476-SMH 1080 monitor and an LG 27UL850 27" 4K monitor.

Thanks, as always, tobetter.
5.16.0-kernel.jpg
5.16.0-kernel.jpg (94.69 KiB) Viewed 226 times

EDIT: I've installed gnome and thankfully the colours are all correct. I'm thankful it was a simple fix.

User avatar
wallyz21
Posts: 382
Joined: Thu Apr 04, 2019 11:00 am
languages_spoken: english
ODROIDs: N2, N2+
Location: Western Australia
Has thanked: 30 times
Been thanked: 35 times
Contact:

Re: Ubuntu 22.04 for ODROID-N2/C4/HC4

Post by wallyz21 »

Can you share your colour chart script please.

Also colour all dark texts on light backgrounds seem wrong. This is the colour problem I am experiencing as well.
Walter Zambotti
N2 - 21.10 Manjaro Mate Desktop
N2+ - 22.04 Ubuntu Mate Desktop

Pud74
Posts: 15
Joined: Wed May 08, 2019 7:05 am
languages_spoken: english
ODROIDs: N2, C4
Has thanked: 2 times
Been thanked: 0
Contact:

Re: Ubuntu 22.04 for ODROID-N2/C4/HC4

Post by Pud74 »

wallyz21 wrote:
Mon Jun 20, 2022 11:14 am
Can you share your colour chart script please.

Also colour all dark texts on light backgrounds seem wrong. This is the colour problem I am experiencing as well.
I found the script on the web, but it did what I needed.

Code: Select all

#!/bin/bash

for i in {0..255} ; do
	printf "\x1b[48;5;%sm%3d\e[0m " "$i" "$i"
	if (( i =15 )) || (( i > 16 )) && (( (i-15) % 6 == 0 )); then
		printf "\n";
	fi
done

User avatar
wallyz21
Posts: 382
Joined: Thu Apr 04, 2019 11:00 am
languages_spoken: english
ODROIDs: N2, N2+
Location: Western Australia
Has thanked: 30 times
Been thanked: 35 times
Contact:

Re: Ubuntu 22.04 for ODROID-N2/C4/HC4

Post by wallyz21 »

Modified that to print all foreground/background combinations

Code: Select all

#!/bin/bash

for j in {0,30,31,32,33,34,35,36,37} ; do
	for i in {0..255} ; do
		printf "\e[%sm\x1b[48;5;%sm%2d;%3d\e[%sm\e[0m " "$j" "$i" "$j" "$i"
		if (( (i+1) % 16 == 0 )); then
			printf "\n";
		fi
	done
done
printf "\n";
Recommendation : Run this script in a gtk terminal window like mate-terminal or gnoime-terminal and compare the results to the output of xterm.

xterm doesn't use gtk and my testing shows xterm always displays the correct colors.

Comparisons on my system show mate/gnome-terminal are not showing black/dark text correctly. If this script produces only light coloured text
that is not correct. It should display both light and dark foreground text.

Examples: of correct colours in mate-terminal (Intel) and xterm (any architecture) Note. The dark colour will always match the background colour, hence why
the mate terminal looks grey rather than black.
Screenshot at 2022-06-22 09-18-01.png
Screenshot at 2022-06-22 09-18-01.png (469.92 KiB) Viewed 80 times
Attachments
Screenshot at 2022-06-22 09-21-43.png
Screenshot at 2022-06-22 09-21-43.png (74.61 KiB) Viewed 80 times
Last edited by wallyz21 on Wed Jun 22, 2022 10:26 am, edited 4 times in total.
These users thanked the author wallyz21 for the post:
m_ueberall (Tue Jun 21, 2022 5:08 pm)
Walter Zambotti
N2 - 21.10 Manjaro Mate Desktop
N2+ - 22.04 Ubuntu Mate Desktop

User avatar
wallyz21
Posts: 382
Joined: Thu Apr 04, 2019 11:00 am
languages_spoken: english
ODROIDs: N2, N2+
Location: Western Australia
Has thanked: 30 times
Been thanked: 35 times
Contact:

Re: Ubuntu 22.04 for ODROID-N2/C4/HC4

Post by wallyz21 »

Under MATE the problem appears that black is being used as the transparency color. The issue does not occur in xterm but just gtk apps like mate-terminal, gnome-terminal, Libra Office etc.

However what is puzzling is this does not occur when using the gnome desktop. There must be an implementation difference between how MATE uses GTK and how Gnome uses GTK. They do use different versions 2.0 vs 3.0!
Walter Zambotti
N2 - 21.10 Manjaro Mate Desktop
N2+ - 22.04 Ubuntu Mate Desktop

Post Reply

Return to “Ubuntu (All Linux'es)”

Who is online

Users browsing this forum: No registered users and 1 guest