0
axzxc1236

Logout leads to black screen and lightdm-gtk-greeter eats a whole CPU core (Tinkerboard S, Focal Desktop)

Recommended Posts

I recently reinstall my Tinkerboard with Focal Desktop to start over.

I installed xrdp in armbian-config, and RDPed in, there was no wallpaper, no desktop icon, no mouse icon and windows I opened looks weird (but xfce taskbar shows up)

I came to the conclusion that it has something to do with auto login, so a quick google leads me to this instruction, I commented the line in "/etc/lightdm/lightdm.conf.d/22-armbian-autologin.conf" out, reboot, and the RDP environment works great.

Except now there is lightdm-gtk-greeter process in the background that is taking 100% CPU usage in full clock speed, the board became hot (>70 degree Celsius) very quickly.

Killing the process with root does nothing, lightdm greeter keeps showing up.

 

I then disabled xrdp systemd service, re-enabled auto login, hook the board to my monitor, keyboard and mouse and then do a reboot on SSH.

It seems like the login screen just.... doesn't exist?

When I manually log out, the exact same thing (lightdm greeter making the board hot) happens.

 

How do I install a login screen?

(I've tried installing xubuntu-desktop but package conflict happened, I re-flashed the board after that, still can't figure out how to get to login screen)

 

 

addendum:

Today I flashed Armbian_20.05.4_Tinkerboard_focal_current_5.4.46_desktop.img to a spare SD card, boot to SD card in maskrom mode

Can confirm the problem exists after initial setup (didn't do apt upgrade or anything, just setup the account system told me to setup), black screen after logout, can see lightdm-gtk-greeter eating a CPU core. (by running htop in tty)

Share this post


Link to post
Share on other sites

I found a solution that suits me (might not be ideal for others)

Basically I started from server image and installed what I want/need and it works well in the end.

 

1. Flash Focal Server image to your Tinkerboard (S)

2. Boot your Tinkerboard (S) and connect it to internet/LAN

3. SSH into your board with root/1234 (default account)

4. Setup your account as instructed by Armbian.

5. (optional but very recommended) do command

screen -S install

(We want to do following things in a screen session because if you somehow disconnect from your Tinkerboard it won't interrupt installation/updates of apt packages.

In following steps we will install a lot of packages which will take a lot of time

If you disconnected from Tinkerboard in following steps, re-login as root and do "screen -rx" to go back to your screen session)

6. do command

apt update
apt upgrade
apt install --install-recommends kubuntu-desktop xrdp

In apt upgrade system will ask you if you want to replace config files or not (twice), it just decides if your Tinkerboard will show Armbian (N) or Ubuntu (Y), shouldn't affect other functionalities, I personally choose N.

in apt install... You will see it takes 2.7GB of spaces and install >1300 apt packages, which will take a lot of time and storage spaces and make you question if this is insane or not.

It ultimately comes down to personal preferences, if you don't install recommended packages you will see there is no terminal, no browser, not file manager... which you expect to be installed by default. (Armbian tells apt to not install recommended packages by default)

If you ultimately do cherry picking what packages to install, please at least install xrdp and xorgxrdp (as this guide is telling you how to have a functional KDE environment and xrdp service)

(Yes, I don't consider a desktop environment without a browser, a terminal, a file manager as functional, it's unusable!)

(Not to mention you need fonts to display texts if you want to switch system languages later on, which is included in recommended packages)

7. do command

su <the new user account you created in step 4>
cd ~/
echo startplasma-x11 > .xsession
exit
reboot

Your Tinkerboard (S) should reboot itself after the reboot command

8. You can now RDP into your Tinkerboard in user account (don't use root account!!)

You can setup KDE's language translation, timezone...etc

Note that never login to RDP session when you already hooked up the monitor and login locally.

I tried, things break horribly until reboot.

You can try the commend mentioned here to logout local user in SSH, I didn't if the command really works or now.

 

-------------------

-------------------

-------------------

 

Addendum: I've tried xubuntu-desktop to setup xfce in server image, I couldn't get xrdp+xfce combo to work.

I prefer KDE over Xfce anyway, so win-win for me.

I ran htop in SSH while having a RDP KDE desktop running, it shows 518MB, not bad if you ask me.

(Should be lower after I disabled services that I don't want, e. g cups and samba, I don't have a printer)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
0