💾 Archived View for thatit.be › 2024-07-02-23-54-14.gmi captured on 2024-07-09 at 00:39:01. Gemini links have been rewritten to link to archived content
➡️ Next capture (2024-08-18)
-=-=-=-=-=-=-
The last time I played with NixOS on my GPD Win 2, I managed to get it installed, but then I didn’t use it too much after that. I didn’t even fix the display rotation issue.
A few days ago I picked it up, dusted it off, and ran software updates. Then I copied some elements from my MacBook’s configuration.nix just to try to keep the software configurations somewhat consistent between my different systems.
Instead of continuing to use X11, I put Hyperland on it. I also found the arguments for the configuration file to have the framebuffer rotated at boot (I don’t know why these tiny devices use the wrong portrait/landscape settings, I realize the screens are lifted from cell phones, but it would be nice if they’d just do that in the hardware…)
The setting to rotate on boot in my configuration.nix file:
boot.kernelParams = [ "fbcon=rotate:1" ]
And when Hyprland started up, I added this to the hyprland.conf:
monitor=eDP-1,preferred,auto,1,transform,3
I kept the existing monitor line and added this new one. It was a bit of a guess. I knew the display name from playing with xrandr previously. Somehow it doesn’t match the fbcon rotation value, as it was a 3 here instead of a 1.
Having this fbcon value is a bit of a mixed bag, it will rotate all displays. So if I hook up an external monitor, the console is rotated on that, too. Not so great. Luckily it has the correct orientation in Wayland. The config file value for Hyprland is just to set the built-in display rotation.
Other than that, the fans get pretty loud when doing anything other than viewing text. Hypothetically I can turn the power down and make it not work so hard, but I’m still playing with the settings for that, as nothing seems to have had an effect yet.
updated: 2024-07-03 11:45:23
generated: 2024-07-08