Skip to content

hyrodium/display-auto-rotator

Repository files navigation

display-auto-rotator

Rotate display automatically!

graph LR
  ACC["Accelaration sensor MMA7361LC"]
  PICO["Raspberry Pi Pico as HID keyboard"]
  PC["PC (Linux)"]
  ACC -->|Analog signal| PICO
  PICO -->|"hotkey to run xrandr"| PC
Loading

Demo

See more at https://bsky.app/profile/hyrodium.bsky.social/post/3ln6qdv3mbs2j.

Setup

PC (host)

For example, you can setup the hotkeys like this in KDE Plasma environment.

  • Meta+Ctrl+Home: xrandr --output DP-0 --rotate left
  • Meta+Ctrl+End: xrandr --output DP-0 --rotate right
  • Meta+Ctrl+Up: xrandr --output DP-0 --rotate normal

Microcontroller (Raspi pico unit as HID keyboard)

Buy

Order PCB

Print cover

Print STL files in display-auto-rotator_3dp directory. https://www.thingiverse.com/thing:7035134

Assemble

Write firmware and scripts

About

Rotate display with Raspberry Pi Pico and accelaration sensor

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages