Here's something that could be exciting but also could be a whole lot of nothing. So keep expectations firmly in check, but work submitted for Linux kernel 6.6 show something interesting from Valve. Potentially a Steam Deck refresh or their new VR headset perhaps?
I’ll do some reading up on that. I haven’t heard of that before.
I need to install the driver from an open source project that I cloned from GitHub. Does that have any impact on if I can do what you are recommending?
What you need is a file - let’s call it stick-of-joy.hook - in /etc/pacman.d/hooks:
[Trigger]
Operation = Install
Operation = Upgrade
Type = Package
Target = linux
[Action]
Description = Install a stick of joy
When = PostTransaction
Exec = /bin/bash -c /path/to/script
Writing this up on the go, so might have missed a syntax error or something. Make sure the script is executable - chmod +x /path/to/script.
You can test it by reinstalling the linux package - pacman -S linux.
In regard to reinstalling drivers - look into pacman hooks. You want one for the kernel to trigger driver reinstallation.
I’ll do some reading up on that. I haven’t heard of that before.
I need to install the driver from an open source project that I cloned from GitHub. Does that have any impact on if I can do what you are recommending?
Here are the instructions I follow
From what I understand you’re running the script posted here, right?
ArchWiki link on pacman hooks;
Manpage link for hook format.
What you need is a file - let’s call it
stick-of-joy.hook
- in/etc/pacman.d/hooks
:Writing this up on the go, so might have missed a syntax error or something. Make sure the script is executable -
chmod +x /path/to/script
.You can test it by reinstalling the
linux
package -pacman -S linux
.