How do I execute a command in a Wayland session from an ACPI handler?

This page summarizes the projects mentioned and recommended in the original post on /r/linuxquestions

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • gnome-randr-rust

    `xrandr` for Gnome/wayland, on distros that don't support `wlr-randr`

  • Changing the orientation: Gnome is currently using Wayland rather than X as the default, so using xrandr has no effect. However, I can use gnome-randr-rust (available in nixpkgs via nix-shell -p gnome-randr). The following is sufficient to change the orientation when I run it from Console in the desktop session:

  • systemd

    The systemd System and Service Manager

  • Another route I didn't try going down yet is that folding and unfolding are also reflected in the keyboard driver (!?), which saw some systemd discussion. It looks like the systemd people added and then removed some keymappings, so that may not be the way.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • thinkpad-yoga-12-scripts

    Thinkpad Yoga 12 scripts for GNU/Linux

  • I also found this GitHub repo that appears to have a systemd service running a python2 script that reads the accelerometer to determine when to rotate the screen. That's probably even more correct than just flipping one way based on the fold toggle state. It will need some adjustments for use on NixOS 22.11 and Wayland, though.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts