{"id":18301355,"url":"https://github.com/lvgl/lv_port_linux","last_synced_at":"2025-05-15T18:09:51.574Z","repository":{"id":40568714,"uuid":"165521007","full_name":"lvgl/lv_port_linux","owner":"lvgl","description":"LVGL configured to work with a standard Linux framebuffer","archived":false,"fork":false,"pushed_at":"2025-05-07T19:55:54.000Z","size":1054,"stargazers_count":327,"open_issues_count":20,"forks_count":187,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-05-08T21:19:15.366Z","etag":null,"topics":["framebuffer","linux","lvgl"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lvgl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-01-13T15:23:40.000Z","updated_at":"2025-05-04T07:30:11.000Z","dependencies_parsed_at":"2024-09-06T03:32:55.300Z","dependency_job_id":"685b9dc8-adb5-4a13-8cbb-68d7d8be1023","html_url":"https://github.com/lvgl/lv_port_linux","commit_stats":null,"previous_names":["lvgl/lv_port_linux_frame_buffer"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lvgl%2Flv_port_linux","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lvgl%2Flv_port_linux/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lvgl%2Flv_port_linux/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lvgl%2Flv_port_linux/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lvgl","download_url":"https://codeload.github.com/lvgl/lv_port_linux/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254394722,"owners_count":22063984,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["framebuffer","linux","lvgl"],"created_at":"2024-11-05T15:15:26.815Z","updated_at":"2025-05-15T18:09:51.558Z","avatar_url":"https://github.com/lvgl.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LVGL on top of Linux graphics stack\n\nThis is an example project demonstrating how to use LVGL on\na GNU/Linux systems and other Unix-like operating systems\n\nLVGL provides drivers for many graphics backends.\nLegacy framebuffer (fbdev), modern DRM/KMS, Wayland, X11, GLFW3 and SDL2.\n\nCheck out this blog post for a step by step tutorial for fbdev\nhttps://blog.lvgl.io/2018-01-03/linux_fb\n\n## Clone the project\n\nClone the project\n\n```\ngit clone https://github.com/lvgl/lv_port_linux.git\ncd lv_port_linux/\n```\n\nLVGL is a submodule of `lv_port_linux`, use the following command\nto fetch it, it will be downloaded to the `lvgl/` directory\n\n```\ngit submodule update --init --recursive\n```\n\n## Configure drivers and libraries\n\nAdjust `lv_conf.h` to select the drivers and libraries that will be compiled by\nmodifying the following definitions, setting them to `1` or `0`\n\n### Graphics drivers\n\n| Definition         | Description                             |\n| ------------------ | ----------------------------------------|\n| LV_USE_LINUX_FBDEV | Legacy frame buffer (/dev/fb*)          |\n| LV_USE_LINUX_DRM   | DRM/KMS (/dev/dri/*)                    |\n| LV_USE_SDL         | SDL                                     |\n| LV_USE_WAYLAND     | WAYLAND                                 |\n| LV_USE_X11         | X11                                     |\n| LV_USE_OPENGLES    | GLFW3                                   |\n\n### Device drivers\n\n| Definition         | Description                             |\n| ------------------ | ----------------------------------------|\n| LV_USE_EVDEV       | libevdev input devices                  |\n\n## Install dependencies\n\nBe sure to install the required dependencies for the selected drivers by checking\nthe documentation for each driver here:\nhttps://docs.lvgl.io/master/details/integration/driver/\n\nYou can also check the [Dockerfiles](docker/) to get the names\nof the packages for various distributions\n\n## Build instructions\n\nLVGL supports GNU make and CMake\n\n### CMake\n\n```\ncmake -B build -S .\nmake -C build -j\n```\n\n### GNU make\n\n```\nmake -j\n```\n\nCross compilation is supported with CMake, edit the `user_cross_compile_setup.cmake`\nto set the location of the compiler toolchain and build using the commands below\n\n```\ncmake -DCMAKE_TOOLCHAIN_FILE=./user_cross_compile_setup.cmake -B build -S .\nmake  -C build -j\n```\n\n### Installing LVGL\n\nIt is possible to install LVGL to your system however, this is currently only\nsupported with cmake.\n\n```\ncmake --install ./build\n```\n\n## Run the demo application\n\n```\n./build/bin/lvglsim\n```\nThis will start the widgets demo\n\nIf multiple backends are enabled you can run with a specific backend via the `-b` option\n\n```\n./build/bin/lvglsim -b sdl\n```\n\nTo get a list of supported backends use the `-B` option\n\n\n## Environment variables\n\nEnvironment variables can be set to modify the behavior of the driver(s)\nCheck the documentation of the drivers for more details\n\n\n### Legacy framebuffer (fbdev)\n\n- `LV_LINUX_FBDEV_DEVICE` - override default (`/dev/fb0`) framebuffer device node.\n\n\n### EVDEV touchscreen/mouse pointer device\n\n- `LV_LINUX_EVDEV_POINTER_DEVICE` - the path of the input device, i.e.\n  `/dev/input/by-id/my-mouse-or-touchscreen`. If not set, devices will\n  be discovered and added automatically.\n\n### DRM/KMS\n\n- `LV_LINUX_DRM_CARD` - override default (`/dev/dri/card0`) card.\n\n### Simulator\n\n- `LV_SIM_WINDOW_WIDTH` - width of the window (default `800`).\n- `LV_SIM_WINDOW_HEIGHT` - height of the window (default `480`).\n\n\n## Permissions\n\nWhen using fbdev or DRM, run lvglsim with `sudo` or `su`,\nUsually, unpriviledged users don't have access to the framebuffer device `/dev/fb0`\n`sudo` or `su` must be used.\n\nAccess to the framebuffer device can be granted by adding the unpriviledged user to the `video` group\n\n```\nsudo adduser $USER video\nnewgrp video\n./build/bin/lvglsim\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flvgl%2Flv_port_linux","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flvgl%2Flv_port_linux","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flvgl%2Flv_port_linux/lists"}