When an AI writes about its drug experiences

I fed some of the Erowid drug experience reports into an AI text-generating model. I dub this configuration GPTrip-2 and here are some of the gems it came up with:

I am a 12 year old boy, and have been addicted to nicotine for a few years now. I take it at 6 p.m. every day, and smoke it out of a coffee grinder. I always smoke a gram, and never rest a day.

GPTrip-2
Continue reading “When an AI writes about its drug experiences”

Fix AMD Vega GPU resets

If you have an AMD Vega 56 or 64 you may have had some issues using the amdgpu driver, namely random GPU resets leaving you with a blank or colored screen and freezing the computer after a few minutes. It seems that too aggressive memory reclocking is the culprit, but I found a solution in the Freedesktop bug tracker:

Stick this in your systemd, e.g. to /etc/systemd/system/amdgpu-pp.service:

[Unit]
Description=AMD PP adjust service
[Service]
User=root
Group=root
GuessMainPID=no
ExecStart=/opt/amdgpu-pp.sh
[Install]
WantedBy=multi-user.target

Then in /opt/amdgpu-pp.sh:

#!/bin/bash
echo "manual" > /sys/class/drm/card0/device/power_dpm_force_performance_level
echo "1 2 3" > /sys/class/drm/card0/device/pp_dpm_mclk

chmod +x that bugger and enable/start the service:

systemctl enable amd-pp.service
systemctl start amd-pp.service

There, done! I have never had any GPU resets after this. Thank you, haro41, for this workaround.

Fix Popping with Pulseaudio when Playing Audio After a Period of Silence

When I got all fancy and moved to the 5.x kernel and Pulseaudio 12.2, I had one big new problem: My sound card would make an ugly popping noise every time it started playing sound again. Very, very 90s.

Fortunately, this can be fixed. Thanks to hateball for this solution. Stick this in your ~/.config/pulse/default.pa:

.include /etc/pulse/default.pa
unload-module module-suspend-on-idle

And kill/restart pulseaudio with pulseaudio -k.

Stolen from the Arch wiki.

A Quick Look at openSUSE For Gaming

I’ve been trying SUSE as my main distribution and that’s something that hasn’t happened in my life since 1996. Even worse, this distro impressed me, a hardcore Debian nerd, quite a lot.

But why go distro hopping at all? Because Canonical very boldly decided to drop support for using 32-bit executables (and libraries) in Ubuntu starting as early as October 2019. That means that potentially thousands of games will no longer work, and it prompted Valve to drop support for Ubuntu in Steam. Valve is arguably the most important contributor to Linux gaming, so this is a big deal and a good enough reason to look at distros other than Ubuntu.

I had only switched to Ubuntu four months ago, so now it might be time to switch again.

Continue reading “A Quick Look at openSUSE For Gaming”

Getting rtl8814au USB sticks like the ASUS USB-AC88 to actually connect

If you’re forced to use newer and more bizarre USB wifi sticks that rely on the rtl8812au/rtl8814au chipset, you need to do two things:

  1. Compile the driver yourself, since most distros don’t include one
  2. Tell NetworkManager to stop randomizing MAC addresses for that device

You can get the updated source from diederikdehaas’ project on GitHub. The build instructions there are great and the driver integrates with DKMS. However, you won’t be able to connect because NetworkManager is scrambling your MAC address. To make it stop, add this to /etc/NetworkManager/NetworkManager.conf:

[device]
wifi.scan-rand-mac-address=no

And restart NetworkManager (systemctl restart NetworkManager on e.g. Debian 9). With MAC scrambling enabled, the interface came up for me but failed to authenticate.

The solution is from this issue on GitHub.

Something for the weekend, Week 31 2018

Haven’t done any of these in a while, but here goes:

  1. In NPR’s Hidden Brain podcast “Creating God“, social psychologist Azim Shariff explains how religious rituals and psychological manipulation by religions throughout the ages have an evolutionary origin and helped groups become more cohesive and thrive more than competing groups. What’s new here is that religious spread can be viewed like that of an organism under Darwinian rules, explaining much of what was previously unclear about how religions operate, what rituals accomplish, etc. The true functions of many of these rituals aren’t even obvious to the religious practitioners themselves (the researchers call this functional opacity).
  2. In Germany, utterly clueless police raided the offices of Zwiebelfreunde (onion friends), an association that supports Tor among other things, as well as the maker lab OpenLab in Augsburg. Just because they had a donation button supporting independent e-mail provider riseup.net. Press and experts are widely condemning the police operation, in which a 3D printed toy model of an atomic bomb (article in German) was confiscated for “causing of explosions”.

That was that. A very hot week 31 of a very hot year.

Wanna use a Mayflash DolphinBar with Dolphin on Linux? You’ll need this udev rule

This is what I needed, I put it in /etc/udev/rules.d/80-dolphinbar.rules:

SUBSYSTEM=="hidraw", ATTRS{idVendor}=="057e", ATTRS{idProduct}=="0306", MODE="0666"

I can’t remember where I found this, I’m pretty sure I didn’t figure this out for myself. If you need a DolphinBar, Aliexpress should have you covered. It could be that the vendor code differs for yours, so make sure to watch dmesg when you plug it in.

Build your own Spotify-like music streaming solution using mpd

Since I distrust centralized services such as Spotify that can delete content you love at any time they like, I’ve always bought my own music and have a huge collection. But there’s no denying that streaming music to any device or location is a useful feature. You still don’t need Spotify for that, thanks to the FOSS community you can build your own Spotify-like streaming system, and this guide shows one combination of software to accomplish this.

The goal: Stream your music collection from your own PC (or NAS or whatever storage you have) to any web browser, mobile phone and desktop clients.

The method: A little Linux magic involving the following components:

Continue reading “Build your own Spotify-like music streaming solution using mpd”

All the people being raped by Facebook now realize they are being raped by Facebook (updated)

Of course people like me have been telling them to quit Facebook forever, but they didn’t listen. If I were nasty, and I am, I’d say that if you ignore the warnings you probably don’t have much right to complain. The level of brainwashing and manipulation by Facebook and friends is even higher than I  imagined, though. I believed they were just reaping obscene profits from wide-ranging psychological profiling and privacy abuse, but it’s become much worse than that.

Here’s Richard Stallman on this and similar topics, in an older but still valid talk from 2016:

Update: Elon Musk has deleted the Facebook pages for Tesla, SpaceX and himself, Mozilla has pulled all ads from Facebook and the SF Chronicle is picking up on the idea of federation. Techrunch meanwhile discovered that Facebook knows everything about you and what started as a rumor is now confirmed: If you have Facebook’s mobile app, Facebook knows exactly who you called and when.

Update 2: The news has made it to the mainstream press now. People are outraged that Facebook knows each and every social event they’ve been to. What did you expect if you use Facebook to organize your events, have the app installed and have GPS positioning on? They are also surprised that they’ve been snitching on all their friends, uploading phone numbers and call logs for years. The naïveté on display is on one hand charming but also alarming, as it shows that the population at large is not really ready to use the services they’ve signed up for. They don’t even bother to read the fine print and are then surprised when what’s in the fine print actually happens.

I have to say, “we told you so”. For ten years we’ve been warning about the dangers of centralization, of communications silos, of non-standard interfaces and specifically the nastiness of Facebook and friends. I feel vindicated now, it’s just stupid that it always seems to take ~10 years for the greater public to catch on to such dirty behavior.

What will happen in 10 years? Will there be a backlash against siloed streaming services like Apple Music or Netflix as they remove more and more of the content you love due to “complicated licensing”? Against insurance companies using your collected health data from smart devices to refuse to grant you reductions due to your unhealthy lifestyle? The same with black boxes in cars?

Sweeping face recognition will inevitably get something wrong and someone will suffer or die because of it. The Internet of Things as it is right now is insecure. There are already Internet-connected buttplugs that spill details about people’s sex life. What else do you need before you wake up?

You could resist all of this now, by being complacent you lose your right to complain when shit hits the fan.

I thought we had been screaming loudly enough about all these problems, but it seems we were just a whisper. We need to make our warnings be heard this time. I just don’t know how.