| 25 Jan 2023 |
@elvishjerricco:matrix.org | Lily Foster: Weird, systemctl list-dependencies --reverse systemd-vconsole-setup.service only lists plymout-start.service. Not even any transitive reverse deps | 18:18:24 |
@lily:lily.flowers | Oh yeah I don't use plymouth, so that may be why adding it did nothing for me | 18:18:54 |
@lily:lily.flowers | (And also why vconsole settings matter a little more for my ability to type luks password) | 18:19:19 |
@elvishjerricco:matrix.org | I guess plymouth-start isn't wanted by anything in stage 2 | 18:19:20 |
@elvishjerricco:matrix.org | but yea, maybe add the unit to the upstream units list and make it wanted by initrd.target or something? | 18:19:45 |
@elvishjerricco:matrix.org | not that it would necessarily matter; the udev stuff should probably do the trick | 18:20:06 |
@lily:lily.flowers | In reply to @elvishjerricco:matrix.org but yea, maybe add the unit to the upstream units list and make it wanted by initrd.target or something? I'll try that and see if it helps then. I'm not sure if it'll just continue racing like that or not (does modesetting reset vtcon settings or something?) | 18:21:11 |
@elvishjerricco:matrix.org | I know absolutely nothing about the vconsole stuff | 18:21:51 |
@lily:lily.flowers | Hey same | 18:22:34 |
@lily:lily.flowers | Which is why debugging this for me has mostly been trying random seemingly-related changed | 18:22:53 |
@lily:lily.flowers | * Which is why debugging this for me has mostly been trying random seemingly-related changes | 18:23:00 |
| 26 Jan 2023 |
| @viktor:kleen.org joined the room. | 17:06:51 |
@lily:lily.flowers | In reply to @elvishjerricco:matrix.org but yea, maybe add the unit to the upstream units list and make it wanted by initrd.target or something? So it does look like dracut actually manually adds Wants for the service to stuff: https://github.com/dracutdevs/dracut/blob/3c16c76fb51683cd70c3643b122685b7cdb4178c/modules.d/00systemd/module-setup.sh#L249-L256 | 23:29:27 |
@lily:lily.flowers | Maybe we need to do that too? | 23:29:37 |
@lily:lily.flowers | (I have made the change you suggested locally and I've just been waiting to see in the next week if it happens again during boot or if your suggestion fixed it) | 23:30:43 |
@lily:lily.flowers | It actually looks like mkinitcpio doesn't even install that .service anymore (and they used to have a module load hack to fix the problem I'm having): https://github.com/archlinux/mkinitcpio/commit/8d1d5cce87cec6038dfc42c93e1c65b486bff16f | 23:43:52 |
| 27 Jan 2023 |
@elvishjerricco:matrix.org | Hm yea according to https://github.com/systemd/systemd/issues/4699, it sounds like the udev rule is all that's expected to be needed | 00:10:37 |
@lily:lily.flowers | In reply to @elvishjerricco:matrix.org Hm yea according to https://github.com/systemd/systemd/issues/4699, it sounds like the udev rule is all that's expected to be needed We don't even seem to be doing anything different from mkinitcpio for vconsole stuff that I saw, and I've not seen anyone else say they've had an issue like this for NixOS. So I'm worried I may be the only one with this issue (and it's not show-stopping, it's just mildly annoying when my vconsole settings get reverted before I type my luks password) | 00:14:03 |
@lily:lily.flowers | (granted not many people on NixOS are using stage 1 systemd) | 00:14:19 |
@lily:lily.flowers | So it seems the issue happens when fb0 switches from efifb to i915drmfb, which resets the fbcon on vtcon0 (presumably indicated by the log item kernel: Console: switching to colour frame buffer device 282x94). So depending on what events trigger the "change" event for vtconsoles, setting that udev rule could cause later setfonts to be overriden by the default vconsole settings
I'm trying a few kernel params to attempt to prevent the switches during initrd for further testing in confirming the cause
| 14:58:52 |
@lily:lily.flowers | * So it seems the issue happens when fb0 switches from efifb to i915drmfb, which resets the fbcon on vtcon0 (presumably indicated by the log item kernel: Console: switching to colour frame buffer device 282x94). So depending on what events trigger the "change" event for vtconsoles, setting that udev rule with ACTION="add|change" could cause later setfonts to be overriden by the default vconsole settings
I'm trying a few kernel params to attempt to prevent the switches during initrd for further testing in confirming the cause
| 14:59:14 |
@lily:lily.flowers | Yeah setting i915.fastboot=1 makes the problem go away and also reduces flickering during boot anyways so I'll probably keep that set | 15:08:01 |
| 28 Jan 2023 |
@elvishjerricco:matrix.org | Anyone here using hibernation over LUKS with systemd initrd? | 19:32:48 |
@elvishjerricco:matrix.org | https://github.com/NixOS/nixpkgs/issues/213122 | 19:32:53 |
@elvishjerricco:matrix.org | I doubt this has anything to do with btrfs, but I wanted to know if anyone's had anything similar successfully working. I don't think it would be the use of swapfile instead of device either | 19:33:38 |
@elvishjerricco:matrix.org | * I doubt this has anything to do with btrfs, and I wanted to know if anyone's had anything similar successfully working. I don't think it would be the use of swapfile instead of device either | 19:34:01 |
@lily:lily.flowers | I've tested it and it does work on my system. But I don't really use it more than those few times because I was curious if it worked | 19:34:44 |
@elvishjerricco:matrix.org | Was that over LUKS? | 19:34:52 |
@lily:lily.flowers | Yes | 19:34:59 |
@lily:lily.flowers | Swap lv in luks | 19:35:14 |