Skip to content

u/Devanon

In this archive from Dec 2012 to Dec 2019

0
posts
7
comments
0
media
38
score

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.

1 points

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
1 points

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.

1 points

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

30 points

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.

2 points

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 :)

2 points

End of this list.

Back to top

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.