rmed

blog

Posts tagged: "linux"

Nvidia Optimus, Clevo, and power management

2019-08-21 15:11 +0200

I've had a PC Specialist Optimus IX (Clevo N850EP6) laptop for a while, dual booting Debian testing (with kernel 4.19) and Windows 10. This laptop has a hybrid graphics system with an integrated Intel UHD 630 and a dedicated NVIDIA GTX 1060 and, while it works pretty well for the most part, there have been several issues regarding power management, freezes (looking at you lspci!) and other malfunctions.

"Luckily" I am not the only one who has had these issues, so I finally could find a good solution for my case.

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

2017-06-26 16:40 +0200

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.

Google hangouts in Debian jessie

2014-01-18 21:32 +0100

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.

Bumblebee and kernel updates

2013-11-21 14:27 +0100

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.