Federico Fuga

Engineering, Tech, Informatics & science

Is your audio continuously switching from Headphone to speakers?

30 Oct 2023 11:55 CET
If your audio card is continuously switching the output from headphones to speakers, making it impossible to use the sound, well, you are stumpled in a 9 years old bug that’s still unfixed despite the solution is as simple as editing two lines of a text file. This happens at least on my mint desktop, that is a 12 years old Intel i7 3rd generation, with linux mint 21.1 cinnamon. Continue reading

How to switch "\" with "<" keys in linux

28 Nov 2020 10:16 UTC
When using the Apple Magic Keyboard with linux and certain keyboard layout, some key may be exchanged with some other key. In my case, I have an Italian Magic Keyboard and a Ubuntu 20.10 running on VmWare Fusion and the “" and “<” keys are switched. The fix is pretty easy, but not easy to find on the net. This is the recipe: you need to force xmodmap to exchange the two keystrokes. Continue reading

Creating and using debug symbol tables with CMake and gdb

28 Jan 2020 14:36 UTC Embedded
Introduction When working with a big project on a resource constrained embedded hardware, it might be difficult to debug it properly on the target board. Executables and libraries compiled in Debug mode are big, bloated and slow. To proper debug them in GDB, you need compile symbols, otherwise you’ll not be able to understand what a stack trace means. Sometimes it may be useful to structure your project so that it can be debugged with emulators, mocks and simulated devices on a PC; it is a wise choice because emulators and mocks speed up debugging and developing when other parts (especially hardware and firmware) are not ready yet. Continue reading
Older posts