Skip to content

u/RAZR_96

In this archive from Nov 2016 to Nov 2023

1
posts
183
comments
0
media
598
score

To force Xorg to start as root create the file /etc/X11/Xwrapper.config with the following content:

allowed_users = anybody
needs_root_rights = yes

Also

sudo chmod u+s /usr/lib/Xorg.wrap

to make Xorg executable setuid (so it can be run as root by anyone).

3 points

The funny thing is I eventually found a fix last year:

https://github.com/NVIDIA/nvidia-settings/issues/42#issuecomment-572242483

Now with the latest driver version they've 'fixed' this loophole (460.80 and 465.24):

https://github.com/NVIDIA/nvidia-settings/issues/65

https://github.com/NVIDIA/nvidia-settings/issues/63

But now they're looking to open it back up:

https://github.com/NVIDIA/nvidia-settings/issues/65#issuecomment-840205288

1 points

Swapfiles don't go through the filesystem layer.

> 3. Does creating the swapfile on a journaled filesystem (e.g. ext3 or

> reiser) incur a significant performance hit?

None at all. The kernel generates a map of swap offset -> disk blocks at swapon time and from then on uses that map to perform swap I/O directly against the underlying disk queue, bypassing all caching, metadata and filesystem code.

https://lkml.org/lkml/2005/7/7/326

Also you can use swapfiles on btrfs natively since Linux 5.0 (and you can hibernate to them).

https://wiki.archlinux.org/index.php/Btrfs#Swap_file

6 points

Try making the swap subvolume a subdirectory of the root subvolume. Then remove the swap subvolume mount (not the swapfile mount) from fstab since child subvolumes are automatically mounted.

E.g if @ is the root subvolume create the subvolume @/swap/ and continue as before from there.

1 points

I use bubblewrap and apparrmor for running wine. Making a tight Apparmor profile for wine took a lot of time so I would only do it if you don't mind lots of trial and error. Using bubblewrap directly also has a lot of hidden pitfalls, bubblejail is probably much easier.

Some repos I used as starting points for Apparmor:

https://github.com/mk-fg/apparmor-profiles

https://git.sr.ht/~krathalan/apparmor-profiles

2 points

What is the output of nvidia-smi when idle? You have a Turing GPU and Comet Lake CPU so it should turn off. Maybe the runtime power management is not enabled, see https://download.nvidia.com/XFree86/Linux-x86_64/440.82/README/dynamicpowermanagement.html

And another question related to graphics. On the wiki (Intel grahpics), it's advised not to use xf86-video-intel, and some of the reasons are old posts which mention that said driver is old, buggy and not maintained. Last update on that package was about 1 month ago, is this still true or am i missing something?

Yes you shouldn't use xf86-video-intel, the Nvidia driver expects (and maybe only works properly with) xf86-video-modesetting, which is part of Xorg. So just uninstall it.

See https://download.nvidia.com/XFree86/Linux-x86_64/440.82/README/primerenderoffload.html

3 points

It means there is a new refind package that replaces refind-efi (which hadn't been updated for ages) and pacman is asking if you want to update to that.

It's fine to say yes to it.

8 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.