bentiss
0558bd4101
Merge pull request #61 from phomes/cleanup
...
Follow up for #56
2016-03-01 23:10:56 +01:00
Thomas Hindoe Paaboel Andersen
3962ec7745
hidpp10: Add button mappings for G9
...
There are 10 buttons defined in the profile but only 9 physical
buttons. LGS also only allows to configure 9 of them. Button 5
is the "dead" button in the list.
2016-03-01 22:11:47 +01:00
Thomas Hindoe Paaboel Andersen
2164a3b549
libratbag: remove unused variable
2016-03-01 21:20:23 +01:00
Thomas Hindoe Paaboel Andersen
f0417a9535
hidpp10: Add definition for buttons on the G9
2016-03-01 21:20:18 +01:00
Thomas Hindoe Paaboel Andersen
9d9c42cc6a
hidpp10: rename structs wrt _sym vs. _dual
...
Follow up for review in #56
2016-03-01 21:20:13 +01:00
Benjamin Tissoires
efd15a33fb
configure.ac: libratbag 0.3
...
Soname bump for liblur and libratbag as they were not properly versioned.
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com >
v0.3
2016-03-01 17:04:39 +01:00
Benjamin Tissoires
b804e117c1
hidpp20drv: fix segfault when a device is not powered on
...
We were returning 0 and libratbag tried to access the profiles afterward.
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com >
2016-03-01 16:59:32 +01:00
Benjamin Tissoires
b54d28ec1a
tools: add a man for ratbag-command
...
Just duplicated the help.
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com >
2016-03-01 16:46:31 +01:00
Benjamin Tissoires
388dae76bc
libratbag.sym: bump symbols version
...
0.1.0 never existed, the first release was 0.2 :)
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com >
2016-03-01 15:35:33 +01:00
Benjamin Tissoires
19f87790bb
Add liblur versioning and pkg-config
...
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com >
2016-03-01 15:34:46 +01:00
Benjamin Tissoires
9aa8938eb8
hidpp20: profiles: make sure the mouse is in the profiles mode, not HID
...
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com >
2016-03-01 15:05:50 +01:00
Benjamin Tissoires
25094daaed
hidpp20: profiles: make sure device is compatible with our implementation
...
Get_Profile_Info gives valuable information to know if we are compatible
with a given device. Use it and bail out if we are not able to support
the device.
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com >
2016-03-01 14:57:19 +01:00
Benjamin Tissoires
39069623f2
hidpp20drv: bail out if the features are not working as expected
...
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com >
2016-03-01 14:36:03 +01:00
Benjamin Tissoires
d5c74682f1
Add missing carriage return when the driver does not match
...
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com >
2016-03-01 14:32:42 +01:00
Benjamin Tissoires
6cba2abd8e
hidpp20: reorder profile initialization
...
Spec says the profile count is stored in byte 3 of
CMD_ONBOARD_PROFILES_GET_PROFILES_DESCR, so use this to allocate the proper
number of profiles.
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com >
2016-03-01 14:15:15 +01:00
Peter Hutterer
6c285fa2a1
button: emit property change events when we update a button
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2016-02-29 13:55:58 +10:00
Peter Hutterer
d6116e00bc
ratbagd 0.0.1
...
This reverts the version number but ratbagd is nowhere near stable (because
libratbag itself isn't stable yet) and the dbus API can change at any time.
I'm not committing to keeping the current dbus API around for backwards
compatibility reasons.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2016-02-29 10:24:47 +10:00
Peter Hutterer
c54b382775
Require libratbag 0.2
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2016-02-29 09:59:51 +10:00
Peter Hutterer
f58b91a9b2
When setting a button action, update our internal state on success
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com >
2016-02-29 09:58:18 +10:00
Peter Hutterer
184e2b646c
Add a systemd service file
...
We don't have dbus-activation yet, so just define it as a normal dbus service
for now.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2016-02-29 09:54:00 +10:00
Peter Hutterer
8a8379c7eb
button: return -1 for invalid special values
...
Otherwise it looks like the function doesn't exist
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2016-02-25 15:23:58 +10:00
Peter Hutterer
8e8d827e00
Export button mappings over dbus
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2016-02-24 12:40:49 +10:00
Peter Hutterer
de08323609
Fix return for ratbag_button_get_special when we don't have a special action
...
Do what the doc says.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2016-02-24 10:51:28 +10:00
Peter Hutterer
5fcdfab2a6
Fix a doxygen ref
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2016-02-24 10:51:07 +10:00
Peter Hutterer
2fad2e3ccd
resolution: mark the dpi/rate as changable
...
And make sure we actually save the new value too
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2016-02-22 13:29:02 +10:00
Peter Hutterer
4c66d7f5ba
dbus: allow normal users to talk to ratbagd
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2016-02-22 09:42:47 +10:00
Peter Hutterer
124385fc31
ratbagctl: print all properties
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2016-02-19 15:32:33 +10:00
Peter Hutterer
5fe39f94ab
ratbagctl: fix show-profile to handle the resolution objects
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2016-02-19 15:32:33 +10:00
Peter Hutterer
e8d1645150
ratbagctl: Switch ActiveProfile parsing to an integer
...
Fallout from c04f1b57aa
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2016-02-19 15:32:33 +10:00
Peter Hutterer
d1ea517f9a
ratbagctl: drop DefaultProfile parsing
...
Dropped in d049c13062
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2016-02-19 15:32:33 +10:00
Peter Hutterer
c6627d6266
device: if we can't fetch the description or svg, return an empty string
...
Less exception handling needed on the client side.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2016-02-19 15:32:33 +10:00
Peter Hutterer
2138ab05e5
Replace fprintfs with a new log_error helper
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2016-02-19 15:32:33 +10:00
Peter Hutterer
ce3038fd8e
Use streq over strcmp
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2016-02-19 15:32:33 +10:00
Peter Hutterer
555d00c9a8
ratbagd: if --verbose is specified, set libratbag to verbose too
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2016-02-19 15:32:33 +10:00
Peter Hutterer
12f013681a
Add rudimentary for buttons
...
This just exports the button index so far and makes sure we can write clients
that deal with button objects instead of making stuff up to test for buttons.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2016-02-19 15:32:03 +10:00
Benjamin Tissoires
e07839bcee
tools: remove no-install flag for lur-command
...
The resulting RPM complains about RPATH.
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com >
2016-02-18 14:25:18 +01:00
Peter Hutterer
7a498310e2
resolution: remove unused variables
...
Copy/paste leftover from the profile.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2016-02-18 15:14:15 +10:00
Peter Hutterer
9af58224fa
resolution: export capabilities as dbus properties
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2016-02-18 11:14:13 +10:00
Peter Hutterer
61abdb57a7
device: export all capabilities as dbus properties
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2016-02-18 11:12:00 +10:00
Peter Hutterer
e0cb0c70e1
README: fix typo, this is ratbagd, not libratbag
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2016-02-18 09:12:36 +10:00
Benjamin Tissoires
420a05cabf
README: Add instructions to have libsystemd >= 227
...
Works on F23. There are few dependencies pulled by configure that I did
not put there.
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com >
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2016-02-18 09:12:33 +10:00
Benjamin Tissoires
2f6e1ceb73
libratbag v0.2
...
Doing just a first release of libratbag with its current features and
problems. This will help other tools to properly link against anything
libratbag >= 0.2
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com >
v0.2
2016-02-17 15:26:12 +01:00
bentiss
0df95f5c96
Merge pull request #60 from whot/master
...
Install the data files in $(datadir)
2016-02-17 08:13:17 +01:00
Peter Hutterer
9c37f5c300
Install the data files in $(datadir)
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2016-02-17 16:46:46 +10:00
Peter Hutterer
262dd532e6
Add a log_verbose logging function for debug output
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2016-02-17 10:33:20 +10:00
Peter Hutterer
80ed6d1399
resolution: switch to an index for ActiveResolution/DefaultResolution
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2016-02-16 17:00:27 +10:00
Peter Hutterer
c04f1b57aa
device: switch active profile over to return an index only
...
Returning the object path makes it harder for the client to identify which
object is the active one. A simple index into the devices array is easier to
handle.
Note: another approach was to have an IsActive property on the profile
directly. This would require updating all properties when the active profile
is changed, it's simpler to just have one index.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2016-02-16 17:00:27 +10:00
Peter Hutterer
7aca92f2b3
resolution: add support for setting resolutions and report rate
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2016-02-16 09:56:12 +10:00
Peter Hutterer
e199278d6f
profile: switch DefaultResolution/ActiveResolution over to an object path
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2016-02-15 15:17:36 +10:00
Peter Hutterer
f2a55bca55
profile: add GetResolutionByIndex
...
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net >
2016-02-15 15:17:35 +10:00