You are not logged in.

#1 2021-04-12 14:53:20

kyledavis124
Member
Registered: 2020-12-30
Posts: 12

[SOLVED] uname -r is incorrect

I am trying to get my webcam to work. I could not get anything to see my camera. I read the arch wiki and found out I need uvc support which my camera supports. I have a missing /dev/video. I first thought it was a driver issue. That leads me to the following issue with my Kernal.

I tried running the following command to find the source of the problem.

modprobe uvcvideo                 

But I get the following error.

modprobe: FATAL: Module uvcvideo not found in directory /lib/modules/5.10.27-1-lts

I verified the current kernel version with the following command, and see that my kernel version is 5.10.27
uname -r
5.10.27-1-lts

when I listed the /lib/modules directory, my current kernel is different?

drwxr-xr-x   5 root root 4.0K Apr 12 10:28 5.10.29-1-lts
drwxr-xr-x   5 root root 4.0K Apr 12 10:26 5.11.13-arch1-1

journalctl gives a similar result.

Apr 02 16:50:18 archlinux kernel: Linux version 5.10.27-1-lts (linux-lts@archlinux) (gcc (GCC) 10.2.0, GNU ld (GNU Binutils) 2.36.1) #1 SMP Tue, 30 Mar 2021 13:22:29 +0000
Apr 02 16:50:18 archlinux kernel: Command line: BOOT_IMAGE=/boot/vmlinuz-linux-lts root=/dev/mapper/volgroup0-lv_root rw loglevel=3 quiet

I have searched for similar issues but can't begin to find the solution.

How can I fix this?

-- System --
Linux archdesktop.kyledavis.dev 5.10.27-1-lts #1 SMP Tue, 30 Mar 2021 13:22:29 +0000 x86_64 GNU/Linux
AMD Ryzen 5 2600 Six-Core Processor
AMD Redon RX 480 4GB
32GB RAM

Last edited by kyledavis124 (2021-04-12 15:05:04)

Offline

#2 2021-04-12 14:59:41

progandy
Member
Registered: 2012-05-17
Posts: 5,184

Re: [SOLVED] uname -r is incorrect

After updating the kernel you have to reboot. If you have done that, then the boot partition may have been not mounted during the upgrade and your kernel wasn't updated correctly.


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#3 2021-04-12 15:00:17

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,466

Re: [SOLVED] uname -r is incorrect

You have to boot the new kernel after updating it.

Offline

#4 2021-04-12 15:04:46

kyledavis124
Member
Registered: 2020-12-30
Posts: 12

Re: [SOLVED] uname -r is incorrect

progandy wrote:

After updating the kernel you have to reboot. If you have done that, then the boot partition may have been not mounted during the upgrade and your kernel wasn't updated correctly.

I am humbled to know I can still be so stupid. I thought Linux did live updates. If I had actually used my brain then it makes sense you need to reboot after a kernel update.

Thank you so much!

Offline

#5 2021-04-12 15:17:34

progandy
Member
Registered: 2012-05-17
Posts: 5,184

Re: [SOLVED] uname -r is incorrect

Linux can do live updates, as in replacing files that are in use. All running applications keep using the old version until they are closed and reopened, fresh processes use the new files. Firefox for example tries to start a new process for a new tab, but that fails when the running and the installed version differ. The old kernel also keeps running, but it cannot load the modules from the new kernel.

Last edited by progandy (2021-04-12 15:18:17)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

Board footer

Powered by FluxBB