rmed.blog

Posts tagged 'linux'

Using RPi Zero as a Keyboard Part 3: Sending and receiving reports

13 Jul 2017

In this third and last part of the series we will use the new keyboard to send keystrokes to the connected computer. To do this, I will provide a couple of examples using Bash and Python, although they can be easily translated to other languages.

Tags: keyboard pi input output raspberry pi hid keys report zero linux rpi descriptor

Using RPi Zero as a Keyboard Part 2: Report descriptor

05 Jul 2017

In this second part of the series we'll see the structure of HID report descriptors and how to apply them to the virtual keyboard. When done, the gadget will be completely configured and ready to use.

Tags: pi keyboard raspberry pi hid rpi zero linux report hidrd descriptor

Using RPi Zero as a Keyboard Part 1: Setup and device definition

26 Jun 2017

The Raspberry Pi Zero is a cool little piece of hardware with many possibilities. One of them is that it can work as a USB host OR as a USB gadget, meaning that it is possible to implement different types of devices such as ethernet, HID (keyboard, mouse, gamepad, etc.), audio, mass storage, etc. In this 3-part series of post we'll see how to configure and use a simple and generic keyboard gadget to send keys to the connected host.

In this part I'll go over the process of defining the gadget, breaking down what each different configuration files is used for and giving example values.

Tags: keyboard pi raspberry pi hid rpi zero linux configfs gadget

Installing Zoe in a VPS

16 Aug 2015

I recently acquired a VPS for... things? Obviously, one of the first things I did was installing Zoe, especially since I wanted to use the sysinfo agent. Here's how that went.

Tags: debian linux zoe server

Google hangouts in Debian jessie

18 Jan 2014

I use a Debian testing distribution (x64) and the hangouts complement just didn't want to work (in firefox), always asking for its installation when trying to have a video "hangout", even though it's installed. Turns out that there is a particular library that prevents the complement from working, and that is libudev0.

Ironically, this library is no longer in the Debian testing repositories, using the more recent libudev1 instead. In order to get the complement to work, these steps should be enough.

Make sure that libudev1 is installed (which probably is):

$ dpkg -l libudev1

||/ Name           Version      Architecture Description
+++-==============-============-============-=================================
ii  libudev1:amd64 204-6        amd64        libudev shared library

Purge the complement (if installed) and remove the libudev0 library:

# apt-get purge google-talkplugin && apt-get remove libudev0

And then install the complement again. In my case:

# dpkg -i google-talkplugin_current_amd64.deb

Now, after restarting the web browser, the complement should work correctly.

Tags: debian plugin hangouts linux google jessie

Bumblebee and kernel updates

21 Nov 2013

Just recently, my Debian machine updated the kernel to 3.11. I should note that I have an Optimus laptop, which means that I need Bumblebee to enable/disable the discrete graphics card and have power management.

This is more of a reminder to myself than anything, but don't forget that linux-headers must be installed in order to build the DKMS modules for the kernel, including the bbswitch module (used for power management) as well as the nvidia module itself (otherwise Bumblebee will not be able to load the driver). Installing the headers is as easy as doing:

# apt-get install linux-headers-`uname -r`

There's that.

Tags: bbswitch kernel linux nvidia bumblebee