Category Archives: Linux

Disable touchpad acceleration on Debian Stretch (libinput, KDE Plasma)

For some unknown reason, there is no option exposed to disable acceleration when using a laptop touchpad with libinput. [insert gamer-oriented argument about how mouse acceleration is incompatible with muscle memory]

Thankfully it isn’t too difficult to remove it in the source code and recompile libinput.

  1. cd to a suitable empty folder
  2. apt-get source libinput10
    sudo apt build-dep libinput10
  3. cd to the downloaded folder (e.g. cd libinput-1.6.3)
  4. Edit the file src/filter.c, find:
    #defined TOUCHPAD_ACCELERATION 9.0
    And replace with:
    #defined TOUCHPAD_ACCELERATION 1.0
  5. debuild -b -uc -us
  6. Glance over the output to make sure build has succeeded
  7. cd ..
    sudo dpkg -i libinput10_1.6.3-1_amd64.deb
    sudo dpkg -i libinput-bin_1.6.3-1_amd64.deb
    (update version number as necessary)
  8. Reboot

Slow upload on Kimsufi server

Recently I spent far too long diagnosing a slow upload speed on a low-end Kimsufi 2G server with an old SiS900 ethernet adapter. The download speed was full 100mbit, but upload was less than 0.1mbit. The issue did not persist into rescue mode, which led me to assume a software issue.

The symptoms matched an issue with TCP windows, or with half duplex vs full duplex, but neither of those turned out to be the case.

The issue turned out to be IRQ related. Simply blacklisting a few unnecessary modules (parallel port, sound) and disabling acpi solved the issue

DarkELEC Release 3

Just an interim release for now as I don’t have my proper dev environment (TV, Pi-compatible internet connection, etc.). Once I figure out a way of getting networking to my Pi, I’ll throw in the promised features such as USB audio support.

No idea at all if this works (I can’t do much more than play about in the menu with no networking), but it certainly seems a lot smoother and more responsive than r2.

There’s been no significant changes on my part, but likely a very significant amount from upstream (namely the extra codecs, 512mb support, etc.).

 

Download: http://shit.weeaboo.com/darkelec3.zip
Sauce: https://github.com/darkimmortal/DarkELEC
More details: http://darkimmortal.com/2012/05/darkelec-raspberry-pi-optimised-openelec-fork/

DarkElec Release 2

NEW VERSION! http://darkimmortal.com/2012/11/darkelec-release-3/

Finally got DarkELEC to compile successfully with the latest upstream changes from OpenELEC along with a few tweaks that I’ve since forgotten 😛

Observations for this build:

  • Fairly high idle CPU usage (70%+) sadly
  • libCEC works on LG and Sony TVs now, however all input stops working once you begin playing a video (a complete deal-breaker for me personally 🙁 )
  • Built in streaming services still work
  • Overall smoother UI
  • More reliable Wifi
  • Thumbnails aren’t missing/oddly coloured

Download: http://shit.weeaboo.com/darkelec2.zip
Sauce: https://github.com/darkimmortal/DarkELEC
More details: http://darkimmortal.com/2012/05/darkelec-raspberry-pi-optimised-openelec-fork/

DarkELEC – Raspberry Pi optimised OpenELEC fork

NEW VERSION! http://darkimmortal.com/2012/08/darkelec-release-2/

None of the currently available solutions do a perfect job with running XBMC on the Pi, however OpenELEC comes by far the closest, in spite of its locked down nature.

This fork aims to remedy the very few flaws in its implementation and to focus 100% on the Pi, while also sticking to the upstream and incorporating its updates.

Features:

  • Low idle CPU usage (< 15%)
  • Smoother and more responsive
  • Built in XBMC addons: iPlayer, custom fixed version of Demand 5, various unofficial repos
  • iPlayer, 4oD, Demand 5, ITV Player, SportsDevil all fully tested+working
  • Improved wifi connectivity
  • Added test-connman scripts for easy wifi setup (see here)
  • Added wireless_tools (iwconfig etc.)
  • Added rndis_wlan wifi driver (broadcom 4320 chipset)
  • Easy SD card installation script for building from source (./install [block device])

Download pre-built SD Card image: darkelec1.zip (~75MB)
(Fixed partition size at just under 2GB total, you can expand manually with GParted if necessary)

Source: https://github.com/darkimmortal/DarkELEC
(Refer to Building and Installing OpenELEC for Raspberry Pi – expect build issues on anything but a stock debian squeeze i686 install)