You are not logged in.

#1 2023-11-16 02:02:51

OhKay_Bet
Member
Registered: 2023-11-16
Posts: 35

[SOLVED] Nvidia.conf Ignoring bad line

Hello, I'd like to preface I'm pretty new to arch/ linux.

On booting up I noticed

libkmod: kmod_config_parse: /etc/modprobe.d/nvidia.conf line x: ignoring bad line starting with x

("x" being what changes)
filling up my screen and the line number kept increasing. I decided to take a look at my

nvidia.conf

file and saw all of the text looks what i think an encrypted/corrupted file would look like. random bunches or random nonsensical character. looking online I fist reinstalled nvidia then nvidia-utils. modprobe didn't work with nvidia before, but now it does which I assume is good. Unfortunately

sudo mkinitcpio -p linux 

came back with the ignoring bad line statement.

sudo mkinitcpio -p linux 

has also been spitting back
-> Running build hook: [keyboard]
==> WARNING: Possibly missing firmware for module: 'xhci_pci'

-> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration

-> Running build hook: [kms]
==> WARNING: Possibly missing firmware for module: 'ast'

-> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: 'qla1280'
==> WARNING: Possibly missing firmware for module: 'qed'
==> WARNING: Possibly missing firmware for module: 'wd719x'
==> WARNING: Possibly missing firmware for module: 'qla2xxx'
==> WARNING: Possibly missing firmware for module: 'bfa'
==> WARNING: Possibly missing firmware for module: 'aic94xx'

are these warnings a cause for concern, what should or can i do to fix. I appreciate any help, thank you

Last edited by OhKay_Bet (2024-05-19 03:37:36)

Offline

#2 2023-11-16 08:52:17

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,554
Website

Re: [SOLVED] Nvidia.conf Ignoring bad line

So what is "/etc/modprobe.d/nvidia.conf" and where does it come from?

What package (if any) owns it? (pacman -Qo /etc/modprobe.d/nvidia.conf)

Mod note: Moving to NC.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Online

#3 2023-11-16 09:01:01

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,056

Re: [SOLVED] Nvidia.conf Ignoring bad line

all of the text looks what i think an encrypted/corrupted file would look like. random bunches or random nonsensical character

Assuming it's not owned by any package, and you had previously fixed its contents, you can https://wiki.archlinux.org/title/Audit_ … ies_access the file to see what's accessing it.

Offline

#4 2023-11-17 04:47:14

OhKay_Bet
Member
Registered: 2023-11-16
Posts: 35

Re: [SOLVED] Nvidia.conf Ignoring bad line

So

pacman -Qo

says no package owns it

and auditd says no audit.log file exists

Offline

#5 2023-11-17 07:42:38

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,056

Re: [SOLVED] Nvidia.conf Ignoring bad line

Did you setup an audit rule?
Does the file show up when you explicitly edit it w/ eg. vim?
What is it supossed to look like and then really please post the "random bunches or random nonsensical character" content.

Offline

#6 2023-11-17 22:16:04

OhKay_Bet
Member
Registered: 2023-11-16
Posts: 35

Re: [SOLVED] Nvidia.conf Ignoring bad line

seth wrote:

Did you setup an audit rule?

i believe so, i did

sudo auditctl -w /etc/modprobe.d/nvidia.conf -p rwxa
seth wrote:

Does the file show up when you explicitly edit it w/ eg. vim?
What is it supossed to look like and then really please post the "random bunches or random nonsensical character" content.

using nano, trying to configure my system right and fix some things before i start adding programs.
nano shows this

(/^DX^E>^G"^\U^P^X)]^V/+@]GF^\DVg{-]Y^QF^T^AT!^@^D!Q^Qa^UYv^D^KIP̩"^R<K)^^^LL݈H^?2<o;^E^Z^[}^[;)k^T.^UPRld8UT^HmL5$Z^Q^F*^@+/B^Tb8GRX&^X{^A^Z~^Vb!^H=GȑҷJ>
^S^EqDD^HEC#_^Q^DH!^Hh^H@^_A^]^?4d4D^F
^Hh^L^Y        wp
H*^Z\w.H%,QY^TFc|1]lgX^TҮ^Q~;'hڝ\:˅^^*,
^W^K~VU^VY^X^[[Zҭ^QH+^HFҳ^UK$®Х[٥_Kt]H3^K^KgM*gǷ(tbYhli^PF#U^[q^G(٥.Q^H$I{ez陞O_:^Y^?RI4-1-U

this is just 5 lines but this is the character layout of all 5 lines. it appears in my terminal as well but not in kitty. Im thinking its a fonts issue, but im not too sure to be honest. I still have no idea what this file is for, but i just noticed that it says at the bottom (converted from mac format).

i appreciate your help btw

Offline

#7 2023-11-17 22:17:30

OhKay_Bet
Member
Registered: 2023-11-16
Posts: 35

Re: [SOLVED] Nvidia.conf Ignoring bad line

the characters didnt translate over the forum so im thinking of getting an image and seeing if i can just post that as itll better show how it looks on my system

Offline

#8 2023-11-17 22:21:36

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,056

Re: [SOLVED] Nvidia.conf Ignoring bad line

cat /etc/modprobe.d/nvidia.conf | curl -F 'file=@-' 0x0.st

nb. that just running that auditctl command will not survive a reboot and what I meant was that if you have an audit rule in place and edit the file (with nano, if must be tongue), it should show up w/ an audit in the journal now.

Offline

#9 2023-11-17 22:46:37

OhKay_Bet
Member
Registered: 2023-11-16
Posts: 35

Re: [SOLVED] Nvidia.conf Ignoring bad line

I was looking online and it seems like the config file comes from Xorg? I don't have xXrg installed but i do have Hyprland which I believe has some Xorg compatability files. Is there a way I can see if thats where it was originally downloaded from? IIRC i built it from source and not a package from the aur.

Offline

#10 2023-11-17 22:50:34

OhKay_Bet
Member
Registered: 2023-11-16
Posts: 35

Re: [SOLVED] Nvidia.conf Ignoring bad line

ok, i posted my last reply and didnt even see your post. i ran that command and it came back with http://0x0.st/Hv3l.bin

Offline

#11 2023-11-18 07:57:04

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,056

Re: [SOLVED] Nvidia.conf Ignoring bad line

I was looking online and it seems like the config file comes from Xorg?

No, the file would configure the nvidia kernel module, that's unrelated to any display server.
It's a 99MB  zstd compressed file, decompressing it reveals it to be cpio and lsinitcpio shows that you're somehow compiling your initramfs into that location.

That's all I can tell - how that happens is very specific to your system (and obviously not supposed to hapen)

Offline

#12 2023-11-19 14:56:55

OhKay_Bet
Member
Registered: 2023-11-16
Posts: 35

Re: [SOLVED] Nvidia.conf Ignoring bad line

appreciate the help

Offline

#13 2023-11-19 15:23:58

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,056

Re: [SOLVED] Nvidia.conf Ignoring bad line

If you've not even a remote idea how tihs might happen, look around in /etc/mkinitcpio.d

Offline

#14 2023-11-19 15:56:17

OhKay_Bet
Member
Registered: 2023-11-16
Posts: 35

Re: [SOLVED] Nvidia.conf Ignoring bad line

Yeah, thats what im currently doing. I see in modules (nvidia nvidia_modeset nvidia_uvm nvidia_drm). so now im going back into the wiki and relooking at the nvidia and mkinitcpio sections.

Offline

#15 2023-11-19 16:12:58

OhKay_Bet
Member
Registered: 2023-11-16
Posts: 35

Re: [SOLVED] Nvidia.conf Ignoring bad line

in /etc/mkinitcpio.d i see the linux.preset has default_image="/boot/initramfs-linux.img" un hashed. im going to go there and see what i find since nothing says anything about nvidia in linux.preset.

Offline

#16 2023-11-19 19:25:00

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,056

Re: [SOLVED] Nvidia.conf Ignoring bad line

That's normal and fine.
Did you make sure that your audit rule works?
If so, blank the file, make the audit rule permanent, wait, hope anse see.

Offline

Board footer

Powered by FluxBB