Skip to contentSkip to conversation

Gnome hangs after sensors installation

DISCUSSION Zeno Davatz 2 participants 14 messages May 19, 2005

lore
Share & tools
lore
#0 lore raw

Hi Jean

I just installed lm-sensors 2.8.0 on my Debian PPC - it said: Installation successful. My computer hung itself up when I done sensors-detect. At startup I know get:

vector: 300 at pc = e238c288, lr = e238f080
Msr = 9032, sp = d8817cf0 [d8817c40]
Current = d8816000, pid = 661, comm = modprobe
Mon>

My Gnome-Startup hangs and nothing at all happens. When I reboot the same happens again.

Any hints how I can get my computer back working again?

Thanks
Zeno

#1 lore raw
Quoted 4 lines

I just installed lm-sensors 2.8.0 on my Debian PPC - it said:
Installation successful. My computer hung itself up when I done sensors-detect. At startup I know get:

At which point of sensors-detect dit hit hang?

Quoted 9 lines

vector: 300 at pc = e238c288, lr = e238f080
Msr = 9032, sp = d8817cf0 [d8817c40]
Current = d8816000, pid = 661, comm = modprobe
Mon>

My Gnome-Startup hangs and nothing at all happens. When I reboot the same happens again.

Any hints how I can get my computer back working again?

Gasp :( All that work to only break your computer... Maybe we should have just given up before.

You need to access your filesystem from another way (usually, Linux installation CDs offer a way to get a working console, or you have to boot from one or two floppy disks). Once you're there, you'll have to mount your root partition somewhere. For example, do:

mkdir /tmp/root
mount /dev/hdb1 /tmp/root

(This assumes that your Linux root disk is /dev/hdb1. Change to whatever it is).

Then, go to /tmp/root/etc/rc.d/sysconfig/. You must have a "lm_sensors" init script there, which is the one that crashes your system. Delete it:

rm -f /tmp/root/etc/rc.d/sysconfig/lm_sensors.

Then unmount your root dir:

cd /
umount /tmp/root

And reboot the usual way. Things should be back to normal.

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
#2 lore raw
In reply to Zeno Davatz
Quoted 7 lines
Quoted 6 lines
Quoted 4 lines

I just installed lm-sensors 2.8.0 on my Debian PPC - it said:
Installation successful. My computer hung itself up when I done sensors-detect. At startup I know get:

At which point of sensors-detect dit hit hang?

I think after looking for the ISA-Bus.

Ah OK, it's different from what I had first thought.

Quoted 5 lines

I looged into the console with fn+ctrl+alt now when I run sensors I
get: Error while loading shared libraries: libsensors.so.2: cannot open shared oject file: No such file or directory

What does that mean?

It means that you forgot to run "ldconfig" after installing. (Before doing that, you may have to add the line "/usr/local/lib" to /etc/ld.so.conf, if it's not already there).

Quoted 1 line

My computer still boots but it just does not start GNOME.

Oh, great. It's less awful than I first feared.

Quoted 2 lines

Where do I have to look for the startup script of lm-sensors? In /etc/rc.d?

If sensors-detect did not finished its installation, then the startup script is probably not installed. Just check in /etc/sysconfig if you can see any "lm_sensors" file. If there is one, delete it.

Maybe there's a script brought by your distribution itself. You should look for it in /etc/rc.d. The exact location depends on the distribution, so I can't tell.

Why Gnome doesn't start anymore, that I can't say. Do you have any hardware monitoring application? (Gkrellm maybe?) Maybe it's trying to load some modules and fails.

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
#3 lore raw
In reply to Zeno Davatz
Quoted 10 lines

Any other place I could look? Gnome still hangs at boot with the error I mailed you...

Quoted 4 lines

Maybe there's a script brought by your distribution itself. You should look for it in /etc/rc.d. The exact location depends on the distribution, so I can't tell.

I do not have /etc/rc.d
I have /etc/rc0.d till rc7.d

Use "runlevel" to know which runlevel you are in. Then look for a lm_sensors script in /etc/rcX.d, where X is the runlevel. It could have any name or even not be in a specific script. You could use "grep sensors -ir *" there to locate the script.

Quoted 2 lines

My computer still hangs when starting Gnome, also some other settings seem messed up.

Which other settings? Details are precious.

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
#4 lore raw
In reply to Zeno Davatz
Quoted 3 lines

So I done:
Grep sensors -ir * /etc/rc2.d/

Bad command. You want to do:

grep sensors -ir /etc/rc2.d/*

(BTW I'm surprised you are in runlevel 2, it's unusual.)

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
#5 lore raw
In reply to Zeno Davatz
Quoted 3 lines
Quoted 2 lines

grep sensors -ir /etc/rc2.d/*

I have nothing in there. The command returns nothing.

OK, no init script (at first sight).

Quoted 3 lines
Quoted 1 line

(BTW I'm surprised you are in runlevel 2, it's unusual.)

What runlevel do you expect me to be in? Xserver starts fine, as does gdm..

This usually corresponds to runlevel 4 or 5. But nevermind.

Can you take a look at /etc/modules.conf? If you see anything that looks i2c- or lm_sensors-related, delete it (or simply comment it with a #) and see if it goes any better.

If not, try the following:

cd /lib/modules/$(uname -r)/kernel/drivers/i2c

(make sure this command succeeded before running the rm commands below)

rm *.o
rm -r busses
rm -r chips

With no more sensor modules installed, everything should be back to normal I guess.

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
#6 lore raw
In reply to Zeno Davatz
Quoted 4 lines

Everything else is gone...

Any hints?

Run "depmod -a", and reboot. I hope everything will get back after that.

I really don't understand how just installing lm_sensors could cause such a mess. If you can figure out, please let us know.

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
#7 lore raw
In reply to Zeno Davatz
Quoted 6 lines · Jean Delvare
Quoted 4 lines

I just installed lm-sensors 2.8.0 on my Debian PPC - it said:
Installation successful. My computer hung itself up when I done sensors-detect. At startup I know get:

At which point of sensors-detect dit hit hang?

I think after looking for the ISA-Bus.

Quoted 6 lines
Quoted 6 lines

vector: 300 at pc = e238c288, lr = e238f080
Msr = 9032, sp = d8817cf0 [d8817c40]
Current = d8816000, pid = 661, comm = modprobe
Mon>

Quoted 7 lines
Quoted 4 lines

My Gnome-Startup hangs and nothing at all happens. When I reboot the same happens again.

Any hints how I can get my computer back working again?

Gasp :( All that work to only break your computer... Maybe we should have just given up before.

I looged into the console with fn+ctrl+alt now when I run sensors I get:
Error while loading shared libraries: libsensors.so.2: cannot open shared oject file: No such file or directory

What does that mean?

Quoted 15 lines

You need to access your filesystem from another way (usually, Linux installation CDs offer a way to get a working console, or you have to boot from one or two floppy disks). Once you're there, you'll have to mount your root partition somewhere. For example, do:

mkdir /tmp/root
mount /dev/hdb1 /tmp/root

(This assumes that your Linux root disk is /dev/hdb1. Change to whatever it is).

Then, go to /tmp/root/etc/rc.d/sysconfig/. You must have a "lm_sensors" init script there, which is the one that crashes your system. Delete it:

Quoted 8 lines

rm -f /tmp/root/etc/rc.d/sysconfig/lm_sensors.

Then unmount your root dir:

cd /
umount /tmp/root

And reboot the usual way. Things should be back to normal.

My computer still boots but it just does not start GNOME.

Where do I have to look for the startup script of lm-sensors? In /etc/rc.d?

Thanks for Feedback.

Zeno

#8 lore raw
In reply to Zeno Davatz
Quoted 1 line · Jean Delvare

Ah OK, it's different from what I had first thought.

Yes I am quite happy about that too...

Quoted 4 lines

It means that you forgot to run "ldconfig" after installing. (Before doing that, you may have to add the line "/usr/local/lib" to /etc/ld.so.conf, if it's not already there).

Ok, done that.

Quoted 8 lines

Oh, great. It's less awful than I first feared.

Quoted 2 lines

Where do I have to look for the startup script of lm-sensors? In /etc/rc.d?

If sensors-detect did not finished its installation, then the startup script is probably not installed. Just check in /etc/sysconfig if you can see any "lm_sensors" file. If there is one, delete it.

I do not have a /etc/sysconfig...

Any other place I could look? Gnome still hangs at boot with the error I mailed you...

Quoted 4 lines

Maybe there's a script brought by your distribution itself. You should look for it in /etc/rc.d. The exact location depends on the distribution, so I can't tell.

I do not habe /etc/rc.d
I have /etc/rc0.d till rc7.d

Quoted 4 lines

Why Gnome doesn't start anymore, that I can't say. Do you have any hardware monitoring application? (Gkrellm maybe?) Maybe it's trying to load some modules and fails.

I could run sensors-detect now till the end. What I find strange is, that I do not find any sensors. When I done sensors-detect with the Debian packages I found the sensors but I could not run 'sensors' as there is no 'lm-sensors' package for Debian PPC; there are only the source packages.

My computer still hangs when starting Gnome, also some other settings seem messed up.

Thanks for further Feedback.

Zeno

Signature · 8 lines
Mit freundlichen Gr?ssen / best regards

Zeno Davatz
Strategie & Akquisition

+41 1 350 85 86

www.ywesee.com > intellectual capital connected > www.generika.cc
#9 lore raw
In reply to Zeno Davatz
Quoted 4 lines · Jean Delvare

Use "runlevel" to know which runlevel you are in. Then look for a lm_sensors script in /etc/rcX.d, where X is the runlevel. It could have any name or even not be in a specific script. You could use "grep sensors -ir *" there to locate the script.

Runlevel gives me N 2

So I done:
Grep sensors -ir * /etc/rc2.d/

It tells me that it found something in a binary file called: ld.so.cache...

And then it greps forever...

Quoted 5 lines
Quoted 3 lines

My computer still hangs when starting Gnome, also some other settings seem messed up.

Which other settings? Details are precious.

Fonts are wrong when starting GNOME, also GNOME complains about some applets.

Thanks for more Feedback.

Zeno

#10 lore raw
In reply to Zeno Davatz
Quoted 1 line · Jean Delvare

Which other settings? Details are precious.

It says that the Panel could not be registred with the Bonobo-Activation-Server... Error-Code 1 ...

Then come the some black lines tearing across my screen telling me:

vector: 300 at pc = e238c288, lr = e238f080
Msr = 9032, sp = d8817cf0 [d8817c40]
Dar = 24, dsisr = 40000000
Current = d8816000, pid = 661, comm = modprobe
Mon>

Then everything hangs.

I also get the error that Gnome has been started to often... And that GNOME would try to start the settings Deamon next time...

Any further hints?

Zeno

#11 lore raw
In reply to Zeno Davatz
Quoted 1 line · Jean Delvare

Which other settings? Details are precious.

Gdm starts wonderfully. When I log into GDM the error appears and everything hangs with the mentioned black 'banner' and the error messages...

Zeno

#12 lore raw
In reply to Zeno Davatz
Quoted 7 lines · Jean Delvare
Quoted 3 lines

So I done:
Grep sensors -ir * /etc/rc2.d/

Bad command. You want to do:

grep sensors -ir /etc/rc2.d/*

I have nothing in there. The command returns nothing.

Quoted 1 line

(BTW I'm surprised you are in runlevel 2, it's unusual.)

What runlevel do you expect me to be in? Xserver starts fine, as does gdm..

Thanks for Feedback.

Zeno

#13 lore raw
In reply to Zeno Davatz
Quoted 4 lines · Jean Delvare

If not, try the following:

cd /lib/modules/$(uname -r)/kernel/drivers/i2c

Quoted 8 lines

(make sure this command succeeded before running the rm commands below)

rm *.o
rm -r busses
rm -r chips

With no more sensor modules installed, everything should be back to normal I guess.

Ok, this worked. I did not reboot but changed straight into another console. When starting Gnome now I get tons of Bonobo-Activation-Errors... That say the 'panel' will now terminate...

I clicked OK several times and now just have the Terminal on my screen...

Everything else is gone...

Any hints?

Zeno

Signature · 8 lines
Mit freundlichen Gr?ssen / best regards

Zeno Davatz
Strategie & Akquisition

+41 1 350 85 86

www.ywesee.com > intellectual capital connected > www.generika.cc