Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

Conky and Hibernation [solved]

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Post Reply
Advanced search
8 posts • Page 1 of 1
Author
Message
fctk
Veteran
Veteran
Posts: 1424
Joined: Wed Jan 28, 2004 8:08 pm
Location: Milan, Italy, EU

Conky and Hibernation [solved]

  • Quote

Post by fctk » Wed Feb 22, 2006 7:24 pm

hello,

is there a way to stop conky before hibernation and to start it after resuming?

the script by which i start conky is named "conkystart" and is the following:

Code: Select all

#!/bin/bash
conky -c /home/fctk/.conkyrc1
conky -c /home/fctk/.conkyrc2
conky -c /home/fctk/.conkyrc3
conky -c /home/fctk/.conkyrc4
i put:

Code: Select all

OnSuspend 00 killall conky
OnResume 00 conkystart
in /etc/hibernate/ram.conf (i only use hibernate-ram), but when resuming i get:

Code: Select all

Conky: can't open display:
Conky: can't open display:
Conky: can't open display:
Conky: can't open display:
what can i do?
Last edited by fctk on Thu Mar 02, 2006 1:42 pm, edited 1 time in total.
Top
ppurka
Advocate
Advocate
Posts: 3257
Joined: Sun Dec 26, 2004 5:05 pm

  • Quote

Post by ppurka » Wed Feb 22, 2006 10:11 pm

It seems conky probably starts before the X server is initialized. So, you could try adding a sleep 20 after /bin/bash, so that the conky is started only after the X server resumes.
Top
drphibes
Guru
Guru
User avatar
Posts: 432
Joined: Tue Nov 30, 2004 3:13 pm

Re: Conky and Hibernation

  • Quote

Post by drphibes » Wed Feb 22, 2006 10:35 pm

or perhaps you merely need a DISPLAY var:

Code: Select all

#!/bin/bash

DISPLAY=:0

conky -c /home/fctk/.conkyrc1
conky -c /home/fctk/.conkyrc2
conky -c /home/fctk/.conkyrc3
conky -c /home/fctk/.conkyrc4
Top
fctk
Veteran
Veteran
Posts: 1424
Joined: Wed Jan 28, 2004 8:08 pm
Location: Milan, Italy, EU

  • Quote

Post by fctk » Thu Feb 23, 2006 7:15 pm

now conkystart looks like this:

Code: Select all

#!/bin/bash

DISPLAY=":0.0"

sleep 20

conky -c /home/fctk/.conkyrc1
conky -c /home/fctk/.conkyrc2
conky -c /home/fctk/.conkyrc3
conky -c /home/fctk/.conkyrc4
but same error :cry:
Top
fctk
Veteran
Veteran
Posts: 1424
Joined: Wed Jan 28, 2004 8:08 pm
Location: Milan, Italy, EU

  • Quote

Post by fctk » Thu Feb 23, 2006 7:28 pm

i also tried to put:

Code: Select all

OnResume 00 sudo -u fctk conkystart
but nothing, same error.
Top
fctk
Veteran
Veteran
Posts: 1424
Joined: Wed Jan 28, 2004 8:08 pm
Location: Milan, Italy, EU

  • Quote

Post by fctk » Wed Mar 01, 2006 6:58 pm

i fixed by putting:

Code: Select all

export DISPLAY=":0.0"
anyway, there is another problem: i usually launch hibernation from an xterm, but in that way after resuming if i close the xterm conky is closed, too.

is there a way to avoid this?
Top
truc
Advocate
Advocate
User avatar
Posts: 3199
Joined: Mon Jul 25, 2005 9:24 am

  • Quote

Post by truc » Thu Mar 02, 2006 12:24 am

fctk wrote:i fixed by putting:

Code: Select all

export DISPLAY=":0.0"
anyway, there is another problem: i usually launch hibernation from an xterm, but in that way after resuming if i close the xterm conky is closed, too.

is there a way to avoid this?

Code: Select all

 nohup yourscript & 
should do it (close your term without ending conky


BTW To avoid exportint the DISPLAY, I think writing DISPLAY=:0.0 conky -c ... (onevery line) should work..
Top
fctk
Veteran
Veteran
Posts: 1424
Joined: Wed Jan 28, 2004 8:08 pm
Location: Milan, Italy, EU

  • Quote

Post by fctk » Thu Mar 02, 2006 1:42 pm

thanks truc! now it works!

now in ram.conf i have:

Code: Select all

OnResume 00 DISPLAY=:0.0 nohup conkystart &> /dev/null &
while conkystart looks like:

Code: Select all

#!/bin/bash
conky -c /home/fctk/.conkyrc1
conky -c /home/fctk/.conkyrc2
conky -c /home/fctk/.conkyrc3
conky -c /home/fctk/.conkyrc4
Top
Post Reply

8 posts • Page 1 of 1

Return to “Desktop Environments”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic