Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get all HTPC remote buttons working #201

Open
4 of 5 tasks
trinitronx opened this issue Aug 21, 2023 · 0 comments
Open
4 of 5 tasks

Get all HTPC remote buttons working #201

trinitronx opened this issue Aug 21, 2023 · 0 comments
Assignees
Labels
enhancement Hacktoberfest Hacktoberfest issues

Comments

@trinitronx
Copy link
Collaborator

trinitronx commented Aug 21, 2023

HTPC "Air mouse" RF Remote

TODO:

Libinput Name XKB Name Icon on Remote (NerdFont Unicode)
KEY_FASTFORWARD XF86AudioForward 󰑟
KEY_REWIND XF86AudioRewind 󰈑
KEY_PREVIOUSSONG XF86AudioPrev 󰒫
KEY_NEXTSONG XF86AudioNext 󰒬
KEY_ZOOMIN XF86ZoomIn  +
KEY_ZOOMOUT XF86ZoomOut  -
KEY_HOMEPAGE XF86HomePage
KEY_BACK XF86Back 󱞳
KEY_CONFIG XF86Tools 󰿏
KEY_MAIL XF86Mail 󰳤
KEY_WWW XF86WWW
swaymsg -t get_inputs Identifies remote as:

Input device: MemsArt MA144 RF Controller System Control
  Type: Keyboard
  Identifier: 3141:20737:MemsArt_MA144_RF_Controller_System_Control
  Product ID: 20737
  Vendor ID: 3141
  Active Keyboard Layout: English (US)
  Libinput Send Events: enabled

Input device: MemsArt MA144 RF Controller Consumer Control
  Type: Mouse
  Identifier: 3141:20737:MemsArt_MA144_RF_Controller_Consumer_Control
  Product ID: 20737
  Vendor ID: 3141
  Libinput Send Events: enabled

Input device: MemsArt MA144 RF Controller Consumer Control
  Type: Keyboard
  Identifier: 3141:20737:MemsArt_MA144_RF_Controller_Consumer_Control
  Product ID: 20737
  Vendor ID: 3141
  Active Keyboard Layout: English (US)
  Libinput Send Events: enabled

Input device: MemsArt MA144 RF Controller
  Type: Mouse
  Identifier: 3141:20737:MemsArt_MA144_RF_Controller
  Product ID: 20737
  Vendor ID: 3141
  Libinput Send Events: enabled

Input device: MemsArt MA144 RF Controller
  Type: Keyboard
  Identifier: 3141:20737:MemsArt_MA144_RF_Controller
  Product ID: 20737
  Vendor ID: 3141
  Active Keyboard Layout: English (US)
  Libinput Send Events: enabled

sudo libinput list-devices identifies remote as:

Device:           MemsArt MA144 RF Controller
Kernel:           /dev/input/event5
Group:            7
Seat:             seat0, default
Capabilities:     keyboard 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Disable-w-trackpointing: n/a
Accel profiles:   n/a
Rotation:         0.0

Device:           MemsArt MA144 RF Controller
Kernel:           /dev/input/event6
Group:            7
Seat:             seat0, default
Capabilities:     pointer 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      disabled
Nat.scrolling:    disabled
Middle emulation: disabled
Calibration:      n/a
Scroll methods:   button
Click methods:    none
Disable-w-typing: n/a
Disable-w-trackpointing: n/a
Accel profiles:   flat *adaptive custom
Rotation:         0.0

Device:           MemsArt MA144 RF Controller Consumer Control
Kernel:           /dev/input/event7
Group:            7
Seat:             seat0, default
Capabilities:     keyboard pointer 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    disabled
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Disable-w-trackpointing: n/a
Accel profiles:   n/a
Rotation:         0.0

Device:           MemsArt MA144 RF Controller System Control
Kernel:           /dev/input/event8
Group:            7
Seat:             seat0, default
Capabilities:     keyboard 
Tap-to-click:     n/a
Tap-and-drag:     n/a
Tap drag lock:    n/a
Left-handed:      n/a
Nat.scrolling:    n/a
Middle emulation: n/a
Calibration:      n/a
Scroll methods:   none
Click methods:    none
Disable-w-typing: n/a
Disable-w-trackpointing: n/a
Accel profiles:   n/a
Rotation:         0.0

Sample mpv input.conf:

# DVB Channels up/down
H cycle dvbin-channel-switch-offset up
K cycle dvbin-channel-switch-offset down
PGUP           cycle dvbin-channel-switch-offset up
PGDWN          cycle dvbin-channel-switch-offset down
ZOOMIN         add video-zoom   0.1         # zoom in
ZOOMOUT        add video-zoom  -0.1         # zoom out
TOOLS          show-text "${playlist}\n${filtered-metadata}"   #  show the playlist & display-tags metadata
BACK           playlist-prev
HOMEPAGE       playlist-next
MAIL           add panscan -0.1             # decrease panscan
WWW            add panscan +0.1             # shrink black bars by cropping the video
@trinitronx trinitronx self-assigned this Aug 21, 2023
@trinitronx trinitronx added the Hacktoberfest Hacktoberfest issues label Sep 17, 2023
@trinitronx trinitronx mentioned this issue Jul 9, 2024
11 tasks
@trinitronx trinitronx added this to the Saturn Refresh milestone Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Hacktoberfest Hacktoberfest issues
Projects
Status: In Progress
Development

No branches or pull requests

1 participant