Ubuntu desktop 2 logins needed

Dunno if anyone has tried to install Mate Desktop on Ubuntu and got the double login ‘thing’

First login will just swap back to the greeter 2nd login seems to work.

It seems the MIT magic cookie is wrong because LightDM fails with the drivers so the initial start and GBM will fail to load the rockchip driver so the initial MIT magic cookies becomes invalid.
It throws you back to the greeter but this time works with whatever default driver created the MIT cookie.

Just not all that sure how to fix it as if you try and install the rockchip-mali drivers it conflicts with egl

what do you mean exactly by double login?

What do you use on your mate for autologin? Do you use conf file or somethjing like this?

As for mate, if you install it interactive (I just assume you will want to do it on first boot), you can run this:

# enable autologin
mkdir -p /etc/lightdm/lightdm.conf.d
touch /etc/lightdm/lightdm.conf.d/12-autologin.conf
echo "[SeatDefaults]" > /etc/lightdm/lightdm.conf.d/12-autologin.conf
echo "autologin-user=rock" >> /etc/lightdm/lightdm.conf.d/12-autologin.conf

here is a script for normal desktop (includes recommends):

#!/bin/sh
unminimize
apt update
apt -y upgrade
apt -y dist-upgrade

# make Mate the default desktop environment for xrdp sessions (also for new users being created afterwards)
echo mate-session> /home/rock/.xsession
chown rock /home/rock/.xsession
cp /home/rock/.xsession /etc/skel
# mate desktop
DEBIAN_FRONTEND=noninteractive apt-get install -y ubuntu-mate-desktop ubuntu-mate-core lightdm locales mate-desktop-environment mate-notification-daemon
locale-gen en_US.UTF-8
# install language support
apt-get install -y language-pack-en-base language-pack-en

apt-get install -y x11vnc xrdp
# allow changing the host post port we can connect to (this allows reconnecting to an abandoned session)
sed -i 's/port\=-1/port\=ask-1/' /etc/xrdp/xrdp.ini
service xrdp stop
systemctl enable xrdp
service xrdp start
# enable autologin
mkdir -p /etc/lightdm/lightdm.conf.d
touch /etc/lightdm/lightdm.conf.d/12-autologin.conf
echo "[SeatDefaults]" > /etc/lightdm/lightdm.conf.d/12-autologin.conf
echo "autologin-user=rock" >> /etc/lightdm/lightdm.conf.d/12-autologin.conf

/usr/bin/install-desktop-extras.sh

My version of scrips for ubuntu-minimal core is actually ready, just wanted to remove all unrequired comments etc…, but I will upload it today/tommorow to github.com/cevap/rockpi4-bionic-scripts, it includes LXDE and MATE desktop with quite all required things, bluetooth works too, however, if you use autologin by conf, you will find out that .bashrc is not executed, which is used as example to enable bluetooth (is a workaround)

Here is for minimal (which would be probably more usefull if you create new fresh, as you probably dont need/want to include all the rest:

#!/bin/sh
unminimize
apt update
apt -y upgrade
apt -y dist-upgrade

# make Mate the default desktop environment for xrdp sessions (also for new users being created afterwards)
echo mate-session> /home/rock/.xsession
chown rock /home/rock/.xsession
cp /home/rock/.xsession /etc/skel
# mate desktop
apt-get install -y lightdm
DEBIAN_FRONTEND=noninteractive apt-get install -y ubuntu-mate-desktop ubuntu-mate-core --no-install-recommends
apt-get install -y locales mate-desktop-environment mate-notification-daemon
locale-gen en_US.UTF-8
# install language support
apt-get install -y language-pack-en-base language-pack-en

apt-get install -y x11vnc xrdp
# allow changing the host post port we can connect to (this allows reconnecting to an abandoned session)
sed -i 's/port\=-1/port\=ask-1/' /etc/xrdp/xrdp.ini
service xrdp stop
systemctl enable xrdp
service xrdp start
# enable autologin
mkdir -p /etc/lightdm/lightdm.conf.d
touch /etc/lightdm/lightdm.conf.d/12-autologin.conf
echo "[SeatDefaults]" > /etc/lightdm/lightdm.conf.d/12-autologin.conf
echo "autologin-user=rock" >> /etc/lightdm/lightdm.conf.d/12-autologin.conf

/usr/bin/install-desktop-extras.sh

BTW, why do you use GBM? Because of drivers? You shouldnt, run this with

Here are few other usefull parts of my scripts which could resolve your issues, this is done on third boot with rc.local in my scripts:

# gpu support
# cmake . -DCMAKE_INSTALL_PREFIX=/usr && make install
# required for compilation
apt-get install -y cmake pkg-config

git clone https://github.com/rockchip-linux/libmali /home/rock/libmali
touch /home/rock/libmali/silentinstall.sh && chmod +x /home/rock/libmali/silentinstall.sh
cat << EOF | tee -a /home/rock/libmali/silentinstall.sh
cd /home/rock/libmali;
git fetch -f origin;
git pull -f;
cmake . -DCMAKE_INSTALL_PREFIX=/usr && make install
EOF
chown -hR rock /home/rock/libmali
/home/rock/libmali/silentinstall.sh

but there is a package too which you can install, this is what I do also on third boot (all rock pi packages):

#!/bin/sh
cp /etc/THIRD_BOOT /etc/FOURTH_BOOT
rm -f /etc/THIRD_BOOT

rm -rf /var/cache/apt/archives
apt-get update
apt-get -y upgrade
apt -y dist-upgrade
# rockpi4 essential packages
apt-get install -y rockchip-fstab
apt-get install -y rockpi4-dtbo
apt-get install -y rockchip-overlay
# rockpi4 latest kernel and bootloader
apt-get install -y linux-base
apt-get install -y linux-4.4-latest
apt-get install -y rockpi4b-rk-u-boot-latest
# additional HW componentes (Power over Ethernet)
apt-get install -y rockpi4-poe libmraa-rockpi4 
# rockpi4 - optional
apt-get install -y rockchip-mpp-demos
apt-get install -y linux-libc-dev opencv4.0
# rockpi4 - optional - Video and GPU
apt-get install -y librockchip-mpp1 librockchip-mpp-static librockchip-mpp-dev librockchip-vpu0
apt-get install -y gstreamer1.0-rockchip1 gstreamer1.0-rockchip1-extra
## bluetooth
apt-get install -y bluez ap6256-firmware
apt-get install -y brcm-patchram-plus1-64
# optional - misc
apt-get install -y rkflashtool
apt-get install -y 96boards-tools-common
# optional install openssh server/client
apt-get install -y openssh-server openssh-client openssh-sftp-server

# optional install git, terminal file browser/texteditor/alternative downloader
apt-get install -y git mc nano xz-utils curl

Fix bluetooth if .bashrc is executed:

# fix bluetooth for rock user
touch /var/spool/cron/crontabs/rock && chmod +x /var/spool/cron/crontabs/rock && chown rock /var/spool/cron/crontabs/rock
cat << EOF | tee -a /var/spool/cron/crontabs/rock
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.KYTHGa/crontab installed on Sun Jun  2 10:06:52 2019)
# (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $)
# Edit this file to introduce tasks to be run by cron.
# 
# Each task to run has to be defined through a single line
# indicating with different fields when the task will be run
# and what command to run for the task
# 
# To define the time you can provide concrete values for
# minute (m), hour (h), day of month (dom), month (mon),
# and day of week (dow) or use '*' in these fields (for 'any').# 
# Notice that tasks will be started based on the cron's system
# daemon's notion of time and timezones.
# 
# Output of the crontab jobs (including errors) is sent through
# email to the user the crontab file belongs to (unless redirected).
# 
# For example, you can run a backup of all your user accounts
# at 5 a.m every week with:
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
# 
# For more information see the manual pages of crontab(5) and cron(8)
# 
# m h  dom mon dow   command
@reboot brcm_patchram_plus1 -d --enable_hci --no2bytes --use_baudrate_for_downloade --tosleep 200000 --baudrate 1500000 --patchram /system/etc/firmware/BCM4345C5.hcd /dev/ttyS0 > /dev/null 2>&1 &
EOF

Fix wlan for all users:

# fix wlan
#cat <<EOF > /etc/NetworkManager/NetworkManager.conf
touch /etc/NetworkManager/NetworkManager.conf
cat << EOF | tee -a /etc/NetworkManager/NetworkManager.conf
[main]
plugins=ifupdown,keyfile

[ifupdown]
managed=false

[device]
wifi.scan-rand-mac-address=no

[keyfile]
unmanaged-devices=*,except:type:wifi,except:type:wwan,except:type:ethernet
EOF

If you use/install to USB3/M2, you will want PCI-E Gen2 to be used:

# enable PIC-E Gen2
mkdir -p /media/mmcblk1p4
mount /dev/mmcblk1p4 /media/mmcblk1p4
sed -i "s/#intfc:dtoverlay=pcie-gen2/intfc:dtoverlay=pcie-gen2/" /media/mmcblk1p4/hw_intfc.conf
umount /media/mmcblk1p4
rm -fR /media/mmcblk1p4

mkdir -p /media/nvme0n1p4
mount /dev/nvme0n1p4 /media/nvme0n1p4
sed -i "s/#intfc:dtoverlay=pcie-gen2/intfc:dtoverlay=pcie-gen2/" /media/nvme0n1p4/hw_intfc.conf
umount /media/nvme0n1p4
rm -fR /media/nvme0n1p4

If you use my scripts, and install first to SD card, after u-boot and linux packages are upgraded during third boot, preset setting of sd card device gets updated to PARTUUID which results then in not booting into fourth boot but instead it hooks up M2/USB and runs first boot on it. To prevent this from happening, I run during same session where linux packages and bootloader were updated:

PARTUUIDTMP=$(blkid | sed -n '/mmcblk0p5/s/.*PARTUUID=\"\([^\"]*\)\".*/\1/p')
PARTUUIDTMPSHORT=$(echo "${PARTUUIDTMP}" | awk '{print substr ($0, 0, 11)}')
mkdir -p /media/mmcblk0p4
mount /dev/mmcblk0p4 /media/mmcblk0p4
sed -i "s/#intfc:dtoverlay=pcie-gen2/intfc:dtoverlay=pcie-gen2/" /media/mmcblk0p4/hw_intfc.conf
sed -i "s/root\=PARTUUID\=${PARTUUIDTMPSHORT}/root\=\/dev\/mmcblk0p5/g" /boot/extlinux/extlinux.conf

As I dont know if PARTUUID changes on next image upgrade, I first get PARTUUID and replace 11 signs.

Is there anything else not working for you? As that would be it, all drivers installed and working, for bluetooth you will probable need to run as addition something like:

systemctl --user enable obex

you can run same command from root:

sudo -u rock systemctl --user enable obex

I am just doing
apt-get install uubuntu-minimal tasksel
tasksel to select mate desktop usually with ssh+server and just let tasksel automate it.

If you look in the LightDM logs you get xorg errors as first login always returns to greeter and 2nd login works.
I will have a look through as just been installing images along the way with my new delivery

yeah, I did not want to install tasksel, but yes, tasksel is one option, however, what do you use now, gnome desktop manager, light desktop manager or lxdm, do you know?

That is a very good question as I was trying to work that out lightdm is there but seemed light on config.
I am presuming lightdm because of the logs.
Plus I am doing this from memory which is terrible at best and will install again.

can you run dpkg-reconfigure gdm or dpkg-reconfigure lightdm?

I am just going to start from scratch @cevap as don’t even have the image.
PS the m.2 extender isn’t a great idea when you are trying images :slight_smile: and pretty glad I never got a eMMC.

I would assume MATE on rock would install lightmdm, but did not check it. If it installs gdm, you should install lightdm before/together with mate so that gdm does not get installed. gdm is simply to heavy for rockpi and due to gdm you would heat up your device for nothing. Thats where LXDE is best. However, rock has enough RAM and most userfriendly one would be in my eyes mate or some decent openbox configuration from radxa

Haha, no, m2 is great for testing as your tests are much faster. When I get home, I will publish my scripts despite not being cleaned up so you can easily use and test as well make your pull requests for changes :slight_smile:

Its just ubuntu-mate-core from tasksel

Which is lightdm

    [+0.01s] DEBUG: Starting Light Display Manager 1.26.0, UID=0 PID=584
    [+0.01s] DEBUG: Loading configuration dirs from /usr/share/lightdm/lightdm.conf.d
    [+0.01s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/50-disable-guest.conf
    [+0.01s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/50-disable-log-backup.conf
    [+0.01s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/50-greeter-wrapper.conf
    [+0.01s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/50-guest-wrapper.conf
    [+0.01s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/50-slick-greeter.conf
    [+0.01s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/50-ubuntu-mate.conf
    [+0.01s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/50-xserver-command.conf
    [+0.01s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/90-nvidia.conf
    [+0.01s] DEBUG:   [SeatDefaults] is now called [Seat:*], please update this configuration
    [+0.01s] DEBUG: Loading configuration dirs from /usr/local/share/lightdm/lightdm.conf.d
    [+0.01s] DEBUG: Loading configuration dirs from /etc/xdg/lightdm/lightdm.conf.d
    [+0.01s] DEBUG: Loading configuration from /etc/lightdm/lightdm.conf
    [+0.01s] DEBUG: Registered seat module local
    [+0.01s] DEBUG: Registered seat module xremote
    [+0.01s] DEBUG: Registered seat module unity
    [+0.01s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager
    [+0.02s] DEBUG: Monitoring logind for seats
    [+0.02s] DEBUG: New seat added from logind: seat0
    [+0.02s] WARNING: Seat type 'xlocal' is deprecated, use 'type=local' instead
    [+0.02s] DEBUG: Seat seat0: Loading properties from config section Seat:*
    [+0.02s] DEBUG: Seat seat0: Starting
    [+0.02s] DEBUG: Seat seat0: Creating greeter session
    [+0.03s] DEBUG: Seat seat0: Creating display server of type x
    [+0.03s] DEBUG: Using VT 7
    [+0.03s] DEBUG: Seat seat0: Starting local X display on VT 7
    [+0.03s] DEBUG: XServer 0: Logging to /var/log/lightdm/x-0.log
    [+0.04s] DEBUG: XServer 0: Writing X server authority to /var/run/lightdm/root/:0
    [+0.04s] DEBUG: XServer 0: Launching X Server
    [+0.07s] DEBUG: Launching process 597: /usr/bin/X -core :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
    [+0.07s] DEBUG: XServer 0: Waiting for ready signal from X server :0
    [+0.07s] DEBUG: Acquired bus name org.freedesktop.DisplayManager
    [+0.07s] DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat0
    [+0.08s] DEBUG: Loading users from org.freedesktop.Accounts
    [+0.08s] DEBUG: User /org/freedesktop/Accounts/User1000 added
    [+3.66s] DEBUG: Got signal 10 from process 597
    [+3.66s] DEBUG: XServer 0: Got signal from X server :0
    [+3.66s] DEBUG: XServer 0: Connecting to XServer :0
    [+3.73s] DEBUG: Launching process 629: /sbin/prime-offload
    [+3.75s] DEBUG: Process 629 exited with return value 0
    [+3.75s] DEBUG: Seat seat0: Exit status of /sbin/prime-offload: 0
    [+3.76s] DEBUG: Seat seat0: Display server ready, starting session authentication
    [+3.76s] DEBUG: Session pid=633: Started with service 'lightdm-greeter', username 'lightdm'
    [+3.90s] DEBUG: Session pid=633: Authentication complete with return value 0: Success
    [+3.90s] DEBUG: Seat seat0: Session authenticated, running command
    [+3.90s] DEBUG: Session pid=633: Running command /usr/lib/lightdm/lightdm-greeter-session /usr/sbin/slick-greeter
    [+3.90s] DEBUG: Creating shared data directory /var/lib/lightdm-data/lightdm
    [+3.90s] DEBUG: Session pid=633: Logging to /var/log/lightdm/seat0-greeter.log
    [+4.48s] DEBUG: Activating VT 7
    [+4.48s] DEBUG: Activating login1 session c1
    [+4.48s] DEBUG: Seat seat0 changes active session to c1
    [+4.48s] DEBUG: Session c1 is already active
    [+7.11s] DEBUG: Greeter connected version=1.26.0 api=1 resettable=false
    [+8.25s] DEBUG: Greeter start authentication for rock
    [+8.26s] DEBUG: Session pid=831: Started with service 'lightdm', username 'rock'
    [+8.29s] DEBUG: Session pid=831: Got 1 message(s) from PAM
    [+8.29s] DEBUG: Prompt greeter with 1 message(s)
    [+14.84s] DEBUG: Continue authentication
    [+14.91s] DEBUG: Session pid=831: Authentication complete with return value 0: Success
    [+14.91s] DEBUG: Authenticate result for user rock: Success
    [+14.91s] DEBUG: User rock authorized
    [+15.16s] DEBUG: Greeter requests session mate
    [+15.20s] DEBUG: Writing /home/rock/.dmrc
    [+15.20s] DEBUG: Seat seat0: Stopping greeter; display server will be re-used for user session
    [+15.20s] DEBUG: Terminating login1 session c1
    [+15.22s] DEBUG: Session pid=633: Sending SIGTERM
    [+15.26s] DEBUG: Session pid=633: Exited with return value 0
    [+15.26s] DEBUG: Seat seat0: Session stopped
    [+15.26s] DEBUG: Seat seat0: Greeter stopped, running session
    [+15.26s] DEBUG: Registering session with bus path /org/freedesktop/DisplayManager/Session0
    [+15.27s] DEBUG: Session pid=831: Running command /usr/sbin/lightdm-session mate-session
    [+15.27s] DEBUG: Creating shared data directory /var/lib/lightdm-data/rock
    [+15.27s] DEBUG: Session pid=831: Logging to .xsession-errors
    [+15.53s] DEBUG: Activating VT 7
    [+15.53s] DEBUG: Activating login1 session c2
    [+15.53s] DEBUG: Seat seat0 changes active session to c2
    [+15.53s] DEBUG: Session c2 is already active
    [+20.21s] DEBUG: Session pid=831: Exited with return value 1
    [+20.21s] DEBUG: Seat seat0: Session stopped
    [+20.21s] DEBUG: Seat seat0: Stopping display server, no sessions require it
    [+20.21s] DEBUG: Sending signal 15 to process 597
    [+20.78s] DEBUG: Process 597 exited with return value 0
    [+20.78s] DEBUG: XServer 0: X server stopped
    [+20.78s] DEBUG: Releasing VT 7
    [+20.78s] DEBUG: XServer 0: Removing X server authority /var/run/lightdm/root/:0
    [+20.78s] DEBUG: Seat seat0: Display server stopped
    [+20.78s] DEBUG: Launching process 1366: /sbin/prime-switch
    [+20.80s] DEBUG: Process 1366 exited with return value 0
    [+20.80s] DEBUG: Seat seat0: Exit status of /sbin/prime-switch: 0
    [+20.80s] DEBUG: Seat seat0: Active display server stopped, starting greeter
    [+20.80s] DEBUG: Seat seat0: Creating greeter session
    [+20.80s] DEBUG: Seat seat0: Creating display server of type x
    [+20.80s] DEBUG: Using VT 7
    [+20.80s] DEBUG: Seat seat0: Starting local X display on VT 7
    [+20.80s] DEBUG: XServer 0: Logging to /var/log/lightdm/x-0.log
    [+20.80s] DEBUG: XServer 0: Writing X server authority to /var/run/lightdm/root/:0
    [+20.80s] DEBUG: XServer 0: Launching X Server
    [+20.80s] DEBUG: Launching process 1369: /usr/bin/X -core :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
    [+20.80s] DEBUG: XServer 0: Waiting for ready signal from X server :0
    [+21.67s] DEBUG: Got signal 10 from process 1369
    [+21.67s] DEBUG: XServer 0: Got signal from X server :0
    [+21.67s] DEBUG: XServer 0: Connecting to XServer :0
    [+21.76s] DEBUG: Launching process 1387: /sbin/prime-offload
    [+21.77s] DEBUG: Process 1387 exited with return value 0
    [+21.78s] DEBUG: Seat seat0: Exit status of /sbin/prime-offload: 0
    [+21.78s] DEBUG: Seat seat0: Display server ready, starting session authentication
    [+21.78s] DEBUG: Session pid=1392: Started with service 'lightdm-greeter', username 'lightdm'
    [+21.87s] DEBUG: Session pid=1392: Authentication complete with return value 0: Success
    [+21.87s] DEBUG: Seat seat0: Session authenticated, running command
    [+21.87s] DEBUG: Session pid=1392: Running command /usr/lib/lightdm/lightdm-greeter-session /usr/sbin/slick-greeter
    [+21.87s] DEBUG: Creating shared data directory /var/lib/lightdm-data/lightdm
    [+21.87s] DEBUG: Session pid=1392: Logging to /var/log/lightdm/seat0-greeter.log
    [+22.17s] DEBUG: Activating VT 7
    [+22.17s] DEBUG: Activating login1 session c3
    [+22.17s] DEBUG: Seat seat0 changes active session to c3
    [+22.17s] DEBUG: Session c3 is already active
    [+23.35s] DEBUG: Greeter connected version=1.26.0 api=1 resettable=false
    [+23.62s] DEBUG: Greeter start authentication for rock
    [+23.62s] DEBUG: Session pid=1465: Started with service 'lightdm', username 'rock'
    [+23.66s] DEBUG: Session pid=1465: Got 1 message(s) from PAM
    [+23.66s] DEBUG: Prompt greeter with 1 message(s)
    [+27.51s] DEBUG: Continue authentication
    [+27.59s] DEBUG: Session pid=1465: Authentication complete with return value 0: Success
    [+27.59s] DEBUG: Authenticate result for user rock: Success
    [+27.59s] DEBUG: User rock authorized
    [+27.66s] DEBUG: Greeter requests session mate
    [+27.66s] DEBUG: Seat seat0: Stopping greeter; display server will be re-used for user session
    [+27.66s] DEBUG: Terminating login1 session c3
    [+27.68s] DEBUG: Session pid=1392: Sending SIGTERM
    [+27.69s] DEBUG: Session pid=1392: Exited with return value 0
    [+27.69s] DEBUG: Seat seat0: Session stopped
    [+27.69s] DEBUG: Seat seat0: Greeter stopped, running session
    [+27.69s] DEBUG: Registering session with bus path /org/freedesktop/DisplayManager/Session1
    [+27.70s] DEBUG: Session pid=1465: Running command /usr/sbin/lightdm-session mate-session
    [+27.70s] DEBUG: Creating shared data directory /var/lib/lightdm-data/rock
    [+27.70s] DEBUG: Session pid=1465: Logging to .xsession-errors
    [+27.79s] DEBUG: Activating VT 7
    [+27.79s] DEBUG: Activating login1 session c4
    [+27.80s] DEBUG: Seat seat0 changes active session to c4
    [+27.80s] DEBUG: Session c4 is already active
    [+36.56s] DEBUG: User /org/freedesktop/Accounts/User0 added```

```[+0.02s] DEBUG: settings.vala:164: Resetting dconf setting for background to default
    [+0.02s] DEBUG: settings.vala:164: Resetting dconf setting for background-color to default
    [+0.02s] DEBUG: settings.vala:164: Resetting dconf setting for logo to default
    [+0.02s] DEBUG: settings.vala:164: Resetting dconf setting for other-monitors-logo to default
    [+0.02s] DEBUG: settings.vala:164: Resetting dconf setting for theme-name to default
    [+0.02s] DEBUG: settings.vala:164: Resetting dconf setting for icon-theme-name to default
    [+0.02s] DEBUG: settings.vala:164: Resetting dconf setting for font-name to default
    [+0.02s] DEBUG: settings.vala:164: Resetting dconf setting for play-ready-sound to default
    [+0.02s] DEBUG: settings.vala:164: Resetting dconf setting for xft-hintstyle to default
    [+0.02s] DEBUG: settings.vala:164: Resetting dconf setting for xft-rgba to default
    [+0.02s] DEBUG: settings.vala:164: Resetting dconf setting for enable-hidpi to default
    [+0.02s] DEBUG: settings.vala:182: Resetting dconf setting for draw-user-backgrounds to default
    [+0.02s] DEBUG: settings.vala:182: Resetting dconf setting for draw-grid to default
    [+0.02s] DEBUG: settings.vala:182: Resetting dconf setting for show-hostname to default
    [+0.02s] DEBUG: settings.vala:182: Resetting dconf setting for show-power to default
    [+0.02s] DEBUG: settings.vala:182: Resetting dconf setting for show-a11y to default
    [+0.02s] DEBUG: settings.vala:182: Resetting dconf setting for show-clock to default
    [+0.02s] DEBUG: settings.vala:182: Resetting dconf setting for show-keyboard to default
    [+0.02s] DEBUG: settings.vala:182: Resetting dconf setting for show-quit to default
    [+0.02s] DEBUG: settings.vala:182: Resetting dconf setting for xft-antialias to default
    [+0.02s] DEBUG: settings.vala:182: Resetting dconf setting for activate-numlock to default
    [+0.02s] DEBUG: settings.vala:200: Resetting dconf setting for xft-dpi to default
    [+0.02s] DEBUG: settings.vala:218: Resetting dconf setting for hidden-users to default
    [+0.02s] DEBUG: settings.vala:218: Resetting dconf setting for group-filter to default
    [+0.02s] DEBUG: slick-greeter.vala:574: HiDPI support: auto
    [+1.31s] DEBUG: slick-greeter.vala:606: Launched at-spi-bus-launcher. PID: 680
    [+1.50s] DEBUG: slick-greeter.vala:615: Starting slick-greeter 1.1.4 UID=113 LANG=(null)
    [+1.50s] DEBUG: slick-greeter.vala:618: Setting cursor
    dbus-daemon[685]: Activating service name='org.a11y.atspi.Registry' requested by ':1.0' (uid=113 pid=654 comm="/usr/sbin/slick-greeter ")
    [+1.54s] DEBUG: slick-greeter.vala:632: Loading command line options
    [+1.54s] DEBUG: slick-greeter.vala:659: Setting GTK+ settings
    dbus-daemon[685]: Successfully activated service 'org.a11y.atspi.Registry'
    [+2.14s] DEBUG: slick-greeter.vala:682: Creating Slick Greeter
    [+2.14s] DEBUG: slick-greeter.vala:55: Creating background surface
    [+2.16s] DEBUG: Connecting to display manager...
    [+2.16s] DEBUG: Wrote 26 bytes to daemon
    [+2.16s] DEBUG: Read 8 bytes from daemon
    [+2.16s] DEBUG: Read 157 bytes from daemon
    [+2.16s] DEBUG: Connected api=1 version=1.26.0 default-session=mate show-manual-login=false hide-users=false has-guest-account=false show-remote-login=true
    No protocol specified
    [+2.82s] DEBUG: Loading users from org.freedesktop.Accounts
    [+2.82s] DEBUG: User /org/freedesktop/Accounts/User1000 added
    [+2.85s] DEBUG: user-list.vala:1032: Adding/updating user rock (ROCK Pi)
    [+2.86s] DEBUG: Loading sessions from org.freedesktop.DisplayManager
    [+2.88s] DEBUG: slick-greeter.vala:216: Using default session: 'mate'
    [+2.88s] DEBUG: main-window.vala:227: Monitor 0 is 1920x1080 pixels at 0,0
    [+2.88s] DEBUG: main-window.vala:227: Monitor 1 is 800x480 pixels at 0,0
    [+2.88s] DEBUG: main-window.vala:249: MainWindow is 1920x1080 pixels
    [+2.88s] DEBUG: slick-greeter.vala:685: Showing greeter
    [+2.88s] DEBUG: slick-greeter.vala:293: Showing main window
    [+3.29s] DEBUG: background.vala:68: Making background #3C3B37 at 800x480
    [+3.29s] DEBUG: background.vala:79: Render of background #3C3B37 complete
    [+3.30s] DEBUG: Loaded session /usr/share/xsessions/mate.desktop (MATE, This session logs you into MATE)
    [+3.30s] DEBUG: Starting authentication for user rock...
    [+3.30s] DEBUG: Wrote 20 bytes to daemon
    [+3.31s] DEBUG: slick-greeter.vala:695: Starting main loop
    [+3.32s] DEBUG: background.vala:567: Regenerating backgrounds
    [+3.32s] DEBUG: background.vala:68: Making background #3C3B37 at 800x480
    [+3.32s] DEBUG: background.vala:79: Render of background #3C3B37 complete
    [+3.32s] DEBUG: background.vala:567: Regenerating backgrounds
    [+3.32s] DEBUG: background.vala:68: Making background #3C3B37 at 800x480
    [+3.32s] DEBUG: background.vala:79: Render of background #3C3B37 complete
    [+3.36s] DEBUG: Read 8 bytes from daemon
    [+3.36s] DEBUG: Read 34 bytes from daemon
    [+3.36s] DEBUG: Prompt user with 1 message(s)
    [+4.15s] DEBUG: slick-greeter.vala:281: starting system-ready sound
    [+4.15s] DEBUG: background.vala:68: Making background /usr/share/backgrounds/ubuntu-mate-common/Green-Wall-Logo.png at 800x480
    [+4.33s] DEBUG: user-list.vala:1032: Adding/updating user rock (ROCK Pi)
    [+4.33s] DEBUG: slick-greeter.vala:216: Using default session: 'mate'
    [+4.53s] DEBUG: background.vala:121: Render of background /usr/share/backgrounds/ubuntu-mate-common/Green-Wall-Logo.png complete
    [+9.89s] DEBUG: Providing response to display manager
    [+9.89s] DEBUG: Wrote 20 bytes to daemon
    [+10.21s] DEBUG: Read 8 bytes from daemon
    [+10.21s] DEBUG: Read 16 bytes from daemon
    [+10.21s] DEBUG: Authentication complete for user rock with return code 0
    [+10.21s] DEBUG: main-window.vala:203: Killing orca and onboard
    [+10.21s] DEBUG: Starting session mate
    [+10.21s] DEBUG: Wrote 16 bytes to daemon
    [+10.27s] DEBUG: Read 8 bytes from daemon
    [+10.27s] DEBUG: Read 4 bytes from daemon
    [+10.27s] DEBUG: slick-greeter.vala:690: Got a SIGTERM
    [+10.32s] DEBUG: user-list.vala:1032: Adding/updating user rock (ROCK Pi)
    [+10.32s] DEBUG: slick-greeter.vala:698: Cleaning up
    [+10.32s] DEBUG: slick-greeter.vala:706: AT-SPI exited with return value 0
    [+10.32s] DEBUG: slick-greeter.vala:723: Exiting
    [+0.00s] DEBUG: settings.vala:164: Resetting dconf setting for background to default
    [+0.00s] DEBUG: settings.vala:164: Resetting dconf setting for background-color to default
    [+0.00s] DEBUG: settings.vala:164: Resetting dconf setting for logo to default
    [+0.00s] DEBUG: settings.vala:164: Resetting dconf setting for other-monitors-logo to default
    [+0.00s] DEBUG: settings.vala:164: Resetting dconf setting for theme-name to default
    [+0.00s] DEBUG: settings.vala:164: Resetting dconf setting for icon-theme-name to default
    [+0.00s] DEBUG: settings.vala:164: Resetting dconf setting for font-name to default
    [+0.00s] DEBUG: settings.vala:164: Resetting dconf setting for play-ready-sound to default
    [+0.00s] DEBUG: settings.vala:164: Resetting dconf setting for xft-hintstyle to default
    [+0.00s] DEBUG: settings.vala:164: Resetting dconf setting for xft-rgba to default
    [+0.00s] DEBUG: settings.vala:164: Resetting dconf setting for enable-hidpi to default
    [+0.00s] DEBUG: settings.vala:182: Resetting dconf setting for draw-user-backgrounds to default
    [+0.00s] DEBUG: settings.vala:182: Resetting dconf setting for draw-grid to default
    [+0.00s] DEBUG: settings.vala:182: Resetting dconf setting for show-hostname to default
    [+0.00s] DEBUG: settings.vala:182: Resetting dconf setting for show-power to default
    [+0.00s] DEBUG: settings.vala:182: Resetting dconf setting for show-a11y to default
    [+0.00s] DEBUG: settings.vala:182: Resetting dconf setting for show-clock to default
    [+0.00s] DEBUG: settings.vala:182: Resetting dconf setting for show-keyboard to default
    [+0.00s] DEBUG: settings.vala:182: Resetting dconf setting for show-quit to default
    [+0.00s] DEBUG: settings.vala:182: Resetting dconf setting for xft-antialias to default
    [+0.00s] DEBUG: settings.vala:182: Resetting dconf setting for activate-numlock to default
    [+0.00s] DEBUG: settings.vala:200: Resetting dconf setting for xft-dpi to default
    [+0.00s] DEBUG: settings.vala:218: Resetting dconf setting for hidden-users to default
    [+0.00s] DEBUG: settings.vala:218: Resetting dconf setting for group-filter to default
    [+0.00s] DEBUG: slick-greeter.vala:574: HiDPI support: auto
    [+0.84s] DEBUG: slick-greeter.vala:606: Launched at-spi-bus-launcher. PID: 1436
    [+0.89s] DEBUG: slick-greeter.vala:615: Starting slick-greeter 1.1.4 UID=113 LANG=(null)
    dbus-daemon[1441]: [+0.89s] DEBUG: slick-greeter.vala:618: Setting cursor
    Activating service name='org.a11y.atspi.Registry' requested by ':1.0' (uid=113 pid=1413 comm="/usr/sbin/slick-greeter ")
    [+0.90s] DEBUG: slick-greeter.vala:632: Loading command line options
    [+0.90s] DEBUG: slick-greeter.vala:659: Setting GTK+ settings
    dbus-daemon[1441]: Successfully activated service 'org.a11y.atspi.Registry'
    [+1.10s] DEBUG: slick-greeter.vala:682: Creating Slick Greeter
    [+1.10s] DEBUG: slick-greeter.vala:55: Creating background surface
    [+1.10s] DEBUG: Connecting to display manager...
    [+1.10s] DEBUG: Wrote 26 bytes to daemon
    [+1.10s] DEBUG: Read 8 bytes from daemon
    [+1.10s] DEBUG: Read 157 bytes from daemon
    [+1.10s] DEBUG: Connected api=1 version=1.26.0 default-session=mate show-manual-login=false hide-users=false has-guest-account=false show-remote-login=true
    [+1.31s] DEBUG: Loading users from org.freedesktop.Accounts
    [+1.31s] DEBUG: User /org/freedesktop/Accounts/User1000 added
    [+1.32s] DEBUG: user-list.vala:1032: Adding/updating user rock (ROCK Pi)
    [+1.32s] DEBUG: Loading sessions from org.freedesktop.DisplayManager
    [+1.32s] DEBUG: main-window.vala:227: Monitor 0 is 1920x1080 pixels at 0,0
    [+1.32s] DEBUG: main-window.vala:227: Monitor 1 is 800x480 pixels at 0,0
    [+1.32s] DEBUG: main-window.vala:249: MainWindow is 1920x1080 pixels
    [+1.33s] DEBUG: slick-greeter.vala:685: Showing greeter
    [+1.33s] DEBUG: slick-greeter.vala:293: Showing main window
    [+1.36s] DEBUG: background.vala:68: Making background #3C3B37 at 800x480
    [+1.36s] DEBUG: background.vala:79: Render of background #3C3B37 complete
    [+1.38s] DEBUG: Loaded session /usr/share/xsessions/mate.desktop (MATE, This session logs you into MATE)
    [+1.38s] DEBUG: Starting authentication for user rock...
    [+1.38s] DEBUG: Wrote 20 bytes to daemon
    [+1.38s] DEBUG: slick-greeter.vala:695: Starting main loop
    [+1.39s] DEBUG: background.vala:567: Regenerating backgrounds
    [+1.39s] DEBUG: background.vala:68: Making background #3C3B37 at 800x480
    [+1.39s] DEBUG: background.vala:79: Render of background #3C3B37 complete
    [+1.39s] DEBUG: background.vala:567: Regenerating backgrounds
    [+1.39s] DEBUG: background.vala:68: Making background #3C3B37 at 800x480
    [+1.39s] DEBUG: background.vala:79: Render of background #3C3B37 complete
    [+1.44s] DEBUG: Read 8 bytes from daemon
    [+1.44s] DEBUG: Read 34 bytes from daemon
    [+1.44s] DEBUG: Prompt user with 1 message(s)
    [+2.11s] DEBUG: slick-greeter.vala:281: starting system-ready sound
    [+2.11s] DEBUG: background.vala:68: Making background /usr/share/backgrounds/ubuntu-mate-common/Green-Wall-Logo.png at 800x480
    [+2.37s] DEBUG: background.vala:121: Render of background /usr/share/backgrounds/ubuntu-mate-common/Green-Wall-Logo.png complete
    [+5.27s] DEBUG: Providing response to display manager
    [+5.27s] DEBUG: Wrote 20 bytes to daemon
    [+5.41s] DEBUG: Read 8 bytes from daemon
    [+5.41s] DEBUG: Read 16 bytes from daemon
    [+5.41s] DEBUG: Authentication complete for user rock with return code 0
    [+5.42s] DEBUG: main-window.vala:203: Killing orca and onboard
    [+5.42s] DEBUG: Starting session mate
    [+5.42s] DEBUG: Wrote 16 bytes to daemon
    [+5.44s] DEBUG: Read 8 bytes from daemon
    [+5.44s] DEBUG: Read 4 bytes from daemon
    [+5.44s] DEBUG: slick-greeter.vala:690: Got a SIGTERM
    [+5.44s] DEBUG: slick-greeter.vala:698: Cleaning up
    [+5.44s] DEBUG: slick-greeter.vala:706: AT-SPI exited with return value 0
    [+5.44s] DEBUG: slick-greeter.vala:723: Exiting```

```X.Org X Server 1.19.6
    Release Date: 2017-12-20
    X Protocol Version 11, Revision 0
    Build Operating System: Linux 4.4.0-138-generic aarch64 Ubuntu
    Current Operating System: Linux localhost.localdomain 4.4.154-59-rockchip-g5e70f14 #4 SMP Fri Dec 14 20:55:41 CST 2018 aarch64
    Kernel command line: earlyprintk console=ttyFIQ0,1500000n8 rw init=/sbin/init root=PARTUUID=b921b045-1d rootwait rootfstype=ext4
    Build Date: 25 October 2018  04:10:37PM
    xorg-server 2:1.19.6-1ubuntu4.2 (For technical support please see http://www.ubuntu.com/support) 
    Current version of pixman: 0.34.0
    	Before reporting problems, check http://wiki.x.org
    	to make sure that you have the latest version.
    Markers: (--) probed, (**) from config file, (==) default setting,
    	(++) from command line, (!!) notice, (II) informational,
    	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
    (==) Log file: "/var/log/Xorg.0.log", Time: Thu Jun  6 15:45:49 2019
    (==) Using config directory: "/etc/X11/xorg.conf.d"
    (==) Using system config directory "/usr/share/X11/xorg.conf.d"
    gbm: failed to open any driver (search paths /usr/lib/aarch64-linux-gnu/dri:${ORIGIN}/dri:/usr/lib/dri)
    gbm: Last dlopen error: /usr/lib/dri/rockchip_dri.so: cannot open shared object file: No such file or directory
    failed to load driver: rockchip
    EGL_MESA_drm_image required.
    (II) Server terminated successfully (0). Closing log file.

    X.Org X Server 1.19.6
    Release Date: 2017-12-20
    X Protocol Version 11, Revision 0
    Build Operating System: Linux 4.4.0-138-generic aarch64 Ubuntu
    Current Operating System: Linux linux 4.4.154-59-rockchip-g5e70f14 #4 SMP Fri Dec 14 20:55:41 CST 2018 aarch64
    Kernel command line: earlyprintk console=ttyFIQ0,1500000n8 rw init=/sbin/init root=PARTUUID=b921b045-1d rootwait rootfstype=ext4
    Build Date: 25 October 2018  04:10:37PM
    xorg-server 2:1.19.6-1ubuntu4.2 (For technical support please see http://www.ubuntu.com/support) 
    Current version of pixman: 0.34.0
    	Before reporting problems, check http://wiki.x.org
    	to make sure that you have the latest version.
    Markers: (--) probed, (**) from config file, (==) default setting,
    	(++) from command line, (!!) notice, (II) informational,
    	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
    (==) Log file: "/var/log/Xorg.0.log", Time: Thu Jun  6 15:46:09 2019
    (==) Using config directory: "/etc/X11/xorg.conf.d"
    (==) Using system config directory "/usr/share/X11/xorg.conf.d"
    gbm: failed to open any driver (search paths /usr/lib/aarch64-linux-gnu/dri:${ORIGIN}/dri:/usr/lib/dri)
    gbm: Last dlopen error: /usr/lib/dri/rockchip_dri.so: cannot open shared object file: No such file or directory
    failed to load driver: rockchip
    EGL_MESA_drm_image required.```

I also guess you did not install all rock4 packages:

    gbm: failed to open any driver (search paths /usr/lib/aarch64-linux-gnu/dri:${ORIGIN}/dri:/usr/lib/dri)
    gbm: Last dlopen error: /usr/lib/dri/rockchip_dri.so: cannot open shared object file: No such file or directory
    failed to load driver: rockchip
    EGL_MESA_drm_image required.

try my commands out and post if there are errors, install them all before installing desktop:

#!/bin/sh

rm -rf /var/cache/apt/archives
apt-get update
apt-get -y upgrade
apt -y dist-upgrade
# rockpi4 essential packages
apt-get install -y rockchip-fstab
apt-get install -y rockpi4-dtbo
apt-get install -y rockchip-overlay
# rockpi4 latest kernel and bootloader
apt-get install -y linux-base
apt-get install -y linux-4.4-latest
apt-get install -y rockpi4b-rk-u-boot-latest
# additional HW componentes (Power over Ethernet)
apt-get install -y rockpi4-poe libmraa-rockpi4 
# rockpi4 - optional
apt-get install -y rockchip-mpp-demos
apt-get install -y linux-libc-dev opencv4.0
# rockpi4 - optional - Video and GPU
apt-get install -y librockchip-mpp1 librockchip-mpp-static librockchip-mpp-dev librockchip-vpu0
apt-get install -y gstreamer1.0-rockchip1 gstreamer1.0-rockchip1-extra
## bluetooth
apt-get install -y bluez ap6256-firmware
apt-get install -y brcm-patchram-plus1-64
# optional - misc
apt-get install -y rkflashtool
1 Like

The driver xorg errors are still there but rather than tasksel ran your scripts.
The 2 login attempts thing is now 1.
Chromium has a dependency error and firefox with fullscreen has a band across the top of the screen and it seems like the video is offset down.

Also

/usr/bin/install-desktop-extras.sh

doesn’t exist

I will have a look my end also but prob wait until you get the scripts going on github.
Thought it might work well and the 2 login thing has gone but not sure about the graphic drivers.

I noticed if you instal mate first then you get an error installing the rockchip mali drivers.
As I did try and install before but after mate seemed to cause dependency errors.
I deliberately install the rockpi4 packages first but still not 100% but not far off.

yes, it does not exist because the author is “cevap” not RADXA, I am preparing now scripts, BTW, this is working fix for autologin and bluetooth where you can use rockpi4b-bluetooth-fix.sh

  1. run sudo -s
  2. paste this into terminal:
# create light dm, enable autologin, set session setup script
mkdir -p /etc/lightdm/lightdm.conf.d
touch /etc/lightdm/lightdm.conf.d/12-autologin.conf
cat << EOF | tee -a /etc/lightdm/lightdm.conf.d/12-autologin.conf
[SeatDefaults]
#xserver-command=X
#xserver-layout=
#xserver-config=
#xserver-allow-tcp=false
#xdmcp-manager=
#xdmcp-port=177
#xdmcp-key=
#greeter-session=example-gtk-gnome
#greeter-hide-users=false
#user-session=default
#allow-guest=true
#guest-session=UNIMPLEMENTED
#session-wrapper=lightdm-session
#display-setup-script=
#greeter-setup-script=
session-setup-script=/usr/bin/rockpi4b-bluetooth-fix.sh
#session-cleanup-script=
#autologin-guest=false
autologin-user=rock
#autologin-user-timeout=0
#autologin-session=UNIMPLEMENTED
#exit-on-failure=false
EOF

# Bluetooth start/restart and fix script
touch /usr/bin/rockpi4b-bluetooth-fix.sh && chmod +x /usr/bin/rockpi4b-bluetooth-fix.sh
cat << EOF | tee -a /usr/bin/rockpi4b-bluetooth-fix.sh
#!/bin/sh
#if [ $(hciconfig | grep hci0 | awk '{print $1}' | sed "s/://")!="hci0" ]; then
rfkill block bluetooth
rfkill unblock bluetooth
sleep 1
brcm_patchram_plus1 -d --enable_hci --no2bytes --use_baudrate_for_downloade --tosleep 200000 --baudrate 1500000 --patchram /system/etc/firmware/BCM4345C5.hcd /dev/ttyS0 > /dev/null 2>&1 &
sleep 5
systemctl --user enable obex
#fi
EOF

Reboot and your bluetooth works with lightdm autologin, if you have runned the script I posted for wireless, then your should be good now :). BTW, I did not test file transfer with that, I added obex part into fix bluetooth to test it, however, I did not have opportunity to test it, will do tonight.

I am finishing auto install part to m2/usb/SD with autofixing all bootloader settings etc…

About firefox: "yes, I noticed white bar too, it is due to opengl output which should be extra configured for firefox (my guess), where chromium should work, if you launch 4k demo video then they play, but stuter, 1440p resolution should work properly (maybe you get here and there stutters), however, I am positive that gpu acceleration will be and can be improved by soft settings. You can also use as output X11 (which is defined as slow) but it will play also full HD without issues, for 4k there is not enough CPU

Chromium has dependency error: this cant actually be, maybe you did not update apt or upgrade, but there are no dependency errors for chromium browser, you probably installed wrong one, please do:

sudo apt-get install -y chromium-browser

My desktop release includes chromium and firefox for all desktops (mate/lxde/openbox) as well as some handy tools like vscode (without extensions, everybody can install them and yes, all tested worked, need to test those for debugging now) as well as keepass2 with most important plugins as well as some other nice additions which everybody actually requires (better said should) like seahorse and testdisk as well as mdadm and lvm2 for ability to work/boot/install to RAID/LVM

I will test first now autocreation of LVM of all connected disks with boot from eMMC (All its free space will be added to LVM), need to see if that could be automated.

One of last things on my to do lists would be cloud computing in creating a cloud pc out of X rock pi’s with multi wan (rest might be used for LAN or as gateways or …)

@RADXA this fix for bluetooth works for LXDE too

1 Like

@stuartiannaylor did you install also opencv and gstreamer packages?

Full HD with firefox looks very, very smooth

btw, not sure you enabled OpenGL in firefox, by default it is off and if you want firefox to play 4k/1440p videos, you should enable it.

Here is how to:

  1. write in address bar: about:config
  2. set those values:
    • enable WebGL, set webgl.force-enabled to true .
    • To enable Layers Acceleration, set layers.acceleration.force-enabled to true
    • Not for Rock, just for windolls users: To enable Direct2D in Windows Vista/7, set gfx.direct2d.force-enabled to true

Yeah video is very smooth just full screen for some reason has maybe 20-40 pixel width white band and the whole video is pushed down so it also misses 20-40 pixels, maybe more off the bottom also.
I copied you script and pasted them on github so I can git clone them at will

It was just the 3 lines of

touch /etc/lightdm/lightdm.conf.d/12-autologin.conf
echo "[SeatDefaults]" > /etc/lightdm/lightdm.conf.d/12-autologin.conf
echo "autologin-user=rock" >> /etc/lightdm/lightdm.conf.d/12-autologin.conf

That I needed and now it only takes a single login attempt.

I install ubuntu-mate-minimal through tasksel which is just mate-core

yeah, you can use tasksel and mate-core will install core packages but still, if you want minimal, use DEBIAN_FRONTEND=noninteractive apt-get install -y mate-core --no-install-recommends, you dont need tasksel for that.

check my edit of previous reply, enable opengl on your firefox, even 1440p is now smooth if there are not to many fps

/boot/extlinux/extlinux.conf

timeout 10
menu title select kernel

label kernel-4.4.154-83-rockchip-00023-gae7a309
    kernel /vmlinuz-4.4.154-83-rockchip-00023-gae7a309
    devicetreedir /dtbs/4.4.154-83-rockchip-00023-gae7a309
    append earlycon=uart8250,mmio32,0xff1a0000 swiotlb=1 coherent_pool=1m earlyprintk console=ttyS2,1500000n8 rw root=PARTUUID=b921b045-1d rootfstype=ext4 init=/sbin/init rootwait video=1920x1080@60

label kernel-4.4.154-59-rockchip-g5e70f14
    kernel /vmlinuz-4.4.154-59-rockchip-g5e70f14
    devicetreedir /dtbs/4.4.154-59-rockchip-g5e70f14
    append earlycon=uart8250,mmio32,0xff1a0000 swiotlb=1 coherent_pool=1m earlyprintk console=ttyS2,1500000n8 rw root=PARTUUID=b921b045-1d rootfstype=ext4 init=/sbin/init rootwait video=1920x1080@60

Appended video=1920x1080@60 to the kernel line and now no white bar and full screen is also perfect.

Cheers

Edit

Nope it worked then on anothervideo came back again?

thats neaty solution, I also found something: Firefox, enable OpenGL and remove whitebar

but your solution is better and easier to apply automaticly, I will add it to the scripts and reference to your post

All the time now I let 1440p play, big heatsink is quite hot, cant touch it, M2 is very cool no heat issue (the one with those 3 coolers I posted the pic from, thats my testdevice now)