Sure, I was on the move when I wrote the previous message:
FILE: /usr/share/libalpm/hooks/65-nouveau.hook
[Trigger]
Type = Package
Target = *
Operation = Install
Operation = Upgrade
Operation = Remove
[Action]
Description = Checking if nouveau driver is loaded on the system
When = PreTransaction
Exec = /usr/local/sbin/alert-nouveau-loaded
AbortOnFail
FILE: /usr/local/sbin/alert-nouveau-loaded
#!/bin/bash
#
# Alert user if nouveau driver is loaded. Used by a pacman hook.
if lsmod | grep -q nouveau; then
echo "#############################################"
echo "# MODULE NOUVEAU IS LOADED ON THE SYSTEM!!! #"
echo "#############################################"
echo
echo "Messing with kernel modules while this one is loaded"
echo "on the system could cause a kernel panic!"
echo
echo "Do you want to continue running pacman? (write: 'YES I DO')"
# Allows us to read user input below, assigns stdin to keyboard
exec < /dev/tty
read -r INPUT
# Close stdin
exec <&-
if [[ $INPUT == "YES I DO" ]]; then
exit 0
fi
exit 3
fi
I have an MSI with both an integrated Intel graphics card and an Nvidia GPU. Usually Nvidia is only used if I need an external monitor, so nouveau module is not always loaded.
I have a pre-installation hook that prints an alert message on the terminal if the module is loaded, and stops execution until the user acknowledges it.
Otherwise, if DKMS tries to remove the nouveau module during the upgrade process the whole system will froze, probably needing a live USB to boot and finish upgrade from arch-chroot.
The keyboard on my MSI laptop has RGB backlight. It's usually blue, but changes to yellow (40%), red (20%) and then disco (alternating colors on keys, 10%). At 7% the laptop will shutdown automatically.
Its quite difficult to miss it! :D
I did it with a systemd timer, a bash script to parse battery level and msi-perkeyrgb.
I am really proud of it, and keeps surprising people at work when the color changes suddenly and you tell them the reason.
EDIT: Keyboard saves current colors on shutdown. So if you power on the laptop an the keyboard is in disco mode... You better run for the AC adapter xD
No problem for me, but I don't do heavy graphics stuff... just terminals, web browsers, text editors and lots of virtual machines (mostly for network and security stuff).
The computer has integrated GPU (Intel HD 630) and dedicated (GTX 1060). I need to switch on the dedicated one to be able to use HDMI or DPort for external displays. I made a script to switch it on manually, because the power usage increases notably.
I have been using it on my job laptop for more than a year (several years more on my personal computers), and there have been no problems (apart from those caused by me :P)
Colleagues made jokes the first days... :)
PS: nouveau module on hardened kernel here, for a MSI laptop
I have a Nikon D5100. I know the crop factor of this camera is 1.5.
Is the focal length in DX lenses (like the AF-S DX 18-105mm f/3.5-5.6G I use) the real focal length for this type of cameras, or do I need to multiply it by the crop factor as I need to do while using lenses for full frame cameras?
I stopped using linux-hardened on my MSI laptop a month ago because some versions caused problems with external monitors and the nVidia graphics.
Now I use standard kernel and keep LTS installed just in case something breaks, as it is the computer I use at work.
Sure, I was on the move when I wrote the previous message:
FILE: /usr/share/libalpm/hooks/65-nouveau.hook
FILE: /usr/local/sbin/alert-nouveau-loaded
I have an MSI with both an integrated Intel graphics card and an Nvidia GPU. Usually Nvidia is only used if I need an external monitor, so nouveau module is not always loaded.
I have a pre-installation hook that prints an alert message on the terminal if the module is loaded, and stops execution until the user acknowledges it.
Otherwise, if DKMS tries to remove the nouveau module during the upgrade process the whole system will froze, probably needing a live USB to boot and finish upgrade from arch-chroot.
The keyboard on my MSI laptop has RGB backlight. It's usually blue, but changes to yellow (40%), red (20%) and then disco (alternating colors on keys, 10%). At 7% the laptop will shutdown automatically. Its quite difficult to miss it! :D
I did it with a systemd timer, a bash script to parse battery level and msi-perkeyrgb.
I am really proud of it, and keeps surprising people at work when the color changes suddenly and you tell them the reason.
EDIT: Keyboard saves current colors on shutdown. So if you power on the laptop an the keyboard is in disco mode... You better run for the AC adapter xD
No problem for me, but I don't do heavy graphics stuff... just terminals, web browsers, text editors and lots of virtual machines (mostly for network and security stuff). The computer has integrated GPU (Intel HD 630) and dedicated (GTX 1060). I need to switch on the dedicated one to be able to use HDMI or DPort for external displays. I made a script to switch it on manually, because the power usage increases notably.
I have been using it on my job laptop for more than a year (several years more on my personal computers), and there have been no problems (apart from those caused by me :P)
Colleagues made jokes the first days... :)
PS: nouveau module on hardened kernel here, for a MSI laptop
I have a Nikon D5100. I know the crop factor of this camera is 1.5. Is the focal length in DX lenses (like the AF-S DX 18-105mm f/3.5-5.6G I use) the real focal length for this type of cameras, or do I need to multiply it by the crop factor as I need to do while using lenses for full frame cameras?
Thanks :)
End of this list.
Back to top