- Jun 15, 2022
-
-
Douglas Targett authored
-
Douglas Targett authored
-
Douglas Targett authored
-
- Sep 11, 2020
-
-
Guillaume Tucker authored
Switch to a native package See merge request !1
-
Sjoerd Simons authored
-
Guillaume Tucker authored
Add the "debian" directory used to build .deb packages. Signed-off-by:
Guillaume Tucker <guillaume.tucker@collabora.com>
-
- Dec 16, 2019
-
-
Guillaume Tucker authored
Get the board data values from the config file and use the port number from there to pass to servod.main() as it is now required as per hdctools R80 (release-R80-12739.B). Signed-off-by:
Guillaume Tucker <guillaume.tucker@collabora.com>
-
Guillaume Tucker authored
Use the new servo_parsing.ServodRCParser.ParseRC() static class method from hdctools as per the R80 release (release-R80-12739.B). Signed-off-by:
Guillaume Tucker <guillaume.tucker@collabora.com>
-
- Mar 18, 2019
-
-
Guillaume Tucker authored
Update run-servod to use with hdctools from version stabilize-11839.B. Some modules have been consolidated and renames, and the main function can now accept arbitrary arguments rather than sys.argv (yay!). Signed-off-by:
Guillaume Tucker <guillaume.tucker@collabora.com>
-
Guillaume Tucker authored
Fix do_cleanup() to not abort if it fails to delete a directory or stop a service process, but print a warning instead. Signed-off-by:
Guillaume Tucker <guillaume.tucker@collabora.com>
-
- Aug 21, 2018
-
-
Guillaume Tucker authored
With the option to leave some consoles as their original /dev/ttyUSB* device and not convert them to a /dev/pty/* device, they may not all be always available. Only create symlinks for consoles set up as pty. Signed-off-by:
Guillaume Tucker <guillaume.tucker@collabora.com>
-
- Feb 01, 2018
-
-
Guillaume Tucker authored
Rename README as README.md and format it with Markdown. Also update it with instructions to get this to work with the latest Servo Micro board which is needed for more recent devices such as gru-kevin. Signed-off-by:
Guillaume Tucker <guillaume.tucker@collabora.com>
-
Guillaume Tucker authored
There is a new type of board called the Servo Micro with a different USB device ID. It can be used in the same way as the classic Servo v2 boards, so this just adds a udev rule to match it and run servod. The gru-kevin Chromebook uses Servo Micro so add a sample configuration line for a kevin device. Signed-off-by:
Guillaume Tucker <guillaume.tucker@collabora.com>
-
- Dec 04, 2017
-
-
Guillaume Tucker authored
Use the StopWhenUnneeded=yes property to automatically kill the service processes when the board is unplugged (and the USB device goes goes away as reported by udev). Thanks to: Heiko Stuebner <heiko@sntech.de> Signed-off-by:
Guillaume Tucker <guillaume.tucker@collabora.com>
-
Guillaume Tucker authored
The regular way for systemd to stop a service when it's not needed any more (i.e. servo board unplugged in this case) to send SIGTERM to the service process. If the returned value is non-zero then the service stays listed as "failed" in the systemd status. Return zero when catching SIGTERM. If SIGTERM is not handled then systemd will send SIGKILL later on... Signed-off-by:
Guillaume Tucker <guillaume.tucker@collabora.com>
-
- Sep 22, 2017
-
-
Guillaume Tucker authored
Signed-off-by:
Guillaume Tucker <guillaume.tucker@collabora.com>
-
- Sep 18, 2017
-
-
Guillaume Tucker authored
When the servo board gets attached, several USB device entries are created in sysfs. Rather than matching these, which cause the systemd service to be spawned multiple times, match the parent USB device entry by filtering with the MAJOR environment variable. Also use the raw device path in /dev rather than the sysfs path to find the udev device. This means the systemd service instance name has a more unique and descriptive name, only one service gets started for each servo board connected and there's no need to search for parent udev devices in run-servod any more. Signed-off-by:
Guillaume Tucker <guillaume.tucker@collabora.com>
-
- Sep 15, 2017
-
-
Guillaume Tucker authored
Update README file now that the kernel driver has been removed, and explain the issue with hdctools. Signed-off-by:
Guillaume Tucker <guillaume.tucker@collabora.com>
-
Guillaume Tucker authored
Remove source code for the google-servo kernel driver as it's not needed any more with the new udev and systemd services. Signed-off-by:
Guillaume Tucker <guillaume.tucker@collabora.com>
-
Guillaume Tucker authored
In order to remove the need for a kernel driver which is only there to set up /dev/usb/google-servo* devices, take the sysfs device path as provided by udev. So look up the udev device based on their sysfs udev path rather than the device node. Signed-off-by:
Guillaume Tucker <guillaume.tucker@collabora.com>
-
Guillaume Tucker authored
Use the udev device name as the systemd service instance name, and use it to create the full device path which can then be used to find the udev device. Also make the udev rule match the USB vendor/device IDs and drop all dependencies on the google-servo kernel driver. Signed-off-by:
Guillaume Tucker <guillaume.tucker@collabora.com>
-
Guillaume Tucker authored
* convert tabs to 4 spaces * fix code formatting and some coding style Signed-off-by:
Guillaume Tucker <guillaume.tucker@collabora.com>
-
Guillaume Tucker authored
This is a quick refresh of the code to make it more maintainable and closer to Python 3. * update copyright notice * use print function * use shutil.rmtree to simplify code * use os.path.join to make paths * make global variables UPPER case * "don't repeat yourself" in some places Signed-off-by:
Guillaume Tucker <guillaume.tucker@collabora.com>
-
- Sep 13, 2017
-
-
Guillaume Tucker authored
Make it work with pyudev 0.21.0 as per Debian Stretch. Previous version worked with 0.16.1 as per Jessie. Signed-off-by:
Guillaume Tucker <guillaume.tucker@collabora.com>
-
- Sep 08, 2017
-
-
Guillaume Tucker authored
Signed-off-by:
Guillaume Tucker <guillaume.tucker@collabora.com>
-
- Mar 10, 2015
-
-
Daniel Stone authored
Handle the child exiting gracefully, and make sure restarts work. Exit the main process when the child goes down. Clean the code up and refactor into subroutines. Signed-off-by:
Daniel Stone <daniels@collabora.com>
-
Daniel Stone authored
Add roughly-working servo code. udev integration is still a little hairy, and the Python is still very ugly, but it works. Signed-off-by:
Daniel Stone <daniels@collabora.com>
-