Giter Club home page Giter Club logo

pinenote-misc's Introduction

pinenote-misc

mesa-archlinux-arm

This contains a PKGBUILD and prebuilt versions of mesa for Arch Linux ARM on the PineNote, modified to support the rockchip_ebc eink driver for panfrost GPU acceleration.

The origin of the PKGBUILD is the Arch Linux for ARM PKGBUILD Repository

You need to enable the GPU in the kernel device tree first. Here is information on how to do that. No u-boot modifications were necessary in my case.

For pre-built packages check the releases page.

From mesa release 22.1.6-1 on the supported ebc driver is smaeul's rockchip-ebc instead of pgwipeout's rockchip_ebc. To restore support for rockchip_ebc just link /usr/lib/dri/rockchip_ebc_dri.so to the new /usr/lib/dri/rockchip-ebc_dri.so.

Koreader

Koreader does not provide an Archlinux-build, so I used debtap to convert the latest .deb to an Archlinux-package.

Sway

My sway config, mostly customizations on window representation, grayscale compatibility and touch functionality using waybar.

Files in sway/config belong in ~/.config and files in sway/local belong in ~/.local.

To automatically start sway I used autologin, but because I had issues with missing environment I used commit ba01e1630742c08d81a8d8a6dd961080c90bc63b. For some reason sourcing the environment was removed afterwards.

Install the required programs with: sudo pacman -S sway swayidle polkit-gnome network-manager-applet alacritty ttf-dejavu ttf-font-awesome light imv wtype and the AUR programs: swaylock-fancy squeekboard ulauncher waybar-git (waybar-git until my battery-compatibility patch arrives in the community package)

PineNote swayidle

I use imv for the fullscreen image and light for backlight control.

Put before_sleep.sh and after_resume.sh in .local/bin, set executable flag and use something like the following swayidle command: swayidle timeout 600 "systemctl suspend" before-sleep "~/.local/bin/before_sleep.sh" after-resume "~/.local/bin/after_resume.sh"

Change the image path to an existing picture on your device. To give my user account access to the backlight I created udev rules backlight.rules and added my user to the video group.

Firefox Hardware Acceleration

Firefox disables hardware acceleration by default on aarch64, to enable it set MOZ_ENABLE_WAYLAND=1 in your environment to run Firefox in native Wayland mode, then set gfx.webrender.all to true in about:config. about:support should now show WebRender under Compositing, instead of WebRender (Software).

pinenote-misc's People

Contributors

0cc4m avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

hmpthcs

pinenote-misc's Issues

onscreen keyboard?

I was wondering what the contents of toggle_onscreen_keyboard.py is that waybar calls? What onscreen keyboard are you using?
Thanks!

Archlinux-arm, llvm-15 upgrade and mesa 22.3.2-3

Hi,

First, thanks a lot for your awesome work in maintaining Mesa libraries for the Pinenote. I use them on a standard archlinux-arm installation paired to Maximilian's debian rootfs' kernel. Everything worked well until yesterday, when I did my weekly pacman -Syu thing, which upgraded llvm-libs to version 15, and the actual mesa release predate this change.

Upon reboot, gdm refused to launch. Switching back to a virtual terminal and launching sway, in order to understand what happened, I noticed that Firefox was a bit sluggish. Checking the about:support page showed that it used software rendering instead of hardware rendering.

eglinfo reported that it couldn't find LLVM-14 libs. Installing back llvm14-libs solved the issue. I didn't have time to test if building your mesa version against llvm-15 solves the issue (I'll bet than it does), but I let this github issue both for you as the maintainer and for other pinenote users encountering the same issue.

Please excuse any mistake as english is not my first language, and once again thanks for your work!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.