squid_slime

joined 5 months ago
MODERATOR OF
[–] [email protected] 19 points 1 day ago (2 children)

Its ridiculous, my British uncle is convinced Critical Race Theory is tour is in school. I asked him what critical race theory is and he didn't know. People are being lied to and then they tie it to ego and become talking heads for shit they have no idea of beyond surface level.

[–] [email protected] 15 points 2 days ago (2 children)

Worlds still hasn't evolved past the 1960s

[–] [email protected] 1 points 2 days ago* (last edited 2 days ago) (1 children)

this sounds very involved initially but hands off after the fact.

Script


#!/bin/bash

cd ~/ || exit

LATEST_KERNEL=$(curl -s https://www.kernel.org | grep -Po 'linux-\d+\.\d+\.\d+\.tar\.xz' | head -1)
echo "Latest Kernel: $LATEST_KERNEL"

KERNEL_URL="https://cdn.kernel.org/pub/linux/kernel/v6.x/$LATEST_KERNEL"
echo "Kernel URL: $KERNEL_URL"

DIR_NAME=$(echo $LATEST_KERNEL | sed 's/\.tar\.xz//')
mkdir -p ./$DIR_NAME

wget -O ./$DIR_NAME/$LATEST_KERNEL "$KERNEL_URL" || exit

tar -xf ./$DIR_NAME/$LATEST_KERNEL -C ./$DIR_NAME || exit

EXTRACTED_DIR=$(tar -tf ./$DIR_NAME/$LATEST_KERNEL | head -1 | cut -f1 -d"/")

cd ./$DIR_NAME/$EXTRACTED_DIR || exit

zcat /proc/config.gz > .config
echo "Kernel config copied."

if [ -f "drivers/gpu/drm/amd/display/dc/link/link_dpms.c" ] && [ -f "drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_training.c" ]; then
    echo "Files found, proceeding with modifications..."
    
    sed -i 's/#define LINK_TRAINING_RETRY_DELAY 50 \/\* ms \*\//#include <linux\/module.h>\nstatic int link_training_retry_delay = 50;\nmodule_param(link_training_retry_delay, int, 0644);\nMODULE_PARM_DESC(link_training_retry_delay, "Delay between link training retries (ms)");\n#define LINK_TRAINING_RETRY_DELAY link_training_retry_delay/' drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_training.c
    
    sed -i 's/#define LINK_TRAINING_ATTEMPTS 4/#include <linux\/module.h>\nstatic int link_training_attempts = 4;\nmodule_param(link_training_attempts, int, 0644);\nMODULE_PARM_DESC(link_training_attempts, "Number of link training attempts");\n#define LINK_TRAINING_ATTEMPTS link_training_attempts/' drivers/gpu/drm/amd/display/dc/link/link_dpms.c
    
else
    echo "One or both files not found in the kernel source directory."
fi

echo "Kernel modifications complete."

make olddefconfig || exit
#make || exit

echo "Compiling the kernel..."
make -j16 || exit

echo "Building modules..."
sudo make modules_install || exit   

echo "Installing the kernel..."
sudo make install || exit   

echo "Backing up existing kernel files..."
sudo cp /boot/vmlinuz-linux /boot/vmlinuz-linux.bak
sudo cp /boot/initramfs-linux.img /boot/initramfs-linux.img.bak

echo "Moving new kernel files to /boot..."
sudo cp ./arch/x86/boot/bzImage /boot/vmlinuz-fix
sudo mkinitcpio -k $(make kernelrelease) -c /etc/mkinitcpio.conf -g /boot/initramfs-fix.img

if [ -f /boot/vmlinuz-fix ] && [ -f /boot/initramfs-fix.img ]; then
    echo "Kernel and initramfs moved to /boot successfully."
else
    echo "Failed to move kernel or initramfs files to /boot."
    exit 1
fi

echo "Kernel compilation, installation, and file replacement completed successfully."

[–] [email protected] 3 points 2 days ago* (last edited 2 days ago)

thank you and no dejection taken. you're actually very helpful :D

[–] [email protected] 2 points 2 days ago

I'm on antidepressants :D depression has been on the rise along side the decay of society, theres correlations between social media and mental health :P

[–] [email protected] 2 points 2 days ago* (last edited 2 days ago)

I'm there with you, useful for me was joining community projects. they give me meaning

[–] [email protected] 1 points 2 days ago (3 children)

I followed your advice, Github my edit link_dpms.c, - Github my edit link_dp_training.c how do i submit as RFC. total noob with github lol.

[–] [email protected] 3 points 3 days ago

not looked in to pacman hooks but will need to now lol any i made a script that downloads, unzips and patches then compiles so mostly hands free.

[–] [email protected] 1 points 3 days ago

cheers, I'm using sed to patch the files then auto mated compiling

[–] [email protected] 6 points 3 days ago

thank you i will read up on how to submit this kind of stuff.

[–] [email protected] 6 points 3 days ago* (last edited 3 days ago) (8 children)

set LINK_TRAINING_ATTEMPTS from 5 to 10 in drivers/gpu/drm/amd/display/dc/link/link_dpms.c and set LINK_TRAINING_RETRY_DELAY from 50 to 100 in drivers/gpu/drm/amd/display/dc/link/protocols/link_dp_training.c.

i doubt this will be added to kernel as its a fix for an issue that isn't wide spread.

 

been using Arch for years but i am still a novice, yesterday i had found that in order for something to work on my system i will need to edit a few lines in kernel which i did, then removed unnecessary modules > intel, > nvidia, compiled. it worked great but with Arch and its rolling release i am dreading the next update and having to go through this again.
what methods are there to automate this process?

 

Ebooks, audo, and snipping all in one place.

 

Nigel Farage β€œman of the people” is charging his supporters Β£1,000 for a photograph and to share a glass of champagne with him.

Farage is the highest earning MP and represents nothing but the establishment. Reform UK is the party of millionaires not ordinary people

Stand Up To Racism aka Socialist Workers Party posted to twitter this absolute gem.

 

tell me the most ass over backward shit you do to keep your system chugging?
here's mine:
sway struggles with my dual monitors, when my screen powers off and back on it causes sway to crash.
system service 'switch-to-tty1.service'

[Unit]
Description=Switch to tty1 on resume
After=suspend.target

[Service]
Type=simple
ExecStart=/usr/local/bin/switch-to-tty1.sh

[Install]
WantedBy=suspend.target

'switch-to-tty1.service' executes '/usr/local/bin/switch-to-tty1.sh' and send user to tty1

#!/bin/bash
# Switch to tty1
chvt 1

.bashrc login from tty1 then kicks user to tty2 and logs out tty1.

if [[ "$(tty)" == "/dev/tty1" ]]; then
    chvt 2
    logout
fi

also tty2 is blocked from keyboard inputs (Alt+Ctrl+F2) so its a somewhat secure lock-screen which on sway lock-screen aren't great.

 

Noticed these strange looking balls that may pass for an art installation but imagine maybe temperature control?

 

Screen on event crashes PC and corrupts journalctl, seems to be an issue with edid.

Currently solution has been moving to TTY1 then moving back to sway (tty2) as TTY seems to have no issue handling these events.

Where can I start trouble shooting this?

50
submitted 1 month ago* (last edited 1 month ago) by [email protected] to c/[email protected]
 

ultrawade oled, lots of custom scripts.

 

I made this community as a reaction to the July 4th general election taking place in the United Kingdoms, to mobilize my fellow comrades in the lead-up to the general elections, the group is party agnostic though there is an obvious bias due in part to my political affiliation but all leftest parties that fight for dignity and the working class are very much welcome.

By all means feel free to join where ever you may come from whether for information or solidarity.

In solidarity.

Squid.

 

Credit to @[email protected] for posting in a comment section of another community.

A visual scrolling graph demonstrating wealth in america.

This graph can acts as a great example, easily deployable and any sensible person will see the absolute ludicrously that is often misunderstood. I hope anyone out in the field can find utility in this.

Solidarity.

 

I made an account and was met with continuous swiping with what felt like no limit, when closing and opening tinder I am met with accounts that have already been swiped.

Reading online says ive been shadow banned, maybe due to VPN.

When I go to settings and down to account deletion the app returns an error disallowing me to delete.

Anyone else dealt with this?

 

Will I see any Lemmy comrades at the event?

view more: next β€Ί