Skip to content

u/fidasx

In this archive from Dec 2018 to May 2023

0
posts
31
comments
0
media
73
score

patch this shit :)

--- linux-5.9/kernel/module.c.old	2020-10-14 06:51:57.598066293 +0200
+++ linux-5.9/kernel/module.c	2020-10-14 07:58:16.504570606 +0200
@@ -1431,6 +1431,7 @@
 	return 0;
 }
 
+#if 0
 static bool inherit_taint(struct module *mod, struct module *owner)
 {
 	if (!owner || !test_bit(TAINT_PROPRIETARY_MODULE, &owner->taints))
@@ -1449,6 +1450,7 @@
 	}
 	return true;
 }
+#endif
 
 /* Resolve a symbol for this module.  I.e. if we find one, record usage. */
 static const struct kernel_symbol *resolve_symbol(struct module *mod,
@@ -1474,6 +1476,7 @@
 	if (!sym)
 		goto unlock;
 
+#if 0
 	if (license == GPL_ONLY)
 		mod->using_gplonly_symbols = true;
 
@@ -1481,6 +1484,7 @@
 		sym = NULL;
 		goto getname;
 	}
+#endif
 
 	if (!check_version(info, name, mod, crc)) {
 		sym = ERR_PTR(-EINVAL);
3 points

here is a patch for custom kernels

--- linux-5.9/kernel/module.c.old	2020-10-14 06:51:57.598066293 +0200
+++ linux-5.9/kernel/module.c	2020-10-14 07:58:16.504570606 +0200
@@ -1431,6 +1431,7 @@
 	return 0;
 }
 
+#if 0
 static bool inherit_taint(struct module *mod, struct module *owner)
 {
 	if (!owner || !test_bit(TAINT_PROPRIETARY_MODULE, &owner->taints))
@@ -1449,6 +1450,7 @@
 	}
 	return true;
 }
+#endif
 
 /* Resolve a symbol for this module.  I.e. if we find one, record usage. */
 static const struct kernel_symbol *resolve_symbol(struct module *mod,
@@ -1474,6 +1476,7 @@
 	if (!sym)
 		goto unlock;
 
+#if 0
 	if (license == GPL_ONLY)
 		mod->using_gplonly_symbols = true;
 
@@ -1481,6 +1484,7 @@
 		sym = NULL;
 		goto getname;
 	}
+#endif

 	if (!check_version(info, name, mod, crc)) {
 		sym = ERR_PTR(-EINVAL);
1 points

i dont know a way to set that globally but

for google-chrome you can create a file at ~/.config/chrome-flags.conf and add it there

same for chromium but different name ~/.config/chromium-flags.conf

for other electron apps change the .desktop file at /usr/share/applications/

change the line Exec=/usr/bin/SOME-ELECTRON-APP --force-device-scale-factor=1.16 %U

but be aware the .desktop files will be overwritten if you update the app from your distro you need to set it again or write a script that modifies those files so you dont do it manually every time

Also take a look to https://wiki.archlinux.org/index.php/HiDPI a lot of things here for dpi

1 points

yea you can use DD to backup your disk

to backup your disk, lets say SDA is your disk:

dd if=/dev/sda conv=sync,noerror bs=64K | gzip -c > /mnt/USBMOUNTLOCATION/sda.img.gz

this will create an image file of your disk you can copy it on another place for extra safety

then to restore:

gunzip -c /mnt/USBLOCATION/sda.img.gz | dd of=/dev/sda conv=sync,noerror bs=64K

1 points
<match target="pattern">
    <test name="family" compare="eq" >Twemoji</test>
    <edit name="pixelsize" mode="assign">
     <times><name>pixelsize</name>, <double>2</double></times>
    </edit>
</match>  

try this one check your emoji exact font name and change it to yours then change the <double>2</double> until you satisfied

2 points

make this script somewhere and the use it on sxhkd

​

layout=$(setxkbmap -query |grep -e layout: |cut -c 13-14)

if [[ $layout == "us" ]]; then

setxkbmap -layout gr
notify-send "Language" "Greek"

elif [[ $layout == "gr" ]]; then

notify-send "Language" "English"
setxkbmap -layout us

fi

change to "us" and "gr" to your language

on sxhkd then

@Escape

./layout.sh

2 points

can you try adding those to your xorg.conf

in the "Screen" section like this

​

​

Section "Screen"

Option "AllowIndirectGLXProtocol" "false"

Option "TripleBuffer" "True"

Option "UseNvKmsCompositionPipeline" "false"

Option "ForceCompositionPipeline" "yes"

EndSection

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