Skip to content

u/grawity

In this archive from Nov 2018 to Jul 2023

0
posts
450
comments
0
media
1.8k
score

Top comments

Who does it report to?

This guy.

Actual answer:

Who does it report to?

It sends an email to the root user on your system.

If you have some package that provides the sendmail program (i.e. a MTA like postfix, exim, or msmtp-mta), it'll be used to send the email. How and where it gets delivered depends on the MTA's config (e.g. it might deliver locally to /var/mail, or forward via SMTP to your personal Gmail, or whatever). The same feature is used by Cron to deliver cronjob outputs.

If you don't have any sendmail program (by default on Arch you don't), then I think sudo just directly writes the email to the traditional /var/mail/root spool file, but it could also be that it goes nowhere at all.

(Debian for example includes exim4 by default, so mail for local users actually goes to /var/mail by default. If you've ever seen bash print a "You have mail" at the prompt, it's checking that file.)

All of this goes back to the days of large multi-user Unix systems, when email was kinda part of the system and not an "app" like now – your Unix account was your email account, etc.

250 points

Ah, from the series of "why is cheese trying to capture video through my synaptics touchpad" and "why is gdm displaying a login screen on my Mac's touchbar".

I'm guessing it's normal to use an "audio" interface for controlling haptics (instead of a completely custom one that ends up being like audio anyway) but pipewire doesn't know that and thinks it's just a regular output.

I'd try reporting it to pipewire first and they'll know where to go with it.

63 points

The DE doesn't matter because almost all the work is done by the kernel these days – it's not the DE that has to know how to suspend every thing individually, there's a single kernel interface that they all use to invoke the whole suspend process.

So if you really wanted, you could suspend the machine by just writing to /sys/power/state – I think the only job of UPower is (was?) to make it an unprivileged operation (DEs don't like using sudo behind the scenes).

But systemctl suspend is the preferred option, as it also lets all processes know that the system is about to go down.

UPower is still in use by DEs (i.e. not considered obsolete), it just doesn't do as much as it used to, after systemd-logind took over some of its functions. In particular, I think the unprivileged calls got moved to logind, which is what systemctl suspend uses. What's left is just the battery monitoring basically.

If you're asking about automatic suspend when the battery is low, I believe that's still done by UPower... although I also have a custom background script that watches battery level and triggers a suspend when needed.

36 points

It has an impact on not being able to load kernel modules, such as drivers for your Ethernet interface, because they no longer exist in /lib/modules/6.2.8-arch1-1/ which is where kmod would be looking for them. You still have your keyboard and GPU because modules for those were copied into the initramfs and are being loaded from there, but that’s all you have.

If you didn’t have a live USB you could try manually insmod'ing the modules from a different version (there’s a chance they will work as long as the differences in version are minimal), but since you do have a live USB it’s much recommended to resync /boot instead. That is:

  1. With /boot not mounted, clean up all the files that ended up in the /boot subdirectory of your rootfs. Generally it should just be empty.
  2. Mount /boot and reinstall the linux kernel package via pacman.

If you can’t reinstall it from a package for some reason, replace step 1 with “back up contents of the wrong /boot, place them in the right /boot” so that the new vmlinuz ends up in the right place.

Failing that, there’s a copy of vmlinuz inside the modules directory which can be copied to /boot and then you can use mkinitcpio to build an initramfs.

(I’m writing this on ios12 instead of the usual android and holy duck is the iOS keyboard and autocorrect annoying)

25 points

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.