Working on a python module for drawing in the framebuffer in linux console.
Some convenience functions like poly, line, rect, arc and a character generator added. Has a rudimentary multiple drawing-surface manager (wouldn’t call it windows yet).
All administration and access to drawing functions through python, actual drawing is done by a helper function written in c.
Wrote this as part of an audioplayer project raspberry pi/wolfson pi. needed a framebuffer audioscope, phase plotter, while being able to use curses based progs simultaneously.
I actually got my inspiration from adafruit *and*
raspberry-compote *and* karoltomala
This one is made with the fbpy module:
documentation of fbpy. preee alpha
Work in progress!!!
Not sure about all the details yet, working on it.
Without using pulseaudio etc.. I wanted to capture the output of my soundcard in python.
I used modprobe snd-aloop
and added the following to my .asoundrc :
ipc_key 5978293 # must be unique for all dmix plugins!!!!
That pcm hw:4.1 I got from using cat /etc/asound/cards
in python I use now
self.inp = alsaaudio.PCM(type=alsaaudio.PCM_CAPTURE,mode=alsaaudio.PCM_NORMAL,card="plug:mixin")
It is important to set the
self.inp.setperiodsize to the same value as in the asoundrc file etc..
This http://wiki.ubuntuusers.de/.asoundrc article was very useful!!
Edited the file /etc/default/grub
It was actually the second line that got things working!
To find the resolution I used
In the same directory in the file console-setup
Also checked the /etc/modprobe.d/blacklist-framebuffer.conf
Lately I’ve been working on a web interface for the console based (curses) audioplayer cmus. I need the interface for an audioplayer project I am working on based on a raspberry pi and wolfson pi.
Cmus can be controlled via UNIX socket, using cmus-remote which makes external control easier. Having a text-based interface there is no need for display manager and GUI on the computer.