I tried looking through the dotfiles you linked, but for the life of me, I can't find what I want. I'm not familiar at all with Nix. I just want to get to the dotfiles to see how you made the brightness OSD. Could you point me towards that direction please?
Damn, we have almost the same laptop. That's cool.
Have you seen how much you can do with these laptops? I mean, you can even switch through the fan modes, and even fully control the keyboard using OpenRGB, with little to no effort. I was surprised to find a gaming laptop where everything works.
I wanted to ask though, is your setup using only the stock KDE panels? I've been wanting to switch from Latte because it's unmaintained at this point and it has its bugs that I've just been living with.
Internally, when you copy a file, the filesystem, instead of literally copying the file over again (like in normal filesystems), it just shares the same data between the two files, until a change happens in either of them, which is stored somewhere else. All of this is transparent to the end user, but it provides a more space efficient way to manage copies internally. A (kinda bad) way to think about it is that your filesystem creates symlinks instead of copies of a file, until a change is made. You can read more on Wikipedia and on Btrfs' wiki pages. Honestly, I had lots of fun reading the wikis, weirdly enough.
I mean, my current install was that one I talked to you about, where I had EXT4+LVM. I just rsync-ed absolutely everything off my system to an external HDD, created my LUKS container, formatted it with Btrfs, created all my subvolumes, modified everything in my /etc/fstab, I added the newly needed hooks to my /etc/mkinitcpio.conf, I created my initrd images and I rebooted to my system. Worked first try.
The process that takes the longest is the file copying. Everything else took at most 15 minutes.
I was on EXT4+LVM for a while, and then I learned about Btrfs. I read about it a lot, and it seemed like that's where the future is going in my opinion.
Advantages include copy-on-write which brings data consistency, and, in general, more advanced filesystem capabilities like subvolumes, snapshots, in-place/transparent file compression, checksums and others.
As per disadvantages, I might say that this copy-on-write technique may bring some fragmentation to filesystems used for a long time, which might be undesirable on HDDs. I'd still use Btrfs even on a HDD though. And the second main disadvantage could be that because of how copy-on-write tends to fragment files more, it's not really recommended to run Btrfs where you have lots of databases, or just many small files with often changing bits, or virtual machines.
My setup just includes a LUKS container formatted with Btrfs, with subvolumes for things like root, home, a swapfile, games, and then also a subvolume for virtual machines, where I disabled copy-on-write.
As for my claim that it looks like it's where the future is heading, look at the competition. Apple's default FS, APFS, also uses copy-on-write, B-trees, has snapshot support etc. Also looking at Microsoft, they're developing ReFS, which also uses copy-on-write.
To answer your question, you can use Timeshift, even without Btrfs. Timeshift has an option to use rsync instead for backups. But due to the way that Btrfs snapshots work, the rsync method sounds like it consumes more space, if I'm not wrong
I just added nvidia-drm.modeset=1 to the boot parameters, and it doesn't really seem to make a difference. And, by the way, I was always turning on the discrete graphics before enabling them
And, I understand you. Every time I redid my setup I just tried anything I could find until I got it working lmao. But, this time it's an exception because system76-power, from what I can see, is quite new, and it doesn't have much documentation at all.
Running journalctl -xe | grep -i nvidia after a reboot shows:
Jul 21 11:05:20 sparkle kernel: input: HDA NVidia HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input8
Jul 21 11:05:20 sparkle kernel: input: HDA NVidia HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input9
Jul 21 11:05:20 sparkle kernel: input: HDA NVidia HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input10
Jul 21 11:05:20 sparkle kernel: input: HDA NVidia HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input11
Jul 21 11:05:20 sparkle kernel: input: HDA NVidia HDMI/DP,pcm=10 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input12
Jul 21 11:05:20 sparkle system76-power[449]: [INFO] 0000:01:00.0: NVIDIA graphics
Jul 21 11:05:21 sparkle kernel: nvidia: module license 'NVIDIA' taints kernel.
Jul 21 11:05:21 sparkle kernel: nvidia-nvlink: Nvlink Core is being initialized, major device number 511
Jul 21 11:05:21 sparkle kernel: NVRM: No NVIDIA GPU found.
Jul 21 11:05:21 sparkle kernel: nvidia-nvlink: Unregistered the Nvlink Core, major device number 511
Jul 21 11:05:22 sparkle kernel: nvidia-nvlink: Nvlink Core is being initialized, major device number 511
Jul 21 11:05:22 sparkle kernel: NVRM: No NVIDIA GPU found.
Jul 21 11:05:22 sparkle kernel: nvidia-nvlink: Unregistered the Nvlink Core, major device number 511
Jul 21 11:05:33 sparkle kernel: nvidia-nvlink: Nvlink Core is being initialized, major device number 511
Jul 21 11:05:33 sparkle kernel: NVRM: No NVIDIA GPU found.
Jul 21 11:05:33 sparkle kernel: nvidia-nvlink: Unregistered the Nvlink Core, major device number 511
Running nvidia-smi shows:
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.
And, that's kind of to be expected since sudo system76-power graphics power shows:
off (discrete)
And, of course, sudo system76-power graphics shows:
integrated
I also want to mention that I haven't edited the Xorg configs at all, or any graphics-related thing, all I did was install the drivers and install system76-power. Was there any other configuring I had to do?
So, I've just got my laptop earlier today, and I did a basic install of Arch KDE. Since I use linux-zen I went ahead and installed nvidia-dkms, and, of course, the igpu driver too, xf86-video-intel.
I installed system76-power and enabled the systemd service since this laptop reboots way too fast for me to complain that I have to reboot, but when I run the command you gave me (sudo system76-power graphics nvidia) I get
setting graphics to nvidia
reboot for changes to take effect
Okay, everything good. I reboot, and I run Minecraft, since I really like to use it for testing whether I succeeded with my graphics setup or not, and it showed I was running on the igpu. I ran sudo system76-power graphics to check on what gpu I was running, and it showed `integrated`.
So, well, am I missing any steps?
EDIT: I've also tried turning the dgpu on using sudo system76-power graphics power on , but it doesn't remember the state after either power off and power on or reboot. It remembers its state after logout, like setting the graphics gpu.
When logging back in after turning on the dgpu and setting the dgpu as the gpu to use, system76-power graphics does show nvidia, but MInecraft still says it is using the igpu
I've seen system76-power pop up a couple of times when I did a quick re-read of all of the nvidia and switchable graphics-related arch wiki pages, but I thought it only helped with power management, judging by the name. How does it switch graphics? I didn't like optimus-manager since you have to log out to apply the changes, and honestly I think I'll always remain on the dgpu once again, like I did with my weird setup, since I don't like closing all of my programs all that often
And how about KDE? How do you use system76-power in it?
Oh? I've never experienced any of those with normal pulseaudio, but again, this might be way better on a clean install than on a more than 1 year old Arch installation
No or very weird auto switching to headphones, just general lagging of the whole system, when in some games it lags the whole game and the whole audio starts to sound bass-boosted and slowed down (might be something about CPU usage? Not sure)
Oh, yeah, I've heard about Jack. It's pretty cool that it can replace both of them, but it doesn't yet seem to be very production-ready yet from my experience and in no case a drop-in replacement for pulseaudio, again, still from my experience. Like, it gets the bare-bones stuff done the same but it had numerous bugs for me
This. I have completely disabled file indexing because it would always index files on boot, slowing down I/O for the first couple of minutes. But that's a small problem, honestly it's most likely not what's causing your problem
What does this mean more exactly? When I still had it installed I remember most of the inputs and outputs that did nothing were called something like 'built-in audio pro'. Thing is, they did nothing, and the only two you were still able to hear/input sound through were still the old ones named 'built-in analog stereo'
I just decided to restore the backup, remove pulseeffects before doing the upgrade and then installing the legacy fork of it. It had many bugs, apart from the ~8 inputs and outputs that did nothing, but it also seemed to not handle automatically switching to headphones when they get plugged in at all. Sometimes it doesn't switch at all and sound still comes out of the laptop speakers, sometimes (the weirdest but coolest thing ever) it would play on both simultaneously, and the other weird bug I had is that while playing some games, the sound sometimes appears to be bass-boosted and also slowed down out of nowhere, which also lags the game for some reason. And also the whole laptop seemed a bit slower than usual in general. Maybe pipewire-pulse works better if you install it on a fresh install, and not if you switch from pulseaudio
After a couple of days of just trying to ignore the bugs I decided to restore that Timeshift backup I had, remove pulseeffects, do the upgrade and just install pulseeffects-legacy. Maybe it just doesn't work for me like this, maybe it works good on a clean install, which I do plan on doing some time.
I tried looking through the dotfiles you linked, but for the life of me, I can't find what I want. I'm not familiar at all with Nix. I just want to get to the dotfiles to see how you made the brightness OSD. Could you point me towards that direction please?
Oh, and you have no bugs with it?
why isn't it in multiples of fiveJust kidding man, it looks cool. Nice job
Damn, we have almost the same laptop. That's cool.
Have you seen how much you can do with these laptops? I mean, you can even switch through the fan modes, and even fully control the keyboard using OpenRGB, with little to no effort. I was surprised to find a gaming laptop where everything works.
I wanted to ask though, is your setup using only the stock KDE panels? I've been wanting to switch from Latte because it's unmaintained at this point and it has its bugs that I've just been living with.
Internally, when you copy a file, the filesystem, instead of literally copying the file over again (like in normal filesystems), it just shares the same data between the two files, until a change happens in either of them, which is stored somewhere else. All of this is transparent to the end user, but it provides a more space efficient way to manage copies internally. A (kinda bad) way to think about it is that your filesystem creates symlinks instead of copies of a file, until a change is made. You can read more on Wikipedia and on Btrfs' wiki pages. Honestly, I had lots of fun reading the wikis, weirdly enough.
I mean, my current install was that one I talked to you about, where I had EXT4+LVM. I just
rsync-ed absolutely everything off my system to an external HDD, created my LUKS container, formatted it with Btrfs, created all my subvolumes, modified everything in my/etc/fstab, I added the newly needed hooks to my/etc/mkinitcpio.conf, I created my initrd images and I rebooted to my system. Worked first try.The process that takes the longest is the file copying. Everything else took at most 15 minutes.
I was on EXT4+LVM for a while, and then I learned about Btrfs. I read about it a lot, and it seemed like that's where the future is going in my opinion.
Advantages include copy-on-write which brings data consistency, and, in general, more advanced filesystem capabilities like subvolumes, snapshots, in-place/transparent file compression, checksums and others.
As per disadvantages, I might say that this copy-on-write technique may bring some fragmentation to filesystems used for a long time, which might be undesirable on HDDs. I'd still use Btrfs even on a HDD though. And the second main disadvantage could be that because of how copy-on-write tends to fragment files more, it's not really recommended to run Btrfs where you have lots of databases, or just many small files with often changing bits, or virtual machines.
My setup just includes a LUKS container formatted with Btrfs, with subvolumes for things like root, home, a swapfile, games, and then also a subvolume for virtual machines, where I disabled copy-on-write.
As for my claim that it looks like it's where the future is heading, look at the competition. Apple's default FS, APFS, also uses copy-on-write, B-trees, has snapshot support etc. Also looking at Microsoft, they're developing ReFS, which also uses copy-on-write.
To answer your question, you can use Timeshift, even without Btrfs. Timeshift has an option to use rsync instead for backups. But due to the way that Btrfs snapshots work, the rsync method sounds like it consumes more space, if I'm not wrong
Why ed instead of
echo "filecontent" > file.txt?I.. seriously don't know what to try from the arch wiki. Do you remember even using it for system76-power?
How did you get it to work?
And how did you get it working on your system?
What wiki? The Arch Wiki?
I just added
nvidia-drm.modeset=1to the boot parameters, and it doesn't really seem to make a difference. And, by the way, I was always turning on the discrete graphics before enabling themAnd, I understand you. Every time I redid my setup I just tried anything I could find until I got it working lmao. But, this time it's an exception because system76-power, from what I can see, is quite new, and it doesn't have much documentation at all.
What else could I try?
I just found out that if I don't power on the dgpu using that command, it doesn't even show up in things like lspci or even neofetch
After I power on the dgpu and I select it for use, without rebooting, running
nvidia-smishows:The output of
journalctl -xe | grep -i nvidiaafter I toggled on the dgpu and selected it shows:Running
journalctl -xe | grep -i nvidiaafter a reboot shows:Running
nvidia-smishows:And, that's kind of to be expected since
sudo system76-power graphics powershows:And, of course,
sudo system76-power graphicsshows:I also want to mention that I haven't edited the Xorg configs at all, or any graphics-related thing, all I did was install the drivers and install system76-power. Was there any other configuring I had to do?
So, I've just got my laptop earlier today, and I did a basic install of Arch KDE. Since I use linux-zen I went ahead and installed nvidia-dkms, and, of course, the igpu driver too, xf86-video-intel.
I installed system76-power and enabled the systemd service since this laptop reboots way too fast for me to complain that I have to reboot, but when I run the command you gave me (sudo system76-power graphics nvidia) I get
setting graphics to nvidia
reboot for changes to take effect
Okay, everything good. I reboot, and I run Minecraft, since I really like to use it for testing whether I succeeded with my graphics setup or not, and it showed I was running on the igpu. I ran sudo system76-power graphics to check on what gpu I was running, and it showed `integrated`.
So, well, am I missing any steps?
EDIT: I've also tried turning the dgpu on using sudo system76-power graphics power on , but it doesn't remember the state after either power off and power on or reboot. It remembers its state after logout, like setting the graphics gpu.
When logging back in after turning on the dgpu and setting the dgpu as the gpu to use, system76-power graphics does show nvidia, but MInecraft still says it is using the igpu
I've seen system76-power pop up a couple of times when I did a quick re-read of all of the nvidia and switchable graphics-related arch wiki pages, but I thought it only helped with power management, judging by the name. How does it switch graphics? I didn't like optimus-manager since you have to log out to apply the changes, and honestly I think I'll always remain on the dgpu once again, like I did with my weird setup, since I don't like closing all of my programs all that often
And how about KDE? How do you use system76-power in it?
Oh? I've never experienced any of those with normal pulseaudio, but again, this might be way better on a clean install than on a more than 1 year old Arch installation
No or very weird auto switching to headphones, just general lagging of the whole system, when in some games it lags the whole game and the whole audio starts to sound bass-boosted and slowed down (might be something about CPU usage? Not sure)
Oh, yeah, I've heard about Jack. It's pretty cool that it can replace both of them, but it doesn't yet seem to be very production-ready yet from my experience and in no case a drop-in replacement for pulseaudio, again, still from my experience. Like, it gets the bare-bones stuff done the same but it had numerous bugs for me
Might not be the problem, but some terminal programs looked bad for me if I didn't set the locale to something. Worth to check
If you need help, check out the article on locales on the ArchWiki
EDIT: Also, try with other terminal emulators to determine if it's a alacritty problem or a problem with something else
If you're looking for something graphical, KDE's Spectacle supports webp
This. I have completely disabled file indexing because it would always index files on boot, slowing down I/O for the first couple of minutes. But that's a small problem, honestly it's most likely not what's causing your problem
What does this mean more exactly? When I still had it installed I remember most of the inputs and outputs that did nothing were called something like 'built-in audio pro'. Thing is, they did nothing, and the only two you were still able to hear/input sound through were still the old ones named 'built-in analog stereo'
I just decided to restore the backup, remove pulseeffects before doing the upgrade and then installing the legacy fork of it. It had many bugs, apart from the ~8 inputs and outputs that did nothing, but it also seemed to not handle automatically switching to headphones when they get plugged in at all. Sometimes it doesn't switch at all and sound still comes out of the laptop speakers, sometimes (the weirdest but coolest thing ever) it would play on both simultaneously, and the other weird bug I had is that while playing some games, the sound sometimes appears to be bass-boosted and also slowed down out of nowhere, which also lags the game for some reason. And also the whole laptop seemed a bit slower than usual in general. Maybe pipewire-pulse works better if you install it on a fresh install, and not if you switch from pulseaudio
After a couple of days of just trying to ignore the bugs I decided to restore that Timeshift backup I had, remove pulseeffects, do the upgrade and just install pulseeffects-legacy. Maybe it just doesn't work for me like this, maybe it works good on a clean install, which I do plan on doing some time.