I found that window managers on Debian wouldnt start. After the login screen I would be taken back to the login screen. I had a hunch that it could be a faulty nvidia module, since I’ve had issues with it in the past even on Ubuntu.
So, I tried to remove it.
First, I tried the usual commands to remove a module:
modprobe -r nvidia modprobe -rf nvidia rmmod nvidia
All of these commands were telling me that the module was in use and couldnt be removed. So I tried to find the service or app using it, to try to kill it.
lsmod | grep 'nvidia'
instead of listing an app/service, showed a number 25, which apparently means 25 processes are using it (Not sure).
Anyway, since kdm was already running in the background, I thought I could kill it and unload the module. I was right.
service kdm stop
An lsmod showed that nvidia wasnt in memory (0)
Now I was able to remove the module with:
rmmod nvidia
I then proceeded to recompile a new kernel module for nvidia
m-a
l
Joel G Mathew, known in tech circles by the pseudonym Droidzone, is an opensource and programming enthusiast.
He is a full stack developer, whose favorite languages are currently Python and Vue.js. He is also fluent in Javascript, Flutter/Dart, Perl, PHP, SQL, C and bash shell scripting. He loves Linux, and can often be found tinkering with linux kernel code, and source code for GNU applications. He used to be an active developer on XDA forums, and his tinkered ROMS used to be very popular in the early 2000s.
His favorite pastime is grappling with GNU compilers, discovering newer Linux secrets, writing scripts, hacking roms, and programs (nothing illegal), reading, blogging. and testing out the latest gadgets.
When away from the tech world, Dr Joel G. Mathew is a practising ENT Surgeon, busy with surgeries and clinical practise.