Difference between revisions of "Ubuntu removing driver problems"
(Created page with "If you experience problems while wanting to upgrade or remove the SOUND4 driver, follow this procedure. You can have the driver version with <code>cat /proc/sound4exp/version...") |
m (→General) |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | You can have the driver version with <code>cat /proc/sound4exp/version</code> | ||
+ | |||
+ | ===General=== | ||
+ | If you are stuck with the message "Disconnecting sound4exp1 driver..." or "Unloading sound4exp1 driver...", you should try the followings: | ||
+ | |||
+ | #Remove the driver, so it won't be loaded at next boot : <code>sudo rm /lib/modules/$(uname -r)/updates/dkms/sound4exp1.ko</code> If the kernel has also been updated, the next reboot will be on a different kernel, so you will have to redo this and reboot, or you may delete all installed versions with <code>sudo rm /lib/modules/*/updates/dkms/sound4exp1.ko</code> | ||
+ | #Try to stop all processes using the driver | ||
+ | ##Pulse audio <code>pulseaudio -k</code> or sudo <code>killall pulseaudio</code> | ||
+ | ##SOUND4 services : do <code>ps aux | grep sound4</code> to see them, or <code>systemctl | grep sound4</code> | ||
+ | ##Find other process using sound with <code>ps aux | grep snd</code>. | ||
+ | #If the upgrade is still stuck, then you have to reboot. Be aware that the shutdown may lock for a long time (forever ?) so '''do this while you have access to the PC'''. | ||
+ | #After reboot, do <code>lsmod | grep sound4exp1</code> to check the module is not loaded. If it is, redo step 1 and reboot. | ||
+ | #You can resume the upgrade with <code>sudo apt upgrade</code>. As the driver is not loaded, it will not block. | ||
+ | |||
+ | If there is no upgrade, check that the sound4 repository is still active (in <code>/etc/apt/sources.list.d/sound4.list</code>). A dist-upgrade disables third party repositories. | ||
+ | |||
+ | ===For driver < 2.2=== | ||
If you experience problems while wanting to upgrade or remove the SOUND4 driver, follow this procedure. | If you experience problems while wanting to upgrade or remove the SOUND4 driver, follow this procedure. | ||
− | |||
− | |||
First, to avoid reload at reboot: | First, to avoid reload at reboot: | ||
Line 7: | Line 22: | ||
<code>sudo rm /lib/modules/$(uname -r)/updates/dkms/sound4exp1.ko</code> | <code>sudo rm /lib/modules/$(uname -r)/updates/dkms/sound4exp1.ko</code> | ||
− | Then, try to remove current from dkms | + | Then, try to remove current from dkms. |
<code>sudo dkms remove -m sound4exp1 -v $(cat /proc/sound4exp/version) --all</code> | <code>sudo dkms remove -m sound4exp1 -v $(cat /proc/sound4exp/version) --all</code> | ||
Line 17: | Line 32: | ||
If this freeze on unloading driver, you have to reboot the PC and retry. | If this freeze on unloading driver, you have to reboot the PC and retry. | ||
+ | ===For driver < 2.8=== | ||
For all versions before 2.8, the package removal script try to disconnect the driver, which freeze with most recent enough kernels. So | For all versions before 2.8, the package removal script try to disconnect the driver, which freeze with most recent enough kernels. So | ||
Line 30: | Line 46: | ||
If asked to <code>dpkg-reconfigure -a</code>, do it and retry. | If asked to <code>dpkg-reconfigure -a</code>, do it and retry. | ||
+ | [[Category:Troubleshoot]] |
Latest revision as of 09:34, 4 March 2024
You can have the driver version with cat /proc/sound4exp/version
General
If you are stuck with the message "Disconnecting sound4exp1 driver..." or "Unloading sound4exp1 driver...", you should try the followings:
- Remove the driver, so it won't be loaded at next boot :
sudo rm /lib/modules/$(uname -r)/updates/dkms/sound4exp1.ko
If the kernel has also been updated, the next reboot will be on a different kernel, so you will have to redo this and reboot, or you may delete all installed versions withsudo rm /lib/modules/*/updates/dkms/sound4exp1.ko
- Try to stop all processes using the driver
- Pulse audio
pulseaudio -k
or sudokillall pulseaudio
- SOUND4 services : do
ps aux | grep sound4
to see them, orsystemctl | grep sound4
- Find other process using sound with
ps aux | grep snd
.
- Pulse audio
- If the upgrade is still stuck, then you have to reboot. Be aware that the shutdown may lock for a long time (forever ?) so do this while you have access to the PC.
- After reboot, do
lsmod | grep sound4exp1
to check the module is not loaded. If it is, redo step 1 and reboot. - You can resume the upgrade with
sudo apt upgrade
. As the driver is not loaded, it will not block.
If there is no upgrade, check that the sound4 repository is still active (in /etc/apt/sources.list.d/sound4.list
). A dist-upgrade disables third party repositories.
For driver < 2.2
If you experience problems while wanting to upgrade or remove the SOUND4 driver, follow this procedure.
First, to avoid reload at reboot:
sudo rm /lib/modules/$(uname -r)/updates/dkms/sound4exp1.ko
Then, try to remove current from dkms.
sudo dkms remove -m sound4exp1 -v $(cat /proc/sound4exp/version) --all
For more recent ubuntu, it might be this command instead:
sudo dkms remove sound4exp1/$(cat /proc/sound4exp/version)
If this freeze on unloading driver, you have to reboot the PC and retry.
For driver < 2.8
For all versions before 2.8, the package removal script try to disconnect the driver, which freeze with most recent enough kernels. So
nano /var/lib/dpkg/info/sound4exp1.prerm
and comment line
echo "1" > /proc/sound4exp/disconnect
Then you can update the driver:
sudo apt-get update && sudo apt-get install sound4exp1
If asked to dpkg-reconfigure -a
, do it and retry.