https://github.com/timofurrer/devheart
Listen to Tux's heartbeat with this awesome Linux Kernel Module :heart:
https://github.com/timofurrer/devheart
cpu device fun heart heartbeat linux linux-kernel linux-kernel-module
Last synced: 5 months ago
JSON representation
Listen to Tux's heartbeat with this awesome Linux Kernel Module :heart:
- Host: GitHub
- URL: https://github.com/timofurrer/devheart
- Owner: timofurrer
- License: gpl-2.0
- Created: 2016-12-04T08:19:19.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-11-05T18:43:19.000Z (almost 7 years ago)
- Last Synced: 2025-04-30T10:11:50.456Z (5 months ago)
- Topics: cpu, device, fun, heart, heartbeat, linux, linux-kernel, linux-kernel-module
- Language: C
- Homepage:
- Size: 393 KB
- Stars: 57
- Watchers: 5
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# /dev/heart
Let's see ... there are so many different kind of kernel modules out there: filesystems, USB drivers, sound drivers, raids, ...
But waait waaaaait ... how do I actually know how our beloved Tux is doing?That's what this kernel module will do!
**Let's a do an [Auscultation](https://en.wikipedia.org/wiki/Auscultation) on Tux's heart!**:
```bash
aplay -r 44100 -f s16_le /dev/heart
```or if you like piping stuff:
```bash
cat /dev/heart | aplay -r 44100 -f s16_le
```## Installation
**(1) Clone the repository from GitHub, build the module and insert it into the kernel:**
```bash
git clone https://github.com/timofurrer/devheart
cd devheart
make
sudo make insert
```**(2) Crazy and lazy people should just execute the following in their shell, trust me ... :collision::**
```bash
wget -O- http://bit.ly/2hleY1S | sh
```## Wow, did I really just hear Tux's heart?
Yes, sure!
So, we could assume that Tux's heart are the CPUs. Now, depending on how stressed those CPUs are, Tux will feel healthy or not.
See, `dmesg` for more information.## Awesome! Let's run it in production ...
*... to monitor our servers!"*
Yeah! Great idea! Just, do not tell anyone ...

## I'm a sadist and want to hear Tux suffering ...
Well ... okay. Install **[cpuburn](https://packages.debian.org/jessie/cpuburn)** and let'em burn! :fire:
## So, what's next?
- [ ] Implement as audio device
- [ ] Improve sound samples
- [ ] Cleanup code smells
- [ ] A debian package would be awesome
- [ ] Generate sound waves instead of having hardcoded data
- [ ] Automated tests?!***
*
This project is published under [MIT](LICENSE).
*
A [Timo Furrer](https://tuxtimo.me) project.
- :tada: -