According to its man page, xdg-screensaver activate Turns the screensaver on immediately. This may result in the screen getting locked, depending on existing system policies I'd like to be able to fire this off without immediately locking the screen but at the moment these policies seem to be forcin...
Some years ago, I did something to inhibit the KDE screensaver, because I was using xscreensaver instead. Evidently I didn’t do it through systemsettings, as it’s not configured to be disabled there, or indeed in ~/.config/kscreenlockerrc (possibly that option wasn’t available at the time). My best...
With Xorg, I have a config file that allows me to click one particular button on my trackball mouse to switch the ball so it scrolls within a window rather than moving the pointer, viz: Option "ScrollMethod" "button" Option "ScrollButton" "9" Under Wayland this doesn't work (not surprisingly), so in...
I've had another go at running my system with Wayland and although I've got further than before (at least now I can get most of the buttons on my mouse doing what I want) I've hit a huge showstopper. My photo processing workflow (amongst other things) relies greatly on being able to manipulate windo...
When I have a background job (for example, launched from a startup script or systemd unit) I have to specify the $DISPLAY in the script in order for it to actually appear on my screen. When I finally manage to migrate to Wayland, is there anything similar I'm going to have to set to get it working?...
When I write code in languages such as like Perl, PHP or C, I can group the conditionals in a statement, such as: if (($i == 4 && $j == 6) || ($k < 0 && $i < 0)) So it returns true if $i is 4 and $j is 6 and also if $k and $i are both less than zero. If I want to group the conditionals in a shell sc...
I've been struggling with this for some time. If I run: command1 & I can get its PID from $!, so no problem. But if I run: command1 | command2 & then $! gives me the PID of command2. What I really want is the PID of command1. Other than a call to ps, is there any way to get the right PID?
I sometimes work with a reference copy of a file in one terminal (using vim's alias "view") while editing the same file in another. Every time I save the file and focus on the first terminal, vim tells me the file's changed and asks me what to do. I've found that using set invautoread stops the prom...
Windows 10 VM downloaded from Microsoft, running via QEMU. Is it likely to be some configuration option in QEMU I've got wrong or something hard-coded or configured in the VM? And is there likely to be anything I can do about it? [Edit]: the VM on my screen just shut down while I was watching it and...
I wonder if anyone has had any success working out how to get Firefox to work with the KDE native file chooser when running it sandboxed with firejail? Searching around the Web and trying various things, I've so far drawn a complete blank; about the only thing I've managed to work out is that it see...
I have a few filesystems on a fair-sized (5T) spinning rust disc. Every now and then, when I reboot (the computer runs 24 hours so rarely boots from quiescent) the boot hangs while systemd reports that its waiting for the filesystems on that disc to become available. Control-C to abort the boot and...
I've noticed that recently my kernel process count has been increasing massively every day between about 1920 and 1930, then returns to normal. Having finally managed to catch a snapshot of processes during the peak, I'm seeing a large number of processes like this: 1167334 ? 00:00:00 kworker/3:127-...
I'm planning to re-partition one of my logical volumes and while I'm at it I want to make sure the swap partition is on the outside edge, where I understand it'll be a bit faster. My assumption is that the start of the volume will be on that edge, but as I haven't managed to find anything to confirm...
It seems that MPD is supposed to send cover art, but I'm struggling to find any useful documentation as to how to implement this. This information talks about it finding an image file in the music directory, but even having ensured a file with the right name is there I'm not seeing it in my player (...
I can't find any obvious option in the manpage and so far I've failed to find search terms that get a useful answer. The way I like to work with all of my photographs is to keep the "modify" timestamp at the time I actually took the photo, so when I edit them, only the "change" timestamp is altered....
According to the Arch Wiki, it may be worth changing resample.quality to 10 and changing default.clock.rate to 44100. But that's all I've managed to find on how to get the best results. Even with those changes, my sound quality sounds a bit clipped (tried using mplayer and audacious), though I've tr...
When I originally set up my computer, I put an LVM on my primary SSD with a couple of partitions in it. As the system has evolved, it's now at the stage where /home takes up the whole of that LVM. So I'm trying to decide whether or not it's actually worth the effort of swapping things round so /home...
A (large) EXT4 filesystem has started throwing "uncorrectable sectors" errors to SMART. In an attempt to keep things running until I can get a replacement for it, I decided to run fsck with "-c" to run badblocks and blacklist the faulty sectors. Not surprisingly, this took a long time (it's a 5T dis...
I have a radio system using RTL-SDR dongles, which makes streams of various radio stations available on my computer. Occasionally, when a DAB multiplex reconfigures, the streams die for a few seconds while my system re-synchronises with the multiplex. When this happens, Audacious naturally loses the...
I happened to be watching my syslog for something else when I noticed that my network link keeps bouncing. So I'm seeing frequent message pairs, viz: Mar 7 18:01:56 antwerp kernel: [71207.829957] r8168: enp5s0: link down Mar 7 18:02:03 antwerp kernel: [71214.965150] r8168: enp5s0: link up What makes...
This obviously needs more explanation. What I'm trying to do is schedule a job to trigger at sunrise every day. So obviously the precise time it triggers will differ every day and will also change by an hour when summer time begins or ends. Obviously I could achieve this by running a timer at, say 0...
I can turn my screen off from within an X session by running: xset dpms force off I thought it would be useful to do this after I log out of my KDE session, so I tried setting up a systemd timer that triggers shortly after logoff to run that command. But it seems it won't blank the screen because it...
My attempt to move from JPEG to WEBP for my photos has stalled because I don't seem to be able to write metadata to them. Exiftool supports reading WEBP EXIF but not writing it. And none of the utilities in the WEBP package can write EXIF data (cwebp can copy EXIF when copying a JPEG, but not write...
I'm creating a new root partition on a second drive, as a mirror of my existing root partition. I also need to make sure the EFI partition is on the second drive as well. My planned workflow: copy / and /boot/efi to the new disc. edit /etc/fstab on the new root partition to point at the new root and...
If I run ls on a directory where there are spaces in the filenames, the output wraps the names in quotes. But if I then run that list through a pipe (say, into more) or redirect the output to a file, the quotes are stripped. I'm sure there are some good search terms to find the answer, but they've e...
For some reason this has started to happen from time to time recently. It seems to go ape-shit and eat up a lot of CPU and it also means that when I log back in my desktop doesn't initialise properly. It's clearly messed up, as it needs kill -9 to get rid of it. At the moment I'm trying a workaround...
I'm investigating the idea of using systemd-run to replace some at jobs. While it seems straightforward enough, I've spotted that the unit and timer files get placed on volatile filesystems rather than on a "real" disc, which means if I reboot I'll lose them and the jobs won't run. IE: systemd-run -...
Because I have a number of user services, some of which are normally stopped when I log out of my desktop, the stop jobs also run when I log out/reboot. So as my computer is shutting down, I get a message along the lines of "a user stop job is running". But there's no obvious way I can identify that...
I'm looking at moving some of my own systemd units to being user units. I've found that I can keep user services running after I log out by enabling lingering, which is good for some of those services. However, there are some services which don't need to be running while I'm not logged in. Obviously...
I've recently set up a streaming system for my music collection using mpd and icecast and that's working very nicely. It struck me that for other audio (timeshifted radio) it would be fun to have another stream I can listen to remotely. As I use audacious when I'm listening to timeshifts on my compu...
I'd like to subscribe to a few podcasts, but I don't want to have to actually play them in whatever program I use to download them. Does anyone have a package they can recommend for this purpose? To explain my reason, I already have a home-brewed system for timeshifting DAB radio programmes from my...
Anyone else seen messages like these? Any idea what's causing them? Message from syslogd@antwerp at Feb 9 10:32:11 ... kernel:[163187.075356] Uhhuh. NMI received for unknown reason 2d on CPU 1. Message from syslogd@antwerp at Feb 9 10:32:11 ... kernel:[163187.075358] Do you have a strange power savi...
I have a webserver on my home machine which I use for development purposes. In order for a few people to view a site as it's developing, I need to have it open to the Web by opening a NAT path on my router. I've noticed to day that there are ongoing attempts from various IP addresses to crawl the si...