You are not logged in.

#1 2006-02-23 17:51:39

jinn
Member
From: Gothenburg
Registered: 2005-12-10
Posts: 506

Request Gnome Power Manager

Gnome power manager seems to be a perfect tool for laptops. Please add this package into aur.

more about gpm:
http://www.gnome.org/projects/gnome-pow … r/gpm.html

cheers
Jinn


The ultimate Archlinux release name: "I am your father"

Offline

#2 2006-02-23 17:54:11

Moo-Crumpus
Member
From: Hessen / Germany
Registered: 2003-12-01
Posts: 1,487

Re: Request Gnome Power Manager

I attend that, but neither can do a PKGBUILD.


Frumpus addict
[mu'.krum.pus], [frum.pus]

Offline

#3 2006-02-24 09:01:29

wiremore
Member
Registered: 2005-08-23
Posts: 43

Re: Request Gnome Power Manager

gnome-power-manager is already in the AUR. Search for it. That said, the pkgbuild there is out of date. Here is a newer one:

pkgname=gnome-power-manager
pkgver=2.13.91
pkgrel=1
pkgdesc="Session daemon that makes it easy to manage your laptop or desktop system."
url="http://www.gnome.org/projects/gnome-power-manager/"
license=""
depends=('hal' 'libgnomeui' 'libwnck')
makedepends=('gettext' 'intltool')
install=gnome-power-manager.install
source=(http://ftp.gnome.org/pub/GNOME/sources/gnome-power-manager/2.13/$pkgname-$pkgver.tar.bz2)
md5sums=('41f4e3f5cf11f8444ba37e7469d8680a')

build() {
  cd $startdir/src/$pkgname-$pkgver
  ./configure --prefix=/opt/gnome
    --with-dbus-sys=/etc/dbus-1/system.d 
    --with-dbus-services=/usr/share/dbus-1/services
        #--disable-libnotify
  make || return 1
  make DESTDIR=$startdir/pkg install
}

and the .install

pkgname=gnome-power-manager

post_install() {
  schemas=(`pacman -Ql $pkgname | grep 'gconf/schemas/.*schemas$' | awk '{ print $2 }'`)

  export GCONF_CONFIG_SOURCE=`opt/gnome/bin/gconftool-2 --get-default-source`
  for schema in "${schemas[@]}" ; do
    opt/gnome/bin/gconftool-2 --makefile-install-rule "$schema" >/dev/null 2>&1
  done

  kill -s HUP `pidof /opt/gnome/bin/gconfd-2` > /dev/null 2>&1
  update-desktop-database -q
}

pre_upgrade() {
  pre_remove $1
}

post_upgrade() {
  post_install $1
}

pre_remove() {
  schemas=(`pacman -Ql $pkgname | grep 'gconf/schemas/.*schemas$' | awk '{ print $2 }'`)

  export GCONF_CONFIG_SOURCE=`opt/gnome/bin/gconftool-2 --get-default-source`
  for schema in "${schemas[@]}" ; do
    opt/gnome/bin/gconftool-2 --makefile-uninstall-rule "$schema" >/dev/null 2>&1
  done

  kill -s HUP `pidof /opt/gnome/bin/gconfd-2` >/dev/null 2>&1
}

post_remove() {
  update-desktop-database -q
}

op=$1
shift

$op $*

gnome-power-preferences (the gui preference editor) crashes for me, but you can still edit the settings with gconf-editor. Have fun.

Offline

#4 2006-02-24 14:39:55

jinn
Member
From: Gothenburg
Registered: 2005-12-10
Posts: 506

Re: Request Gnome Power Manager

Sweet, thanx shall try it right away.


The ultimate Archlinux release name: "I am your father"

Offline

#5 2006-02-24 14:48:54

jinn
Member
From: Gothenburg
Registered: 2005-12-10
Posts: 506

Re: Request Gnome Power Manager

the preference thing works for my.. but gnome-power-manager crashes on started.. It says that I should start the dbus deamon which I do, but still crasches..


The ultimate Archlinux release name: "I am your father"

Offline

#6 2006-02-27 01:52:20

wiremore
Member
Registered: 2005-08-23
Posts: 43

Re: Request Gnome Power Manager

jinn, try adding

 eval `dbus-launch --sh-syntax` 

to your xinitrc. this will export the necessary environmental variables to get dbus stuff work.

gnome-power-preferences works fine you say? are you running testing or current?

Offline

#7 2006-02-27 07:49:06

jinn
Member
From: Gothenburg
Registered: 2005-12-10
Posts: 506

Re: Request Gnome Power Manager

I am running current. Tried what you said, but still the same problem. Just restarted the X, dont think that I need to restart the computer totally.

using: gnome 2.12.2, xorg 7.0, also running xgl with some of its cvs packages.


The ultimate Archlinux release name: "I am your father"

Offline

#8 2006-04-02 18:27:39

hjorthboggild
Member
From: Denmark
Registered: 2005-11-05
Posts: 89

Re: Request Gnome Power Manager

Has anyone succeded in building gnome-power-manager 2.14.0 to use with gnome-2.14 from testing?

Offline

Board footer

Powered by FluxBB