- By Edmond Lau
- Highly Recommended 👍
- http://www.theeffectiveengineer.com/
- They are the people who get things done. Effective Engineers produce results.
| #! /usr/bin/env python3.5 | |
| """ | |
| Fixing bluetooth stereo headphone/headset problem in ubuntu 16.04 and also debian jessie, with bluez5. | |
| Workaround for bug: https://bugs.launchpad.net/ubuntu/+source/indicator-sound/+bug/1577197 | |
| Run it with python3.5 or higher after pairing/connecting the bluetooth stereo headphone. | |
| This will be only fixes the bluez5 problem mentioned above . |
| #!/usr/bin/env python | |
| # gpu_stat.py [DELAY [COUNT]] | |
| # dump gpu stats as a line of json | |
| # {"time": 1474168378.146957, "pci_tx": 146000, "pci_rx": 1508000, | |
| # "gpu_util": 42, "mem_util": 24, "mem_used": 11710, | |
| # "temp": 76, "fan_speed": 44, "power": 65 } |
| #!/usr/bin/env python | |
| # gpu_stat.py [DELAY [COUNT]] | |
| # dump some gpu stats as a line of json | |
| # {"util":{"PCIe":"0", "memory":"11", "video":"0", "graphics":"13"}, "used_mem":"161"} | |
| import json, socket, subprocess, sys, time | |
| try: | |
| delay = int(sys.argv[1]) | |
| except: | |
| delay = 1 |