1
0

19 Commits

Author SHA1 Message Date
Daniel Prilik
43dd973092 Update README.md 2021-05-24 09:53:00 -07:00
ckuhtz
ba2dac4a96 added suggestion to check /etc/bluetooth/network.conf
Surface Dial wouldn't pair without DisableSecurity=true (hirsute, bluez 5.56)
2021-03-20 22:09:14 -07:00
ckuhtz
1afb86d729 updated README.md to reflect PR for ExecStart
updating home dir in .service no longer necessary.
2021-03-20 21:21:07 -07:00
Daniel Prilik
6c719dc59e Update README.md 2020-11-28 12:48:33 -05:00
David Wood
3d2abda0f3 Ubuntu 20.04 required this extra dependency not to die with error on build. Adding. 2020-11-28 12:33:15 -05:00
Daniel Prilik
3c9661dd90 README update
surface-dial-linux seems to be working just fine, and has been running
without fault for almost 2 weeks now with no issues.

I might revisit the project at some point over the holidays to add some
new features (notably, a more robust config file), but I very well might
not. Why know ¯\_(ツ)_/¯
2020-11-23 18:21:58 -05:00
Daniel Prilik
4949ba2dad Update udev rule order (fixes #1) 2020-11-17 11:33:25 -05:00
Daniel Prilik
066c635bd7 Separate "vanilla" Volume mode from Media + Volume mode 2020-11-07 11:45:26 -05:00
Daniel Prilik
ae58e16610 use TAG+="uaccess" in udev rules + fix hidraw perms
Big thanks to Jakub Pruchnik for letting me know about the hidraw issue
and providing a udev rules file to fix it!
2020-11-07 11:31:24 -05:00
Daniel Prilik
b237f4a0f3 README updates 2020-11-07 11:15:15 -05:00
Daniel Prilik
ee2c09c690 enable experimental smooth scrolling support 2020-11-06 10:55:47 -05:00
Daniel Prilik
f7a261cb8a use libudev to handle device disconnect/reconnect
This change has substantially bumped up the daemon's overall robustness,
as the code now ensures that the controller will only start once the
/dev/input/eventXX file is set up, which was causing all sorts of issues
in the past.

Additionally, this change enables the daemon to run as a proper
background task that _doesn't_ constantly die / need to be restarted,
which removes the need for any janky udev "on add" rules, and instead, a
simple systemd user service will suffice.
2020-11-06 00:22:56 -05:00
Daniel Prilik
fed2060872 refactor fakeinput + invert main thread function
- fakeinput is now just a series of free functions that access the global
  static, which makes more sense than having some arbitrary
  zero-sized-struct with associated methods on it.
- instead of having the active notification run in its own thread, it
  now runs on the main thread, and the controller runs in a separate
  thread. This results in midly nicer code, at least IMO.

Also, I've had to disable optimizations on the evdev_rs crate, as it
seems to be segfaulting on release builds. Very spooky, but it's not
something I'm super interested in debugging right now, so I'll just work
around it. It's not like I need the _blazing fast performance_ from a
Rust wrapper around a C library anyways...
2020-11-05 10:26:11 -05:00
Daniel Prilik
0edac73be3 README tweaks 2020-11-01 23:49:16 -05:00
Daniel Prilik
82e08c8e4a add barebones on-disk mode persistance 2020-10-31 00:16:16 -04:00
Daniel Prilik
d14a92dfe5 add long-press + notif based mode switching
oooooh boy, this is looking pretty slick. I'm kind-of impressed I was
able to throw this together in ~2 days of post-work hacking (though I
guess they were some pretty late-nights...)

There's really only one feature left that I _need_ to implement, which
is the on-disk persistence for selected mode. That shouldn't be too
tricky though...
2020-10-30 23:39:12 -04:00
Daniel Prilik
e6fa6845fe haptics!
https://docs.microsoft.com/en-us/windows-hardware/design/component-guidelines/radial-controller-protocol-implementation

With a little bit of trial and error (and a crash-course in how the heck
HID even works), I figured out how to get the dial to provide haptic
feedback!

Along the way, I also learned that you can take advantage of the
(incorrectly named) Resolution Multiplier field to customize how many
"steps" the dial should have, offloading the work to the device itself!

Very cool!!
2020-10-30 19:59:23 -04:00
Daniel Prilik
cf1b0a4eb4 add scroll + notifications
oh my god it took far too long to get notifications working...
2020-10-29 19:35:10 -04:00
Daniel Prilik
c4039edc55 initial commit 2020-10-29 00:31:11 -04:00