Skip to content

u/Andy3153

In this archive from Jan 2019 to Dec 2025

15
posts
80
comments
4
media
506
score
1 saved before deletion

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?

3 points

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.

1 points

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.

2 points

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.

3 points

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

12 points

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.

What else could I try?

1 points

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-smi shows:

Wed Jul 21 10:56:06 2021       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 465.31       Driver Version: 465.31       CUDA Version: 11.3     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  NVIDIA GeForce ...  Off  | 00000000:01:00.0 Off |                  N/A |
| N/A   57C    P3    23W /  N/A |      0MiB /  5946MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+
                                                                               
+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+

The output of journalctl -xe | grep -i nvidia after I toggled on the dgpu and selected it shows:

Jul 21 10:34:52 sparkle kernel: input: HDA NVidia HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input32
Jul 21 10:34:52 sparkle kernel: input: HDA NVidia HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input33
Jul 21 10:34:52 sparkle kernel: input: HDA NVidia HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input34
Jul 21 10:34:52 sparkle kernel: input: HDA NVidia HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input35
Jul 21 10:34:52 sparkle kernel: input: HDA NVidia HDMI/DP,pcm=10 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input36
Jul 21 10:45:59 sparkle dbus-daemon[421]: [system] Activating via systemd: service name='org.freedesktop.home1' unit='dbus-org.freedesktop.home1.service' requested by ':1.78' (uid=0 pid=7458 comm="sudo system76-power graphics nvidia ")
Jul 21 10:45:59 sparkle sudo[7458]: andy3153 : TTY=pts/1 ; PWD=/home/andy3153 ; USER=root ; COMMAND=/usr/bin/system76-power graphics nvidia
Jul 21 10:45:59 sparkle system76-power[424]: [INFO] DBUS Received SetGraphics("nvidia",) method
Jul 21 10:45:59 sparkle system76-power[424]: [INFO] Enabling nvidia-fallback.service
Jul 21 10:45:59 sparkle system76-power[7469]: Failed to enable unit: Unit file nvidia-fallback.service does not exist.
Jul 21 10:46:28 sparkle kernel: nvidia: module license 'NVIDIA' taints kernel.
Jul 21 10:46:28 sparkle kernel: nvidia-nvlink: Nvlink Core is being initialized, major device number 511
Jul 21 10:46:28 sparkle kernel: nvidia 0000:01:00.0: enabling device (0000 -> 0003)
Jul 21 10:46:28 sparkle kernel: nvidia 0000:01:00.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=none:owns=none
Jul 21 10:46:28 sparkle kernel: NVRM: loading NVIDIA UNIX x86_64 Kernel Module  465.31  Thu May 13 22:24:36 UTC 2021

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?

1 points

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

1 points

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?

1 points

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

1 points

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

1 points

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

2 points

facilitates pro audio as well as consumer audio

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'

1 points

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

1 points

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.