<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress.com" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>s2ram &amp;laquo; WordPress.com Tag Feed</title>
	<link>http://wordpress.com/tag/s2ram/</link>
	<description>Feed of posts on WordPress.com tagged "s2ram"</description>
	<pubDate>Thu, 21 Aug 2008 00:27:43 +0000</pubDate>

	<generator>http://wordpress.com/tags/</generator>
	<language>en</language>

<item>
<title><![CDATA[Suspend to RAM su Extensa 5620 con Debian Lenny (testing)]]></title>
<link>http://gicatech.wordpress.com/?p=25</link>
<pubDate>Fri, 30 May 2008 08:58:34 +0000</pubDate>
<dc:creator>Gica78R</dc:creator>
<guid>http://gicatech.wordpress.com/?p=25</guid>
<description><![CDATA[Avviso: le istruzioni riportate in questo how-to non sembrano produrre risultati stabili. Per maggio]]></description>
<content:encoded><![CDATA[<p style="text-align:justify;"><em><strong>Avviso: le istruzioni riportate in questo how-to non sembrano produrre risultati stabili. Per maggiore sicurezza è consigliabile usare il suspend to disk.</strong></em></p>
<p style="text-align:justify;">Sul mio Acer Extensa 5620 sono tornato definitivamente alla versione 32 bit di <a title="Debian testing" href="http://www.debian.org/releases/testing/" target="_blank">Debian Lenny</a> (ancora in fase testing). Diversamente da Ubuntu e Fedora, qui c'è qualcosina in più da fare per far funzionare alcuni dispositivi e caratteristiche. In particolare ho dovuto sudare non poco per riuscire a far funzionare a dovere il Suspend to RAM, cioè quella funzione che mette il computer in uno stato di risparmio energetico senza spegnerlo, usando soltanto l'energia necessaria a conservare il contenuto della memoria. Questo  è l'equivalente dello stato di STOP dei Macintosh e permette di avere tempi di ripristino molto brevi: due o tre secondi. In realtà il notebook entrava correttamente nello stato di sospensione ma al "resume", dopo una sorta di reset dell'alimentazione, esso rimaneva bloccato, col monitor spento e con la ventola in funzione. A quel punto non c'era altro da fare che resettare brutalmente il computer, perdendo ovviamente la sessione salvata in memoria.</p>
<p style="text-align:justify;">Per risolvere ho iniziato a studiare un po' la documentazione del comando s2ram e, successivamente, <a href="http://en.opensuse.org/S2ram">questa pagina</a> del progetto openSUSE, dalle quali ho ricavato molte informazioni utili. Effettuando i primi test, ho notato che la mia piattaforma non era tra quelle supportate:</p>
<blockquote><p>debian:~# s2ram -n<br />
Machine unknown<br />
This machine can be identified by:<br />
sys_vendor   = "Acer           "<br />
sys_product  = "Extensa 5620                   "<br />
sys_version  = "0100           "<br />
bios_version = "V1.16          "<br />
See http://suspend.sf.net/s2ram-support.html for details.</p>
<p>If you report a problem, please include the complete output above.</p></blockquote>
<p style="text-align:justify;">Di conseguenza, non mi rimaneva che avviare il sistema con una shell di init e andare per tentativi.</p>
<p style="text-align:justify;">Quasi immediatamente ho notato che con il comando <span style="color:#00ff00;">s2ram -f -a3</span> il suspend ed il successivo resume andavano sempre a buon fine (come osservato nel <a href="http://en.opensuse.org/S2ram#Intel_Graphics_Chipsets" target="_blank">caso di schede grafiche Intel</a>). Ho quindi riprovato quel comando in una normale sessione grafica, ma lì il risultato era negativo: ancora un freeze del sistema e conseguente reset. Un po' scoraggiato ma tutt'altro che rassegnato, ho ripreso a cercare informazioni su internet, questa volta riguardanti direttamente il mio tipo di portatile, fino a trovare <a title="LinuxLaptopWiki" href="http://www.linuxlaptopwiki.net/wiki/Acer_Extensa_5620" target="_blank">questo sintetico ma utilissimo wiki</a> in cui si osserva che per far funzionare il suspend to ram sull'Extensa 5620 è prima necessario scaricare dal kernel il modulo <strong>psmouse</strong> (il driver per i mouse PS/2). In questo modo ho osservato che effettivamente la cosa funzionava; non restava altro che automatizzare il tutto, modificando i file di configurazione dei servizi di sospensione/ibernazione affinché bastasse un click sull'apposita voce del menu di KLaptop per mandare il notebook in stop. Ancora una volta mi sono tornate utilissime le pagine di manuale del sistema, in particolare quella del file <strong>hibernate.conf</strong> (digitate <span style="color:#00ff00;">man hibernate.conf</span> da terminale), ed i commenti presenti nei file della directory <strong>/etc/hibernate/</strong>. Per ottenere il comportamento desiderato, ho inserito le seguenti opzioni <strong><span style="text-decoration:underline;">in testa</span></strong> al file <strong>/etc/hibernate/ram.conf</strong>:</p>
<blockquote><p><strong>USuspendRamForce yes</strong> # per l'opzione -f a s2ram</p>
<p><strong>USuspendRamAcpiSleep 3</strong> # per l'opzione -a3 a s2ram</p>
<p><strong>UnloadModules psmouse</strong> # per scaricare psmouse prima della sospensione</p>
<p><strong>LoadModules auto</strong> # per ricaricare al resume i moduli precedentemente scaricati</p></blockquote>
<p style="text-align:justify;">Fatto questo, la funzione di sospensione su ram sembra funzionare perfettamente! :-)</p>
<p style="text-align:justify;">
<p style="text-align:justify;">Ciao da Gica</p>
<p style="text-align:justify;"><strong>Update</strong>: le stesse opzioni che ho citato nell'articolo sono già presenti nel file <strong>/etc/hibernate/ususpend-ram.conf</strong>; quindi, per attivarle, basta decommentarle ;-)</p>
<p style="text-align:justify;"><strong>Update2</strong>: ho reinstallato il sistema da zero, e pur reimpostando le suddette opzioni il suspend to ram non funziona come si deve. Forse dimentico qualcosa, o forse c'è qualcosa che non va col mio portatile :-(</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Putting the Thinkpad T60p to sleep in Ubuntu Hardy Heron beta]]></title>
<link>http://leoslog.wordpress.com/?p=6</link>
<pubDate>Sat, 29 Mar 2008 23:12:21 +0000</pubDate>
<dc:creator>dkleos</dc:creator>
<guid>http://leoslog.wordpress.com/?p=6</guid>
<description><![CDATA[In my ever ongoing quest to get Ubuntu Hardy Heron beta to work on my beloved Thinkpad T60p, I final]]></description>
<content:encoded><![CDATA[<p>In my ever ongoing quest to get Ubuntu Hardy Heron beta to work on my beloved Thinkpad T60p, I finally managed to get suspend/resume working.</p>
<p>This is actually one of the greater achievements , especially considering this was impossible in Ubuntu Gutsy, Mint Daryna and probably pretty much any other recent Linux distro using one of the newer SLAB enabled kernels together with the ATI propritary 'fglrx' driver.</p>
<p>This is the steps involved:</p>
<p>- First , you should get uswsusp installed which will bring you s2ram. Unfortunately, in the official uswsusp the gurus decided to remove s2ram. So we will bring it in from this repository instead (add to /etc/apt/sources.list):</p>
<p>deb http://http.us.debian.org/debian/ unstable main contrib non-free</p>
<p>Then type:</p>
<p># sudo apt-get update; sudo apt-get install uswsusp</p>
<p>Now off to edit /etc/gdm/gdm.conf ... probably not the right way to do things, but hey - it works.</p>
<p>Edit the line reading "SuspendCommand=/usr/sbin/pm-suspend" , adding the --force flag to it so it will loke like "SuspendCommand=/usr/sbin/pm-suspend --force".</p>
<p>You should now be able to respond/resume using fn+f4 or the gnome "power" button.</p>
<p>Unfortunately, upon resume my system suffered from two annoyances:</p>
<p>1. WLAN connection broken</p>
<p>2. X session broken (I was back at the login screen and gnome was restarted)</p>
<p>The first problem is related to the Intel 3945 restricted driver. The fix was to edit /usr/lib/pm-utils/sleep.d/10NetworkManager. In the function "suspend_nm()" comment out the dbus-send stuff and put "rmmod iwl3945". In function "resume_nm()" again comment out dbus-send and put "modprobe iwl3945".</p>
<p>The second problem is , as far as my understanding goes, related to virtual terminal changes taking place during  suspend locking ... ahem ... edit /usr/lib/pm-utils/functions and comment out all lines starting with chvt. Hurray , finally resume/suspend works as it is supposed to.</p>
<p>BTW ... hibernation doesn't work (what did you expect .. ?) , but I am probably not going to dig into that since I dont use it.</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Fixing suspend and hibernation in ubuntu....]]></title>
<link>http://readthisaloud.wordpress.com/2007/12/20/fixing-suspend-and-hibernation-in-ubuntu/</link>
<pubDate>Thu, 20 Dec 2007 21:21:53 +0000</pubDate>
<dc:creator>Rock 'n Snap</dc:creator>
<guid>http://readthisaloud.wordpress.com/2007/12/20/fixing-suspend-and-hibernation-in-ubuntu/</guid>
<description><![CDATA[You might have noticed that the suspend and hibernation function in ubuntu/kubuntu won&#8217;t work.]]></description>
<content:encoded><![CDATA[<p>You might have noticed that the suspend and hibernation function in ubuntu/kubuntu won't work. While there's no official fix, you might find this work around helpful, hope you enjoy!</p>
<p>Most people need hibernation for their laptops.<br />
step is to install a tool called «uswsusp»</p>
<ol>
<blockquote><p>sudo apt-get install uswsusp</p></blockquote>
</ol>
<p>And by typing the below command you check if the <b>suspend</b> function works now....<br />
<code> sudo s2ram </code><br />
Same goes for <b>hibernation</b></p>
<p><code> sudo s2disk</code></p>
<p><!--more--><br />
Now once this is done, and all of the above commands work, they can be replaced with the old non-working commands that come with ubuntu.</p>
<p>But attention, before editing the system files, always make sure you back up the files in case something goes completely wrong.</p>
<p align="left"><code> sudo cp /usr/lib/hal/scripts/linux/hal-system-power-suspend-linux /usr/lib/hal/scripts/linux/hal-system-power-suspend-linux.bak</code></p>
<p align="left"><code>sudo cp /usr/lib/hal/scripts/linux/hal-system-power-hibernate-linux /usr/lib/hal/scripts/linux/hal-system-power-hibernate-linux.bak</code></p>
<p>2. step is to replace the old commands with the new commands in</p>
<p><b>hal-system-power-suspend-linux</b></p>
<p align="left"><code> sudo nano /usr/lib/hal/scripts/linux/hal-system-power-suspend-linux</code></p>
<p>paste the following:</p>
<ol>
<blockquote><p> #!/bin/sh<br />
/sbin/s2ram --force</p></blockquote>
</ol>
<p><b>hal-system-power-hibernate-linux</b></p>
<div align="left"><code>sudo nano /usr/lib/hal/scripts/linux/hal-system-power-hibernate-linux</code></div>
<p>paste the following again:</p>
<ol>
<blockquote><p> #!/bin/sh<br />
/sbin/s2disk</p></blockquote>
</ol>
<p>Good Luck, let me know if you come across any problems!</p>
]]></content:encoded>
</item>
<item>
<title><![CDATA[Configuring Ubuntu 7.04 on a Toshiba A135-S2356]]></title>
<link>http://arbitraryusefulinfo.wordpress.com/2007/06/12/configuring-ubuntu-on-a-toshiba-a135-s2356/</link>
<pubDate>Tue, 12 Jun 2007 08:59:20 +0000</pubDate>
<dc:creator>Ryan Lefever</dc:creator>
<guid>http://arbitraryusefulinfo.wordpress.com/2007/06/12/configuring-ubuntu-on-a-toshiba-a135-s2356/</guid>
<description><![CDATA[See this post for an update on sound.
I recently got a new Toshiba Satellite A135-S2356, on which I ]]></description>
<content:encoded><![CDATA[<p><strong><span style="color:red;">See <a href="http://arbitraryusefulinfo.wordpress.com/2007/10/10/configuring-headphones-for-ubuntu-704-on-a-toshiba-a135-s2356">this post</a> for an update on sound.</span></strong></p>
<p>I recently got a new Toshiba Satellite A135-S2356, on which I installed Ubuntu Feisty Fawn. Below I will discuss several issues involved in configuring Ubuntu on the laptop. Unfortunately, I was not able to configure everything to my complete satisfaction. In those cases, I will detail as much as I know about the issue and will update this post as I learn more.</p>
<hr /><em>Synaptics Touchpad</em></p>
<p>To configure the touchpad you need install an application such as gsynaptics. (On KDE you may want to use a different application, such as ksynaptics.) gsynatpics can be installed using the Synaptic Package Manager. After installing gsynaptics, edit <code>/etc/X11/xorg.conf</code>, and look for an entry that starts:</p>
<pre>Section "InputDevice"</pre>
<pre>        Identifier      "Synaptics Touchpad"</pre>
<p>Make sure that the following option is listed under that entry:</p>
<pre>Option          "SHMConfig"     "on"</pre>
<p>If you do modify <code>/etc/X11/xorg.conf</code>, you'll need to restart the X-server for the changes to take effect. You can do this by rebooting or pressing ctrl-alt-backspace.</p>
<hr /><em>Sound</em></p>
<p>Sound is the most frustrating part of configuring this laptop. The Toshiba Satellite A135-S2356 uses the ATI SB450 HDA sound card. Apparently the SB450 has worked off and on at various stages of Ubuntu's life cycle over the past few years. Its pretty frustrating that it reportedly worked in Ubuntu 6.10 but is broken again in Ubuntu 7.04. Its not clear to me if the problem lies in the kernel or with ALSA. At any rate, I have figured out how to get the sound card working, but with one giant quirk. When headphones are plugged in, the sound continues to emit from the laptop's internal speakers, essentially defeating the point of headphones. To get to this point, you need to edit <code>/etc/modprobe.d/alsa-base</code>, and add the following line to the end of it:</p>
<pre>options snd-hda-intel probe_mask=8 model=3stack</pre>
<p>After doing so, the easiest next step is to reboot, that way the change will take effect. I have tried recompiling the alsa drivers, but that did not fix the speaker-headphone problem. In addition, it does not appear that this problem is a very high priority issue. Hopefully that will change, as I and many others require music while working and often work in environments where externally audible sound is unacceptable. I will continue to monitor the situation and will update this blog if I figure out how to make the speakers mute when headphones are plugged in. If anyone reading this blog knows how to fix the speaker-headphone situation, please post a comment.</p>
<p><strong> <span style="color:red;">I have posted a solution to get the headphones to mute, <a href="http://arbitraryusefulinfo.wordpress.com/2007/10/10/configuring-headphones-for-ubuntu-704-on-a-toshiba-a135-s2356">here</a>.</span></strong></p>
<hr /><em>Graphics Card</em></p>
<p>Restricted drivers exist for the ATI graphics card in the laptop; however, I've found that when enabled, the screen goes black when ever you log out of Ubuntu. Consequently you have to reboot. So, if you're the only person that uses the laptop, then those drivers are probably OK to use. On the other hand, if you're not doing anything graphically intensive, you probably don't need to worry about using them. I have not extensively looked into recompiling the kernel to fix the black screen problem.</p>
<hr /><em>Hibernate/Sleep</em></p>
<p>The laptop does not seem to properly wake from hibernate and sleep, using the default power management scheme. I was able to fix the problem by changing the default power management scheme with the steps below. (Note, I am still testing this new scheme.)</p>
<ol>
<li>Install uswsusp using the Synaptic Package Manager.</li>
<li>Test uswsusp.  To test hibernate, execute <code>sudo s2disk</code>.  To test sleep, execute <code>sudo s2ram -f</code>.  You must use the <code>-f</code> option because the A135-S2356 is not in the whitelist of supported laptops for s2ram. However, it seemed to work fine for me. For more information about s2ram, go to <a href="http://en.opensuse.org/S2ram">http://en.opensuse.org/S2ram</a>.</li>
<li>The default power management scripts have a certain order in which they look for commands that put your computer into hibernation or to sleep. The first thing they look for is pmi. Unfortunately, you can not remove pmi from you system because of the way certain package dependencies are organized. However, you can rename pmi so that the power management scripts can't find it. If you renamed pmi using a move command, it would simply reappear the next time it was updated on the system. What you can do instead is to rename in a way that lets the packagemanagment system know it was renamed. That can be done with the following command:
<pre style="border:1px solid black;overflow:auto;width:100%;height:100%;">sudo dpkg-divert --rename --divert /usr/sbin/pmi-disabled /usr/sbin/pmi</pre>
<p>Now, power management will find s2disk and s2ram instead of pmi. Note, if you have installed other power management tools, you may have to remove them or similarly rename them.</li>
<li>Another issue is that we need the power management execute <code>s2ram -f</code>, not just <code>s2ram</code>.  In order to do that, we mv s2ram similarly to how we moved pmi.
<pre style="border:1px solid black;overflow:auto;width:100%;height:100%;">sudo dpkg-divert --rename --divert /sbin/s2ram-install /sbin/s2ram</pre>
<p>After moving s2ram, we create a new s2ram that calls the renamed s2ram with the appropriate flags. That can be accomplished with the following two commands:</p>
<pre style="border:1px solid black;overflow:auto;width:100%;height:100%;">sudo echo "/sbin/s2ram-install -f" &#62; /sbin/s2ram</pre>
<pre style="border:1px solid black;overflow:auto;width:100%;height:100%;">sudo chmod 755 /sbin/s2ram</pre>
</li>
<li>Note, because we used dpkg-divert to rename s2ram, it will still get updated properly.</li>
</ol>
<hr /><em>Toshiba Function Keys</em></p>
<p>The Toshiba function keys can be used to adjust brightness, mute/unmute the audio, etc. I have not yet figured this one out. However, I believe the solution is use <a href="http://fnfx.sourceforge.net/">fnfx</a>, which can be installed using the Synaptic Package Manager. Unfortunately, in order for fnfx to work, the kernel must be compiled with Toshiba support. In particular, it requires that <code>CONFIG_ACPI</code> and <code>CONFIG_ACPI_TOSHIBA</code> are defined in the kernel configuration. Toshiba support seems to be missing in the kernel that Ubuntu supplies. Thus, I believe it is necessary to recompile the kernel. If you're reading this and you know where to download current versions of the kernel compiled with Toshiba support, please post a comment.</p>
<hr /><em>DNS</em></p>
<p>Although I've been disappointed with Ubuntu's sound support, I have been impressed with its wireless support. The wireless just worked! One addition I like to make to the wireless is to make OpenDNS the default DNS provider. I do this because some ISPs have not yet figured out how to setup fast and reliable DNS. In order to make OpenDNS your default DNS server for your wireless, add the following line to <code>/etc/dhcp3/dhclient.conf</code>, and then reboot:</p>
<pre>prepend domain-name-servers 208.67.222.222, 208.67.220.220;</pre>
<hr /><em>ipod</em></p>
<p>Because the headphones do not work properly, I am forced to use an external music player. Currently I am using an ipod. Instructions can be found at <a href="http://www.linuxjournal.com/article/9266">http://www.linuxjournal.com/article/9266</a>, for using your ipod with Ubuntu. Personally, I have chosen to use gtkpod to manage my ipod. In addition, if you're sick of Rhythmbox starting whenever you attach your ipod to your laptop, you can fix that by launching gconf-editor and modifying the settings under <code>desktop -&#62; gnome -&#62; volume_manager</code>.  If found that particular piece of advice <a href="http://ubuntuforums.org/showthread.php?t=170261&#38;highlight=default+media+player"> here</a>.</p>
]]></content:encoded>
</item>

</channel>
</rss>
