summaryrefslogtreecommitdiff
path: root/hwdb/acpi-update.py
Commit message (Collapse)AuthorAgeFilesLines
* Update UEFI URLs (#12260)Paul Menzel2019-04-091-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Use more secure https://www.uefi.org http://www.uefi.org directs to https://uefi.org/, so this saves one redirect. $ curl -I http://www.uefi.org HTTP/1.1 302 Found Server: nginx Date: Tue, 09 Apr 2019 14:54:46 GMT Content-Type: text/html; charset=iso-8859-1 Connection: keep-alive X-Content-Type-Options: nosniff Location: https://uefi.org/ Cache-Control: max-age=1209600 Expires: Tue, 23 Apr 2019 14:54:46 GMT Run the command below to update all occurrences. git grep -l http://www.uefi.org | xargs sed -i 's,http://www.uefi.org,https://www.uefi.org,' * Use https://uefi.org to save redirect Save one redirect by using the target location. $ curl -I https://www.uefi.org HTTP/1.1 301 Moved Permanently Server: nginx Date: Tue, 09 Apr 2019 14:55:42 GMT Content-Type: text/html; charset=iso-8859-1 Connection: keep-alive X-Content-Type-Options: nosniff Location: https://uefi.org/ Cache-Control: max-age=1209600 Expires: Tue, 23 Apr 2019 14:55:42 GMT Run the command below to update all occurrences. git grep -l https://www.uefi.org | xargs sed -i 's,https://www.uefi.org,https://uefi.org,'
* more portable python shebangs (#5816)Jörg Thalheim2017-04-301-1/+1
| | | | | This is useful on systems like NixOS, where python3 is not in /usr/bin/python3 as well as for people using alternative ways to install python such as virtualenv/pyenv.
* acpi-update.py: there is no "Error" classZbigniew Jędrzejewski-Szmek2016-12-011-2/+2
| | | | | | Evidently this code path was never hit, because we'd crash with NameError. The exception message also seems bogus. So just replace the whole thing with the standard exception for invalid input.
* hwdb: update UEFI/ACPI/PNP/EISA/EDID database from UEFI web siteFederico Mena Quintero2016-06-101-0/+79
Let's hook up the ACPI database we maintain from the upstream UEFI sources. This adds a tool to convert the database provided upstream to our native format, similar to how this is handled for the PCI and USB databases. Note that the upstream web site claims to offer an XLS download, but the actual data made available is an HTML file in reality, just one with the ".xls" suffix... The data provided from the UEFI folks is not very high quality nor complete, hence apply a patch after the conversion step that fixes up a few things and adds in more entries from various sources. For example, the EDID ids maintained by GNOME and other sources have been added too, as they all appear to use the same ID namespace. This also adds explicit support for 4 character ACPI ids, in addition to the normal 3 character PNP ids. Also fixes: https://bugs.freedesktop.org/show_bug.cgi?id=90524