Can I run OGU with normal Ubuntu Desktop?

Post Reply
hyun
Posts: 16
Joined: Thu Feb 16, 2023 8:40 am
languages_spoken: korean
ODROIDs: ODROID-N2L
Has thanked: 6 times
Been thanked: 0
Contact:

Can I run OGU with normal Ubuntu Desktop?

Post by hyun »

Hi, I wonder that the possibility of running OGU with normal Ubuntu desktop.

I want to play my robot with OGU. Because the body size and buttons are perfectly matching for my robot controller.
I already have my own controller program that is built in RPi4 environment using PyQt(for UI and camera) and GPIO.
I tried some methods that upload in this forum.

viewtopic.php?f=193&t=37399
viewtopic.php?p=304829#p304829
I tried different OS for other board, but it also not work. (I can find the problem after the trial. It is the bootloader of OGU and N2L is very different.)

But they don't work. First thing give me only black screen, and second thing doesn't work well.
In detail, disable emulationstation and enable getty@tty1 are work well but remove some error messages are printed.
After ignoring them, installing lightdm is succesfully work but xorg.conf and lightdm.conf are missing.

So, is there other method for my project?

Thank you.

++++++++++
Sorry. I mean (viewtopic.php?p=325192#p325192) <- this post when I'm saying "second"

crashoverride
Posts: 5797
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1
Has thanked: 0
Been thanked: 612 times
Contact:

Re: Can I run OGU with normal Ubuntu Desktop?

Post by crashoverride »

There is nothing that prevents the OGU from doing anything the N2/N2+ can including running a desktop. However, N2/N2+ images are not compatible and will not boot.

The process of installing a desktop is similar to that of OGS/OGA:
viewtopic.php?p=325193#p325193

I have not tested the procedure on OGU. Modifications or adjustments to it may be required.
These users thanked the author crashoverride for the post:
hyun (Wed Mar 15, 2023 9:06 am)

hyun
Posts: 16
Joined: Thu Feb 16, 2023 8:40 am
languages_spoken: korean
ODROIDs: ODROID-N2L
Has thanked: 6 times
Been thanked: 0
Contact:

Re: Can I run OGU with normal Ubuntu Desktop?

Post by hyun »

crashoverride wrote:
Wed Mar 15, 2023 7:07 am
There is nothing that prevents the OGU from doing anything the N2/N2+ can including running a desktop. However, N2/N2+ images are not compatible and will not boot.

The process of installing a desktop is similar to that of OGS/OGA:
viewtopic.php?p=325193#p325193

I have not tested the procedure on OGU. Modifications or adjustments to it may be required.
Thank you for the reply.
I tried the post that you mentioned, but it doesn't work.

What I did is


$ sudo systemctl disable emulationstation
$ sudo systemctl enable getty@tty1
$ sudo apt remove emulationstation-go2 emulators-64bit-go2 emulators-32bit-go2
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt install lightdm ubuntu-mate-desktop

$ reboot

$ sudo service lightdm start

and next, creat /etc/X11/xorg.conf and /etc/lightdm/lightdm.conf for this post
crashoverride wrote:
Thu Mar 25, 2021 4:13 am
I tested it and it worked with the following two files added:

/etc/X11/xorg.conf

Code: Select all

Section "Device"
	Identifier	"ODROID-GO"
	Driver		"modesetting"
	Option		"AccelMethod" "none"
	Option		"PageFlip" "off"
EndSection

Section "Screen"
	Identifier	"Default Screen"
	Device		"ODROID-GO"
	Monitor		"Default Monitor"
EndSection

Section "Monitor"
	Identifier	"Default Monitor"
	Option		"Rotate" "left"
EndSection

/etc/lightdm/lightdm.conf

Code: Select all

[SeatDefaults]
user-session=mate
greeter-session=slick-greeter
But it didn't work. In detail, when I type "sudo service lightdm start" and enter, nothing happened.
There is lightdm.conf.d/ folder in /etc/lightdm. Should I create lightdm.conf under that path?

I am using ODROID-GO ULTRA, and v1.2 is the OS what I am using.

crashoverride
Posts: 5797
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1
Has thanked: 0
Been thanked: 612 times
Contact:

Re: Can I run OGU with normal Ubuntu Desktop?

Post by crashoverride »

The OGU does not currently have a DRM driver. It uses a fbdev driver. Try changing the following:

In the /etc/X11/xorg.conf file, change

Code: Select all

Driver		"modesetting" 
to

Code: Select all

Driver		"fbdev"

hyun
Posts: 16
Joined: Thu Feb 16, 2023 8:40 am
languages_spoken: korean
ODROIDs: ODROID-N2L
Has thanked: 6 times
Been thanked: 0
Contact:

Re: Can I run OGU with normal Ubuntu Desktop?

Post by hyun »

crashoverride wrote:
Thu Mar 16, 2023 1:57 am
The OGU does not currently have a DRM driver. It uses a fbdev driver.
I totally didn't know that. How do you find it?
Anyway, even it's still don't work properly, It seems better than before.
I got an error code after "sudo service lightdm start"

root@gou:/home/odroid# service lightdm start
Job for lightdm.service failed because the control process exited with error code.
See "systemctl status lightdm.service" and "journalctl -xe" for details.
root@gou:/home/odroid# systemctl status lightdm.service
● lightdm.service - Light Display Manager
Loaded: loaded (/lib/systemd/system/lightdm.service; indirect; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2023-03-16 01:46:32 UTC; 19s ago
Docs: man:lightdm(1)
Process: 3276 ExecStartPre=/bin/sh -c [ "$(basename $(cat /etc/X11/default-display-manager 2>/dev/null))" = "lightdm" ] (code=exited, status=0/SUCCESS)
Process: 3279 ExecStart=/usr/sbin/lightdm (code=exited, status=1/FAILURE)
Main PID: 3279 (code=exited, status=1/FAILURE)

Mar 16 01:46:32 gou systemd[1]: lightdm.service: Scheduled restart job, restart counter is at 5.
Mar 16 01:46:32 gou systemd[1]: Stopped Light Display Manager.
Mar 16 01:46:32 gou systemd[1]: lightdm.service: Start request repeated too quickly.
Mar 16 01:46:32 gou systemd[1]: lightdm.service: Failed with result 'exit-code'.
Mar 16 01:46:32 gou systemd[1]: Failed to start Light Display Manager.
root@gou:/home/odroid#

And I'm serching solution with this. There are dozens of post on google, but helpless to me. Do you have any idea for this?

crashoverride
Posts: 5797
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1
Has thanked: 0
Been thanked: 612 times
Contact:

Re: Can I run OGU with normal Ubuntu Desktop?

Post by crashoverride »

hyun wrote:
Thu Mar 16, 2023 11:02 am
I totally didn't know that. How do you find it?
As a developer, its common knowledge.
hyun wrote:
Thu Mar 16, 2023 11:02 am
I got an error code after "sudo service lightdm start"
A detailed log should be available in the file /var/log/Xorg.0.log. It should show what errors were encountered.
These users thanked the author crashoverride for the post:
hyun (Thu Mar 16, 2023 3:29 pm)

hyun
Posts: 16
Joined: Thu Feb 16, 2023 8:40 am
languages_spoken: korean
ODROIDs: ODROID-N2L
Has thanked: 6 times
Been thanked: 0
Contact:

Re: Can I run OGU with normal Ubuntu Desktop?

Post by hyun »

crashoverride wrote:
Thu Mar 16, 2023 12:00 pm
A detailed log should be available in the file /var/log/Xorg.0.log.
I can get a waring that
.
.
.
[ 11.090] (==) Max clients allowed : 256, resource mask : 0x1ffffff
[ 11.090] (WW) The directory “/usr/share/fonts/X11/cyrillic” does not exist.
[ 11.090] Entry deleted from font path.
[ 11.090] (WW) The directory “/usr/share/fonts/X11/100dpi/” does not exist.
[ 11.090] Entry deleted from font path.
[ 11.090] (WW) The directory “/usr/share/fonts/X11/75dpi/” does not exist.
[ 11.090] Entry deleted from font path.
[ 11.091] (WW) The directory “/usr/share/fonts/X11/100dpi” does not exist.
[ 11.091] Entry deleted from font path.
[ 11.091] (WW) The directory “/usr/share/fonts/X11/75dpi” does not exist.
[ 11.091] Entry deleted from font path.
[ 11.091] (==) Fonts Path set to:
/usr/share/fonts/X11/misc,
/usr/share/fonts/X11/Type1,
built-ins
[ 11.091] (==) Module Path set to "/usr/lib/xorg/modules"
.
.
.
Whether it is a part of them, other lines show no Error or Warning. Onlt informational or notice
I tried

sudo -s
apt-get install xfonts-cyrillic
apt-get install xfonts-base
apt-get update
apt-get upgrade

but still same warning messages are in the log.
Still no GUI...

crashoverride
Posts: 5797
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1
Has thanked: 0
Been thanked: 612 times
Contact:

Re: Can I run OGU with normal Ubuntu Desktop?

Post by crashoverride »

I will attempt to reproduce the issue and post a solution.
These users thanked the author crashoverride for the post:
hyun (Fri Mar 17, 2023 1:16 pm)

crashoverride
Posts: 5797
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1
Has thanked: 0
Been thanked: 612 times
Contact:

Re: Can I run OGU with normal Ubuntu Desktop?

Post by crashoverride »

Staring with an unmodified installation of the reference image, the following produces a working X11 desktop:

Code: Select all

sudo systemctl disable emulationstation
sudo systemctl disable go4.service
sudo systemctl enable getty@tty1

sudo apt update
sudo apt upgrade
sudo reboot

sudo apt install lightdm ubuntu-mate-desktop

# At the "Configuring lightdm" screen, choose "lightdm", NOT "gdm3"

sudo systemctl start lightdm
Rotation does not appear to be supported by the fbdev driver.

hyun
Posts: 16
Joined: Thu Feb 16, 2023 8:40 am
languages_spoken: korean
ODROIDs: ODROID-N2L
Has thanked: 6 times
Been thanked: 0
Contact:

Re: Can I run OGU with normal Ubuntu Desktop?

Post by hyun »

Thank you for let me know the method.
I will do your post a few days later... I changed my system OGU to ODROID-C4.
I would try this in my spare time...

I really thank you for all your job.

hyun
Posts: 16
Joined: Thu Feb 16, 2023 8:40 am
languages_spoken: korean
ODROIDs: ODROID-N2L
Has thanked: 6 times
Been thanked: 0
Contact:

Re: Can I run OGU with normal Ubuntu Desktop?

Post by hyun »

crashoverride wrote:
Sat Mar 18, 2023 5:37 am

Code: Select all

sudo systemctl disable emulationstation
sudo systemctl disable go4.service
sudo systemctl enable getty@tty1

sudo apt update
sudo apt upgrade
sudo reboot

sudo apt install lightdm ubuntu-mate-desktop

# At the "Configuring lightdm" screen, choose "lightdm", NOT "gdm3"

sudo systemctl start lightdm
It worked! As you said, rotation disaply is not supported.

Post Reply

Return to “General Topics”

Who is online

Users browsing this forum: No registered users and 1 guest