Problems with hibernate / suspend to ram / openSuSE 10.2
Dear listmembers, my new laptop causes me a specific issue with kmix. Using kde, the kmix process keeps a hand on the sound module so it cannot be unloaded. Therefore hibernate / suspend initially did not work. I finalized the process kmix now by adding the appropriate script in /etc/pm, however, the question arises now how to ensure that the kmix process is restarted in the users context at restart? I appreciate any comment, thank you very much in advance, take care Dieter Jurzitza --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-mobile+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-mobile+help@opensuse.org
On Fri, Feb 02, 2007 at 03:24:20PM +0100, dieter.jurzitza@t-online.de wrote:
Dear listmembers, my new laptop causes me a specific issue with kmix. Using kde, the kmix process keeps a hand on the sound module so it cannot be unloaded. Therefore hibernate / suspend initially did not work.
This works fine for me without killing kmix. So you should probably file a bugzilla entry against component kernel, for your broken sound driver.
I finalized the process kmix now by adding the appropriate script in /etc/pm, however, the question arises now how to ensure that the kmix process is restarted in the users context at restart? I appreciate any comment,
An (ugly, but working) hack is to do it via kpowersave notifications. Configure the "system notifications" in the control center. Select Kpowersave as an event source and then for the event "resumed from ...", under "advanced..." select "execute a program". This makes it possible to run arbitrary commands in the context of the user, although i must admit that it is really hacky :-) -- Stefan Seyfried QA / R&D Team Mobile Devices | "Any ideas, John?" SUSE LINUX Products GmbH, Nürnberg | "Well, surrounding them's out." --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-mobile+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-mobile+help@opensuse.org
Hallo miteinander, ich habe in mein Notebook (ca 5 Jahre alt) ein neues Kombi-Laufwerk eingebaut. Es lief problemlos. Als ich jetzt auf Suse 10.2 updaten wollte merkte ich, dass es nicht möglich war vom Laufwerk zu booten, da es auch vom BIOS gar nicht erkannt oder eingetragen war. Beim Festplattenwechsel im letzten Jahr klappte dies problemlos. Es gibt auch in meinem BIOS keine Einstellungsmöglichkeiten für die Laufwerke. Da kein Diskettenlaufwerk drin ist und auch im BIOS keine Option für Start von USB stehe ich etwas auf dem Schlauch. BIOS.Update ist nicht, da das Dingen damals von Vobis zusammengestellt wurde. Uberhaupt sind die Einstellungsmöglichkeiten im BIOS sehr spärlich. Hat jemand eine Idee, wie ich die Suse trotzdem noch auf die Festplatte bekomme? Vielen Dank Wolfgang Rohmann --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-mobile+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-mobile+help@opensuse.org
-----Ursprüngliche Nachricht----- Von: Wolfgang Rohmann [mailto:wolf.rohmann@gmx.de] Hat jemand eine Idee, wie ich die Suse trotzdem noch auf die Festplatte bekomme? Vielen Dank Wolfgang Rohmann
Mittels Bootdiskette? Ansonsten Platte ausbauen und in einem anderen System provisorisch anschliessen. --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-mobile+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-mobile+help@opensuse.org
On Fri, 2007-02-02 at 18:24 +0100, Wolfgang Rohmann wrote:
Hallo miteinander, ich habe in mein Notebook (ca 5 Jahre alt) ein neues Kombi-Laufwerk eingebaut. Es lief problemlos. Als ich jetzt auf Suse 10.2 updaten wollte merkte ich, dass es nicht möglich war vom Laufwerk zu booten, da es auch vom BIOS gar nicht erkannt oder eingetragen war. Beim Festplattenwechsel im letzten Jahr klappte dies problemlos. Es gibt auch in meinem BIOS keine Einstellungsmöglichkeiten für die Laufwerke. Da kein Diskettenlaufwerk drin ist und auch im BIOS keine Option für Start von USB stehe ich etwas auf dem Schlauch. BIOS.Update ist nicht, da das Dingen damals von Vobis zusammengestellt wurde. Uberhaupt sind die Einstellungsmöglichkeiten im BIOS sehr spärlich. Hat jemand eine Idee, wie ich die Suse trotzdem noch auf die Festplatte bekomme?
Bei aelteren Rechnern die Standard workarounds, versuch's mal mit: pci=noacpi noapic (Evtl, wurde auch acpi und/oder apic ausgeschaltet weil der Rechner zu alt ist, dann andersrum: acpi=force, lapic, apic). Es ist halt ein Datum genommen worden, bei dem man annimmt, dass es ab da sinnvoller ist per default apic und ACPI (das ganze auch noch mal ein bisschen verfeinert, wenn Intel, dann benutze APIC ab 19xy, wenn AMD dann etwas spaeter, fuer ACPI wieder extra ...). Aber mit dieser Methode ist es unmoeglich alle Rechner richtig zu erwischen... Achja, probier auch mal "noapic maxcpus=0", da ist auf 10.2 bei vielen Rechnern etwas kaputt, seitdem wir einen smp kernel per default installieren. Thomas --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-mobile+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-mobile+help@opensuse.org
Am Montag, 5. Februar 2007 16:30:49 schrieb Thomas Renninger:
On Fri, 2007-02-02 at 18:24 +0100, Wolfgang Rohmann wrote:
Hallo miteinander, ich habe in mein Notebook (ca 5 Jahre alt) ein neues Kombi-Laufwerk eingebaut. Es lief problemlos. Als ich jetzt auf Suse 10.2 updaten wollte merkte ich, dass es nicht möglich war vom Laufwerk zu booten, da es auch vom BIOS gar nicht erkannt oder eingetragen war. Beim Festplattenwechsel im letzten Jahr klappte dies problemlos. Es gibt auch in meinem BIOS keine Einstellungsmöglichkeiten für die Laufwerke. Da kein Diskettenlaufwerk drin ist und auch im BIOS keine Option für Start von USB stehe ich etwas auf dem Schlauch. BIOS.Update ist nicht, da das Dingen damals von Vobis zusammengestellt wurde. Uberhaupt sind die Einstellungsmöglichkeiten im BIOS sehr spärlich. Hat jemand eine Idee, wie ich die Suse trotzdem noch auf die Festplatte bekomme?
Bei aelteren Rechnern die Standard workarounds, versuch's mal mit: pci=noacpi noapic
(Evtl, wurde auch acpi und/oder apic ausgeschaltet weil der Rechner zu alt ist, dann andersrum: acpi=force, lapic, apic). Es ist halt ein Datum genommen worden, bei dem man annimmt, dass es ab da sinnvoller ist per default apic und ACPI (das ganze auch noch mal ein bisschen verfeinert, wenn Intel, dann benutze APIC ab 19xy, wenn AMD dann etwas spaeter, fuer ACPI wieder extra ...). Aber mit dieser Methode ist es unmoeglich alle Rechner richtig zu erwischen...
Achja, probier auch mal "noapic maxcpus=0", da ist auf 10.2 bei vielen Rechnern etwas kaputt, seitdem wir einen smp kernel per default installieren.
Thomas
Hallo Thomas, vielen Dank für Deine Antwort. Leider wird das Laufwerk ja schon beim Booten gar nicht erkannt (Meldung im BIOS: "Secondary Master: NONE"). Ich hab also gar keine Möglichkeiten Optionen beim Booten mitzugeben. Durch recherchieren habe ich heute herausgefunden, dass das Problem mit der Master / Slave Einstellung zu tun hat. Ältere Notebooks vergeben feste Zuordnungen für Master und Slave - neuere Laufwerk sind fest gejumpert auf Cablele select, was die alten Notebooks nicht lesen können. Hier findet man einen Link für Löt-Freaks zum Verändern des Jumpers am Laufwerk: http://www.dschen.de/laptop_brenner/ Ich kann das nicht und fand glücklichweise einen Link, wo der Hersteller (NEC, bzw. Optiarc) ein Tool bereitstellt, wo man unter WIndows die Master / Slave-Einstellung ändern kann. Das ging prima und das Laufwerk wird jetzt ins BIOS eingetragen. Wolfgang --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-mobile+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-mobile+help@opensuse.org
Dear Stefan, thank you for the hint. Two points here: 1.) to get the internal modem work, I had to use proprietary drivers from Conexant. They include a module for the intel - sound driver, so the problem with the unloading of it is to blame to Conexant and has nothing to do on the SuSE Buglist. 2.) However, your second suggestion regarding kpowersave does not work (for me). Whatever I enter that should be done following a resume event is simply silently ignored. I can enter any program here, nothing happens. No logging occurs, all the options that can be configured in the resume / suspend dialogues have no impact on anything. If I say "log into a file" nothing happens, it seems as if kpowersave would not be working (but it does). My configs all show in .kde/share/config/kpowerrc and kpower.events. I wonder whether there is a debug option for kpowersave. If you know how to debug this, I would highly appreciate any hint. Many thanks in advance, take care Dieter Jurzitza Am Freitag, 2. Februar 2007 16:39 schrieb Stefan Seyfried:
On Fri, Feb 02, 2007 at 03:24:20PM +0100, dieter.jurzitza@t-online.de wrote:
This works fine for me without killing kmix. So you should probably file a bugzilla entry against component kernel, for your broken sound
An (ugly, but working) hack is to do it via kpowersave notifications.
-- ----------------------------------------------------------- | \ /\_/\ | | ~x~ |/-----\ / \ /- \_/ ^^__ _ / _ ____ / <°°__ \- \_/ | |/ | | || || _| _| _| _| if you really want to see the pictures above - use some font with constant spacing like courier! :-) ----------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-mobile+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-mobile+help@opensuse.org
On Sat, Feb 03, 2007 at 08:20:36PM +0100, Dieter Jurzitza wrote:
Dear Stefan, thank you for the hint. Two points here: 1.) to get the internal modem work, I had to use proprietary drivers from Conexant. They include a module for the intel - sound driver, so the problem with the unloading of it is to blame to Conexant and has nothing to do on the SuSE Buglist.
Maybe you could use the snd-intel8x0m module and slmodemd instead :-)
2.) However, your second suggestion regarding kpowersave does not work (for me). Whatever I enter that should be done following a resume event is simply silently ignored. I can enter any program here, nothing happens. No logging occurs, all the options that can be configured in the resume / suspend dialogues have no impact on anything. If I say "log into a file" nothing happens, it seems as if kpowersave would not be working (but it does). My configs all show in .kde/share/config/kpowerrc and kpower.events.
kpowersave as delivered in 10.2 still has some bugs (that will be fixed by an onlineupdate), so maybe the "resumed"-event just does not work now. It works fine for me on lid close, though i have not tried it with suspend events. -- Stefan Seyfried \ "I didn't want to write for pay. I QA / R&D Team Mobile Devices \ wanted to be paid for what I write." SUSE LINUX Products GmbH, Nürnberg \ -- Leonard Cohen --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-mobile+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-mobile+help@opensuse.org
Hi Stefan, dear listmembers, unfortunately softmodemd does not support the onboard modem of the lenovo X60, the usage of the Conexant package is mandatory. The package I am using is called: hsfmodem-7.47.00.07full_k2.6.18.2_34_default-1suse.i586.rpm As readily mentioned, it is neccessary to unload all drivers with regard to the modem and the sound modules involved in order to achieve proper shutdown and restart with suspend2ram and suspend2disk. Using kde, kmix kept the sound module (provided by Connexant) busy, so I had to kill it each time. This can be achieved by the following script entitled 06kmix in /etc/pm/hooks: CUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUT #!/bin/bash . /etc/pm/functions KMIXPID=`ps ax | awk '{if (match($5, "kmix")){print $1}}'` case "$1" in hibernate|suspend) kill -SIGHUP $KMIXPID ;; thaw|resume) ;; *) ;; esac exit $? CUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUT Restarting of kmix is impossible this way, because the powermanagement daemons executing this file do not operate in the user's context. I will come to this point later. As a next step the hsf-modem driver should be unloaded: This is done by another script in /etc/pm/hooks, it is called 08softmodem: CUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUT #!/bin/bash . /etc/pm/functions case "$1" in hibernate|suspend) /etc/init.d/hsf stop ;; thaw|resume) /etc/init.d/hsf start ;; *) ;; esac exit $? CUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUT So far so good. suspend2ram and suspend2disk are up and running now, but the automatic start of kmix is gone. To achieve this, I did the following: in ~/.kde/Autostart I put an executable script with the following content: CUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUT #!/bin/sh SLEEP=10 while [ 1 ]; do PROCNUM=`ps ax | awk '{if(match($0," kmix")&&(!match($0,"awk"))){print if [ "${PROCNUM}" = "" ]; then kmix -autostart fi sleep $SLEEP done CUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUTCUT After restart, this script is executed as well. There is no kmix process there, thus it is restarted. Only to let you know. kpowersaved does not provide working functions for this as of today. To whom this may concern - take care Dieter Jurzitza -- ----------------------------------------------------------- | \ /\_/\ | | ~x~ |/-----\ / \ /- \_/ ^^__ _ / _ ____ / <°°__ \- \_/ | |/ | | || || _| _| _| _| if you really want to see the pictures above - use some font with constant spacing like courier! :-) ----------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-mobile+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-mobile+help@opensuse.org
participants (6)
-
Dieter Jurzitza
-
dieter.jurzitza@t-online.de
-
ralf.prengel@comline.de
-
Stefan Seyfried
-
Thomas Renninger
-
Wolfgang Rohmann