Blog de packo Blog Pack

Bitacora personal, como la vida misma Blog personnel, as life itself

- Doctor, ¿me puedo bañar con diarrea? -- Doctor, do I bathe with diarrhea? - Hombre, si tiene bastante... -- Man, if you have enough ...
By N2H

Suspender el portatil en Gnu/Linux Suspend the laptop in GNU / Linux

Archivado en: GNU/Linux , Recetas o trucos — Packo at 3:45 pm on Lunes, Diciembre 5, 2005 Archived on: GNU / Linux, recipes or tricks - Packo at 3:45 pm on Monday, December 5, 2005

Pues es sencillo . It is simple. Lo primero que hay que hacer es ver si tenemos el soporte para hacer la suspensión, éste lo da el kernel. The first thing to do is see if we have the support to make the suspension, it gives it the kernel. Ejecutamos: Run:

cat /sys/power/state cat / sys / power / state

La salida de esto debe ser: standby mem disk The output of this should be: standby disk mem
puede ser que falte alguna palabra o que tengais alguna más, no pasa nada. may be missing or a word that I have some more, nothing happens. Lo malo es que os de algún error (cuidado lo teneis que hacer como root), porque significa que no teneis soporte. The downside is that you of an error (be careful what you have to do as root), because it means you have no support.

Si no teneis soporte: If you do not have support:
Teneis que cambiar un parámetro en el kernel y compilar. You have to change a parameter in the kernel and compile. La opcion que teneis que cambiar es: The option that you have to change is:

Power Management Options-> Software suspend (marcarlo) Power Management Options-> Software suspend (mark)

Si teneis soporte: If you have support:
Es muy sencillo, sólo teneis que copiar este script y llamarlo cuando querais suspender el sistema: It's simple, just that you have to copy this script and call it when querais suspend the system:

 #!/bin/bash #desmontad todos las particiones que sean de escritura de vfat #porque puede dar problemas serios umount -l /mnt/windows #el -l gracias a flamma, fuerza el desmonte  echo shutdown > /sys/power/disk  # en vez de disk se puede poner alguna de las opciones #que os salieron antes, pensad que disk es el #hibernar de windows y el mem el suspender. #! / bin / bash # disassemble all the partitions are writing vfat # because it can give serious problems umount-l / mnt / windows # l-thanks to the flamma, force clearing echo shutdown> / sys / power / disk # Instead disk can be one of the options # before you left, think that disk is # overwintering of the windows and mem suspend. echo disk > /sys/power/state echo disk> / sys / power / state 

Lo guardais en un archivo que se llame por ejemplo: suspender.sh y acordaros que teneis que ejecutarlo como root, una vez así hazlo ejecutable con What guardais in a file named for example: suspender.sh and agree that you have to run as root, once and do it with executable

chmod x suspender.sh chmod x suspender.sh

El truco que yo he hecho es ( en Gnome) en el panel, pichar en Añadir al panel , le dais a Lanzador de aplicación personalizado , en la ventana que os sale, en nombre poneis lo que querais, en comando: gksudo /ruta_al_archivo/suspender.sh y en icono elegid el que querais. The trick is that I have done (Gnome) on the panel, Piche Add to the panel, she dais to Launcher custom application, in the window that leaves you, on behalf poneis what they want, in command: gksudo / ruta_al_archivo / suspender.sh icon and choose which querais.

Problemas: Problems:
Pues el único que he tenido ha sido el controlador de nvidia, y ¿cómo lo he solucionado?, pues no lo he solucionado, simplemente prefiero suspender el sistema que tener aceleración por ahora. So the only thing I had was the driver nvidia, and how I've solved? Because I have not solved simply prefer to suspend the system that have accelerated now. Además siempre se puede hacer otro esquema para el Xorg, que ya contaré en otro post. In addition you can always do another outline for the Xorg, which already count on another post. Así que he cambiado en xorg.conf nv por nvidia. So I've changed in xorg.conf nv by nvidia.

Mi experiencia: My experience:
La prueba la he hecho en Gnome y con el Firefox 1.5, el Openoffice 2 y el Acrobat Reader 7 abiertos. The test I have done in the Gnome and with Firefox 1.5, Openoffice 2 and Acrobat Reader 7 open.
Ha tardado en suspenderse 19s, y en arrancar 32s, ningún problema. It has taken a suspended 19s and 32s start, no problem.
Ya sabeis alguna duda o sugerencia, postearla. Already sabeis any questions or suggestions, post.

ACTUALIZACION: 24 de Enero del 2006 UPDATE: January 24, 2006
He puesto como hacerlo de una manera mas moderna en la siguiente entrada: Software Suspend 2: suspender en Gnu/Linux (II) I have to do it as a way most modern in the following entry: Software Suspend 2: stay in GNU / Linux (II)

3 comentarios » 3 reviews "

Gravatar

Comentario por Inconexo Comments by disjointed

5 Diciembre 2005 @ 17:16 December 5, 2005 @ 17:16

Pregunta: Question:

¿Para qué se desmontan las particiones vfat? What is dismantled vfat partitions? ¿Es necesario? Is it necessary?

En tal caso, quizá lo propio sería llamar a ‘umount -l /mnt/windows’, lo cuál desmontará la partición incluso si está en uso. In this case, perhaps the same would call 'umount-l / mnt / windows', which disassemble the partition even if it is in use.

Usando Using Galeon Galeon 1.3.21 en Galeon 1.3.21 in Linux Linux
Gravatar

Comentario por Packo Comments by Packo

9 Diciembre 2005 @ 22:57 December 9, 2005 @ 22:57

Por que he leído que puede dar problemas serios. For that I have read that can give serious problems. Y lo de ‘umount -l’, muy buena idea, voy a cambiar el post original. And what of 'umount-l', very good idea, I will change the original post.

Usando Using Mozilla Firefox Mozilla Firefox 1.5 en Mozilla Firefox 1.5 in Ubuntu Linux Ubuntu Linux Ubuntu Linux
Gravatar

Notificacion por Blog de packo » Software Suspend 2: suspender en Gnu/Linux (II) Notice by Blog Pack 'Software Suspend 2: stay in GNU / Linux (II)

24 Enero 2006 @ 3:03 January 24, 2006 @ 3:03

[...] s — Packo at 3:02 am on Martes, Enero 24, 2006 [...] S - Packo at 3:02 a.m. on Tuesday, January 24, 2006

En una entrada anterior: Suspender el portatil en Gnu/Linux, ya hablaba de como suspender el portatil o sobremesa, ahora voy a explicar c [...] In a previous post: Suspend the laptop in GNU / Linux, and talked about how to stay the desktop or laptop, now I will explain c [...]

Usando Using WordPress WordPress 1.5.1.2 WordPress 1.5.1.2

Redifusión RSS de los comentarios de la entrada. TrackBack URI Retransmission RSS comments of the inning. TrackBack URI

Dejar un comentario Post a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> < of datetime = ""> <em> <i> <q cite=""> <strike> <strong>

Tema de Packo, basado en Dixie Belle Theme by geeksmakemehot.com . Theme Packo, based on Dixie Belle Theme by geeksmakemehot.com.
Por WordPress For WordPress