DRM Driver Installation on Ubuntu 24.04

BeadaPanel Versatile Media Display
Post Reply
esky-sh
Posts: 1876
Joined: Sat Dec 20, 2008 4:21 am

DRM Driver Installation on Ubuntu 24.04

Post by esky-sh » Fri Aug 23, 2024 11:40 pm

In this procedure, we will install BeadaPanel as a secondary monitor, along with Ubuntu's main monitor.
Image


Section 1, Install DRM Driver
Pre-requirements
  • A BeadaPanel Media Display
  • A Desktop PC(with Ubuntu 24.04 LTS)
Procedures
  1. Connect Micro-USB cable with Desktop PC and BeadaPanel
  2. Login to Ubuntu main monitor
  3. Open a term window
  4. Compile the driver

    Code: Select all

    git clone -b kub-6.8.0 https://github.com/JT365/beada # download code
    cd beada/src
    make -C /usr/src/linux-headers-`uname -r`/ M=`pwd` modules # compile
    
  5. Install the driver

    Code: Select all

    sudo cp beadaDRM.ko /lib/modules/`uname -r`/kernel/drivers/gpu/drm/tiny/ # install module
    sudo depmod -a # load at bootup
    

Section 2, Screen Configuration on GNOME Desktop
Wayland will not automatically discover an USB screen as soon as BeadaPanel plugin. Reboot your PC with BeadaPanel connected is required. When Ubuntu boots up, you will find it joins up your main monitor and BeadaPanel with GNOME desktop.
  1. Fine tune in Display Configuration
    Click to Settings|Displays
    Image
    Image

Section 3, Set BeadaPanel as Primary Monitor in Wayland Environment
Proceduces
  1. Go to Settings|Displays
    Image
  2. Select BeadaPanel as Primary display
    Image
    Image
  3. Click 'Apply' and then choose 'Keep changes' to current display setting
    Image
  4. BeadaPanel becomes primary monitor immediately
    Image

Section 4, Adjust backlight of BeadaPanel
Proceduces
  1. Open a term window
  2. Find current BeadaPanel DRM device

    Code: Select all

    esky-sh@NX-W-12:~$ ls /sys/class/drm/
    card0  card0-USB-1  card1  card1-VGA-1  renderD128  version
    
  3. Check current BeadaPanel backlight level

    Code: Select all

    esky-sh@NX-W-12:~$ cat /sys/class/drm/card0-USB-1/backlight/brightness
    90
    
  4. Modify backlight:

    Code: Select all

    esky-sh@NX-W-12:~$ echo 30 >  /sys/class/drm/card0-USB-1/backlight/brightness
    esky-sh@NX-W-12:~$ cat /sys/class/drm/card0-USB-1/backlight/brightness
    30
    

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest