You are not logged in.

#1 2007-05-21 20:49:43

A.I. BOT
Member
Registered: 2007-04-01
Posts: 88

kpowersave & powersave ...

I am trying to set up my computer so when I close my lid, the screenshuts off, when I open my lid, xscreensaver comes up and asks me for a password ... just like I had when I was on Ubuntu. Someone suggested kpowersave.

When I try to install powersave I get:

sudo pacman -S powersave
resolving dependencies... done.
looking for inter-conflicts... done.

Targets: cpufrequtils-002-1  vbetool-0.7-1  powersave-0.14.0-4 

Total Package Size:   0.45 MB

Proceed with installation? [Y/n]
checking package integrity... done.
cleaning up... done.
(3/3) checking for file conflicts                   [#####################] 100%
error: could not prepare transaction
error: failed to commit transaction (conflicting files)
powersave: /usr/bin/on_ac_power exists in filesystem

errors occurred, no packages were upgraded.

Any ideas?
Thanks.

Offline

#2 2007-05-21 22:00:51

carrouf
Member
Registered: 2007-01-06
Posts: 34

Re: kpowersave & powersave ...

I had this problem too. I solved it renaming the on_ac_power file in /usr/bin directory. I really don't know if it is the best solution, but it worked for me. smile

Last edited by carrouf (2007-05-21 22:01:31)

Offline

#3 2007-05-22 07:35:53

IsSuE
Member
From: Upper Austria
Registered: 2006-04-29
Posts: 309

Re: kpowersave & powersave ...

pacman -Syf powersave should also do the trick

Offline

#4 2007-05-23 04:06:40

A.I. BOT
Member
Registered: 2007-04-01
Posts: 88

Re: kpowersave & powersave ...

Ah OK that fixed it but I went with another method instead. I modified a lid.sh script I found to do what I wanted (shut backlight off, shut screen off, lock the screen with xscreensaver).

#!/bin/sh

LIDSTATE='/var/log/acpi-lidstate'
user=`who| grep " :0" | awk '{print $1}'`
export XAUTHORITY=/home/$user/.Xauthority
export DISPLAY=:0

grep -q closed /proc/acpi/button/lid/*/state
if [ $? = 0 ]
then
    xscreensaver-command -throttle
    xscreensaver-command -lock
    xset dpms force off
    echo `fgconsole` > $LIDSTATE
else
    xscreensaver-command -unthrottle
    chvt `cat $LIDSTATE`
fi

Offline

Board footer

Powered by FluxBB