New AMD P-State performance scaling driver to replace ACPI CPUFreq

April 2, 2022 - Reading time: 2 minutes

Kernel 5.17 brought the new AMD P-State performance scaling driver, it is possible to force enable it for now to test before it is polished and enabled by default.

Fix system hanging on reboot or shutdown with /oldroot message caused by Nvidia

February 10, 2022 - Reading time: 2 minutes

Over the years there was no real solution for this sporadic issue where the system would hang for a minute or more, when trying to reboot or shutdown, with warning messages about /oldroot file system. The issue was completely random, you could not have it for weeks, then it could suddenly appear for no obvious reason.

It was known to be linked to the Nvidia drivers but no one could really tell why, many people claimed they had the solution by adding the Nvidia modules to be early loaded in mkinitcpio config, others with some other random voodoo, but none worked. They thought it worked because the issue is sporadic, and there is no consistency so they might had luck and on their subsequent tests there was no issue, but this had nothing to do with their "solution".

Get some disk space back for free

December 5, 2021 - Reading time: ~1 minute

By default the file system reserves 5% of partition space to priviledged user and processes, on a 1TB disk it starts to become insanely high number. Here is the manual part of tune2fs tool explaining it:

-m reserved-blocks-percentage
             Set  the  percentage of the file system which may only be allocated by privileged processes. Reserving some number of file system blocks for use by privileged processes is done to avoid file system fragmentation, and to allow system daemons, such as syslogd(8), to continue to function  correctly after non-privileged processes are prevented from writing to the file system.  Normally, the default percentage of reserved blocks is 5%.

OVH disaster

March 14, 2021 - Reading time: 2 minutes

I just finished rebuilding the new VPS for this web server, I did not have proper backups, so I ended up using google cache to retrieve most of the old content of the blog, some lost, nowhere to be indexed, some other scrapped too  in the process (because irrelevant or a waste of time to restore). So most of it is restored from October 2019 to now, with proper dates of creation edited.

Blacklist USB device from autosuspend

October 28, 2020 - Reading time: ~1 minute

The Xbox controller was suspending and I had to unplug/replug it to have it back working. From TLP documentation it is simple to change the behavior.

Hardware Acceleration in Firefox

October 27, 2020 - Reading time: 2 minutes

I wanted to enable Hardware Acceleration in Firefox, to improve performance (for example in the HTML5 benchmark https://testdrive-archive.azurewebsites.net/Performance/Chalkboard/) and test new features.

.bashrc customization

August 28, 2020 - Reading time: 5 minutes

Some customization done to my default .bashrc file. Most of them from DistroTube's .bashrc file on GitLab.

Fixing Firefox address/search bars and tabs background

June 14, 2020 - Reading time: 6 minutes

Firefox recently changed the address bar in a way that it is now horrible. I want the old address bar back, which simply yields results from my history and bookmarks, I don't need a big box popping out when I simply click in the address bar, I don't want top sites, search suggestions, buttons to search on specific websites, and all the bullshit that changed.

A few commands list

March 5, 2020 - Reading time: 3 minutes

A few commands listed in a single post because it is not worth having a separate post for each of them:

Fixing flickers during screen recording and TeamViewer session

January 6, 2020 - Reading time: 2 minutes

I had issues with screen recordings with Kazam or OBS, not during recording, but after when viewing the recorded video, there were some weird flickers showing parts of what was under the fullscreen application or window (could be the desktop wallpaper, the firefox window opened before the fullscreen application, whatever is 'under' the active program), similar to what we see in this image.

Getting rid of screen tearing in Firefox (or other applications)

January 6, 2020 - Reading time: 2 minutes

Screen tearing has been an issue since day one, I eventually managed to figure it out, but I recently got again the problems I had before, I forgot that I removed, tried things, and reinstalled NVidia drivers and tools, and this probably why my previous configuration wasn't there anymore.

Here is a reminder in case I have to spend another whole night wondering what I messed in the system.

Simple Bash Menu

May 30, 2019 - Reading time: 4 minutes

Here is a multi purpose script that I use to do some common things from a menu. It is easily expandable when I need to add more, here is current script:

Logitech G400s hack

May 22, 2019 - Reading time: 8 minutes

No proper driver support on Linux for my Logitech G400s mouse, so I need to come up with something to have some kind of driver/support/configuration

I eventually found and used the following tools, made some config files and a script that I start or restart if needed (for example if I plug the mouse to another port, or if I boot to Windows it will change the mouse internal driver mode because of the installed Logitech drivers, so I will need to force the script again when rebooted on Linux).

evrouter (used to assign keyboard keys to some mouse buttons not recognized by system)
imwheel (used to have program specific mouse button configs)
g400s_hack (used to set driver mode and dpi in the mouse as fixed settings, without it I can't use the buttons around mouse wheel as they would change mouse dpi on the fly (because of wrong driver mode) and/or would not be recognized by the system at all)