Commit Graph

114 Commits

Author SHA1 Message Date
George Hotz 6c70cfa0ce precise power measurement script
old-commit-hash: 3b2421baa04be3e2408e5177248a31689c244107
2022-04-20 12:15:11 -07:00
George Hotz 6d99a37d6f Power draw test (#24196)
* power draw test

* power draw measure

* fix cam power draw

* no star import

* fix static

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 9318e02a52a01655c3fe98e4437b1d54b36e4b92
2022-04-12 15:33:27 -07:00
Adeeb Shihadeh ad8e58c250 comma three: correctly set initial EPS bearer settings for AT&T sim cards (#24175)
* 3g sunset

* only for blue prime

* pass

* full att code

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: c1388636a28b880e5c9b07bcaa8fbf867e23f02a
2022-04-11 15:33:58 -07:00
Adeeb Shihadeh 9ce9e38cf7 tici IRQ tuning (#24170)
* first pass

* move that back

* move that

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: cf6c0ef19a20026c7cf3ac057e652b517ed82578
2022-04-11 10:49:27 -07:00
Willem Melching 9cd2f5a7a3 Log modem version and some NV values (#24137)
* add back modem version number logging

* tici only

* log nv

* make event

* str cast
old-commit-hash: be35caca614c45f54d2e76f394b2fdecd841cb3f
2022-04-05 14:29:07 -07:00
Adeeb Shihadeh c00256ca1d bunch of gpu config (#23932)
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: aeb98b39373135e224255f5869748cf0bb6dc336
2022-03-25 13:46:36 -07:00
Adeeb Shihadeh bd71c594a2 pylint: enforce indentation (W0311) (#24039)
* pylint: enforce indentation (W0311)

* few more
old-commit-hash: 8af20af66ddaa6bc06d7f72f9134aa9afeed3ed8
2022-03-24 23:23:29 -07:00
Comma Device 460dd3cc9d cleanup tici_init in launch script
old-commit-hash: 03ac5bb4e3fd23176d5a1f9cb32a3e8f5fc95a59
2022-03-21 16:45:24 -07:00
George Hotz 2621c00ec1 thermald: use named thermal zones (#23936)
* thermald: use named thermal zones

* remove print

* and for c2

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 814741dafe6a591b87d23d3b0aa9662a01f61634
2022-03-14 14:45:50 -07:00
Willem Melching 2eded18267 C3: detect metered Android hotspot (#23734)
* C3: detect metered networks

* show in ui

* fix text layout

* bump cereal

* revert ui changes

* set networkMetered

* add athena method

* add metered logging to uploader

* use in athena uploader

* remove param

* use networkmanager properties to set cell to unmetered

* fix indentation

* no need to check

* bump cereal

* review

* bump cereal
old-commit-hash: da5a0c41a00e4de076c2846ed54049c3dff3bc5a
2022-03-09 11:36:52 +01:00
Adeeb Shihadeh ccb2d2a6c4 AGNOS 4 (#23724)
old-commit-hash: a1b795cd78a00141d06a8bffdc4163ad8ab5fa51
2022-02-08 19:48:14 -08:00
Willem Melching db3eef978f athena: add suport for download bandwith setting (#23727)
* athena: add suport for download bandwith setting

* clean ingress rules
old-commit-hash: 0d099e07aa1b16e2df5034835c1a6be3a721caa0
2022-02-08 12:07:11 +01:00
Willem Melching fb18d7b789 Add setUploadLimit method to athena (#23693)
* Add setUploadLimit method to athena

* add comments

* move to hw abstraction layer

* move to hw

* better errors
old-commit-hash: 4c406cdbe5c702d50a93410adf9d2d5b7f1b987a
2022-02-07 16:55:16 +01:00
Willem Melching efc06c6290 thermald: track engaged state in param and kmsg (#23478)
* thermald: track engaged state in param

* write in kmsg

* format string

* move to python
old-commit-hash: 3ce4976db79fde95264f114b61d6be025aec9a71
2022-01-10 19:54:07 +01:00
Ewout ter Hoeven a962365292 Convert format strings strings to f-strings (#23241)
* Convert all text strings to f-strings

Reformats all the text from the old "%-formatted" and .format(...) format to the newer f-string format, as defined in PEP 498. This requires Python 3.6+.

Flynt 0.69 was used to reformat the strings. 120 f-strings were created in 51 files.

F-strings are in general more readable, concise and performant. See also: https://www.python.org/dev/peps/pep-0498/#rationale

* revert pyextra changes

* revert ublox.py

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 55390d273f36f49da3896e687ac5530f40c1d150
2021-12-16 14:58:17 +01:00
Adeeb Shihadeh 1d429f7e90 fix missing time import
old-commit-hash: 7c9fa91fb87d4ba2c97d6b08971e86827a6c38cf
2021-12-10 20:14:24 -08:00
Adeeb Shihadeh 72bf2bd452 AGNOS 3 (#23172)
* AGNOS 3

* always forget to do this

* update

* release manifest
old-commit-hash: 85b90883ad6aa20721ec60300a711849d6026c14
2021-12-08 19:24:40 -08:00
Adeeb Shihadeh b81a0ae865 tici: lower min volume
old-commit-hash: f71085484ddc67b712a1495cbc2f8846ee62a195
2021-12-08 18:54:16 -08:00
Adeeb Shihadeh 83a0271f2c tests for agnos manifest (#23176)
old-commit-hash: e4caaeb2d36ec83c12bc7b34f7b40a684898a711
2021-12-08 16:21:12 -08:00
Adeeb Shihadeh 37985cb592 tici: higher cpu freq while offroad (#23151)
old-commit-hash: c8e64b2c62b908fbbd78d8520d9277421e51d7b7
2021-12-07 21:44:35 -08:00
Adeeb Shihadeh 9c702c779e whole new family (#23157)
* family two

* more volume

* repeating dm sound

* update tests
old-commit-hash: 1501c2e3768bc3469b56a9eca846db9f971ec81d
2021-12-07 13:45:49 -08:00
Adeeb Shihadeh c01f1a8f31 tici: use powersave CPU governor while offroad (#23146)
* tici: use powersave CPU governor while offroad

* fix path
old-commit-hash: 5e20a46db6882c4f48160f7a9f98d695bcbea873
2021-12-06 13:53:55 -08:00
Adeeb Shihadeh 6c2182c026 Newer sounds (#23091)
* new prompt sound

* padding

* prompt distracted

* debug

* fix spelling

* lower min volume

* better volume at low speeds

* revert debug

* revert that

* fix tests

* update refs

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 3b367e68728c29eea057d99f3948d64ed6cbfa92
2021-12-02 00:28:25 -08:00
Adeeb Shihadeh dccb8b4010 New sounds (#22652)
* new engage/disengage + amp config

* first family

* cleanup audible alerts

* tici isn't special

* fix up debug cycle alerts

* these were better

* extend range

* use distracted sound

* log scaling

* getting closer

* slightly louder

* prompt

* update tests

* update refs

* fix c2 test

* resolve todo

* adjust tolerance

* revert for now

* should work

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: e679d05d9e98e267047c21c0b6b67fe9d61f8ed6
2021-11-30 19:47:33 -08:00
George Hotz 5d990ad509 thermald: track power usage / pmic temps (#23013)
Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 6462ced209fe545c2354c0d04bee98767a03eea7
2021-11-23 16:08:20 -08:00
Willem Melching 8075022d8e modem.Command timeout is in seconds (#22851)
* modem.Command timeout is in seconds

* getting tempts needs longer timeout
old-commit-hash: 14f0df0f228bae8a6a106fe67bcdf95af153929c
2021-11-10 16:05:27 +01:00
Adeeb Shihadeh 087a332532 flush progress print from agnos and neos updaters
old-commit-hash: 7c611cd71120de694f7e6f5186a832578036dac0
2021-10-16 14:13:17 -07:00
Adeeb Shihadeh 18b2d1fee0 thermald: log screen brightness (#22570)
* thermald: log screen brightness

* bump cereal
old-commit-hash: d708b5b5464811dc6b58b7e88dfe614f90170723
2021-10-15 17:19:45 -07:00
Adeeb Shihadeh 782d7023d2 phonelibs -> third_party (#22477)
* git mv to third_party

* find and replace

* fix release tests

* update pre-commit

* update tici bins

* update eon bins

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 5b641379ae04d3408093381629b9d60dee81da27
2021-10-07 16:32:44 -07:00
Adeeb Shihadeh afe88f7552 only run get_nvme_temps on C3 (#22464)
* only run get_nvme_temps on C3

* temperatures

* fix imports

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 493e32431c721aa92c2f53800109155284928969
2021-10-06 20:32:22 -07:00
Adeeb Shihadeh a4bc663ae5 agnos 2 (#22390)
* agnos 2

* release notes
old-commit-hash: 29b2a7d20b68c9a832d5bcf2f55a60fe4f2b36a8
2021-09-30 21:56:44 -07:00
Adeeb Shihadeh 74f3f4ab1a agnos updater: support non-sparse images (#22371)
* print progress for all partitions

* noop generator

* less spammy

* cleanup
old-commit-hash: 425020a849c98226c0bac04db0d63a8e55ae5bad
2021-09-29 11:08:19 -07:00
Robbe Derks 4827dea04c Log modem temps on Tici (#22281)
* log max modem temp

* not sure what happened here

* fix this

* make modem temps a list

* this is not needed

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 6117c7ce816f8896702ac4810ff8d421d2f6f224
2021-09-21 14:40:05 +02:00
Adeeb Shihadeh edc6f4ba7e agnos 1.5 (#22147)
* agnos 1.5

* bump version
old-commit-hash: 745de33941b8f1b00a0cac3bfc49f793918f2ea9
2021-09-06 20:17:37 -07:00
Adeeb Shihadeh af87a0b1a3 agnos 1.4 (#22029)
old-commit-hash: dde69fb933fb180f182ea27820dc7ac214510fd5
2021-08-23 20:35:04 -07:00
Adeeb Shihadeh 2c5f93bccc agnos 1.3 (#21924)
* agnos 1.3

* update updater

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 058724e61daf4134af4a22deecdcc2803154fb8d
2021-08-13 13:57:45 -07:00
Adeeb Shihadeh 48f53addbf tici: set amplifier config after exiting power save (#21920)
old-commit-hash: 31933969693b0e1b62fcf94953f2c46b0c2213d0
2021-08-13 00:46:54 -07:00
Adeeb Shihadeh 6c4bf564c4 agnos 1.2 (#21847)
old-commit-hash: 589f82c76627d634761a31a34b2488403556eb0b
2021-08-04 11:10:05 -07:00
Adeeb Shihadeh 39429b6209 update agnos (#21813)
old-commit-hash: c545dc6e14f5d7559a532c164be1df1ba2216b05
2021-07-30 17:36:05 -07:00
Adeeb Shihadeh ac45115564 update agnos (#21775)
* update agnos

* update manifest
old-commit-hash: b55d7093767f196d5c018c32b62ebd279ba7a850
2021-07-29 20:00:11 -07:00
Adeeb Shihadeh a4cf1e33d8 only show updater UI if necessary (#21787)
* only show updater UI if necessary

* cleanup

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 060592e34ae4d1e53617909840a386d17c3226f0
2021-07-29 18:12:37 -07:00
Adeeb Shihadeh e6db374ac0 fix unused
old-commit-hash: 6bc556634046d28dcfb837f41cfa0214c340188b
2021-07-29 17:21:08 -07:00
Comma Device 66f1ee1075 fix updater UI repaints
old-commit-hash: 56d682831b857e1893769659e00461e801706bd6
2021-07-29 17:12:12 -07:00
Adeeb Shihadeh f4708c153e agnos updater UI (#21776)
* start agnos updater UI

* wifi

* progress

* sometimes things fail

* fix wifi

* in launch script

* fwd

* fwd stderr

* update that

* release files

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 14d26d6d891865ca14a5242edce4b14f0912854e
2021-07-29 15:57:58 -07:00
sshane 1f2fe189bd implement display power (#21731)
* implement display power

* FB_BLANK_POWERDOWN

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: f48064c4d77754a3183ec9dab33ed96b8a8a09ef
2021-07-28 14:26:58 -07:00
Adeeb Shihadeh 1c9742d3dd agnos 0.23 (#21740)
* agnos 0.23

* bump
old-commit-hash: bb507dc8fedff38d486b1ecf1a3159750a4d7205
2021-07-27 02:08:34 -07:00
robbederks c0957e78b6 do not update splash partition anymore (#21727)
old-commit-hash: ec9b7833fad6f86e80970da6cf4bffe00f6691a5
2021-07-26 16:35:04 -07:00
robbederks e31f004593 Tici sound improvements (#21722)
* tune amp config and add EQed sounds

* fix release files

* bump up max

* cleanup

* more volume

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: cebddc94c4903d04463ceb4c991ca813ea2a45a0
2021-07-26 16:28:41 -07:00
Adeeb Shihadeh 7853096383 agnos 0.22 (#21633)
* agnos 0.22

* stagign

* update
old-commit-hash: 19f7cabcd1800fb204e0a1e6778ddb2fa488dc2d
2021-07-17 14:52:50 -07:00
Willem Melching 63ac13feee agnos.py: retry swap (#21608)
* retry until success

* try this

* redirect stderr

* also check positive

* add logging

* f string
old-commit-hash: f4d87cecf7d752b7fc562e021fae905e0573314c
2021-07-15 16:11:10 +02:00